/* ============================================
   KS CORNER SHOP — Furniture & Home Goods
   Palette: Walnut Brown + Charcoal + Cream
   ============================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--color-bg);color:var(--color-text-secondary);line-height:1.6;font-size:16px;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color var(--transition-fast)}
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%}

:root{
  --color-bg:#F5F2EE;
  --color-surface:#FFFFFF;
  --color-surface-alt:#EDE8E2;
  --color-border:#D9D2C8;
  --color-text-primary:#2B2520;
  --color-text-secondary:#5C544D;
  --color-text-muted:#9A918A;
  --color-accent:#6B4226;
  --color-accent-hover:#523418;
  --color-accent-fg:#FFFFFF;
  --color-accent-light:#F0E6DC;
  --color-gold:#B8864A;
  --color-gold-hover:#9A6E38;
  --color-gold-light:#F8F0E4;
  --color-success:#4A7C59;
  --color-warning:#C9842C;
  --color-error:#B83D3D;
  --font-heading:'Playfair Display',Georgia,serif;
  --font-body:'Inter',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  --radius-sm:6px;--radius-md:10px;--radius-lg:18px;--radius-full:9999px;
  --shadow-sm:0 1px 3px rgba(43,37,32,.08);
  --shadow-md:0 4px 14px rgba(43,37,32,.10);
  --shadow-lg:0 12px 40px rgba(43,37,32,.15);
  --space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;
  --space-xl:40px;--space-2xl:64px;--space-3xl:96px;
  --transition-fast:150ms ease;--transition-base:250ms ease;
  --container-max:1280px;
}

.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;border-radius:var(--radius-sm)}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

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

h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--color-text-primary);font-weight:600;line-height:1.2}
h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:700}
h2{font-size:clamp(1.6rem,4vw,2.5rem)}
h3{font-size:clamp(1.25rem,3vw,1.75rem)}
h4{font-size:1.125rem}
p{margin-bottom:var(--space-md)}
.section-subtitle{color:var(--color-text-muted);font-size:1.05rem;max-width:600px;margin:0 auto}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-sm);padding:12px 24px;font-size:.95rem;font-weight:600;border-radius:var(--radius-full);transition:all var(--transition-base);white-space:nowrap;text-align:center;line-height:1.4}
.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-gold{background:var(--color-gold);color:#fff}
.btn-gold:hover{background:var(--color-gold-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);padding:10px 16px}
.btn-ghost:hover{background:var(--color-surface-alt)}
.btn-lg{padding:16px 32px;font-size:1.05rem}
.btn-sm{padding:8px 16px;font-size:.85rem}
.btn-block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}

.badge{display:inline-flex;align-items:center;padding:3px 10px;font-size:.75rem;font-weight:600;border-radius:var(--radius-full);letter-spacing:.03em}
.badge-sale{background:var(--color-error);color:#fff}
.badge-new{background:var(--color-accent);color:#fff}
.badge-out{background:var(--color-text-muted);color:#fff}
.badge-best{background:var(--color-gold);color:#fff}
.badge-count{background:var(--color-accent);color:#fff;min-width:20px;height:20px;border-radius:50%;font-size:.7rem;padding:0;display:inline-flex;align-items:center;justify-content:center}

.announcement-bar{background:var(--color-accent);color:#fff;text-align:center;padding:10px var(--space-md);font-size:.85rem;font-weight:500}

.nav{position:sticky;top:0;z-index:100;background:var(--color-surface);border-bottom:1px solid var(--color-border);transition:box-shadow var(--transition-base)}
.nav.scrolled{box-shadow:var(--shadow-sm)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:14px var(--space-md);max-width:var(--container-max);margin:0 auto}
.nav-logo{font-family:var(--font-heading);font-size:1.4rem;font-weight:700;color:var(--color-text-primary);display:flex;align-items:center;gap:8px;white-space:nowrap}
.nav-logo .logo-icon{width:36px;height:36px;background:var(--color-accent);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1rem;font-weight:700;flex-shrink:0}
.nav-links{display:none;align-items:center;gap:var(--space-lg)}
.nav-links a{font-weight:500;color:var(--color-text-secondary);font-size:.95rem;position:relative;padding:4px 0}
.nav-links a:hover{color:var(--color-accent)}
.nav-links a::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background:var(--color-accent);transition:width var(--transition-base)}
.nav-links a:hover::after{width:100%}
.nav-actions{display:flex;align-items:center;gap:var(--space-sm)}
.nav-icon-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--color-text-primary);transition:background var(--transition-fast);position:relative}
.nav-icon-btn:hover{background:var(--color-surface-alt)}
.nav-icon-btn svg{width:22px;height:22px}
.nav-cart-count{position:absolute;top:2px;right:2px}
.hamburger{display:flex;flex-direction:column;gap:4px;width:40px;height:40px;align-items:center;justify-content:center;border-radius:50%}
.hamburger span{width:20px;height:2px;background:var(--color-text-primary);transition:all var(--transition-base)}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(4px,4px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(4px,-4px)}
@media(min-width:768px){.nav-links{display:flex}.hamburger{display:none}}

.mobile-menu{position:fixed;top:0;left:0;width:100%;height:100vh;background:var(--color-surface);z-index:200;transform:translateX(-100%);transition:transform var(--transition-base);display:flex;flex-direction:column;padding:80px var(--space-lg) var(--space-xl);overflow-y:auto}
.mobile-menu.active{transform:translateX(0)}
.mobile-menu a{font-family:var(--font-heading);font-size:1.4rem;color:var(--color-text-primary);padding:14px 0;border-bottom:1px solid var(--color-border);display:block}
.mobile-menu a:hover{color:var(--color-accent)}
.mobile-menu-close{position:absolute;top:20px;right:20px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--color-text-primary)}

.search-overlay{position:fixed;top:0;left:0;width:100%;height:100vh;background:rgba(43,37,32,.4);z-index:150;display:none;align-items:flex-start;justify-content:center;padding-top:80px}
.search-overlay.active{display:flex}
.search-modal{background:var(--color-surface);border-radius:var(--radius-lg);width:90%;max-width:600px;padding:var(--space-lg);box-shadow:var(--shadow-lg)}
.search-modal input{width:100%;padding:14px 20px;border:2px solid var(--color-border);border-radius:var(--radius-full);font-size:1.05rem;outline:none;transition:border var(--transition-fast)}
.search-modal input:focus{border-color:var(--color-accent)}
.search-results{margin-top:var(--space-md);max-height:400px;overflow-y:auto}
.search-item{display:flex;gap:12px;padding:12px;border-radius:var(--radius-md);transition:background var(--transition-fast)}
.search-item:hover{background:var(--color-surface-alt)}
.search-item img{width:60px;height:60px;border-radius:var(--radius-sm);object-fit:cover}
.search-item-info h4{font-size:.95rem;margin-bottom:2px}
.search-item-info p{font-size:.85rem;color:var(--color-text-muted);margin:0}
.search-close{position:absolute;top:20px;right:20px;width:40px;height:40px;background:var(--color-surface);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem}

.hero{position:relative;height:clamp(480px,70vh,680px);display:flex;align-items:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(43,37,32,.7) 0%,rgba(43,37,32,.4) 50%,rgba(43,37,32,.15) 100%);z-index:1}
.hero-content{position:relative;z-index:2;max-width:640px;padding:0 var(--space-md)}
@media(min-width:768px){.hero-content{padding:0 var(--space-lg)}}
@media(min-width:1024px){.hero-content{padding:0 var(--space-xl)}}
.hero-eyebrow{display:inline-block;background:rgba(255,255,255,.15);backdrop-filter:blur(10px);color:#fff;padding:6px 16px;border-radius:var(--radius-full);font-size:.85rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;margin-bottom:var(--space-md)}
.hero-title{color:#fff;font-size:clamp(2.2rem,6vw,4rem);font-weight:700;line-height:1.1;margin-bottom:var(--space-md);text-shadow:0 2px 20px rgba(0,0,0,.2)}
.hero-subtitle{color:rgba(255,255,255,.92);font-size:clamp(1rem,2.5vw,1.25rem);margin-bottom:var(--space-xl);max-width:500px}
.hero-actions{display:flex;gap:var(--space-md);flex-wrap:wrap}

.section{padding:var(--space-2xl) 0}
.section-alt{background:var(--color-surface-alt);padding:var(--space-2xl) 0}
.section-header{text-align:center;margin-bottom:var(--space-xl)}
.section-header h2{margin-bottom:var(--space-sm)}

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

.product-card{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;transition:transform var(--transition-base),box-shadow var(--transition-base);position:relative;display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product-card-img{position:relative;aspect-ratio:1;overflow:hidden;background:var(--color-surface-alt)}
.product-card-img img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition-base)}
.product-card:hover .product-card-img img{transform:scale(1.05)}
.product-card-badges{position:absolute;top:10px;left:10px;display:flex;gap:6px;z-index:2;flex-wrap:wrap}
.product-card-body{padding:var(--space-md);display:flex;flex-direction:column;flex-grow:1}
.product-card-vendor{font-size:.75rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.product-card-title{font-family:var(--font-heading);font-size:1.05rem;font-weight:600;color:var(--color-text-primary);margin-bottom:6px;line-height:1.3}
.product-card-title a:hover{color:var(--color-accent)}
.product-card-price-wrap{display:flex;align-items:center;gap:8px;margin-bottom:var(--space-md);margin-top:auto}
.product-card-price{font-family:var(--font-mono);font-size:1.15rem;font-weight:600;color:var(--color-text-primary)}
.product-card-compare{font-family:var(--font-mono);font-size:.9rem;color:var(--color-text-muted);text-decoration:line-through}
.product-card-atc{width:100%;padding:10px;font-size:.9rem}

.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-base)}
.collection-card:hover img{transform:scale(1.05)}
.collection-card-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(43,37,32,.8) 0%,rgba(43,37,32,.1) 60%);display:flex;align-items:flex-end;padding:var(--space-lg)}
.collection-card-overlay h3{color:#fff;margin-bottom:4px}
.collection-card-overlay p{color:rgba(255,255,255,.85);font-size:.85rem;margin:0}

.trust-badges{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-md);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 .trust-icon{width:56px;height:56px;margin:0 auto var(--space-md);background:var(--color-accent-light);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-accent)}
.trust-item .trust-icon svg{width:28px;height:28px}
.trust-item h4{font-size:.95rem;margin-bottom:4px}
.trust-item p{font-size:.8rem;color:var(--color-text-muted);margin:0}

.breadcrumb{padding:var(--space-md) 0;font-size:.85rem;color:var(--color-text-muted)}
.breadcrumb a{color:var(--color-text-secondary)}
.breadcrumb a:hover{color:var(--color-accent)}
.breadcrumb span{margin:0 6px;color:var(--color-text-muted)}
.breadcrumb .current{color:var(--color-text-primary);font-weight:500}

.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.1fr .9fr;gap:var(--space-3xl)}}

.product-gallery{display:flex;flex-direction:column;gap:var(--space-md)}
.gallery-main-wrap{position:relative;aspect-ratio:1;border-radius:var(--radius-lg);overflow:hidden;background:var(--color-surface-alt);cursor:zoom-in}
.gallery-main-wrap img{width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:flex;gap:var(--space-sm);flex-wrap:wrap}
.gallery-thumb{width:80px;height:80px;border-radius:var(--radius-sm);overflow:hidden;border:2px solid transparent;cursor:pointer;transition:border var(--transition-fast);flex-shrink:0}
.gallery-thumb.active{border-color:var(--color-accent)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
@media(min-width:768px){.gallery-thumb{width:100px;height:100px}}

.product-info{display:flex;flex-direction:column}
.product-vendor{font-size:.8rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.product-title{font-size:clamp(1.5rem,4vw,2.2rem);margin-bottom:var(--space-sm)}
.product-price-wrap{display:flex;align-items:center;gap:12px;margin-bottom:var(--space-md)}
.product-price{font-family:var(--font-mono);font-size:1.8rem;font-weight:600;color:var(--color-text-primary)}
.product-compare-price{font-family:var(--font-mono);font-size:1.2rem;color:var(--color-text-muted);text-decoration:line-through}
.product-short-desc{color:var(--color-text-secondary);margin-bottom:var(--space-lg);line-height:1.6}

.option-group{margin-bottom:var(--space-lg)}
.option-label{display:block;font-size:.85rem;font-weight:600;color:var(--color-text-primary);margin-bottom:8px;text-transform:uppercase;letter-spacing:.03em}
.option-btns{display:flex;gap:8px;flex-wrap:wrap}
.option-btn{padding:8px 18px;border:1.5px solid var(--color-border);border-radius:var(--radius-full);font-size:.9rem;font-weight:500;color:var(--color-text-secondary);transition:all var(--transition-fast);background:var(--color-surface)}
.option-btn:hover{border-color:var(--color-accent)}
.option-btn.active{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}
.option-btn.unavailable{opacity:.4;text-decoration:line-through;cursor:not-allowed}

.qty-control{display:inline-flex;align-items:center;border:1.5px solid var(--color-border);border-radius:var(--radius-full);overflow:hidden}
.qty-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:var(--color-text-primary);transition:background var(--transition-fast)}
.qty-btn:hover{background:var(--color-surface-alt)}
.qty-input{width:50px;height:40px;text-align:center;border:none;font-weight:600;font-size:1rem;outline:none;background:transparent;-moz-appearance:textfield}
.qty-input::-webkit-outer-spin-button,.qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.product-actions{display:flex;gap:var(--space-md);margin-bottom:var(--space-md);flex-wrap:wrap}
.product-actions .btn{flex:1;min-width:160px}
.availability-msg{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:500;margin-bottom:var(--space-lg)}
.availability-msg.in-stock{color:var(--color-success)}
.availability-msg.out-stock{color:var(--color-error)}

.product-accordions{margin-top:var(--space-lg);border-top:1px solid var(--color-border)}
.accordion{border-bottom:1px solid var(--color-border)}
.accordion-header{width:100%;padding:16px 0;display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:.95rem;color:var(--color-text-primary);text-align:left}
.accordion-header .accordion-icon{transition:transform var(--transition-base);font-size:1.2rem;color:var(--color-text-muted)}
.accordion.open .accordion-header .accordion-icon{transform:rotate(45deg)}
.accordion-body{max-height:0;overflow:hidden;transition:max-height var(--transition-base)}
.accordion.open .accordion-body{max-height:600px}
.accordion-body-inner{padding:0 0 16px;color:var(--color-text-secondary);font-size:.9rem;line-height:1.7}

.sticky-atc{position:fixed;bottom:0;left:0;right:0;background:var(--color-surface);border-top:1px solid var(--color-border);padding:12px var(--space-md);z-index:90;transform:translateY(100%);transition:transform var(--transition-base);display:flex;align-items:center;gap:var(--space-md);box-shadow:0 -4px 20px rgba(0,0,0,.08)}
.sticky-atc.visible{transform:translateY(0)}
.sticky-atc-product{display:flex;align-items:center;gap:12px;flex-grow:1;min-width:0}
.sticky-atc-product img{width:48px;height:48px;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:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sticky-atc-product .info .price{font-family:var(--font-mono);font-size:.85rem;color:var(--color-text-primary);font-weight:600}
@media(min-width:768px){.sticky-atc{padding:12px var(--space-xl)}}

.reviews-section{padding:var(--space-2xl) 0;border-top:1px solid var(--color-border)}
.reviews-summary{display:flex;flex-direction:column;align-items:center;gap:var(--space-md);margin-bottom:var(--space-xl);text-align:center}
.reviews-avg{font-family:var(--font-heading);font-size:3rem;font-weight:700;color:var(--color-text-primary)}
.reviews-score .stars{color:var(--color-gold);font-size:1.3rem;letter-spacing:3px}
.reviews-count{font-size:.85rem;color:var(--color-text-muted)}
.reviews-bars{display:flex;flex-direction:column;gap:6px;width:100%;max-width:300px}
.rating-bar{display:flex;align-items:center;gap:8px;font-size:.8rem}
.rating-bar .bar-track{flex-grow:1;height:6px;background:var(--color-surface-alt);border-radius:3px;overflow:hidden}
.rating-bar .bar-fill{height:100%;background:var(--color-gold);border-radius:3px;transition:width .5s ease}
.review-card{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid var(--color-border)}
.review-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--space-sm)}
.review-author{font-weight:600;font-size:.95rem;color:var(--color-text-primary)}
.review-verified{font-size:.75rem;color:var(--color-success);display:flex;align-items:center;gap:4px}
.review-title{font-family:var(--font-heading);font-size:1.05rem;font-weight:600;margin-bottom:8px}
.review-body{font-size:.9rem;color:var(--color-text-secondary);line-height:1.6}
.review-stars{color:var(--color-gold);font-size:.9rem;letter-spacing:2px;margin-bottom:8px}

.cart-overlay{position:fixed;inset:0;background:rgba(43,37,32,.4);z-index:200;opacity:0;visibility:hidden;transition:all var(--transition-base)}
.cart-overlay.active{opacity:1;visibility:visible}
.cart-drawer{position:fixed;top:0;right:0;width:100%;max-width:420px;height:100vh;background:var(--color-surface);z-index:201;transform:translateX(100%);transition:transform var(--transition-base);display:flex;flex-direction:column}
.cart-drawer.active{transform:translateX(0)}
.cart-drawer-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-lg);border-bottom:1px solid var(--color-border)}
.cart-drawer-header h2{font-size:1.3rem;display:flex;align-items:center;gap:8px}
.cart-drawer-header .cart-close{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:var(--color-text-muted);transition:background var(--transition-fast)}
.cart-drawer-header .cart-close:hover{background:var(--color-surface-alt)}
.cart-lines{flex-grow:1;overflow-y:auto;padding:var(--space-md)}
.cart-item{display:flex;gap:12px;padding:var(--space-md) 0;border-bottom:1px solid var(--color-border)}
.cart-item img{width:72px;height:72px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0}
.cart-item-info{flex-grow:1;min-width:0}
.cart-item-info h4{font-size:.9rem;margin-bottom:2px;line-height:1.3}
.cart-item-info .variant{font-size:.8rem;color:var(--color-text-muted);margin-bottom:6px}
.cart-item-info .price{font-family:var(--font-mono);font-size:.9rem;font-weight:600;color:var(--color-text-primary)}
.cart-item-controls{display:flex;align-items:center;gap:12px;margin-top:8px}
.cart-item-controls .qty-control{transform:scale(.85);transform-origin:left}
.cart-item-remove{font-size:.8rem;color:var(--color-error);transition:opacity var(--transition-fast)}
.cart-item-remove:hover{opacity:.7}
.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:.3}
.cart-footer{padding:var(--space-lg);border-top:1px solid var(--color-border);background:var(--color-surface-alt)}
.cart-subtotal{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.cart-subtotal strong{font-family:var(--font-mono);font-size:1.3rem;color:var(--color-text-primary)}
.cart-tax-note{font-size:.8rem;color:var(--color-text-muted);margin-bottom:var(--space-md)}
.cart-footer .btn{width:100%;margin-bottom:8px}

.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--color-text-primary);color:#fff;padding:14px 24px;border-radius:var(--radius-full);font-size:.9rem;font-weight:500;z-index:300;opacity:0;transition:all var(--transition-base);box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:8px}
.toast.show{transform:translateX(-50%) translateY(0);opacity:1}
.toast-success{background:var(--color-success)}
.toast-error{background:var(--color-error)}

.footer{background:var(--color-text-primary);color:rgba(255,255,255,.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 h4{color:#fff;font-size:.95rem;margin-bottom:var(--space-md);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a{font-size:.9rem;color:rgba(255,255,255,.6);transition:color var(--transition-fast)}
.footer-col ul li a:hover{color:#fff}
.footer-logo{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;color:#fff;margin-bottom:var(--space-md);display:flex;align-items:center;gap:8px}
.footer-logo .logo-icon{width:36px;height:36px;background:var(--color-accent);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1rem;font-weight:700}
.footer-col p{font-size:.9rem;color:rgba(255,255,255,.6);line-height:1.6}
.social-links{display:flex;gap:12px;margin-top:var(--space-md)}
.social-links a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:background var(--transition-fast)}
.social-links a:hover{background:var(--color-accent)}
.social-links svg{width:20px;height:20px;fill:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:var(--space-lg);text-align:center;font-size:.85rem;color:rgba(255,255,255,.5)}
.footer-bottom a{color:rgba(255,255,255,.7)}

.pagination{display:flex;justify-content:center;gap:6px;margin-top:var(--space-xl)}
.pagination-btn{min-width:40px;height:40px;padding:0 12px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem;color:var(--color-text-secondary);border:1px solid var(--color-border);background:var(--color-surface);transition:all var(--transition-fast)}
.pagination-btn:hover{border-color:var(--color-accent);color:var(--color-accent)}
.pagination-btn.active{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}
.pagination-btn:disabled{opacity:.4;cursor:not-allowed}

.sort-bar{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md);margin-bottom:var(--space-lg);flex-wrap:wrap}
.sort-bar .result-count{font-size:.85rem;color:var(--color-text-muted)}
.sort-bar select{padding:8px 16px;border:1.5px solid var(--color-border);border-radius:var(--radius-full);font-size:.9rem;background:var(--color-surface);outline:none;cursor:pointer}
.sort-bar select:focus{border-color:var(--color-accent)}

@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
.fade-in{animation:fadeIn .4s ease}
.slide-up{animation:slideUp .5s ease}
.spinner{width:20px;height:20px;border:2px solid var(--color-border);border-top-color:var(--color-accent);border-radius:50%;animation:spin .8s linear infinite}

.cart-page{padding:var(--space-xl) 0 var(--space-2xl)}
.cart-page-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl)}
@media(min-width:768px){.cart-page-layout{grid-template-columns:1fr 360px}}
.cart-table{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--color-border)}
.cart-table-header{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:var(--space-md);padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--color-border);font-size:.8rem;font-weight:600;text-transform:uppercase;color:var(--color-text-muted);letter-spacing:.05em}
@media(max-width:640px){.cart-table-header{display:none}}
.cart-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:var(--space-md);padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--color-border);align-items:center}
@media(max-width:640px){.cart-row{grid-template-columns:80px 1fr;gap:12px;padding:var(--space-md)}}
.cart-row-item{display:flex;gap:12px;align-items:center}
.cart-row-item img{width:80px;height:80px;border-radius:var(--radius-sm);object-fit:cover;flex-shrink:0}
.cart-row-item h4{font-size:.9rem;margin-bottom:2px}
.cart-row-item .variant{font-size:.8rem;color:var(--color-text-muted)}
.cart-row-price{font-family:var(--font-mono);font-size:.9rem}
.cart-row-total{font-family:var(--font-mono);font-weight:600}
@media(max-width:640px){.cart-row-price,.cart-row-total{display:none}}
.cart-row-remove{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-text-muted);transition:all var(--transition-fast)}
.cart-row-remove:hover{color:var(--color-error);background:var(--color-surface-alt)}
.cart-summary{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid var(--color-border);height:fit-content}
.cart-summary h3{margin-bottom:var(--space-md)}
.cart-summary-row{display:flex;justify-content:space-between;margin-bottom:12px;font-size:.9rem}
.cart-summary-row.total{border-top:1px solid var(--color-border);padding-top:12px;margin-top:12px;font-size:1.1rem;font-weight:700;color:var(--color-text-primary)}
.cart-summary-row.total strong{font-family:var(--font-mono)}
.cart-summary .btn{margin-top:var(--space-md)}

.checkout-page{padding:var(--space-xl) 0 var(--space-2xl)}
.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-form{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid var(--color-border)}
.checkout-section{margin-bottom:var(--space-xl)}
.checkout-section h3{font-size:1.1rem;margin-bottom:var(--space-md);padding-bottom:8px;border-bottom:2px solid var(--color-accent)}
.form-grid{display:grid;grid-template-columns:1fr;gap:var(--space-md)}
@media(min-width:480px){.form-grid{grid-template-columns:1fr 1fr}}
.form-field{display:flex;flex-direction:column;gap:6px}
.form-field.full{grid-column:1/-1}
.form-field label{font-size:.85rem;font-weight:600;color:var(--color-text-primary)}
.form-field input,.form-field select{padding:12px 16px;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);font-size:.95rem;outline:none;transition:border var(--transition-fast);background:var(--color-surface)}
.form-field input:focus,.form-field select:focus{border-color:var(--color-accent)}
.card-form{background:var(--color-surface-alt);border-radius:var(--radius-md);padding:var(--space-lg);margin-top:var(--space-md)}
.card-form .card-icons{display:flex;gap:8px;margin-bottom:var(--space-md)}
.card-form .card-icons .card-icon{width:40px;height:28px;border-radius:4px;background:var(--color-surface);border:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;color:var(--color-text-muted)}
.card-input-wrap{position:relative}
.card-input-wrap .card-input-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--color-text-muted);pointer-events:none}

.order-summary{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid var(--color-border);height:fit-content;position:sticky;top:80px}
.order-summary h3{margin-bottom:var(--space-md)}
.order-item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--color-border)}
.order-item img{width:56px;height:56px;border-radius:var(--radius-sm);object-fit:cover}
.order-item-info{flex-grow:1}
.order-item-info h4{font-size:.85rem;margin-bottom:2px}
.order-item-info .qty{font-size:.8rem;color:var(--color-text-muted)}
.order-item-price{font-family:var(--font-mono);font-size:.85rem;font-weight:600}
.order-summary-totals{margin-top:var(--space-md)}
.order-summary-totals .row{display:flex;justify-content:space-between;margin-bottom:8px;font-size:.9rem}
.order-summary-totals .row.total{border-top:1px solid var(--color-border);padding-top:12px;margin-top:12px;font-size:1.1rem;font-weight:700}

.thank-you-page{padding:var(--space-2xl) 0;text-align:center}
.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;stroke:#fff;fill:none;stroke-width:3}
.thank-you-page h1{margin-bottom:var(--space-md)}
.thank-you-page .order-number{font-family:var(--font-mono);font-size:1.1rem;color:var(--color-accent);margin-bottom:var(--space-lg)}
.thank-you-details{max-width:600px;margin:0 auto;background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-xl);border:1px solid var(--color-border);text-align:left}
.thank-you-details h3{margin-bottom:var(--space-md);text-align:center}
.thank-you-details .detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--color-border)}
.thank-you-details .detail-row:last-child{border-bottom:none}
.thank-you-actions{display:flex;gap:var(--space-md);justify-content:center;margin-top:var(--space-xl);flex-wrap:wrap}

.contact-page{padding:var(--space-xl) 0 var(--space-2xl)}
.contact-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl)}
@media(min-width:768px){.contact-layout{grid-template-columns:1fr 1fr}}
.contact-info-card{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-xl);border:1px solid var(--color-border)}
.contact-info-card h3{margin-bottom:var(--space-md)}
.contact-info-item{display:flex;gap:12px;margin-bottom:var(--space-md);align-items:flex-start}
.contact-info-item .icon{width:40px;height:40px;background:var(--color-accent-light);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-accent);flex-shrink:0}
.contact-info-item .icon svg{width:20px;height:20px}
.contact-info-item .info h4{font-size:.9rem;margin-bottom:2px}
.contact-info-item .info p{font-size:.9rem;color:var(--color-text-secondary);margin:0}
.contact-form{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-xl);border:1px solid var(--color-border)}

.policy-page{padding:var(--space-xl) 0 var(--space-2xl)}
.policy-layout{display:grid;grid-template-columns:1fr;gap:var(--space-xl)}
@media(min-width:768px){.policy-layout{grid-template-columns:240px 1fr}}
.policy-sidebar{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid var(--color-border);height:fit-content}
.policy-sidebar a{display:block;padding:10px 12px;border-radius:var(--radius-sm);font-size:.9rem;color:var(--color-text-secondary);transition:all var(--transition-fast);margin-bottom:4px}
.policy-sidebar a:hover{background:var(--color-surface-alt);color:var(--color-accent)}
.policy-sidebar a.active{background:var(--color-accent-light);color:var(--color-accent);font-weight:600}
.policy-content{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-xl);border:1px solid var(--color-border)}
.policy-content h1{margin-bottom:var(--space-lg)}
.policy-content h2{font-size:1.3rem;margin:var(--space-lg) 0 var(--space-md)}
.policy-content p{margin-bottom:var(--space-md);line-height:1.7}
.policy-content ul{margin-bottom:var(--space-md);padding-left:var(--space-lg)}
.policy-content ul li{margin-bottom:8px;list-style:disc}

.error-page{padding:var(--space-3xl) 0;text-align:center}
.error-page .error-code{font-family:var(--font-heading);font-size:clamp(4rem,15vw,10rem);font-weight:900;color:var(--color-accent);line-height:1}
.error-page h2{margin-bottom:var(--space-md)}
.error-page p{color:var(--color-text-muted);max-width:500px;margin:0 auto var(--space-xl)}
.error-page .error-actions{display:flex;gap:var(--space-md);justify-content:center;flex-wrap:wrap}

.collection-hero{position:relative;height:280px;display:flex;align-items:center;justify-content:center;overflow:hidden}
@media(min-width:768px){.collection-hero{height:360px}}
.collection-hero img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.collection-hero-overlay{position:absolute;inset:0;background:rgba(43,37,32,.5)}
.collection-hero-content{position:relative;z-index:2;text-align:center;padding:0 var(--space-md)}
.collection-hero-content h1{color:#fff;margin-bottom:var(--space-sm)}
.collection-hero-content p{color:rgba(255,255,255,.9);max-width:600px;margin:0 auto}

.why-choose{display:grid;grid-template-columns:1fr;gap:var(--space-lg)}
@media(min-width:640px){.why-choose{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.why-choose{grid-template-columns:repeat(3,1fr)}}
.why-card{background:var(--color-surface);border-radius:var(--radius-md);padding:var(--space-xl);border:1px solid var(--color-border);transition:transform var(--transition-base),box-shadow var(--transition-base)}
.why-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.why-card .why-icon{width:56px;height:56px;background:var(--color-accent-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;color:var(--color-accent);margin-bottom:var(--space-md)}
.why-card .why-icon svg{width:28px;height:28px}
.why-card h3{font-size:1.15rem;margin-bottom:var(--space-sm)}
.why-card p{font-size:.9rem;color:var(--color-text-secondary);margin:0;line-height:1.6}

.newsletter{background:var(--color-accent);color:#fff;padding:var(--space-2xl) 0;text-align:center}
.newsletter h2{color:#fff;margin-bottom:var(--space-sm)}
.newsletter p{color:rgba(255,255,255,.85);margin-bottom:var(--space-lg)}
.newsletter-form{display:flex;gap:var(--space-sm);max-width:480px;margin:0 auto;flex-wrap:wrap}
.newsletter-form input{flex-grow:1;padding:14px 20px;border:none;border-radius:var(--radius-full);font-size:.95rem;outline:none;min-width:200px}
.newsletter-form .btn{background:var(--color-gold);color:#fff}
.newsletter-form .btn:hover{background:var(--color-gold-hover)}

.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-text h2{margin-bottom:var(--space-md)}
.brand-story-text p{margin-bottom:var(--space-md);line-height:1.7}

.empty-state{text-align:center;padding:var(--space-2xl) var(--space-lg)}
.empty-state h3{margin-bottom:var(--space-md)}
.empty-state p{color:var(--color-text-muted);margin-bottom:var(--space-lg)}
.empty-state .empty-links{display:flex;gap:var(--space-md);justify-content:center;flex-wrap:wrap}

.blog-card{background:var(--color-surface);border-radius:var(--radius-md);overflow:hidden;transition:transform var(--transition-base),box-shadow var(--transition-base)}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.blog-card-img{aspect-ratio:16/10;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover}
.blog-card-body{padding:var(--space-lg)}
.blog-card-date{font-size:.8rem;color:var(--color-text-muted);margin-bottom:8px}
.blog-card-title{font-size:1.2rem;margin-bottom:8px}
.blog-card-excerpt{font-size:.9rem;color:var(--color-text-secondary);margin-bottom:var(--space-md)}
.blog-card-read{font-size:.85rem;font-weight:600;color:var(--color-accent)}

.blog-article{padding:var(--space-xl) 0 var(--space-2xl)}
.blog-article-hero{position:relative;height:320px;display:flex;align-items:flex-end;overflow:hidden;border-radius:var(--radius-lg);margin-bottom:var(--space-xl)}
.blog-article-hero img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.blog-article-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(43,37,32,.8),transparent)}
.blog-article-hero-content{position:relative;z-index:2;padding:var(--space-xl);color:#fff}
.blog-article-content{max-width:720px;margin:0 auto}
.blog-article-content h2{font-size:1.5rem;margin:var(--space-xl) 0 var(--space-md)}
.blog-article-content p{margin-bottom:var(--space-md);line-height:1.8;font-size:1.05rem}
.blog-article-content ul{margin-bottom:var(--space-md);padding-left:var(--space-lg)}
.blog-article-content ul li{margin-bottom:8px;list-style:disc}

@media print{.nav,.footer,.announcement-bar,.sticky-atc,.cart-drawer,.cart-overlay{display:none!important}}