/* ============================================
   FARMHOUSE CHIC TABLES — Design System
   Niche: Handcrafted Farmhouse Furniture
   Palette: Warm woods, cream, sage, charcoal
   ============================================ */

/* --- 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);color:var(--color-text-primary);background:var(--color-bg);line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select,textarea{font-family:inherit;font-size:inherit}
ul,ol{list-style:none}
table{border-collapse:collapse;width:100%}

/* --- Design Tokens --- */
:root{
  /* Colors — warm farmhouse palette */
  --color-bg:#FAF7F2;
  --color-surface:#FFFFFF;
  --color-surface-alt:#F5EFE6;
  --color-border:#E0D5C3;
  --color-border-light:#EDE5D6;
  --color-text-primary:#2B2318;
  --color-text-secondary:#5C4F3D;
  --color-text-muted:#8A7B65;
  --color-accent:#6B5D4F;
  --color-accent-hover:#4A3F33;
  --color-accent-fg:#FAF7F2;
  --color-sage:#7A8B6F;
  --color-sage-light:#A3B395;
  --color-sage-dark:#5A6B4F;
  --color-cream:#F5EFE6;
  --color-warm-gold:#C4A661;
  --color-rust:#A0522D;
  --color-success:#4A7C59;
  --color-warning:#C4A661;
  --color-error:#A0522D;
  --color-sale:#A0522D;

  /* Typography */
  --font-heading:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --font-body:'Jost','Helvetica Neue',Arial,sans-serif;
  --font-mono:'JetBrains Mono','Courier New',monospace;

  /* Radii */
  --radius-sm:4px;
  --radius-md:8px;
  --radius-lg:16px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:0 1px 3px rgba(43,35,24,0.08);
  --shadow-md:0 4px 12px rgba(43,35,24,0.12);
  --shadow-lg:0 12px 40px rgba(43,35,24,0.18);

  /* Spacing */
  --space-xs:4px;
  --space-sm:8px;
  --space-md:16px;
  --space-lg:24px;
  --space-xl:40px;
  --space-2xl:64px;
  --space-3xl:96px;

  /* Transitions */
  --transition-fast:150ms ease;
  --transition-base:250ms ease;
  --transition-slow:400ms ease;

  /* Layout */
  --container-max:1280px;
  --nav-height:72px;
}

/* --- Container --- */
.container{max-width:var(--container-max);margin:0 auto;padding:0 var(--space-lg)}
@media(min-width:768px){.container{padding:0 var(--space-xl)}}

/* --- Typography --- */
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);font-weight:600;line-height:1.2;color:var(--color-text-primary)}
h1{font-size:clamp(2rem,5vw,3.5rem)}
h2{font-size:clamp(1.75rem,4vw,2.75rem)}
h3{font-size:clamp(1.25rem,3vw,1.75rem)}
h4{font-size:1.125rem}
p{color:var(--color-text-secondary)}

/* --- Buttons --- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-sm);padding:14px 28px;font-family:var(--font-body);font-size:0.875rem;font-weight:500;letter-spacing:0.05em;text-transform:uppercase;border-radius:var(--radius-sm);transition:all var(--transition-base);cursor:pointer;white-space:nowrap;line-height:1}
.btn-primary{background:var(--color-accent);color:var(--color-accent-fg)}
.btn-primary:hover{background:var(--color-accent-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.btn-secondary{background:var(--color-surface);color:var(--color-text-primary);border:1.5px solid var(--color-border)}
.btn-secondary:hover{border-color:var(--color-accent);color:var(--color-accent)}
.btn-ghost{background:transparent;color:var(--color-text-primary);border:1.5px solid transparent}
.btn-ghost:hover{color:var(--color-accent)}
.btn-lg{padding:18px 40px;font-size:1rem}
.btn-sm{padding:10px 20px;font-size:0.75rem}
.btn-block{width:100%}
.btn:disabled{opacity:0.5;cursor:not-allowed;transform:none}
.btn:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}

/* --- Badges --- */
.badge{display:inline-flex;align-items:center;padding:4px 12px;font-size:0.7rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;border-radius:var(--radius-full)}
.badge-sale{background:var(--color-sale);color:#fff}
.badge-new{background:var(--color-sage);color:#fff}
.badge-out{background:var(--color-text-muted);color:#fff}
.badge-count{background:var(--color-accent);color:var(--color-accent-fg);min-width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:0.7rem;font-weight:600;padding:0 6px}

/* --- Announcement Bar --- */
.announcement-bar{background:var(--color-accent);color:var(--color-accent-fg);text-align:center;padding:10px var(--space-md);font-size:0.8rem;font-weight:400;letter-spacing:0.03em}
.announcement-bar span{display:inline-block}
.announcement-bar .sep{margin:0 12px;opacity:0.5}

/* --- Navigation --- */
.nav{position:sticky;top:0;z-index:100;background:var(--color-surface);border-bottom:1px solid var(--color-border-light);height:var(--nav-height);display:flex;align-items:center}
.nav-inner{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--space-lg)}
.nav-logo{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;color:var(--color-text-primary);white-space:nowrap;letter-spacing:-0.01em}
.nav-logo span{color:var(--color-sage-dark)}
.nav-links{display:none;align-items:center;gap:var(--space-xl)}
.nav-link{font-size:0.875rem;font-weight:500;color:var(--color-text-secondary);transition:color var(--transition-fast);position:relative;padding:4px 0}
.nav-link:hover{color:var(--color-accent)}
.nav-link::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:1.5px;background:var(--color-accent);transition:width var(--transition-base)}
.nav-link:hover::after{width:100%}
.nav-actions{display:flex;align-items:center;gap:var(--space-md)}
.nav-action{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:var(--color-text-secondary);transition:all var(--transition-fast)}
.nav-action:hover{color:var(--color-accent);background:var(--color-surface-alt)}
.nav-action svg{width:22px;height:22px}
.nav-cart-count{position:absolute;top:-2px;right:-2px}
.search-toggle{cursor:pointer}

/* Search bar in nav */
.nav-search-wrap{display:none;position:absolute;top:100%;left:0;right:0;background:var(--color-surface);border-bottom:1px solid var(--color-border);padding:var(--space-lg) 0;box-shadow:var(--shadow-md)}
.nav-search-wrap.open{display:block}
.nav-search-input{width:100%;max-width:600px;margin:0 auto;padding:12px 20px;border:1.5px solid var(--color-border);border-radius:var(--radius-full);font-size:1rem;display:block}
.nav-search-input:focus{outline:none;border-color:var(--color-accent)}
.search-results-dropdown{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:100%;max-width:600px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);max-height:400px;overflow-y:auto;display:none;z-index:200}
.search-results-dropdown.show{display:block}
.search-item{display:flex;align-items:center;gap:var(--space-md);padding:12px var(--space-lg);border-bottom:1px solid var(--color-border-light);transition:background var(--transition-fast)}
.search-item:hover{background:var(--color-surface-alt)}
.search-item img{width:50px;height:50px;border-radius:var(--radius-sm);object-fit:cover}
.search-item-info h4{font-size:0.875rem;margin-bottom:2px}
.search-item-info p{font-size:0.8rem;color:var(--color-text-muted)}

/* --- Mobile Menu --- */
.hamburger{display:flex;flex-direction:column;gap:5px;width:28px;height:22px;justify-content:center}
.hamburger span{display:block;width:100%;height:2px;background:var(--color-text-primary);transition:all var(--transition-base)}
.hamburger.open span:nth-child(1){transform:rotate(45deg) translate(6px,6px)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px)}

.mobile-menu{position:fixed;top:0;left:-100%;width:85%;max-width:360px;height:100vh;background:var(--color-surface);z-index:200;transition:left var(--transition-slow);overflow-y:auto;padding:var(--space-xl) var(--space-lg);box-shadow:var(--shadow-lg)}
.mobile-menu.open{left:0}
.mobile-menu-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(43,35,24,0.5);z-index:199;opacity:0;visibility:hidden;transition:all var(--transition-base)}
.mobile-menu-overlay.open{opacity:1;visibility:visible}
.mobile-menu-close{position:absolute;top:var(--space-lg);right:var(--space-lg);font-size:1.5rem;color:var(--color-text-muted)}
.mobile-menu nav{display:flex;flex-direction:column;gap:var(--space-md);margin-top:var(--space-xl)}
.mobile-menu nav a{font-size:1.125rem;font-family:var(--font-heading);color:var(--color-text-primary);padding:var(--space-sm) 0;border-bottom:1px solid var(--color-border-light)}
.mobile-menu nav a:hover{color:var(--color-accent)}
.mobile-menu .social-links{margin-top:var(--space-xl)}

@media(min-width:1024px){
  .nav-links{display:flex}
  .hamburger{display:none}
}

/* --- Hero --- */
.hero{position:relative;height:clamp(500px,70vh,700px);display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;background:var(--color-text-primary)}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(43,35,24,0.5) 0%,rgba(43,35,24,0.65) 100%);z-index:1}
.hero-content{position:relative;z-index:2;max-width:800px;padding:0 var(--space-lg)}
.hero-eyebrow{font-size:0.8rem;font-weight:500;letter-spacing:0.2em;text-transform:uppercase;color:var(--color-warm-gold);margin-bottom:var(--space-md)}
.hero-title{color:#fff;font-size:clamp(2.5rem,6vw,4.5rem);font-weight:600;line-height:1.1;margin-bottom:var(--space-lg)}
.hero-subtitle{color:rgba(255,255,255,0.85);font-size:clamp(1rem,2vw,1.25rem);max-width:600px;margin:0 auto var(--space-xl);line-height:1.7}
.hero-actions{display:flex;gap:var(--space-md);justify-content:center;flex-wrap:wrap}

/* --- Sections --- */
.section{padding:var(--space-2xl) 0}
.section-alt{background:var(--color-surface-alt)}
.section-header{text-align:center;max-width:700px;margin:0 auto var(--space-xl)}
.section-title{margin-bottom:var(--space-md)}
.section-subtitle{font-size:1.0625rem;color:var(--color-text-muted);line-height:1.7}
.section-eyebrow{font-size:0.75rem;font-weight:600;letter-spacing:0.15em;text-transform:uppercase;color:var(--color-sage-dark);margin-bottom:var(--space-sm)}

/* --- Grids --- */
.grid-2{display:grid;grid-template-columns:1fr;gap:var(--space-lg)}
.grid-3{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-lg)}
.grid-4{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-lg)}
.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--space-lg)}
@media(min-width:640px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:768px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
}

/* --- Product Card --- */
.product-card{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;transition:all var(--transition-base);border:1px solid var(--color-border-light);display:flex;flex-direction:column}
.product-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.product-card-img-wrap{position:relative;aspect-ratio:1;overflow:hidden;background:var(--color-surface-alt)}
.product-card-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition-slow)}
.product-card:hover .product-card-img-wrap img{transform:scale(1.05)}
.product-card-badges{position:absolute;top:var(--space-sm);left:var(--space-sm);display:flex;flex-direction:column;gap:var(--space-xs)}
.product-card-body{padding:var(--space-md);display:flex;flex-direction:column;gap:var(--space-xs);flex:1}
.product-card-vendor{font-size:0.7rem;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--color-text-muted)}
.product-card-title{font-family:var(--font-heading);font-size:1.0625rem;font-weight:600;line-height:1.3;color:var(--color-text-primary);margin:0}
.product-card-title a:hover{color:var(--color-accent)}
.product-card-price-wrap{display:flex;align-items:center;gap:var(--space-sm);margin-top:auto;padding-top:var(--space-sm)}
.product-card-price{font-family:var(--font-mono);font-size:1rem;font-weight:600;color:var(--color-text-primary)}
.product-card-compare-price{font-family:var(--font-mono);font-size:0.875rem;color:var(--color-text-muted);text-decoration:line-through}
.product-card-atc{margin-top:var(--space-sm);width:100%;padding:10px;font-size:0.75rem}
.product-card-atc.added{background:var(--color-success);color:#fff}

/* --- Collection Card --- */
.collection-card{position:relative;aspect-ratio:4/3;border-radius:var(--radius-md);overflow:hidden;display:block}
.collection-card img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition-slow)}
.collection-card:hover img{transform:scale(1.08)}
.collection-card-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(43,35,24,0.75) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:var(--space-lg)}
.collection-card-title{color:#fff;font-size:1.5rem;margin-bottom:var(--space-xs)}
.collection-card-count{color:rgba(255,255,255,0.8);font-size:0.875rem}

/* --- Breadcrumb --- */
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs);padding:var(--space-md) 0;font-size:0.8125rem;color:var(--color-text-muted)}
.breadcrumb a{color:var(--color-text-muted);transition:color var(--transition-fast)}
.breadcrumb a:hover{color:var(--color-accent)}
.breadcrumb-sep{color:var(--color-border)}
.breadcrumb-item:last-child{color:var(--color-text-primary);font-weight:500}

/* --- Product Page Layout --- */
.product-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl);padding:var(--space-lg) 0 var(--space-2xl)}
@media(min-width:768px){
  .product-layout{grid-template-columns:1fr 1fr;gap:var(--space-2xl)}
}
@media(min-width:1024px){
  .product-layout{grid-template-columns:1.2fr 1fr}
}

/* Product Gallery */
.product-gallery{display:flex;flex-direction:column;gap:var(--space-md)}
.gallery-main-wrap{position:relative;aspect-ratio:1;border-radius:var(--radius-md);overflow:hidden;background:var(--color-surface-alt);border:1px solid var(--color-border-light)}
.gallery-main{width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.gallery-zoom-icon{position:absolute;top:var(--space-md);right:var(--space-md);width:40px;height:40px;background:rgba(255,255,255,0.9);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary)}
.gallery-thumbs{display:flex;gap:var(--space-sm);overflow-x:auto;padding-bottom:var(--space-xs)}
.gallery-thumb{width:80px;height:80px;border-radius:var(--radius-sm);overflow:hidden;border:2px solid transparent;cursor:pointer;flex-shrink:0;transition:border-color var(--transition-fast)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.gallery-thumb.active{border-color:var(--color-accent)}
.gallery-thumb:hover{border-color:var(--color-sage)}

/* Product Info */
.product-info{display:flex;flex-direction:column;gap:var(--space-md)}
.product-vendor{font-size:0.75rem;font-weight:500;letter-spacing:0.1em;text-transform:uppercase;color:var(--color-text-muted)}
.product-title{font-size:clamp(1.5rem,3vw,2.25rem);line-height:1.2}
.product-rating{display:flex;align-items:center;gap:var(--space-sm)}
.rating-stars{display:inline-flex;gap:2px;color:var(--color-warm-gold)}
.rating-stars svg{width:18px;height:18px}
.rating-text{font-size:0.8125rem;color:var(--color-text-muted)}
.product-price-wrap{display:flex;align-items:baseline;gap:var(--space-md);padding:var(--space-sm) 0}
.product-price{font-family:var(--font-mono);font-size:1.75rem;font-weight:700;color:var(--color-text-primary)}
.product-compare-price{font-family:var(--font-mono);font-size:1.25rem;color:var(--color-text-muted);text-decoration:line-through}
.product-save-badge{background:var(--color-sale);color:#fff;padding:4px 10px;border-radius:var(--radius-full);font-size:0.7rem;font-weight:600}

/* Option Selectors */
.option-group{margin-bottom:var(--space-md)}
.option-label{display:block;font-size:0.8125rem;font-weight:600;color:var(--color-text-secondary);margin-bottom:var(--space-sm);text-transform:uppercase;letter-spacing:0.05em}
.option-label span{color:var(--color-accent);font-weight:400;text-transform:none;letter-spacing:0;margin-left:var(--space-xs)}
.option-btns{display:flex;flex-wrap:wrap;gap:var(--space-sm)}
.option-btn{padding:10px 18px;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:0.8125rem;color:var(--color-text-secondary);background:var(--color-surface);transition:all var(--transition-fast);min-width:60px;text-align:center}
.option-btn:hover{border-color:var(--color-accent);color:var(--color-accent)}
.option-btn.active{background:var(--color-accent);color:var(--color-accent-fg);border-color:var(--color-accent)}
.option-btn.unavailable{opacity:0.4;text-decoration:line-through;cursor:not-allowed}

/* Quantity Control */
.qty-control{display:inline-flex;align-items:center;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);overflow:hidden}
.qty-btn{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:var(--color-text-secondary);transition:background var(--transition-fast)}
.qty-btn:hover{background:var(--color-surface-alt);color:var(--color-accent)}
.qty-input{width:50px;height:44px;text-align:center;border:none;border-left:1.5px solid var(--color-border);border-right:1.5px solid var(--color-border);font-family:var(--font-mono);font-size:1rem}

/* ATC Buttons */
.product-atc-row{display:flex;gap:var(--space-md);margin-top:var(--space-md)}
.product-atc-row .btn{flex:1}
.availability-msg{font-size:0.8125rem;font-weight:500;padding:6px 12px;border-radius:var(--radius-sm);display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%}
.availability-msg svg{width:16px;height:16px;flex-shrink:0}
.availability-msg.in-stock{background:rgba(74,124,89,0.1);color:var(--color-success)}
.availability-msg.out-stock{background:rgba(160,82,45,0.1);color:var(--color-error)}

/* Product Short Desc */
.product-short-desc{color:var(--color-text-secondary);font-size:0.9375rem;line-height:1.7;padding:var(--space-md) 0;border-top:1px solid var(--color-border-light);border-bottom:1px solid var(--color-border-light)}

/* Accordions */
.product-accordions{margin-top:var(--space-lg)}
.accordion{border-bottom:1px solid var(--color-border-light)}
.accordion-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-md) 0;cursor:pointer;font-family:var(--font-heading);font-size:1.125rem;font-weight:600;color:var(--color-text-primary)}
.accordion-icon{transition:transform var(--transition-base);font-size:1.25rem;color:var(--color-text-muted)}
.accordion.open .accordion-icon{transform:rotate(45deg)}
.accordion-body{max-height:0;overflow:hidden;transition:max-height var(--transition-slow)}
.accordion.open .accordion-body{max-height:1000px}
.accordion-body-inner{padding:0 0 var(--space-md);color:var(--color-text-secondary);font-size:0.9375rem;line-height:1.7}
.accordion-body-inner ul{list-style:disc;padding-left:var(--space-lg);margin:var(--space-sm) 0}
.accordion-body-inner li{margin-bottom:var(--space-xs)}

/* Sticky ATC */
.sticky-atc{position:fixed;bottom:0;left:0;right:0;background:var(--color-surface);border-top:1px solid var(--color-border);box-shadow:0 -4px 20px rgba(43,35,24,0.1);padding:var(--space-md) var(--space-lg);z-index:90;transform:translateY(100%);transition:transform var(--transition-base);display:flex;align-items:center;gap:var(--space-md)}
.sticky-atc.visible{transform:translateY(0)}
.sticky-atc-product{display:flex;align-items:center;gap:var(--space-md);flex:1;min-width:0}
.sticky-atc-product img{width:50px;height:50px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0}
.sticky-atc-product-info{min-width:0}
.sticky-atc-product-info h4{font-size:0.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sticky-atc-product-info p{font-family:var(--font-mono);font-size:0.875rem;font-weight:600;color:var(--color-accent)}
@media(max-width:640px){
  .sticky-atc-product-info h4{font-size:0.75rem}
  .sticky-atc .btn{padding:10px 16px;font-size:0.75rem}
}

/* --- Reviews --- */
.reviews-section{padding:var(--space-xl) 0;border-top:1px solid var(--color-border-light);margin-top:var(--space-xl)}
.reviews-summary{display:flex;flex-direction:column;gap:var(--space-md);margin-bottom:var(--space-xl)}
@media(min-width:768px){.reviews-summary{flex-direction:row;align-items:center;gap:var(--space-2xl)}}
.reviews-avg{text-align:center}
.reviews-score{font-family:var(--font-heading);font-size:3rem;font-weight:700;color:var(--color-text-primary)}
.reviews-score-out{font-size:1rem;color:var(--color-text-muted)}
.reviews-bars{flex:1;max-width:400px}
.rating-bar{display:flex;align-items:center;gap:var(--space-sm);margin-bottom:var(--space-xs)}
.rating-bar-label{font-size:0.75rem;color:var(--color-text-muted);width:40px}
.rating-bar-track{flex:1;height:8px;background:var(--color-surface-alt);border-radius:var(--radius-full);overflow:hidden}
.rating-bar-fill{height:100%;background:var(--color-warm-gold);border-radius:var(--radius-full)}
.rating-bar-count{font-size:0.75rem;color:var(--color-text-muted);width:30px;text-align:right}
.review-card{background:var(--color-surface);border:1px solid var(--color-border-light);border-radius:var(--radius-md);padding:var(--space-lg);margin-bottom:var(--space-md)}
.review-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--space-sm)}
.review-author{font-weight:600;font-size:0.9375rem;color:var(--color-text-primary)}
.review-verified{font-size:0.75rem;color:var(--color-success);display:flex;align-items:center;gap:4px}
.review-title{font-family:var(--font-heading);font-size:1.125rem;font-weight:600;margin-bottom:var(--space-sm)}
.review-body{font-size:0.875rem;color:var(--color-text-secondary);line-height:1.7}
.review-date{font-size:0.75rem;color:var(--color-text-muted);margin-top:var(--space-sm)}

/* --- Cart Drawer --- */
.cart-overlay{position:fixed;inset:0;background:rgba(43,35,24,0.5);z-index:199;opacity:0;visibility:hidden;transition:all var(--transition-base)}
.cart-overlay.open{opacity:1;visibility:visible}
.cart-drawer{position:fixed;top:0;right:-100%;width:100%;max-width:420px;height:100vh;background:var(--color-surface);z-index:200;transition:right var(--transition-slow);display:flex;flex-direction:column;box-shadow:var(--shadow-lg)}
.cart-drawer.open{right:0}
.cart-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-lg);border-bottom:1px solid var(--color-border-light)}
.cart-drawer-header h2{font-size:1.25rem;display:flex;align-items:center;gap:var(--space-sm)}
.cart-close{font-size:1.5rem;color:var(--color-text-muted);width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.cart-close:hover{background:var(--color-surface-alt);color:var(--color-text-primary)}
.cart-lines{flex:1;overflow-y:auto;padding:var(--space-md) var(--space-lg)}
.cart-empty{text-align:center;padding:var(--space-2xl) var(--space-lg);color:var(--color-text-muted)}
.cart-empty svg{width:64px;height:64px;margin:0 auto var(--space-md);opacity:0.3}
.cart-item{display:flex;gap:var(--space-md);padding:var(--space-md) 0;border-bottom:1px solid var(--color-border-light)}
.cart-item-img{width:80px;height:80px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0}
.cart-item-info{flex:1;min-width:0}
.cart-item-title{font-size:0.875rem;font-weight:600;line-height:1.3;margin-bottom:2px}
.cart-item-variant{font-size:0.75rem;color:var(--color-text-muted);margin-bottom:var(--space-sm)}
.cart-item-price{font-family:var(--font-mono);font-size:0.875rem;font-weight:600;color:var(--color-text-primary)}
.cart-item-controls{display:flex;align-items:center;justify-content:space-between;margin-top:var(--space-sm)}
.cart-item-qty{display:inline-flex;align-items:center;border:1px solid var(--color-border);border-radius:var(--radius-sm);overflow:hidden}
.cart-item-qty button{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:0.875rem;color:var(--color-text-secondary)}
.cart-item-qty button:hover{background:var(--color-surface-alt)}
.cart-item-qty span{width:32px;text-align:center;font-family:var(--font-mono);font-size:0.8125rem}
.cart-item-remove{font-size:0.75rem;color:var(--color-text-muted);text-decoration:underline}
.cart-item-remove:hover{color:var(--color-error)}
.cart-footer{padding:var(--space-lg);border-top:1px solid var(--color-border-light);background:var(--color-surface-alt)}
.cart-subtotal{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-sm)}
.cart-subtotal span{font-size:0.875rem;color:var(--color-text-secondary)}
.cart-subtotal strong{font-family:var(--font-mono);font-size:1.25rem;font-weight:700;color:var(--color-text-primary)}
.cart-tax-note{font-size:0.75rem;color:var(--color-text-muted);text-align:center;margin-bottom:var(--space-md)}
.cart-footer .btn{width:100%;margin-bottom:var(--space-sm)}

/* --- Toast --- */
.toast{position:fixed;bottom:var(--space-xl);right:var(--space-xl);background:var(--color-text-primary);color:#fff;padding:var(--space-md) var(--space-lg);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);z-index:300;transform:translateY(100px);opacity:0;transition:all var(--transition-base);max-width:350px;font-size:0.875rem}
.toast.show{transform:translateY(0);opacity:1}
.toast-success{background:var(--color-success)}
.toast-error{background:var(--color-error)}

/* --- Trust Badges --- */
.trust-badges{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-lg);padding:var(--space-xl) 0}
@media(min-width:768px){.trust-badges{grid-template-columns:repeat(4,1fr)}}
.trust-item{text-align:center;padding:var(--space-lg)}
.trust-item svg{width:40px;height:40px;margin:0 auto var(--space-sm);color:var(--color-sage-dark)}
.trust-item h4{font-size:0.9375rem;margin-bottom:4px}
.trust-item p{font-size:0.8125rem;color:var(--color-text-muted)}

/* --- Footer --- */
.footer{background:var(--color-text-primary);color:rgba(250,247,242,0.7);padding:var(--space-2xl) 0 var(--space-lg)}
.footer-grid{display:grid;grid-template-columns:1fr;gap:var(--space-xl);margin-bottom:var(--space-xl)}
@media(min-width:640px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(4,1fr)}}
.footer-col h3{color:#fff;font-size:1.125rem;margin-bottom:var(--space-md)}
.footer-col p{font-size:0.875rem;line-height:1.7;color:rgba(250,247,242,0.6)}
.footer-col ul{display:flex;flex-direction:column;gap:var(--space-sm)}
.footer-col ul a{font-size:0.875rem;color:rgba(250,247,242,0.6);transition:color var(--transition-fast)}
.footer-col ul a:hover{color:var(--color-warm-gold)}
.footer-logo{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;color:#fff;margin-bottom:var(--space-sm)}
.footer-logo span{color:var(--color-sage-light)}
.social-links{display:flex;gap:var(--space-sm);margin-top:var(--space-md)}
.social-links a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}
.social-links a:hover{background:var(--color-warm-gold);color:var(--color-text-primary)}
.social-links svg{width:18px;height:18px}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:var(--space-lg);display:flex;flex-direction:column;gap:var(--space-sm);text-align:center;font-size:0.8125rem}
@media(min-width:768px){.footer-bottom{flex-direction:row;justify-content:space-between;text-align:left}}

/* --- Pagination --- */
.pagination{display:flex;justify-content:center;align-items:center;gap:var(--space-sm);margin-top:var(--space-2xl)}
.pagination-btn{min-width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:0.875rem;color:var(--color-text-secondary);transition:all var(--transition-fast);padding:0 12px}
.pagination-btn:hover{border-color:var(--color-accent);color:var(--color-accent)}
.pagination-btn.active{background:var(--color-accent);color:var(--color-accent-fg);border-color:var(--color-accent)}
.pagination-btn:disabled{opacity:0.4;cursor:not-allowed}

/* --- Sort Bar --- */
.sort-bar{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md);padding:var(--space-md) 0;border-bottom:1px solid var(--color-border-light);margin-bottom:var(--space-lg);flex-wrap:wrap}
.sort-bar select{padding:8px 16px;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:0.8125rem;background:var(--color-surface);color:var(--color-text-secondary);cursor:pointer}
.sort-bar select:focus{outline:none;border-color:var(--color-accent)}
.sort-count{font-size:0.8125rem;color:var(--color-text-muted)}

/* --- Search Page --- */
.search-page{padding:var(--space-2xl) 0}
.search-bar-large{display:flex;gap:var(--space-sm);margin-bottom:var(--space-xl)}
.search-bar-large input{flex:1;padding:14px 20px;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:1rem}
.search-bar-large input:focus{outline:none;border-color:var(--color-accent)}
.search-empty{text-align:center;padding:var(--space-2xl);color:var(--color-text-muted)}
.search-empty h3{margin-bottom:var(--space-md)}

/* --- 404 --- */
.error-page{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--space-2xl) var(--space-lg)}
.error-page h1{font-size:clamp(4rem,15vw,10rem);color:var(--color-accent);line-height:1}
.error-page h2{margin-bottom:var(--space-md)}
.error-page p{margin-bottom:var(--space-lg);max-width:500px}

/* --- Skeleton --- */
.skeleton{background:linear-gradient(90deg,var(--color-surface-alt) 25%,var(--color-border-light) 50%,var(--color-surface-alt) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* --- Animations --- */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
.fade-in{animation:fadeIn var(--transition-slow) ease}
.slide-up{animation:slideUp var(--transition-slow) ease}

/* --- 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}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}
}

/* --- Cart Page --- */
.cart-page{padding:var(--space-xl) 0 var(--space-2xl)}
.cart-page-title{margin-bottom:var(--space-xl)}
.cart-page-table{display:none}
@media(min-width:768px){
  .cart-page-table{display:block}
  .cart-page-items{display:none}
}
.cart-table th{text-align:left;padding:var(--space-md);border-bottom:2px solid var(--color-border);font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--color-text-muted)}
.cart-table td{padding:var(--space-md);border-bottom:1px solid var(--color-border-light);vertical-align:middle}
.cart-table-product{display:flex;align-items:center;gap:var(--space-md)}
.cart-table-product img{width:80px;height:80px;border-radius:var(--radius-sm);object-fit:cover}
.cart-table-product-info h4{font-size:0.9375rem;margin-bottom:2px}
.cart-table-product-info p{font-size:0.75rem;color:var(--color-text-muted)}
.cart-table-price,.cart-table-total{font-family:var(--font-mono);font-weight:600}
.cart-table-remove{color:var(--color-text-muted);font-size:0.8125rem;text-decoration:underline}
.cart-table-remove:hover{color:var(--color-error)}

/* Mobile cart items */
.cart-page-items{display:flex;flex-direction:column;gap:var(--space-md)}
.cart-page-item{display:flex;gap:var(--space-md);padding:var(--space-md);border:1px solid var(--color-border-light);border-radius:var(--radius-md)}
.cart-page-item img{width:80px;height:80px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0}
.cart-page-item-info{flex:1}
.cart-page-item-info h4{font-size:0.875rem;margin-bottom:2px}
.cart-page-item-info p{font-size:0.75rem;color:var(--color-text-muted)}

.cart-summary{background:var(--color-surface-alt);border-radius:var(--radius-md);padding:var(--space-lg);margin-top:var(--space-xl)}
.cart-summary-row{display:flex;justify-content:space-between;padding:var(--space-sm) 0;font-size:0.9375rem}
.cart-summary-row.total{border-top:2px solid var(--color-border);margin-top:var(--space-sm);padding-top:var(--space-md)}
.cart-summary-row.total span,.cart-summary-row.total strong{font-size:1.125rem;font-weight:700}
.cart-summary-row.total strong{font-family:var(--font-mono)}
.cart-summary .btn{width:100%;margin-top:var(--space-md)}

/* --- Checkout Page --- */
.checkout-page{padding:var(--space-xl) 0 var(--space-2xl);max-width:900px;margin:0 auto}
.checkout-title{margin-bottom:var(--space-xl);text-align:center}
.checkout-section{background:var(--color-surface);border:1px solid var(--color-border-light);border-radius:var(--radius-md);padding:var(--space-lg);margin-bottom:var(--space-lg)}
.checkout-section h3{font-size:1.25rem;margin-bottom:var(--space-md);display:flex;align-items:center;gap:var(--space-sm)}
.checkout-section h3 .step-num{width:28px;height:28px;background:var(--color-accent);color:var(--color-accent-fg);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:0.875rem;font-family:var(--font-body)}
.form-grid{display:grid;grid-template-columns:1fr;gap:var(--space-md)}
@media(min-width:640px){.form-grid{grid-template-columns:1fr 1fr}}
.form-field{display:flex;flex-direction:column;gap:var(--space-xs)}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:0.8125rem;font-weight:600;color:var(--color-text-secondary)}
.form-field label .required{color:var(--color-error)}
.form-field input,.form-field select,.form-field textarea{padding:12px 16px;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:0.9375rem;background:var(--color-surface);color:var(--color-text-primary);transition:border-color var(--transition-fast)}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:var(--color-accent)}
.form-field input.error{border-color:var(--color-error)}

/* Card payment form */
.card-form{margin-top:var(--space-md)}
.card-form .form-grid{margin-top:var(--space-md)}
.card-icons{display:flex;gap:var(--space-sm);margin-bottom:var(--space-md)}
.card-icon{width:48px;height:32px;border:1px solid var(--color-border);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:0.625rem;font-weight:700;color:var(--color-text-muted);background:var(--color-surface)}
.card-icon.active{border-color:var(--color-accent);color:var(--color-accent)}
.card-input-wrap{position:relative}
.card-input-wrap svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--color-text-muted)}

.checkout-order-summary{background:var(--color-surface-alt);border-radius:var(--radius-md);padding:var(--space-lg);position:sticky;top:calc(var(--nav-height) + var(--space-md))}
.checkout-order-summary h3{margin-bottom:var(--space-md)}
.checkout-order-item{display:flex;gap:var(--space-sm);padding:var(--space-sm) 0;border-bottom:1px solid var(--color-border-light)}
.checkout-order-item img{width:60px;height:60px;border-radius:var(--radius-sm);object-fit:cover}
.checkout-order-item-info{flex:1}
.checkout-order-item-info h4{font-size:0.8125rem;margin-bottom:2px}
.checkout-order-item-info p{font-size:0.75rem;color:var(--color-text-muted)}
.checkout-order-item-price{font-family:var(--font-mono);font-size:0.8125rem;font-weight:600}

.checkout-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl)}
@media(min-width:768px){.checkout-layout{grid-template-columns:1.5fr 1fr}}

.checkout-trust{display:flex;align-items:center;justify-content:center;gap:var(--space-md);padding:var(--space-md);background:var(--color-surface-alt);border-radius:var(--radius-md);margin-top:var(--space-md)}
.checkout-trust svg{width:20px;height:20px;color:var(--color-success)}
.checkout-trust span{font-size:0.8125rem;color:var(--color-text-secondary)}

/* --- Thank You Page --- */
.thank-you-page{padding:var(--space-2xl) 0;text-align:center;max-width:700px;margin:0 auto}
.thank-you-icon{width:80px;height:80px;margin:0 auto var(--space-lg);background:var(--color-success);border-radius:50%;display:flex;align-items:center;justify-content:center}
.thank-you-icon svg{width:40px;height:40px;color:#fff}
.thank-you-page h1{margin-bottom:var(--space-md)}
.thank-you-page>p{font-size:1.0625rem;margin-bottom:var(--space-xl)}
.thank-you-order-box{background:var(--color-surface);border:1px solid var(--color-border-light);border-radius:var(--radius-md);padding:var(--space-xl);text-align:left;margin-bottom:var(--space-xl)}
.thank-you-order-box h3{margin-bottom:var(--space-md);text-align:center}
.thank-you-order-row{display:flex;justify-content:space-between;padding:var(--space-sm) 0;border-bottom:1px solid var(--color-border-light)}
.thank-you-order-row:last-child{border-bottom:none;font-size:1.125rem;font-weight:700}
.thank-you-order-row strong{font-family:var(--font-mono)}
.thank-you-actions{display:flex;gap:var(--space-md);justify-content:center;flex-wrap:wrap}

/* --- Blog --- */
.blog-hero{position:relative;height:400px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.blog-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.blog-hero-overlay{position:absolute;inset:0;background:rgba(43,35,24,0.6)}
.blog-hero-content{position:relative;z-index:1}
.blog-hero h1{color:#fff;margin-bottom:var(--space-md)}
.blog-card{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--color-border-light);transition:all var(--transition-base)}
.blog-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.blog-card-img{aspect-ratio:16/9;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition-slow)}
.blog-card:hover .blog-card-img img{transform:scale(1.05)}
.blog-card-body{padding:var(--space-lg)}
.blog-card-date{font-size:0.75rem;color:var(--color-text-muted);margin-bottom:var(--space-sm)}
.blog-card-title{font-size:1.25rem;margin-bottom:var(--space-sm);line-height:1.3}
.blog-card-excerpt{font-size:0.875rem;color:var(--color-text-secondary);line-height:1.6}

/* --- Page (About, Contact, etc) --- */
.page-content{padding:var(--space-xl) 0;max-width:800px;margin:0 auto}
.page-content h1{margin-bottom:var(--space-lg)}
.page-content h2{margin:var(--space-xl) 0 var(--space-md)}
.page-content p{margin-bottom:var(--space-md);line-height:1.8}
.page-content ul{list-style:disc;padding-left:var(--space-lg);margin-bottom:var(--space-md)}
.page-content li{margin-bottom:var(--space-sm)}

/* Contact form */
.contact-form{display:flex;flex-direction:column;gap:var(--space-md);margin-top:var(--space-lg)}
.contact-form .form-field input,.contact-form .form-field textarea{width:100%}
.contact-form textarea{min-height:150px;resize:vertical}
.contact-info-grid{display:grid;grid-template-columns:1fr;gap:var(--space-lg);margin-bottom:var(--space-xl)}
@media(min-width:640px){.contact-info-grid{grid-template-columns:repeat(3,1fr)}}
.contact-info-item{text-align:center;padding:var(--space-lg);background:var(--color-surface-alt);border-radius:var(--radius-md)}
.contact-info-item svg{width:32px;height:32px;margin:0 auto var(--space-sm);color:var(--color-sage-dark)}
.contact-info-item h4{margin-bottom:var(--space-xs)}
.contact-info-item p{font-size:0.875rem}

/* FAQ */
.faq-item{border-bottom:1px solid var(--color-border-light)}
.faq-item h3{padding:var(--space-md) 0;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1.0625rem}
.faq-item h3::after{content:'+';font-size:1.5rem;color:var(--color-text-muted);transition:transform var(--transition-base)}
.faq-item.open h3::after{transform:rotate(45deg)}
.faq-item .faq-answer{max-height:0;overflow:hidden;transition:max-height var(--transition-slow)}
.faq-item.open .faq-answer{max-height:500px}
.faq-item .faq-answer p{padding:0 0 var(--space-md);font-size:0.9375rem;line-height:1.7}

/* Policy pages */
.policy-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl);padding:var(--space-xl) 0}
@media(min-width:768px){.policy-layout{grid-template-columns:240px 1fr}}
.policy-sidebar{position:sticky;top:calc(var(--nav-height) + var(--space-md));align-self:start}
.policy-sidebar h3{font-size:1rem;margin-bottom:var(--space-md);color:var(--color-text-muted);text-transform:uppercase;letter-spacing:0.05em}
.policy-sidebar ul{display:flex;flex-direction:column;gap:var(--space-sm)}
.policy-sidebar a{display:block;padding:var(--space-sm) var(--space-md);border-radius:var(--radius-sm);font-size:0.875rem;color:var(--color-text-secondary);transition:all var(--transition-fast)}
.policy-sidebar a:hover,.policy-sidebar a.active{background:var(--color-surface-alt);color:var(--color-accent)}
.policy-content{max-width:800px}
.policy-content h1{margin-bottom:var(--space-lg)}
.policy-content h2{margin:var(--space-xl) 0 var(--space-md);font-size:1.5rem}
.policy-content p{margin-bottom:var(--space-md);line-height:1.8}
.policy-content ul{list-style:disc;padding-left:var(--space-lg);margin-bottom:var(--space-md)}
.policy-content li{margin-bottom:var(--space-sm)}

/* Brand story section */
.brand-story{display:grid;grid-template-columns:1fr;gap:var(--space-xl);align-items:center}
@media(min-width:768px){.brand-story{grid-template-columns:1fr 1fr}}
.brand-story-img{border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:4/3}
.brand-story-img img{width:100%;height:100%;object-fit:cover}
.brand-story-content h2{margin-bottom:var(--space-md)}
.brand-story-content p{margin-bottom:var(--space-md);line-height:1.8}
.brand-story-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-md);margin-top:var(--space-lg)}
.brand-story-stat{text-align:center}
.brand-story-stat .num{font-family:var(--font-heading);font-size:2rem;font-weight:700;color:var(--color-accent)}
.brand-story-stat .label{font-size:0.75rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:0.05em}

/* Testimonials */
.testimonial-card{background:var(--color-surface);border:1px solid var(--color-border-light);border-radius:var(--radius-md);padding:var(--space-lg);text-align:center}
.testimonial-stars{color:var(--color-warm-gold);margin-bottom:var(--space-sm);font-size:1.125rem}
.testimonial-text{font-size:0.9375rem;line-height:1.7;color:var(--color-text-secondary);margin-bottom:var(--space-md);font-style:italic}
.testimonial-author{font-weight:600;font-size:0.875rem;color:var(--color-text-primary)}
.testimonial-location{font-size:0.75rem;color:var(--color-text-muted)}

/* Spinner */
.spinner{display:inline-block;width:20px;height:20px;border:2px solid var(--color-border);border-top-color:var(--color-accent);border-radius:50%;animation:spin 0.8s linear infinite}

/* Responsive adjustments */
@media(max-width:640px){
  .hero{height:clamp(400px,60vh,550px)}
  .section{padding:var(--space-xl) 0}
  .product-atc-row{flex-direction:column}
  .checkout-section{padding:var(--space-md)}
}
