/*
Theme Name: Silenthought
Theme URI: https://silenthought.com
Author: Silenthought
Author URI: https://silenthought.com
Description: Custom e-commerce theme for Silenthought printing services — From Design to Print, Easy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silenthought
Tags: e-commerce, woocommerce, custom-logo, custom-menu
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
   /* IMPORT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --red: #eb1f3a;
  --red-dark: #c91a31;
  --red-light: #ff3d55;
  --black: #000000;
  --blue: #77acf4;
  --blue-dark: #5a94e0;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--black);
  transition: all 0.35s ease;
}

.site-header.scrolled {
  background: var(--black);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo placeholder */
.site-logo { display: flex; align-items: center; gap: 10px; }

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.logo-icon-circle {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon-circle svg { width: 18px; height: 18px; }

.site-logo img { height: 36px; width: auto; }

/* Header right */
.header-actions { display: flex; align-items: center; gap: 14px; }

.user-icon-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.user-icon-btn:hover { background: rgba(255,255,255,0.35); }
.user-icon-btn svg { width: 18px; height: 18px; fill: var(--white); }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 26px;
  border: 2px solid var(--white);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-login:hover {
  background: var(--white);
  color: var(--red);
}

/* ============================================
   HERO SECTION
   ============================================ */
   .hero-section {
    position: relative;
    /* 1. The Deep Red Base */
    background-color: #D50000;
    
    /* 2. The Boxy Grid Pattern (CSS Only - No Images needed) */
    background-image: 
        /* Vertical Lines */
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
        /* Horizontal Lines */
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        /* The Red Gradient behind it to keep depth */
        linear-gradient(135deg, #D50000 0%, #990000 100%);
        
    /* 3. Size of the boxes */
    background-size: 50px 50px, 50px 50px, 100% 100%;
    
    padding: 160px 0 140px;
    text-align: center;
    border-bottom: 4px solid rgba(0,0,0,0.1); /* Subtle sharp edge at bottom */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  font-style: normal;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
  width: 80%;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2.5px solid transparent;
  white-space: nowrap;
}

.btn-cta-primary {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-cta-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-cta-secondary:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.canva-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

/* ============================================
   PRODUCTS / CATEGORIES
   ============================================ */
.products-section {
  padding: 80px 0 70px;
  background: var(--gray-50);
}

.section-header { text-align: center; margin-bottom: 48px; }

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-300);
}
.product-placeholder svg { width: 52px; height: 52px; opacity: 0.4; }
.product-placeholder span { font-size: 0.78rem; font-weight: 500; opacity: 0.6; }

.product-card-title {
  padding: 18px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section {
  padding: 70px 0 80px;
  background: var(--white);
}

.reviews-section .section-header { text-align: left; margin-bottom: 36px; }

.reviews-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}
.review-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.review-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.review-stars svg { width: 17px; height: 17px; fill: #facc15; }

.review-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.review-author {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.footer-info .ssm-number {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 0.84rem;
  color: var(--gray-300);
  line-height: 1.7;
}

.footer-social { text-align: right; }

.footer-social-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--gray-300);
}

.social-icons { display: flex; gap: 12px; justify-content: flex-end; }

.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.social-icon svg { width: 20px; height: 20px; fill: var(--white); }
.social-icon.facebook { background: #1877f2; }
.social-icon.tiktok { background: var(--white); }
.social-icon.tiktok svg { fill: var(--black); }
.social-icon:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 4px 16px rgba(255,255,255,0.15); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: wa-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.6); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: all 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 120px 0 90px; min-height: 420px; }
  .hero-title { font-size: 2rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; gap: 14px; }
  .btn-cta { width: 100%; max-width: 280px; justify-content: center; }
  .products-section { padding: 60px 0 44px; }
  .products-grid { grid-template-columns: 1fr; max-width: 380px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-social { text-align: left; }
  .social-icons { justify-content: flex-start; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .logo-placeholder { font-size: 1rem; }
  .hero-section { padding: 110px 0 75px; }
  .hero-title { font-size: 1.65rem; }
  .container { padding: 0 16px; }
}

/* ============================================
   WOOCOMMERCE BASIC OVERRIDES
   ============================================ */
.woocommerce .button,
.woocommerce .checkout-button,
.woocommerce #place_order {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 12px 28px !important;
  transition: all 0.3s ease !important;
}
.woocommerce .button:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover {
  background: var(--red-dark) !important;
}

/* Hide WooCommerce Blocks sale badge and old strikethrough price globally */
.wc-block-components-sale-badge,
.wc-block-components-product-price__regular {
  display: none !important;
}
