/*
Theme Name:  Tharavaad
Theme URI:   https://tharavaadfoods.com
Author:      Tharavaad Foods
Description: Complete mobile-first ecommerce theme for Tharavaad Malabar Kitchen. Fully editable via WordPress Customizer — change every colour, text, layout, font and section without touching code. Built for WooCommerce with cart, wishlist, share buttons and full product management.
Version:     2.0.0
Requires at least: 6.2
Tested up to:      6.5
Requires PHP:      8.0
License:     Private
Text Domain: tharavaad
Tags: woocommerce, ecommerce, mobile-first, food, kerala, customizable
*/

/* ============================================================
   THARAVAAD v2 — MOBILE-FIRST DESIGN SYSTEM
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES (controlled via Customizer) ── */
:root {
  --color-primary:    #1a3d1a;
  --color-secondary:  #2f6b2f;
  --color-accent:     #c8860a;
  --color-accent2:    #e8a820;
  --color-bg:         #faf7f2;
  --color-bg2:        #f5f0e8;
  --color-bg3:        #ede5d4;
  --color-white:      #ffffff;
  --color-text:       #0e1f0e;
  --color-muted:      #6a5a30;
  --color-danger:     #c04818;
  --color-success:    #2f6b2f;
  --color-border:     rgba(200,134,10,.15);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Raleway', 'Helvetica Neue', sans-serif;

  --shadow-sm:  0 2px 8px rgba(14,31,14,.06);
  --shadow-md:  0 8px 32px rgba(14,31,14,.1);
  --shadow-lg:  0 20px 60px rgba(14,31,14,.14);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: all .28s cubic-bezier(.25,.46,.45,.94);

  --header-h: 64px;
  --topbar-h: 40px;
  --container: 1280px;
  --gutter: 16px;
}

@media (min-width: 768px)  { :root { --header-h: 72px; --gutter: 32px; } }
@media (min-width: 1024px) { :root { --header-h: 76px; --gutter: 48px; } }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ── TYPOGRAPHY — MOBILE FIRST ── */
h1 { font-family: var(--font-heading); font-size: clamp(32px, 8vw, 80px); font-weight: 900; line-height: 1; color: var(--color-primary); }
h2 { font-family: var(--font-heading); font-size: clamp(26px, 5vw, 52px); font-weight: 700; line-height: 1.05; color: var(--color-primary); }
h3 { font-family: var(--font-heading); font-size: clamp(20px, 3.5vw, 32px); font-weight: 700; color: var(--color-primary); }
h4 { font-family: var(--font-heading); font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; color: var(--color-primary); }
p  { font-size: 14px; line-height: 1.8; color: var(--color-muted); font-weight: 300; }
@media (min-width: 768px) { p { font-size: 15px; } }

/* ── LAYOUT HELPERS ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: 60px 0; }
@media (min-width: 768px)  { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 100px 0; } }

/* ── FLEXBOX & GRID HELPERS ── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); gap: 20px; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; font-size: 11px; letter-spacing: 2px; font-weight: 700;
  font-family: var(--font-body); border: none; cursor: pointer;
  transition: var(--transition); position: relative; overflow: hidden;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { .btn { padding: 15px 36px; } }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover, .btn-primary:active { background: var(--color-accent); color: var(--color-white); }
.btn-gold    { background: var(--color-accent); color: var(--color-white); }
.btn-gold:hover, .btn-gold:active { background: var(--color-accent2); }
.btn-outline { background: transparent; color: var(--color-white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--color-white); background: rgba(255,255,255,.1); }
.btn-outline-dark { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-border); }
.btn-outline-dark:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-sm { padding: 9px 18px; font-size: 10px; letter-spacing: 1.5px; }
.btn-full { width: 100%; }
.btn-danger { background: var(--color-danger); color: var(--color-white); }

/* ── EYEBROW LABEL ── */
.eyebrow { font-size: 10px; letter-spacing: 4px; font-weight: 700; color: var(--color-accent); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--color-accent); }

/* ── TOPBAR ── */
#th-topbar { background: var(--color-primary); color: var(--color-bg2); text-align: center; padding: 10px 16px; font-size: 11px; letter-spacing: 1.5px; font-weight: 500; min-height: var(--topbar-h); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
#th-topbar::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,transparent,transparent 60px,rgba(200,134,10,.07) 60px,rgba(200,134,10,.07) 61px); pointer-events: none; }
#th-topbar .tb-gold { color: var(--color-accent2); }
#th-topbar .tb-sep  { opacity: .3; margin: 0 8px; }
.tb-marquee { display: flex; overflow: hidden; max-width: 100%; }
.tb-marquee-inner { display: flex; gap: 0; white-space: nowrap; animation: topbarScroll 20s linear infinite; }
@keyframes topbarScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── HEADER ── */
#th-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250,247,242,.97); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .4s;
}
#th-header.scrolled { box-shadow: 0 4px 32px rgba(14,31,14,.1); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); }

/* Logo */
.th-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.th-logo img.custom-logo { width: 40px; height: 40px; object-fit: contain; }
@media (min-width: 768px) { .th-logo img.custom-logo { width: 48px; height: 48px; } }
.th-logo-text .logo-name { font-family: var(--font-heading); font-size: 18px; font-weight: 900; color: var(--color-primary); line-height: 1; display: block; }
.th-logo-text .logo-sub  { font-size: 8px; letter-spacing: 3px; color: var(--color-muted); font-weight: 600; display: block; margin-top: 2px; }
@media (min-width: 768px) { .th-logo-text .logo-name { font-size: 22px; } .th-logo-text .logo-sub { font-size: 9px; } }

/* Desktop Nav */
.th-nav { display: none; }
@media (min-width: 1024px) {
  .th-nav { display: flex; align-items: center; }
  .th-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
  .th-nav li { display: inline-block; position: relative; }
  .th-nav a { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--color-primary); position: relative; padding-bottom: 4px; display: block; white-space: nowrap; }
  .th-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--color-accent); transition: width .3s; }
  .th-nav a:hover::after, .th-nav .current-menu-item > a::after { width: 100%; }
  .th-nav a:hover { color: var(--color-accent); }
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .header-actions { gap: 10px; } }
.h-action-btn { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-primary); font-size: 18px; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
.h-action-btn:hover { background: var(--color-bg3); color: var(--color-accent); }
.h-badge { position: absolute; top: 0; right: 0; background: var(--color-accent); color: #fff; border-radius: 50%; width: 17px; height: 17px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.h-badge.red { background: var(--color-danger); }
.th-cart-btn { display: flex; align-items: center; gap: 8px; background: var(--color-primary); color: var(--color-white); border: none; padding: 10px 16px; font-family: var(--font-body); font-size: 11px; letter-spacing: 1.5px; font-weight: 700; cursor: pointer; transition: var(--transition); border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent; }
.th-cart-btn:hover { background: var(--color-accent); }
@media (min-width: 768px) { .th-cart-btn { padding: 11px 22px; } }

/* Hamburger */
.th-hamburger { background: none; border: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
@media (min-width: 1024px) { .th-hamburger { display: none; } }
.th-hamburger span { display: block; width: 22px; height: 2px; background: var(--color-primary); transition: var(--transition); border-radius: 1px; }
.th-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.th-hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.th-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.th-mobile-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 85%; max-width: 320px; background: var(--color-white); z-index: 1001; transform: translateX(-100%); transition: transform .4s cubic-bezier(.25,.46,.45,.94); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow-y: auto; }
.th-mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { padding: 20px 24px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-muted); padding: 4px; }
.mobile-nav-links { padding: 20px 0; flex: 1; }
.mobile-nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; font-size: 14px; font-weight: 600; color: var(--color-primary); border-bottom: 1px solid rgba(200,134,10,.07); letter-spacing: 1px; }
.mobile-nav-links a:hover { background: var(--color-bg2); color: var(--color-accent); }
.mobile-nav-cats { padding: 16px 24px; }
.mobile-nav-cats .mn-label { font-size: 10px; letter-spacing: 3px; color: var(--color-accent); font-weight: 700; margin-bottom: 12px; }
.mobile-nav-cats a { display: block; padding: 8px 0; font-size: 13px; color: var(--color-muted); border-bottom: 1px solid rgba(200,134,10,.06); }
.mobile-nav-cats a:hover { color: var(--color-primary); }
.mobile-nav-footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(14,31,14,.55); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .35s; }
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── HERO SECTION ── */
.th-hero { min-height: 100svh; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .th-hero { display: grid; grid-template-columns: 52% 48%; min-height: 95vh; } }

.hero-left {
  background: var(--color-primary);
  padding: 60px var(--gutter) 60px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; min-height: 60vh;
}
@media (min-width: 768px)  { .hero-left { padding: 80px 48px; } }
@media (min-width: 1024px) { .hero-left { padding: 80px 64px 80px 80px; min-height: auto; } }

/* Decorative bg dots */
.hero-left::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(122,184,122,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* Angled right edge — desktop only */
@media (min-width: 1024px) {
  .hero-left::after { content: ''; position: absolute; right: -1px; top: 0; bottom: 0; width: 60px; background: var(--color-bg); clip-path: polygon(100% 0,100% 100%,0 100%); z-index: 2; }
}

.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-eyebrow .he-line { width: 24px; height: 1px; background: var(--color-accent2); }
.hero-eyebrow .he-text { font-size: 10px; letter-spacing: 3px; color: var(--color-accent2); font-weight: 700; }

.hero-title { color: var(--color-white) !important; margin-bottom: 16px; position: relative; z-index: 1; }
.hero-title em { color: var(--color-accent2); font-style: italic; display: block; }
.hero-script { font-family: var(--font-heading); font-size: clamp(13px, 2vw, 16px); font-weight: 400; font-style: italic; color: rgba(245,240,232,.45); letter-spacing: 2px; display: block; margin-top: 8px; }

.hero-desc { color: rgba(245,240,232,.72); max-width: 400px; margin-bottom: 32px; font-size: 14px; position: relative; z-index: 1; }
@media (min-width: 768px) { .hero-desc { font-size: 15px; } }

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-ctas .btn { font-size: 10px; padding: 12px 22px; }
@media (min-width: 768px) { .hero-ctas .btn { font-size: 11px; padding: 14px 32px; } }

.hero-stats { display: flex; gap: 0; margin-top: 40px; border-top: 1px solid rgba(245,240,232,.1); padding-top: 28px; position: relative; z-index: 1; }
.hero-stat { flex: 1; border-right: 1px solid rgba(245,240,232,.1); padding: 0 12px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hs-num { font-family: var(--font-heading); font-size: clamp(24px,4vw,36px); font-weight: 700; color: var(--color-accent2); line-height: 1; }
.hs-lbl { font-size: 9px; letter-spacing: 2px; color: rgba(245,240,232,.4); margin-top: 4px; font-weight: 600; }

.hero-right { background: var(--color-bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 50vw; padding: 40px 20px; }
@media (min-width: 768px) { .hero-right { min-height: 400px; padding: 60px; } }
.hero-right-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, rgba(200,134,10,.07) 0%, transparent 70%); }
.hero-circles { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hc { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hc1 { width: clamp(220px,40vw,480px); height: clamp(220px,40vw,480px); border: 1px solid rgba(200,134,10,.1); }
.hc2 { width: clamp(170px,30vw,360px); height: clamp(170px,30vw,360px); border: 1px solid rgba(200,134,10,.18); }
.hc3 { width: clamp(120px,20vw,260px); height: clamp(120px,20vw,260px); background: rgba(200,134,10,.04); border: 1px solid rgba(200,134,10,.25); }
.hero-logo { position: relative; z-index: 2; width: clamp(200px,40vw,380px); height: clamp(200px,40vw,380px); display: flex; align-items: center; justify-content: center; }
.hero-logo img, .hero-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 48px rgba(14,31,14,.18)); }
.float-card { position: absolute; background: var(--color-white); z-index: 3; animation: floatY 4s ease-in-out infinite; }
.fc-label { font-size: 8px; letter-spacing: 2px; color: var(--color-muted); font-weight: 700; margin-bottom: 3px; }
.fc-value { font-family: var(--font-heading); font-size: clamp(12px,2vw,15px); font-weight: 700; color: var(--color-primary); }
.fc1 { bottom: 12%; left: 0; padding: 12px 16px; border-left: 3px solid var(--color-accent); box-shadow: var(--shadow-md); animation-delay: 0s; }
.fc2 { top: 12%; right: 0; padding: 12px 16px; border-left: 3px solid var(--color-secondary); box-shadow: var(--shadow-md); animation-delay: .8s; animation-duration: 3.5s; }
.fc3 { top: 45%; left: -8px; padding: 10px 14px; border-left: 3px solid var(--color-danger); box-shadow: 0 6px 24px rgba(14,31,14,.1); animation-delay: 1.6s; animation-duration: 4.2s; }
@media (max-width: 480px) { .fc1, .fc2, .fc3 { display: none; } }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── MARQUEE ── */
.th-marquee { background: var(--color-accent); padding: 14px 0; overflow: hidden; position: relative; }
.th-marquee::before, .th-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.th-marquee::before { left: 0; background: linear-gradient(to right, var(--color-accent), transparent); }
.th-marquee::after  { right: 0; background: linear-gradient(to left,  var(--color-accent), transparent); }
.marquee-inner { display: flex; width: max-content; animation: scrollMarquee 28s linear infinite; }
.marquee-inner span { font-size: 10px; letter-spacing: 2.5px; font-weight: 700; color: #fff; padding: 0 20px; white-space: nowrap; }
.marquee-inner .md { color: rgba(255,255,255,.4) !important; padding: 0 !important; font-size: 8px !important; }
@media (min-width: 768px) { .marquee-inner span { font-size: 11px; padding: 0 24px; } }
@keyframes scrollMarquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── FEATURE STRIP ── */
.th-features { background: var(--color-bg3); }
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; }
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(5,1fr); } }
.feat-item { background: var(--color-white); padding: 24px 16px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.feat-item::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--color-accent); transform: scaleX(0); transition: transform .3s; }
.feat-item:hover { background: var(--color-bg); transform: translateY(-3px); }
.feat-item:hover::before { transform: scaleX(1); }
.feat-icon  { font-size: 26px; margin-bottom: 10px; }
.feat-title { font-size: 10px; letter-spacing: 1px; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.feat-desc  { font-size: 11px; color: var(--color-muted); line-height: 1.4; }

/* ── SECTION HEADERS ── */
.sec-hd { margin-bottom: 36px; }
@media (min-width: 768px) { .sec-hd { margin-bottom: 52px; } }
.sec-hd.centered { text-align: center; }
.sec-hd.centered .eyebrow { justify-content: center; }
.sec-hd.centered .eyebrow::before { display: none; }
.sec-hd.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-hd.split .btn { flex-shrink: 0; font-size: 10px; padding: 10px 18px; }
@media (min-width: 768px) { .sec-hd.split .btn { font-size: 11px; padding: 13px 28px; } }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3,1fr); } }
.cat-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3/4; }
@media (min-width: 768px) { .cat-card:nth-child(1) { grid-row: span 2; aspect-ratio: auto; } }
.cat-inner { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.cat-card:hover .cat-inner { transform: scale(1.05); }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(14,31,14,.15) 0%, rgba(14,31,14,.78) 100%); transition: background .4s; }
.cat-card:hover .cat-overlay { background: linear-gradient(170deg, rgba(14,31,14,.08) 0%, rgba(14,31,14,.88) 100%); }
.cat-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; transform: translateY(4px); transition: transform .4s; }
@media (min-width: 768px) { .cat-body { padding: 24px; } }
.cat-card:hover .cat-body { transform: translateY(0); }
.cat-no   { font-size: 9px; letter-spacing: 2.5px; color: var(--color-accent2); font-weight: 700; margin-bottom: 4px; }
.cat-name { font-family: var(--font-heading); font-size: clamp(16px,3vw,26px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.cat-card:nth-child(1) .cat-name { font-size: clamp(22px,4vw,38px); }
.cat-count { font-size: 11px; color: rgba(245,240,232,.55); }
.cat-arr { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid rgba(245,240,232,.25); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; opacity: 0; transform: rotate(-45deg); transition: all .35s; }
.cat-card:hover .cat-arr { opacity: 1; transform: rotate(0deg); }

/* ── WOOCOMMERCE — PRODUCT CARDS ── */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; width: 100% !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (min-width: 640px)  { .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; } }
@media (min-width: 768px)  { .woocommerce ul.products { grid-template-columns: repeat(3,1fr) !important; gap: 20px !important; } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4,1fr) !important; gap: 20px !important; } }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; background: var(--color-white); position: relative; overflow: hidden; transition: var(--transition); border-radius: var(--radius-sm); float: none !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: block; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading) !important; font-size: clamp(15px,2.5vw,20px) !important; font-weight: 700 !important; color: var(--color-primary) !important; padding: 14px 14px 4px !important; line-height: 1.2 !important; }
@media (min-width: 768px) { .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 18px 18px 6px !important; } }
.woocommerce ul.products li.product .price { color: var(--color-primary) !important; font-family: var(--font-heading) !important; font-size: clamp(17px,2.5vw,22px) !important; font-weight: 700 !important; padding: 0 14px 4px !important; display: block; }
@media (min-width: 768px) { .woocommerce ul.products li.product .price { padding: 0 18px 6px !important; } }
.woocommerce ul.products li.product .price del { font-size: 12px !important; color: rgba(14,31,14,.3) !important; margin-left: 4px; }
.woocommerce ul.products li.product .button { background: var(--color-primary) !important; color: var(--color-white) !important; border: none !important; border-radius: 0 !important; font-family: var(--font-body) !important; font-size: 10px !important; letter-spacing: 1.5px !important; font-weight: 700 !important; padding: 11px 14px !important; width: calc(100% - 28px) !important; margin: 8px 14px 14px !important; transition: background .25s !important; }
@media (min-width: 768px) { .woocommerce ul.products li.product .button { font-size: 11px !important; padding: 12px 18px !important; width: calc(100% - 36px) !important; margin: 8px 18px 18px !important; } }
.woocommerce ul.products li.product .button:hover { background: var(--color-accent) !important; }
.woocommerce ul.products li.product .onsale { background: var(--color-accent) !important; border-radius: 0 !important; font-family: var(--font-body) !important; font-size: 9px !important; letter-spacing: 1px !important; font-weight: 700 !important; min-height: auto !important; line-height: 1 !important; padding: 5px 10px !important; top: 10px !important; left: 10px !important; }
/* Product card action buttons overlay */
.prod-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.pa-btn { width: 34px; height: 34px; background: rgba(250,247,242,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; border-radius: 50%; box-shadow: var(--shadow-sm); transition: var(--transition); opacity: 0; transform: translateX(8px); }
.woocommerce ul.products li.product:hover .pa-btn { opacity: 1; transform: translateX(0); }
.pa-btn:nth-child(2) { transition-delay: .06s; }
.pa-btn:nth-child(3) { transition-delay: .12s; }
.pa-btn:hover { background: var(--color-primary); color: #fff; }
.pa-btn.wished { background: var(--color-danger) !important; color: #fff; opacity: 1 !important; transform: translateX(0) !important; }
/* Mobile — always show action buttons */
@media (max-width: 768px) { .pa-btn { opacity: 1; transform: translateX(0); width: 30px; height: 30px; font-size: 13px; } }

/* ── SINGLE PRODUCT PAGE ── */
.single-product-wrap { margin-top: 20px; overflow: hidden; }
@media (min-width: 1024px) { 
    .single-product-wrap { margin-top: 40px; margin-bottom: 40px; } 
}

/* The actual WooCommerce product container */
.woocommerce div.product { display: flex; flex-direction: column; width: 100%; border: none !important; }
@media (min-width: 1024px) {
    .woocommerce div.product { display: grid; grid-template-columns: 50% 50%; gap: 0; }
}

/* Gallery - Top Left */
.woocommerce div.product .woocommerce-product-gallery { background: var(--color-bg2); width: 100% !important; margin: 0 !important; border-radius: var(--radius-md) 0 0 var(--radius-md); }

/* Summary - Top Right */
.woocommerce div.product .summary { width: 100% !important; margin: 0 !important; background: transparent; border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* Tabs - Bottom Full Width */
.woocommerce div.product .woocommerce-tabs { grid-column: span 2; padding: 60px 0; background: transparent; border-top: 1px solid var(--color-border); }
@media (max-width: 1024px) { .woocommerce div.product .woocommerce-tabs { padding: 40px 0; } }


/* Gallery */
.woocommerce div.product .woocommerce-product-gallery { background: var(--color-bg2); position: relative; }
@media (min-width: 1024px) { .woocommerce div.product .woocommerce-product-gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.woocommerce div.product .woocommerce-product-gallery__wrapper { padding: 24px; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--radius-sm); }
.flex-control-thumbs { display: flex !important; gap: 8px !important; padding: 12px 24px !important; overflow-x: auto; }
.flex-control-thumbs li { flex-shrink: 0; width: 64px !important; height: 64px !important; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.flex-control-thumbs li.flex-active { border-color: var(--color-accent); }
.flex-control-thumbs img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Summary */
.woocommerce div.product .summary { padding: 32px var(--gutter); display: flex; flex-direction: column; justify-content: flex-start; }
@media (min-width: 768px) { .woocommerce div.product .summary { padding: 40px; } }
@media (min-width: 1024px) { .woocommerce div.product .summary { padding: 20px 0 20px 80px; } }
.woocommerce div.product .product_title { font-family: var(--font-heading) !important; font-size: clamp(28px,4.5vw,48px) !important; font-weight: 900 !important; color: var(--color-primary) !important; margin-bottom: 12px !important; line-height: 1.05 !important; }
.woocommerce div.product .price { font-family: var(--font-heading) !important; font-size: clamp(28px,4vw,38px) !important; font-weight: 700 !important; color: var(--color-accent) !important; margin-bottom: 24px !important; display: flex; align-items: center; gap: 12px; }
.woocommerce div.product .price del { font-size: 18px !important; color: rgba(14,31,14,.2) !important; font-weight: 400; text-decoration: line-through; }
.woocommerce div.product .price ins { text-decoration: none; color: var(--color-accent); }
.woocommerce span.onsale { background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 6px 12px; border-radius: 20px; position: absolute; top: 20px; left: 20px; z-index: 10; text-transform: uppercase; }
.woocommerce div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(200,134,10,.12); flex-wrap: wrap; }
.woocommerce div.product .star-rating { color: var(--color-accent2) !important; }
.woocommerce div.product .cart { display: flex; align-items: center; gap: 12px; margin: 32px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 24px 0; flex-wrap: wrap; }
.woocommerce div.product .cart .quantity { margin: 0; display: flex; align-items: center; }
.woocommerce div.product .cart .qty { border: 1.5px solid var(--color-bg3) !important; padding: 0 !important; font-size: 15px !important; font-weight: 700 !important; font-family: var(--font-body) !important; width: 52px !important; height: 52px !important; text-align: center; border-radius: var(--radius-sm); background: var(--color-bg); outline: none; display: flex; align-items: center; justify-content: center; }
.woocommerce div.product .single_add_to_cart_button { background: var(--color-primary) !important; color: var(--color-white) !important; border: none !important; border-radius: var(--radius-sm) !important; font-family: var(--font-body) !important; font-size: 11px !important; letter-spacing: 2px !important; font-weight: 700 !important; padding: 0 32px !important; height: 52px !important; transition: var(--transition) !important; white-space: nowrap; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--color-accent) !important; }

/* Wishlist and Share row alignment */
.th-wish-add-row { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.th-wish-btn { width: 52px; height: 52px; border: 1.5px solid var(--color-bg3); background: #fff; border-radius: var(--radius-sm); font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--color-primary); transition: var(--transition); }
.th-wish-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.th-wish-add-row .btn-outline-dark { height: 52px !important; padding: 0 20px !important; display: flex !important; align-items: center; justify-content: center; font-size: 10px !important; letter-spacing: 2px !important; margin: 0 !important; }

.product_meta { font-size: 12px; color: var(--color-muted); margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.product_meta > span { display: block; margin-bottom: 6px; }
.product_meta a { color: var(--color-primary); text-decoration: none; font-weight: 700; }
/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--color-bg3) !important; display: flex !important; gap: 0 !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { height: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: none !important; border-bottom: 2.5px solid transparent !important; margin: 0 !important; flex-shrink: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--color-accent) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-body) !important; font-size: 10px !important; letter-spacing: 2px !important; font-weight: 700 !important; color: var(--color-primary) !important; padding: 14px 16px !important; display: block; white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs .panel { padding: 32px 0; border-top: 1px solid var(--color-bg3); }
.woocommerce div.product .woocommerce-tabs h2 { font-size: 20px; margin-bottom: 20px; color: var(--color-primary); }

/* Reviews */
#reviews #comments { margin-bottom: 40px; }
.woocommerce-Reviews-title { font-family: var(--font-heading) !important; font-size: 24px !important; margin-bottom: 24px !important; color: var(--color-primary) !important; }
.commentlist { padding: 0; list-style: none; }
.commentlist li { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--color-bg3); }
.commentlist li:last-child { border-bottom: none; }
.comment_container { display: flex; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.comment-text { flex: 1; }
.comment-text .star-rating { float: right; margin-bottom: 10px; }
.comment-text .meta { font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.comment-text .description { font-style: italic; line-height: 1.6; color: var(--color-text); }

#review_form_wrapper { background: var(--color-bg2); padding: 32px; border-radius: var(--radius-md); }
#reply-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 20px; display: block; color: var(--color-primary); }
.comment-form-rating { margin-bottom: 20px; }
.comment-form-rating label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--color-muted); }
.stars { display: flex; gap: 4px; font-size: 20px; color: var(--color-accent2); }
.comment-form-comment label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--color-muted); }
.comment-form-comment textarea { width: 100%; padding: 14px; border: 1.5px solid var(--color-bg3); border-radius: var(--radius-sm); font-family: var(--font-body); min-height: 120px; }
.form-submit { margin-top: 20px; }
.form-submit input#submit { background: var(--color-primary); color: #fff; border: none; padding: 14px 32px; font-weight: 700; letter-spacing: 2px; font-size: 11px; cursor: pointer; }
.form-submit input#submit:hover { background: var(--color-accent); }

/* ── SHOP SIDEBAR WIDGETS ── */
.shop-sidebar { font-family: var(--font-body); }
.shop-sidebar .widget { margin-bottom: 40px; }
.shop-sidebar .sb-title, .shop-sidebar h2, .shop-sidebar h3 { font-family: var(--font-heading) !important; font-size: 14px !important; letter-spacing: 2px !important; font-weight: 700 !important; color: var(--color-primary) !important; text-transform: uppercase; margin-bottom: 20px !important; display: block; border-bottom: 1.5px solid var(--color-accent); padding-bottom: 8px; }
.shop-sidebar ul { list-style: none; padding: 0; margin: 0; }
.shop-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--color-bg3); font-size: 14px; color: var(--color-muted); }
.shop-sidebar li a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
.shop-sidebar li a:hover { color: var(--color-accent); }
.shop-sidebar .search-field { width: 100%; padding: 10px; border: 1px solid var(--color-bg3); border-radius: var(--radius-sm); }
.shop-sidebar .search-submit { background: var(--color-primary); color: #fff; border: none; padding: 10px 15px; margin-top: 8px; cursor: pointer; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; width: 100%; }

/* Fix for big titles in widgets */
.shop-sidebar .widget_recent_entries h2, .shop-sidebar .widget_recent_comments h2, .shop-sidebar .widget_archive h2, .shop-sidebar .widget_categories h2 { font-size: 14px !important; }

/* Ensure Add to Cart and Price are visible */
.woocommerce-variation-add-to-cart, .woocommerce div.product form.cart { display: flex !important; align-items: center; gap: 10px; margin-top: 20px; }
.woocommerce div.product .price { display: block !important; visibility: visible !important; }
.single_add_to_cart_button { background: var(--color-primary) !important; color: #fff !important; padding: 16px 32px !important; border: none !important; font-weight: 700 !important; letter-spacing: 2px !important; cursor: pointer; border-radius: var(--radius-sm); transition: var(--transition); }
.single_add_to_cart_button:hover { background: var(--color-accent) !important; }

/* Read More / Buy Now Button In Loop */
.woocommerce ul.products li.product .button { background: var(--color-primary) !important; color: #fff !important; margin-top: 10px; display: block; text-align: center; border-radius: var(--radius-sm); font-size: 11px; padding: 10px; letter-spacing: 1px; }

/* ── SHARE BUTTONS ── */
.th-share { margin: 20px 0; padding: 16px 0; border-top: 1px solid rgba(200,134,10,.12); border-bottom: 1px solid rgba(200,134,10,.12); }
.th-share-label { font-size: 10px; letter-spacing: 2.5px; font-weight: 700; color: var(--color-muted); margin-bottom: 10px; }
.th-share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.th-share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1.5px solid; font-size: 10px; font-family: var(--font-body); font-weight: 700; cursor: pointer; background: none; transition: var(--transition); border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent; }
.th-share-btn:hover { transform: translateY(-1px); }
.sb-wa { color: #25d366; border-color: #25d366; } .sb-wa:hover { background: #25d366; color: #fff; }
.sb-fb { color: #1877f2; border-color: #1877f2; } .sb-fb:hover { background: #1877f2; color: #fff; }
.sb-tw { color: #1da1f2; border-color: #1da1f2; } .sb-tw:hover { background: #1da1f2; color: #fff; }
.sb-tg { color: #2ca5e0; border-color: #2ca5e0; } .sb-tg:hover { background: #2ca5e0; color: #fff; }
.sb-cp { color: var(--color-muted); border-color: var(--color-bg3); } .sb-cp:hover { background: var(--color-primary); color: #fff; }

/* ── PRODUCT HIGHLIGHTS ── */
.th-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.th-hl { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--color-bg2); border-left: 2px solid var(--color-accent); }
.th-hl-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.th-hl-title { font-size: 11px; font-weight: 700; color: var(--color-primary); margin-bottom: 2px; }
.th-hl-desc  { font-size: 11px; color: var(--color-muted); line-height: 1.4; }

/* ── WISHLIST BUTTON ── */
.th-wish-btn { width: 46px; height: 46px; border: 1.5px solid var(--color-bg3); background: var(--color-white); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: var(--transition); border-radius: var(--radius-sm); flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.th-wish-btn:hover, .th-wish-btn.wished { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }

/* ── CART SIDEBAR ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(14,31,14,.55); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity .35s; backdrop-filter: blur(4px); }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--color-bg); z-index: 1002; transform: translateX(100%); transition: transform .4s cubic-bezier(.25,.46,.45,.94); display: flex; flex-direction: column; box-shadow: -12px 0 60px rgba(14,31,14,.2); }
.cart-sidebar.open { transform: translateX(0); }
@media (max-width: 480px) { .cart-sidebar { max-width: 100%; } }
.cs-head { padding: 20px 22px; border-bottom: 1px solid var(--color-bg3); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--color-white); }
.cs-head h3 { font-family: var(--font-heading); font-size: 22px; color: var(--color-primary); }
.cs-close { background: none; border: none; font-size: 22px; cursor: pointer; color: rgba(14,31,14,.35); padding: 4px; transition: color .2s; }
.cs-close:hover { color: var(--color-primary); }
.cs-body { flex: 1; overflow-y: auto; padding: 16px 22px; -webkit-overflow-scrolling: touch; }
.cs-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-bg3); }
.cs-img  { width: 64px; height: 64px; background: var(--color-bg2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-info { flex: 1; min-width: 0; }
.cs-name { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--color-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-var  { font-size: 10px; letter-spacing: 1px; color: var(--color-muted); margin-bottom: 8px; }
.cs-row  { display: flex; align-items: center; justify-content: space-between; }
.cs-qty  { display: flex; align-items: center; gap: 8px; }
.cs-qbtn { width: 26px; height: 26px; border: 1px solid var(--color-bg3); background: var(--color-white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--color-primary); transition: var(--transition); border-radius: var(--radius-sm); }
.cs-qbtn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.cs-qnum { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cs-price { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-primary); }
.cs-del   { background: none; border: none; cursor: pointer; color: rgba(14,31,14,.28); font-size: 16px; padding: 4px; transition: color .2s; margin-left: 4px; }
.cs-del:hover { color: var(--color-danger); }
.cs-empty { text-align: center; padding: 60px 20px; }
.cs-empty-icon { font-size: 52px; margin-bottom: 14px; }
.cs-foot { padding: 16px 22px; border-top: 1px solid var(--color-bg3); flex-shrink: 0; background: var(--color-white); }
.cs-subtotal { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-muted); margin-bottom: 6px; }
.cs-delivery { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-muted); margin-bottom: 12px; }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--color-bg3); margin-bottom: 16px; }
.cs-total-label { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.cs-total-val { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--color-primary); }
.free-ship-bar { height: 4px; background: var(--color-bg3); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.free-ship-fill { height: 100%; background: var(--color-secondary); transition: width .5s; }
.free-ship-note { font-size: 11px; color: var(--color-muted); text-align: center; margin-bottom: 12px; }

/* ── STORY SECTION ── */
.th-story { background: var(--color-primary); }
.story-inner { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .story-inner { display: grid; grid-template-columns: 55% 45%; } }
.story-l { padding: 60px var(--gutter); display: flex; flex-direction: column; justify-content: center; position: relative; }
@media (min-width: 768px)  { .story-l { padding: 80px 48px; } }
@media (min-width: 1024px) { .story-l { padding: 100px 80px; } }
.story-l::before { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(200,134,10,.08); pointer-events: none; }
@media (max-width: 768px) { .story-l::before { display: none; } }
.story-title { font-family: var(--font-heading); font-size: clamp(28px,5vw,54px); font-weight: 900; color: var(--color-white) !important; margin-bottom: 24px; line-height: 1.05; }
.story-title em { color: var(--color-accent2); font-style: italic; }
.story-body { font-size: 14px; line-height: 1.9; color: rgba(245,240,232,.7); margin-bottom: 14px; font-weight: 300; }
@media (min-width: 768px) { .story-body { font-size: 15px; } }
.story-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.sp { padding: 16px; border: 1px solid rgba(200,134,10,.18); transition: border-color .3s; position: relative; overflow: hidden; }
.sp::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .4s; transform-origin: left; }
.sp:hover { border-color: rgba(200,134,10,.45); }
.sp:hover::after { transform: scaleX(1); }
.sp-icon  { font-size: 20px; margin-bottom: 8px; }
.sp-title { font-family: var(--font-heading); font-size: 16px; color: var(--color-accent2); margin-bottom: 3px; font-weight: 700; }
.sp-desc  { font-size: 11px; color: rgba(245,240,232,.5); line-height: 1.5; font-weight: 300; }
.story-r { background: var(--color-secondary); display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; overflow: hidden; min-height: 300px; }
@media (min-width: 1024px) { .story-r { min-height: auto; } }
.story-r::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(200,134,10,.14), transparent 70%); }

/* ── TESTIMONIALS ── */
.th-test { background: var(--color-bg3); }
.test-card { background: var(--color-bg); padding: 28px 24px; position: relative; overflow: hidden; transition: var(--transition); }
@media (min-width: 768px) { .test-card { padding: 36px 30px; } }
.test-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent2)); }
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.test-big-q { font-family: var(--font-heading); font-size: 64px; color: var(--color-accent); line-height: .5; margin-bottom: 14px; opacity: .22; font-style: italic; }
.test-stars { color: var(--color-accent2); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.test-text  { font-family: var(--font-heading); font-size: 15px; font-style: italic; color: var(--color-muted); line-height: 1.75; margin-bottom: 20px; }
.test-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(200,134,10,.15); padding-top: 16px; }
.test-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--color-white); flex-shrink: 0; }
.test-name  { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.test-place { font-size: 10px; letter-spacing: 1.5px; color: var(--color-muted); margin-top: 2px; }

/* ── NEWSLETTER ── */
.th-nl { background: var(--color-bg2); text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.th-nl::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(200,134,10,.1); pointer-events: none; }
.th-nl .nl-inner { position: relative; z-index: 1; }
.nl-form { display: flex; max-width: 460px; margin: 0 auto; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); }
.nl-form input[type=email] { flex: 1; padding: 14px 18px; border: 1.5px solid var(--color-bg3); border-right: none; background: var(--color-white); font-family: var(--font-body); font-size: 13px; color: var(--color-primary); outline: none; transition: border-color .2s; min-width: 0; }
.nl-form input[type=email]:focus { border-color: var(--color-accent); }
.nl-form button { background: var(--color-primary); color: var(--color-white); border: none; padding: 14px 20px; font-family: var(--font-body); font-size: 10px; letter-spacing: 2px; font-weight: 700; cursor: pointer; transition: background .25s; white-space: nowrap; flex-shrink: 0; }
.nl-form button:hover { background: var(--color-accent); }

/* ── FOOTER ── */
#th-footer { background: #090f09; padding: 60px var(--gutter) 28px; color: rgba(245,240,232,.6); }
@media (min-width: 768px) { #th-footer { padding: 72px var(--gutter) 36px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(245,240,232,.07); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 52px; } }
.f-brand-name { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--color-white); }
.f-brand-mal  { font-size: 11px; letter-spacing: 3px; color: var(--color-accent2); margin: 4px 0 14px; }
.f-brand-desc { font-size: 13px; line-height: 1.75; max-width: 280px; font-weight: 300; margin-bottom: 18px; }
.f-socials    { display: flex; gap: 8px; flex-wrap: wrap; }
.f-soc { width: 36px; height: 36px; border: 1px solid rgba(245,240,232,.15); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .25s; border-radius: var(--radius-sm); }
.f-soc:hover { background: var(--color-accent); border-color: var(--color-accent); }
.f-col-title { font-size: 10px; letter-spacing: 3px; color: var(--color-accent2); font-weight: 700; margin-bottom: 16px; }
.f-links { display: flex; flex-direction: column; gap: 10px; }
.f-links a { color: rgba(245,240,232,.5); font-size: 13px; font-weight: 300; transition: color .2s; display: flex; align-items: center; gap: 0; padding: 2px 0; }
.f-links a::before { content: ''; width: 0; height: 1px; background: var(--color-accent); transition: width .25s, margin .25s; flex-shrink: 0; }
.f-links a:hover { color: var(--color-bg2); }
.f-links a:hover::before { width: 10px; margin-right: 6px; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; font-size: 11px; color: rgba(245,240,232,.3); text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } }
.f-pays { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) { .f-pays { justify-content: flex-end; } }
.pay-badge { border: 1px solid rgba(245,240,232,.12); padding: 4px 10px; font-size: 9px; letter-spacing: 1.5px; border-radius: var(--radius-sm); }

/* ── TOAST ── */
.th-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-primary); color: var(--color-bg2); padding: 13px 24px; font-size: 12px; letter-spacing: 1px; z-index: 9999; transition: transform .4s cubic-bezier(.25,.46,.45,.94); border-left: 3px solid var(--color-accent); white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; pointer-events: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-lg); }
.th-toast.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { .th-toast { bottom: 36px; } }

/* ── WHATSAPP FLOAT BUTTON ── */
.wa-float { position: fixed; bottom: 20px; right: 16px; z-index: 999; width: 54px; height: 54px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,.45); transition: transform .25s; font-size: 26px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 768px) { .wa-float { bottom: 28px; right: 28px; width: 58px; height: 58px; font-size: 28px; } }

/* ── BACK TO TOP ── */
#back-top { position: fixed; bottom: 84px; right: 16px; z-index: 998; width: 40px; height: 40px; background: var(--color-primary); color: var(--color-white); border: none; cursor: pointer; font-size: 18px; display: none; align-items: center; justify-content: center; transition: var(--transition); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
#back-top:hover { background: var(--color-accent); }
#back-top.visible { display: flex; }
@media (min-width: 768px) { #back-top { bottom: 28px; right: 84px; } }

/* ── BREADCRUMB ── */
.th-breadcrumb { padding: 12px var(--gutter); background: var(--color-bg3); border-bottom: 1px solid rgba(200,134,10,.1); font-size: 12px; color: var(--color-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.th-breadcrumb a { color: var(--color-muted); transition: color .2s; }
.th-breadcrumb a:hover { color: var(--color-accent); }
.th-breadcrumb .sep { opacity: .4; }

/* ── SHOP PAGE LAYOUT ── */
.shop-wrap { display: block; }
@media (min-width: 1024px) { .shop-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 0; } }
.shop-sidebar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 20px var(--gutter); display: none; }
@media (min-width: 1024px) { .shop-sidebar { display: block; border-bottom: none; border-right: 1px solid var(--color-border); padding: 28px 22px; position: sticky; top: calc(var(--header-h) + 56px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; } }
.shop-sidebar.mobile-open { display: block; }
.sb-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(200,134,10,.1); }
.sb-section:last-child { border-bottom: none; }
.sb-title { font-size: 10px; letter-spacing: 3px; font-weight: 700; color: var(--color-accent); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sb-title::after { content: ''; flex: 1; height: 1px; background: rgba(200,134,10,.2); }
.sb-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13px; color: var(--color-primary); border-bottom: 1px solid rgba(200,134,10,.06); }
.sb-cat-link:hover { color: var(--color-accent); }
.sb-cat-count { font-size: 11px; color: var(--color-muted); }
.shop-main { padding: 20px var(--gutter); }
@media (min-width: 768px) { .shop-main { padding: 28px 32px; } }

/* Filter bar */
.th-filter-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: var(--header-h); z-index: 200; flex-wrap: wrap; }
.filter-tabs-wrap { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; flex: 1; }
.filter-tabs-wrap::-webkit-scrollbar { height: 0; }
.ftab { padding: 14px 14px; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; border: none; background: transparent; color: rgba(14,31,14,.4); cursor: pointer; font-family: var(--font-body); border-bottom: 2.5px solid transparent; transition: all .22s; white-space: nowrap; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
@media (min-width: 768px) { .ftab { padding: 16px 20px; font-size: 11px; } }
.ftab.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.filter-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.filter-sort { padding: 8px 12px; border: 1px solid var(--color-bg3); background: transparent; font-family: var(--font-body); font-size: 12px; color: var(--color-primary); cursor: pointer; outline: none; border-radius: var(--radius-sm); }
.filter-toggle-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--color-bg3); padding: 8px 12px; font-family: var(--font-body); font-size: 11px; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); color: var(--color-primary); }
@media (min-width: 1024px) { .filter-toggle-btn { display: none; } }

/* ── WOOCOMMERCE CART & CHECKOUT ── */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce, .th-cart-page main, .th-checkout-page main { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter); min-height: 50vh; }

/* ── CART PAGE REDESIGN (Traditional & Blocks) ── */
.th-cart-page .entry-title, .woocommerce-cart .entry-title { font-family: var(--font-heading); font-size: 56px; color: var(--color-primary); margin-bottom: 40px; }

/* Blocks Cart Support */
.wc-block-cart, .wc-block-checkout { font-family: var(--font-body) !important; }
.wc-block-cart__submit { margin-top: 32px; }
.wc-block-cart__submit-button, .wc-block-components-button { background-color: var(--color-primary) !important; color: #fff !important; padding: 20px 32px !important; font-weight: 700 !important; letter-spacing: 2px !important; text-transform: uppercase !important; border-radius: var(--radius-sm) !important; transition: var(--transition) !important; border: none !important; width: 100% !important; display: block !important; cursor: pointer !important; text-decoration: none !important; }
.wc-block-cart__submit-button:hover, .wc-block-components-button:hover { background-color: var(--color-accent) !important; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Traditional Cart form */
.woocommerce-cart-form { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.woocommerce-cart table.cart { border-collapse: collapse; width: 100%; border: none !important; }
.woocommerce-cart table.cart thead { background: var(--color-bg2); }
.woocommerce-cart table.cart th { padding: 16px 24px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-primary); border: none; text-align: left; }
.woocommerce-cart table.cart td { padding: 24px; border-bottom: 1px solid var(--color-bg3); vertical-align: middle; }
.woocommerce-cart table.cart .product-thumbnail img { width: 80px; border-radius: var(--radius-sm); }
.woocommerce-cart table.cart .product-name a { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.woocommerce-cart table.cart .product-price, .woocommerce-cart table.cart .product-subtotal { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }
.woocommerce-cart table.cart .product-quantity .qty { width: 60px; padding: 10px; border: 1.5px solid var(--color-bg3); border-radius: var(--radius-sm); text-align: center; }
.woocommerce-cart table.cart .product-remove a { color: var(--color-danger); font-size: 20px; text-decoration: none; }

/* Cart Totals Sidebar */
.cart-collaterals { margin-top: 40px; display: flex; justify-content: flex-end; }
.cart-collaterals .cart_totals { width: 100%; max-width: 440px; background: var(--color-bg2); padding: 32px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border); }
.cart-collaterals .cart_totals h2 { font-family: var(--font-heading); font-size: 24px; color: var(--color-primary); margin-bottom: 24px; border-bottom: 1.5px solid var(--color-accent); padding-bottom: 10px; }
.cart-collaterals .shop_table { width: 100%; border-collapse: collapse; }
.cart-collaterals .shop_table tr th, .cart-collaterals .shop_table tr td { padding: 16px 0; border-bottom: 1px solid rgba(200,134,10,.1); text-align: left; }
.cart-collaterals .shop_table tr.order-total th, .cart-collaterals .shop_table tr.order-total td { border-bottom: none; font-size: 20px; font-weight: 900; color: var(--color-primary); }

/* The Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout { margin-top: 24px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--color-primary) !important; color: #fff !important; display: block; text-align: center; padding: 18px 32px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 2px !important; text-transform: uppercase; border-radius: var(--radius-sm) !important; transition: var(--transition) !important; text-decoration: none !important; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--color-accent) !important; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Empty Cart */
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty::before { content: '🏺'; display: block; font-size: 64px; margin-bottom: 24px; }
.return-to-shop .button { background: var(--color-primary); color: #fff; padding: 14px 32px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; letter-spacing: 1px; }

.woocommerce table.shop_table { font-size: 14px; }
.woocommerce .cart-collaterals { margin-top: 32px; }
.woocommerce .woocommerce-checkout #payment { background: var(--color-bg2); border-radius: var(--radius-md); }
.woocommerce #place_order { background: var(--color-primary) !important; color: var(--color-white) !important; font-family: var(--font-body) !important; letter-spacing: 2px !important; font-weight: 700 !important; border-radius: 0 !important; padding: 16px 40px !important; transition: background .25s !important; }
.woocommerce #place_order:hover { background: var(--color-accent) !important; }
.woocommerce form .form-row label { font-size: 12px; font-weight: 700; color: var(--color-primary); letter-spacing: 0.5px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border: 1.5px solid var(--color-bg3); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font-body); font-size: 14px; transition: border-color .2s; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--color-accent); outline: none; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--color-accent) !important; }
.woocommerce-message::before { color: var(--color-accent) !important; }
.woocommerce-error { border-top-color: var(--color-danger) !important; }

/* ── MY ACCOUNT ── */
.woocommerce-account .woocommerce { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter); display: block; }
@media (min-width: 768px) { .woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 48px; } }
.woocommerce-account .woocommerce-MyAccount-navigation { background: var(--color-primary); padding: 24px; border-radius: var(--radius-md); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { color: rgba(245,240,232,.7); font-size: 13px; font-weight: 600; letter-spacing: 1px; padding: 10px 12px; border-radius: var(--radius-sm); display: block; transition: var(--transition); }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: rgba(245,240,232,.1); color: var(--color-white); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a { background: var(--color-accent); color: var(--color-white); }

/* ── SCROLL REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ── PRICE DISPLAY (INR) ── */
.woocommerce .woocommerce-price-suffix { font-size: .7em; }
.amount bdi { font-family: var(--font-heading); }

/* ── ADMIN BAR OFFSET ── */
.admin-bar #th-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #th-header { top: 46px; } }

/* ── ACCESSIBILITY ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
