/* ==========================================================================
   FORME — Design tokens and base styles
   A premium, minimalist fashion storefront. White background, generous
   whitespace, editorial serif headlines, and a single warm accent color.
   ========================================================================== */

:root{
  --bg: #FFFFFF;
  --bg-soft: #FAF9F7;
  --surface: #F5F3EF;
  --text: #17140F;
  --muted: #716C63;
  --border: #E7E3DA;
  --border-strong: #D8D2C5;
  --accent: #B5714F;
  --accent-dark: #8F5638;
  --accent-tint: #F3E7DE;
  --black: #17140F;
  --white: #FFFFFF;
  --danger: #B3392E;
  --success: #4B6B4F;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1320px;
  --radius-sm: 3px;
  --radius-md: 6px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; background:none; border:none;}
input, select, textarea{font-family:inherit;}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}

.wrap{max-width:var(--container); margin:0 auto; padding:0 40px;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-0.01em;
  color:var(--text);
}

.section{padding:96px 0;}
.section-tight{padding:64px 0;}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:44px; flex-wrap:wrap;}
.section-head h2{font-size:clamp(1.8rem, 3.2vw, 2.6rem);}
.section-head p{color:var(--muted); max-width:440px;}
.section-center{text-align:center; max-width:600px; margin:0 auto 48px;}

.eyebrow{
  font-size:0.78rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent); margin-bottom:14px; display:block;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px;
  font-family:var(--font-body); font-weight:600; font-size:0.85rem;
  letter-spacing:0.04em; text-transform:uppercase;
  border-radius:1px;
  border:1px solid transparent;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space:nowrap;
}
.btn:active{transform:scale(0.98);}
.btn-primary{background:var(--black); color:var(--white);}
.btn-primary:hover{background:var(--accent-dark);}
.btn-outline{border-color:var(--black); color:var(--black); background:var(--white);}
.btn-outline:hover{background:var(--black); color:var(--white);}
.btn-outline-light{border-color:rgba(255,255,255,0.7); color:var(--white); background:transparent;}
.btn-outline-light:hover{background:var(--white); color:var(--black);}
.btn-text{
  text-transform:none; letter-spacing:0; font-weight:600; padding:0;
  border-bottom:1px solid currentColor;
}
.btn-block{width:100%;}
.btn-sm{padding:10px 18px; font-size:0.75rem;}
.btn:disabled{opacity:0.4; cursor:not-allowed;}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announce-bar{
  background:var(--black); color:var(--white);
  text-align:center; padding:11px 20px;
  font-size:0.8rem; font-weight:500; letter-spacing:0.04em;
  position:relative; overflow:hidden;
}
.announce-track{display:flex; align-items:center; justify-content:center; gap:10px;}
.announce-bar a{text-decoration:underline; text-underline-offset:3px;}

/* ---------- HEADER / NAV ---------- */
header{position:sticky; top:0; z-index:200; background:var(--bg); border-bottom:1px solid var(--border); transition:box-shadow .25s ease;}
header.scrolled{box-shadow:0 6px 20px -14px rgba(0,0,0,0.25);}
nav{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  padding:22px 0; max-width:var(--container); margin:0 auto; padding-left:40px; padding-right:40px;
}
.nav-left{display:flex; align-items:center; gap:30px;}
.logo{
  font-family:var(--font-display); font-weight:600; font-size:1.5rem; letter-spacing:0.02em;
  justify-self:center;
}
.nav-links{display:flex; align-items:center; gap:28px;}
.nav-links a{
  font-size:0.86rem; font-weight:500; letter-spacing:0.02em; color:var(--text);
  position:relative; padding:4px 0;
}
.nav-links a::after{content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--text); transition:width .25s ease;}
.nav-links a:hover::after{width:100%;}
.nav-links a.sale-link{color:var(--accent);}
.nav-links a.sale-link::after{background:var(--accent);}
.nav-right{display:flex; align-items:center; justify-content:flex-end; gap:20px;}
.icon-btn{position:relative; display:flex; align-items:center; justify-content:center; width:24px; height:24px; color:var(--text);}
.icon-btn svg{width:21px; height:21px;}
.icon-count{
  position:absolute; top:-8px; right:-10px; min-width:16px; height:16px; padding:0 3px;
  background:var(--black); color:var(--white); border-radius:50%;
  font-size:0.62rem; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.menu-toggle{display:none; flex-direction:column; gap:5px; padding:6px;}
.menu-toggle span{width:22px; height:1.5px; background:var(--text);}

/* ---------- MOBILE NAV DRAWER ---------- */
.mobile-drawer{
  position:fixed; inset:0 0 0 auto; width:min(340px, 86vw); background:var(--bg);
  transform:translateX(100%); transition:transform .3s ease; z-index:400;
  padding:24px; overflow-y:auto; box-shadow:-20px 0 40px rgba(0,0,0,0.08);
}
.mobile-drawer.open{transform:translateX(0);}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(23,20,15,0.4); z-index:399;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.drawer-overlay.open{opacity:1; pointer-events:auto;}
.drawer-close{display:flex; justify-content:flex-end; margin-bottom:24px;}
.drawer-close button{font-size:1.6rem; line-height:1;}
.mobile-drawer .nav-links{flex-direction:column; align-items:flex-start; gap:0;}
.mobile-drawer .nav-links a{width:100%; padding:16px 0; border-bottom:1px solid var(--border); font-size:1rem;}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay{
  position:fixed; inset:0; background:rgba(23,20,15,0.5); z-index:500;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
  display:flex; align-items:flex-start; justify-content:center;
}
.search-overlay.open{opacity:1; pointer-events:auto;}
.search-panel{
  background:var(--bg); width:100%; max-width:720px; margin-top:80px;
  border-radius:var(--radius-md); padding:36px; max-height:80vh; overflow-y:auto;
  transform:translateY(-16px); transition:transform .3s ease;
}
.search-overlay.open .search-panel{transform:translateY(0);}
.search-input-row{display:flex; align-items:center; gap:14px; border-bottom:2px solid var(--text); padding-bottom:14px;}
.search-input-row svg{width:20px; height:20px; flex-shrink:0; color:var(--muted);}
.search-input-row input{flex:1; border:none; font-size:1.2rem; font-family:var(--font-display); background:transparent;}
.search-input-row input:focus{outline:none;}
.search-close{font-size:1.4rem; color:var(--muted);}
.search-meta{margin-top:18px; color:var(--muted); font-size:0.85rem;}
.search-results{margin-top:20px; display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.search-recent{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;}
.search-recent button{
  padding:7px 14px; border:1px solid var(--border); border-radius:20px; font-size:0.8rem; color:var(--muted);
}
.search-recent button:hover{border-color:var(--text); color:var(--text);}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-stack{position:fixed; bottom:28px; right:28px; z-index:600; display:flex; flex-direction:column; gap:10px; align-items:flex-end;}
.toast{
  background:var(--black); color:var(--white); padding:14px 20px; border-radius:var(--radius-sm);
  font-size:0.85rem; display:flex; align-items:center; gap:10px; min-width:220px;
  box-shadow:0 12px 30px -10px rgba(0,0,0,0.4);
  animation:toastIn .3s ease;
}
.toast.leaving{animation:toastOut .25s ease forwards;}
.toast svg{width:16px; height:16px; flex-shrink:0; color:#8FBF8B;}
@keyframes toastIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
@keyframes toastOut{ to{opacity:0; transform:translateY(10px);} }

/* ---------- FOOTER ---------- */
footer{background:var(--bg-soft); border-top:1px solid var(--border); padding:80px 0 32px; margin-top:0;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:56px;}
.footer-brand .logo{margin-bottom:14px;}
.footer-brand p{color:var(--muted); font-size:0.9rem; max-width:260px; margin-bottom:20px;}
.footer-col h4{font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--text); margin-bottom:18px; font-weight:600;}
.footer-col ul li{margin-bottom:11px;}
.footer-col ul a{color:var(--muted); font-size:0.9rem; transition:color .15s;}
.footer-col ul a:hover{color:var(--text);}
.footer-newsletter form{display:flex; border-bottom:1px solid var(--text); padding-bottom:8px; margin-top:14px;}
.footer-newsletter input{flex:1; border:none; background:transparent; font-size:0.9rem;}
.footer-newsletter input:focus{outline:none;}
.footer-newsletter button{font-size:0.78rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;}
.footer-social{display:flex; gap:12px; margin-top:20px;}
.social-icon{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  transition:border-color .2s, color .2s, transform .2s;
}
.social-icon svg{width:16px; height:16px;}
.social-icon:hover{border-color:var(--text); color:var(--text); transform:translateY(-2px);}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  padding-top:26px; border-top:1px solid var(--border); color:var(--muted); font-size:0.82rem;
}
.footer-bottom .legal-links{display:flex; gap:22px;}
.payment-icons{display:flex; gap:8px; align-items:center;}
.payment-icons span{
  border:1px solid var(--border-strong); border-radius:3px; padding:3px 7px; font-size:0.66rem;
  font-weight:700; letter-spacing:0.02em; color:var(--muted);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{position:relative; min-height:640px; display:flex; align-items:flex-end; overflow:hidden;}
.hero-media{position:absolute; inset:0; z-index:0;}
.hero-media .placeholder-block{width:100%; height:100%;}
.hero-media::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.05) 45%, rgba(23,20,15,0) 70%);
}
.hero-content{position:relative; z-index:1; padding:0 0 72px; color:var(--white); max-width:560px;}
.hero-content .eyebrow{color:var(--white); opacity:0.85;}
.hero-content h1{
  font-size:clamp(2.6rem, 6vw, 4.6rem); color:var(--white); margin-bottom:20px;
  text-transform:uppercase; letter-spacing:0.01em;
}
.hero-content p{font-size:1.1rem; opacity:0.92; margin-bottom:32px; max-width:440px;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}

/* Secondary editorial hero (used on category/collection banners) */
.banner{position:relative; min-height:440px; display:flex; align-items:center; overflow:hidden;}
.banner .hero-media::after{background:linear-gradient(100deg, rgba(23,20,15,0.65) 0%, rgba(23,20,15,0.15) 55%, rgba(23,20,15,0) 80%);}
.banner-content{position:relative; z-index:1; color:var(--white); max-width:480px;}
.banner-content h2{font-size:clamp(2rem,4.2vw,3rem); color:var(--white); margin-bottom:16px;}
.banner-content p{opacity:0.9; margin-bottom:26px; font-size:1.05rem;}

/* ==========================================================================
   PLACEHOLDER IMAGERY
   Soft editorial tone blocks stand in for photography until real brand
   assets are uploaded. Swap by adding real <img> tags with the same
   aspect ratio wrapper classes.
   ========================================================================== */
.placeholder-block{
  position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.placeholder-block::before{content:''; position:absolute; inset:0; opacity:0.5;
  background-image:radial-gradient(circle at 1px 1px, rgba(23,20,15,0.14) 1px, transparent 0);
  background-size:16px 16px;
}
.placeholder-mark{
  position:relative; z-index:1; font-family:var(--font-display); font-weight:500;
  color:rgba(23,20,15,0.28); user-select:none;
}
.tone-sand{background:linear-gradient(135deg,#EFE7DA,#E3D6C2);}
.tone-stone{background:linear-gradient(135deg,#E9E6E0,#D6D1C7);}
.tone-clay{background:linear-gradient(135deg,#E8D3C4,#D7B79E);}
.tone-linen{background:linear-gradient(135deg,#F2EFE9,#E6E0D5);}
.tone-sage{background:linear-gradient(135deg,#E3E7DC,#CBD3BE);}
.tone-moss{background:linear-gradient(135deg,#DDE0D2,#C3C9AF);}
.tone-dark{background:linear-gradient(135deg,#2A2620,#1A1712);}
.tone-dark .placeholder-mark{color:rgba(255,255,255,0.22);}
.tone-dark::before{background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);}

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */
.category-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.category-tile{position:relative; aspect-ratio:3/4; border-radius:var(--radius-md); overflow:hidden; display:block;}
.category-tile .placeholder-block{transition:transform .6s ease;}
.category-tile:hover .placeholder-block{transform:scale(1.06);}
.category-tile::after{content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(23,20,15,0.5) 0%, rgba(23,20,15,0) 55%);}
.category-tile-label{
  position:absolute; left:22px; bottom:22px; z-index:1; color:var(--white);
  font-family:var(--font-display); font-size:1.3rem; font-weight:600;
}
.category-tile-label span{
  display:block; font-family:var(--font-body); font-size:0.75rem; font-weight:500;
  letter-spacing:0.04em; text-transform:uppercase; margin-top:4px; opacity:0.85;
}

/* ==========================================================================
   PRODUCT CARD
   Reused on: homepage best sellers, shop grid, related products, search,
   wishlist.
   ========================================================================== */
.product-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:28px 24px;}
.product-card{position:relative;}
.product-media{
  position:relative; aspect-ratio:4/5; border-radius:var(--radius-md); overflow:hidden;
  background:var(--surface); margin-bottom:16px;
}
.product-media .placeholder-block{position:absolute; inset:0; transition:opacity .35s ease;}
.product-media .placeholder-block.image-b{opacity:0;}
.product-card:hover .placeholder-block.image-a{opacity:0;}
.product-card:hover .placeholder-block.image-b{opacity:1;}
.product-badge{
  position:absolute; top:12px; left:12px; z-index:2;
  background:var(--white); color:var(--text); font-size:0.65rem; font-weight:700;
  letter-spacing:0.06em; padding:5px 10px; border-radius:2px;
}
.product-badge.sale{background:var(--accent); color:var(--white);}
.wishlist-btn{
  position:absolute; top:10px; right:10px; z-index:2; width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,0.9); display:flex; align-items:center; justify-content:center;
  transition:transform .2s ease;
}
.wishlist-btn:hover{transform:scale(1.08);}
.wishlist-btn svg{width:17px; height:17px; stroke:var(--text); fill:none; transition:fill .15s, stroke .15s;}
.wishlist-btn.active svg{fill:var(--accent); stroke:var(--accent);}
.quick-add{
  position:absolute; left:10px; right:10px; bottom:10px; z-index:2;
  background:var(--black); color:var(--white); text-align:center; padding:12px;
  font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  border-radius:2px; opacity:0; transform:translateY(8px); transition:opacity .25s ease, transform .25s ease;
}
.product-card:hover .quick-add{opacity:1; transform:translateY(0);}
.product-info-name{font-size:0.95rem; font-weight:500; margin-bottom:6px;}
.product-rating{display:flex; align-items:center; gap:6px; margin-bottom:8px;}
.product-rating .stars{color:var(--accent); font-size:0.8rem; letter-spacing:1px;}
.product-rating .count{color:var(--muted); font-size:0.78rem;}
.product-price{display:flex; align-items:center; gap:10px; font-size:0.95rem; font-weight:600;}
.product-price .old{color:var(--muted); font-weight:500; text-decoration:line-through;}
.product-price .sale-price{color:var(--accent);}
.product-colors{display:flex; gap:6px; margin-top:10px;}
.color-dot{width:15px; height:15px; border-radius:50%; border:1px solid rgba(0,0,0,0.12); display:inline-block;}

/* ==========================================================================
   TRUST STRIP / WHY SHOP WITH US
   ========================================================================== */
.trust-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:32px; text-align:center;}
.trust-item svg{width:30px; height:30px; margin:0 auto 16px; color:var(--accent);}
.trust-item h3{font-family:var(--font-body); font-size:0.98rem; font-weight:600; margin-bottom:6px;}
.trust-item p{color:var(--muted); font-size:0.85rem;}

/* ==========================================================================
   SOCIAL PROOF / TESTIMONIALS
   ========================================================================== */
.proof-banner{text-align:center; padding:12px 0 48px;}
.proof-banner .big-number{font-family:var(--font-display); font-size:2.4rem; margin-bottom:6px;}
.testimonial-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.testimonial-card{padding:32px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-soft);}
.testimonial-card .stars{color:var(--accent); margin-bottom:14px; display:block; font-size:0.9rem;}
.testimonial-card p{font-family:var(--font-display); font-size:1.15rem; margin-bottom:16px; line-height:1.4;}
.testimonial-card span{color:var(--muted); font-size:0.85rem;}

/* ==========================================================================
   SHOP THE LOOK
   ========================================================================== */
.look-section{display:grid; grid-template-columns:1.1fr 0.9fr; gap:0; align-items:stretch; border-radius:var(--radius-md); overflow:hidden;}
.look-media{position:relative; min-height:520px;}
.look-panel{background:var(--bg-soft); padding:56px; display:flex; flex-direction:column; justify-content:center;}
.look-panel h2{font-size:clamp(1.7rem,3vw,2.3rem); margin-bottom:24px;}
.look-items{margin-bottom:30px;}
.look-item{
  display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--border);
}
.look-item:first-child{border-top:none;}
.look-item .swatch{width:56px; height:56px; border-radius:var(--radius-sm); flex-shrink:0;}
.look-item-name{font-weight:500; font-size:0.95rem;}
.look-item-price{color:var(--muted); font-size:0.85rem;}

/* ==========================================================================
   COLLECTION BANNER (editorial, full width)
   ========================================================================== */
.collection-banner{position:relative; min-height:480px; display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden;}
.collection-banner .banner-content{max-width:600px;}
.collection-banner h2{font-size:clamp(2.2rem,5vw,3.6rem); color:var(--white); margin-bottom:18px; text-transform:uppercase;}

/* ==========================================================================
   COUNTDOWN / PROMOTION
   ========================================================================== */
.promo-strip{
  background:var(--black); color:var(--white); text-align:center; padding:64px 40px; border-radius:var(--radius-md);
}
.promo-strip .eyebrow{color:var(--accent);}
.promo-strip h2{color:var(--white); font-size:clamp(1.8rem,3.6vw,2.6rem); margin-bottom:10px;}
.promo-strip .demo-note{color:rgba(255,255,255,0.5); font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:28px;}
.countdown{display:flex; gap:18px; justify-content:center; margin-bottom:32px;}
.countdown-unit{min-width:76px;}
.countdown-num{
  font-family:var(--font-display); font-size:2.4rem; font-weight:600; background:rgba(255,255,255,0.08);
  border-radius:var(--radius-sm); padding:14px 0; display:block;
}
.countdown-label{display:block; font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase; margin-top:8px; opacity:0.7;}

/* ==========================================================================
   INSTAGRAM / SOCIAL GRID
   ========================================================================== */
.insta-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:12px;}
.insta-tile{aspect-ratio:1/1; border-radius:var(--radius-sm); overflow:hidden; position:relative;}
.insta-tile .placeholder-block{transition:transform .5s ease;}
.insta-tile:hover .placeholder-block{transform:scale(1.08);}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section{background:var(--bg-soft); text-align:center; padding:80px 40px; border-radius:var(--radius-md);}
.newsletter-section h2{font-size:clamp(1.8rem,3.4vw,2.4rem); margin-bottom:12px;}
.newsletter-section p{color:var(--muted); margin-bottom:28px;}
.newsletter-form{display:flex; max-width:440px; margin:0 auto; border:1px solid var(--text); border-radius:2px; overflow:hidden;}
.newsletter-form input{flex:1; border:none; padding:15px 18px; background:transparent; font-size:0.9rem;}
.newsletter-form input:focus{outline:none;}
.newsletter-form button{padding:15px 26px; background:var(--black); color:var(--white); font-size:0.78rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;}
.newsletter-success{display:none; align-items:center; justify-content:center; gap:8px; color:var(--success); font-weight:600; margin-top:16px;}
.newsletter-success.show{display:flex;}

/* ==========================================================================
   PAGE HEADER (shop, about, contact, etc.)
   ========================================================================== */
.page-header{padding:56px 0 40px; border-bottom:1px solid var(--border); text-align:center;}
.page-header h1{font-size:clamp(2rem,4vw,2.8rem); margin-bottom:10px;}
.page-header p{color:var(--muted); max-width:480px; margin:0 auto;}
.breadcrumb{display:flex; gap:8px; color:var(--muted); font-size:0.8rem; justify-content:center; margin-bottom:18px;}
.breadcrumb a:hover{color:var(--text);}

/* ==========================================================================
   SHOP PAGE — FILTERS + GRID
   ========================================================================== */
.shop-layout{display:grid; grid-template-columns:240px 1fr; gap:48px; align-items:start;}
.filter-group{border-bottom:1px solid var(--border); padding:22px 0;}
.filter-group:first-child{padding-top:0;}
.filter-group-title{
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
  font-size:0.85rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:14px;
}
.filter-group-title svg{width:14px; height:14px; transition:transform .2s ease;}
.filter-group.collapsed .filter-group-title svg{transform:rotate(-90deg);}
.filter-group.collapsed .filter-options{display:none;}
.filter-options{display:flex; flex-direction:column; gap:11px;}
.filter-checkbox{display:flex; align-items:center; gap:10px; font-size:0.88rem; cursor:pointer; color:var(--text);}
.filter-checkbox input{width:15px; height:15px; accent-color:var(--black);}
.filter-swatches{display:flex; flex-wrap:wrap; gap:8px;}
.filter-swatch{
  width:28px; height:28px; border-radius:50%; border:1px solid var(--border-strong); cursor:pointer; position:relative;
}
.filter-swatch.selected::after{
  content:''; position:absolute; inset:-4px; border:1.5px solid var(--text); border-radius:50%;
}
.price-range{display:flex; justify-content:space-between; font-size:0.82rem; color:var(--muted); margin-top:10px;}
.price-range input[type="range"]{width:100%; accent-color:var(--black); margin:10px 0;}
.filter-clear{font-size:0.8rem; color:var(--muted); text-decoration:underline; margin-top:6px;}

.shop-toolbar{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; flex-wrap:wrap; gap:14px;
}
.shop-count{color:var(--muted); font-size:0.88rem;}
.sort-select{
  border:1px solid var(--border-strong); border-radius:2px; padding:10px 14px; font-size:0.85rem; background:var(--bg);
}
.mobile-filter-toggle{display:none;}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:flex-start;}
.gallery-main{
  position:relative; aspect-ratio:4/5; border-radius:var(--radius-md); overflow:hidden; background:var(--surface);
  margin-bottom:14px; cursor:zoom-in;
}
.gallery-main .placeholder-block{position:absolute; inset:0;}
.gallery-thumbs{display:flex; gap:10px;}
.gallery-thumb{
  width:76px; aspect-ratio:4/5; border-radius:var(--radius-sm); overflow:hidden; cursor:pointer;
  border:2px solid transparent; opacity:0.6; transition:opacity .2s, border-color .2s;
}
.gallery-thumb.active{opacity:1; border-color:var(--text);}

.pd-sticky{position:sticky; top:110px;}
.pd-name{font-size:clamp(1.6rem,2.6vw,2.1rem); margin-bottom:10px;}
.pd-rating{display:flex; align-items:center; gap:10px; margin-bottom:18px;}
.pd-rating .stars{color:var(--accent);}
.pd-rating a{color:var(--muted); font-size:0.85rem; text-decoration:underline;}
.pd-price{font-size:1.5rem; font-weight:600; margin-bottom:24px; display:flex; align-items:center; gap:12px;}
.pd-price .old{color:var(--muted); text-decoration:line-through; font-weight:500; font-size:1.15rem;}
.pd-price .sale-price{color:var(--accent);}

.pd-option-group{margin-bottom:26px;}
.pd-option-label{
  display:flex; justify-content:space-between; font-size:0.82rem; font-weight:600; text-transform:uppercase;
  letter-spacing:0.04em; margin-bottom:12px;
}
.pd-option-label .selected-value{font-weight:500; text-transform:none; color:var(--muted); letter-spacing:0;}
.pd-colors{display:flex; gap:10px;}
.pd-color-swatch{
  width:34px; height:34px; border-radius:50%; cursor:pointer; position:relative; border:1px solid rgba(0,0,0,0.1);
}
.pd-color-swatch.selected::after{content:''; position:absolute; inset:-4px; border:1.5px solid var(--text); border-radius:50%;}
.pd-sizes{display:flex; gap:10px; flex-wrap:wrap;}
.pd-size-btn{
  min-width:46px; height:46px; padding:0 12px; border:1px solid var(--border-strong); border-radius:2px;
  font-size:0.85rem; font-weight:500; transition:border-color .15s, background .15s;
}
.pd-size-btn:hover{border-color:var(--text);}
.pd-size-btn.selected{background:var(--black); color:var(--white); border-color:var(--black);}
.pd-size-btn.disabled{opacity:0.35; text-decoration:line-through; pointer-events:none;}
.size-guide-link{font-size:0.8rem; color:var(--muted); text-decoration:underline;}

.qty-selector{display:inline-flex; align-items:center; border:1px solid var(--border-strong); border-radius:2px;}
.qty-selector button{width:42px; height:46px; font-size:1.1rem;}
.qty-selector input{width:44px; height:46px; border:none; text-align:center; font-size:0.95rem; border-left:1px solid var(--border-strong); border-right:1px solid var(--border-strong);}
.qty-selector input:focus{outline:none;}

.pd-actions{display:flex; flex-direction:column; gap:12px; margin:28px 0 20px;}
.pd-add-btn{padding:18px 30px; font-size:0.85rem;}
.pd-wishlist-link{display:flex; align-items:center; gap:8px; font-size:0.88rem; color:var(--text); justify-content:center;}
.pd-wishlist-link svg{width:17px; height:17px;}
.pd-note{font-size:0.8rem; color:var(--danger); min-height:18px;}

.pd-meta-row{display:flex; align-items:center; gap:10px; padding:14px 0; border-top:1px solid var(--border); font-size:0.85rem; color:var(--muted);}
.pd-meta-row svg{width:18px; height:18px; flex-shrink:0;}

/* Accordion tabs (description, details, shipping, returns, reviews) */
.pd-accordion{margin-top:36px; border-top:1px solid var(--border);}
.accordion-item{border-bottom:1px solid var(--border);}
.accordion-head{
  width:100%; display:flex; justify-content:space-between; align-items:center; padding:20px 0;
  font-size:0.95rem; font-weight:600; text-align:left;
}
.accordion-head svg{width:16px; height:16px; transition:transform .25s ease;}
.accordion-item.open .accordion-head svg{transform:rotate(45deg);}
.accordion-body{max-height:0; overflow:hidden; transition:max-height .3s ease;}
.accordion-body-inner{padding:0 0 24px; color:var(--muted); font-size:0.92rem; line-height:1.7;}
.accordion-body-inner ul{padding-left:0;}
.accordion-body-inner li{padding-left:18px; position:relative; margin-bottom:8px;}
.accordion-body-inner li::before{content:'—'; position:absolute; left:0; color:var(--accent);}

/* Review breakdown */
.review-summary{display:grid; grid-template-columns:auto 1fr; gap:40px; margin-bottom:32px; align-items:center;}
.review-score{text-align:center;}
.review-score .num{font-family:var(--font-display); font-size:3rem; display:block;}
.review-score .stars{color:var(--accent); display:block; margin:6px 0;}
.review-score .count{color:var(--muted); font-size:0.85rem;}
.review-bars{display:flex; flex-direction:column; gap:8px;}
.review-bar-row{display:flex; align-items:center; gap:10px; font-size:0.8rem; color:var(--muted);}
.review-bar-track{flex:1; height:6px; background:var(--border); border-radius:4px; overflow:hidden;}
.review-bar-fill{height:100%; background:var(--accent);}
.review-list{display:flex; flex-direction:column; gap:24px;}
.review-item{padding-bottom:24px; border-bottom:1px solid var(--border);}
.review-item .stars{color:var(--accent); font-size:0.85rem; display:block; margin-bottom:8px;}
.review-item p{margin-bottom:8px;}
.review-item .reviewer{color:var(--muted); font-size:0.82rem;}

/* Related products */
.related-section{margin-top:80px;}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-layout{display:grid; grid-template-columns:1fr 380px; gap:64px; align-items:flex-start;}
.cart-item{display:grid; grid-template-columns:100px 1fr auto; gap:20px; padding:26px 0; border-bottom:1px solid var(--border);}
.cart-item-media{width:100px; aspect-ratio:4/5; border-radius:var(--radius-sm); overflow:hidden; background:var(--surface);}
.cart-item-name{font-weight:500; margin-bottom:4px;}
.cart-item-meta{color:var(--muted); font-size:0.85rem; margin-bottom:12px;}
.cart-item-controls{display:flex; align-items:center; gap:20px;}
.cart-item-remove{font-size:0.8rem; color:var(--muted); text-decoration:underline;}
.cart-item-remove:hover{color:var(--danger);}
.cart-item-price{text-align:right; font-weight:600;}
.cart-item-price .unit{display:block; color:var(--muted); font-weight:400; font-size:0.78rem; margin-top:4px;}
.cart-empty{text-align:center; padding:80px 20px;}
.cart-empty svg{width:56px; height:56px; color:var(--border-strong); margin:0 auto 20px;}
.cart-empty p{color:var(--muted); margin-bottom:24px;}

.summary-card{background:var(--bg-soft); border-radius:var(--radius-md); padding:32px; position:sticky; top:110px;}
.summary-card h3{font-size:1.1rem; margin-bottom:20px;}
.summary-row{display:flex; justify-content:space-between; font-size:0.92rem; margin-bottom:14px; color:var(--muted);}
.summary-row.total{
  color:var(--text); font-weight:700; font-size:1.15rem; padding-top:16px; border-top:1px solid var(--border); margin-top:8px;
}
.promo-row{display:flex; gap:8px; margin:20px 0;}
.promo-row input{flex:1; border:1px solid var(--border-strong); border-radius:2px; padding:12px 14px; font-size:0.85rem;}
.promo-row input:focus{outline:none; border-color:var(--text);}
.promo-message{font-size:0.8rem; margin-bottom:14px; min-height:16px;}
.promo-message.success{color:var(--success);}
.promo-message.error{color:var(--danger);}
.promo-hint{color:var(--muted); font-size:0.78rem; margin-bottom:4px;}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-layout{display:grid; grid-template-columns:1fr 400px; gap:64px; align-items:flex-start;}
.checkout-section{margin-bottom:36px;}
.checkout-section h3{font-size:1rem; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:18px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.form-field{margin-bottom:16px; display:flex; flex-direction:column; gap:7px;}
.form-field label{font-size:0.8rem; color:var(--muted);}
.form-field input, .form-field select{
  border:1px solid var(--border-strong); border-radius:2px; padding:13px 14px; font-size:0.92rem; background:var(--bg);
}
.form-field input:focus, .form-field select:focus{outline:none; border-color:var(--text);}
.form-field.error input, .form-field.error select{border-color:var(--danger);}
.field-error{color:var(--danger); font-size:0.76rem; display:none;}
.form-field.error .field-error{display:block;}

.delivery-option, .payment-option{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:16px 18px; margin-bottom:12px; cursor:pointer;
}
.delivery-option.selected, .payment-option.selected{border-color:var(--text); background:var(--bg-soft);}
.delivery-option-left, .payment-option-left{display:flex; align-items:center; gap:12px;}
.radio-dot{width:18px; height:18px; border-radius:50%; border:1.5px solid var(--border-strong); flex-shrink:0; position:relative;}
.delivery-option.selected .radio-dot, .payment-option.selected .radio-dot{border-color:var(--text);}
.delivery-option.selected .radio-dot::after, .payment-option.selected .radio-dot::after{
  content:''; position:absolute; inset:3px; border-radius:50%; background:var(--text);
}
.delivery-name{font-weight:500; font-size:0.92rem;}
.delivery-sub{color:var(--muted); font-size:0.8rem;}
.delivery-price{font-weight:600; font-size:0.9rem;}

.payment-simulated{
  border:1px dashed var(--border-strong); border-radius:var(--radius-sm); padding:20px; color:var(--muted); font-size:0.85rem;
  background:var(--bg-soft);
}
.payment-simulated strong{color:var(--text);}

.order-summary-item{display:flex; justify-content:space-between; gap:12px; font-size:0.88rem; margin-bottom:12px;}
.order-summary-item .name{color:var(--text);}
.order-summary-item .qty{color:var(--muted);}

.confirmation{text-align:center; padding:100px 20px; max-width:520px; margin:0 auto;}
.confirmation-icon{
  width:74px; height:74px; border-radius:50%; background:var(--success); color:var(--white);
  display:flex; align-items:center; justify-content:center; margin:0 auto 28px;
}
.confirmation-icon svg{width:34px; height:34px;}
.confirmation h1{font-size:2rem; margin-bottom:14px;}
.confirmation p{color:var(--muted); margin-bottom:8px;}
.confirmation .order-number{font-weight:700; color:var(--text); font-size:1.1rem; margin:18px 0 32px;}

/* ==========================================================================
   WISHLIST PAGE
   ========================================================================== */
.wishlist-empty{text-align:center; padding:100px 20px;}
.wishlist-empty svg{width:56px; height:56px; color:var(--border-strong); margin:0 auto 20px;}
.wishlist-empty p{color:var(--muted); margin-bottom:24px;}

/* ==========================================================================
   ABOUT / CONTACT / GENERIC CONTENT PAGES
   ========================================================================== */
.about-story{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center;}
.about-story p{color:var(--muted); margin-bottom:16px; max-width:480px;}
.values-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:32px;}
.value-card{text-align:center; padding:8px;}
.value-card svg{width:32px; height:32px; color:var(--accent); margin:0 auto 18px;}
.value-card h3{font-size:1.05rem; margin-bottom:10px;}
.value-card p{color:var(--muted); font-size:0.9rem;}

.contact-layout{display:grid; grid-template-columns:0.8fr 1.2fr; gap:56px;}
.contact-info-item{padding:20px 0; border-top:1px solid var(--border);}
.contact-info-item:first-child{border-top:none;}
.contact-info-item h4{font-size:0.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:8px;}
.contact-info-item a, .contact-info-item span{font-size:1rem;}
.faq-list{max-width:760px; margin:0 auto;}

/* ==========================================================================
   404
   ========================================================================== */
.error-page{min-height:60vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:80px 20px;}
.error-page .error-code{font-family:var(--font-display); font-size:clamp(4rem,14vw,7rem); color:var(--accent); line-height:1;}
.error-page h2{margin:16px 0 12px;}
.error-page p{color:var(--muted); max-width:420px; margin-bottom:32px;}

/* ==========================================================================
   SCROLL REVEAL + MISC ANIMATION
   ========================================================================== */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
.product-grid.in .product-card{opacity:0; transform:translateY(14px); animation:fadeUp .5s ease forwards;}
.product-grid.in .product-card:nth-child(4n+1){animation-delay:.03s;}
.product-grid.in .product-card:nth-child(4n+2){animation-delay:.1s;}
.product-grid.in .product-card:nth-child(4n+3){animation-delay:.17s;}
.product-grid.in .product-card:nth-child(4n+4){animation-delay:.24s;}
@keyframes fadeUp{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1100px){
  .footer-grid{grid-template-columns:1fr 1fr 1fr;}
  .footer-newsletter{grid-column:1 / -1;}
  .category-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .look-section{grid-template-columns:1fr;}
  .look-media{min-height:360px;}
  .shop-layout{grid-template-columns:1fr;}
  .filter-sidebar{display:none;}
  .filter-sidebar.open{display:block;}
  .mobile-filter-toggle{display:inline-flex;}
  .product-detail{grid-template-columns:1fr; gap:32px;}
  .pd-sticky{position:static;}
  .cart-layout{grid-template-columns:1fr; gap:40px;}
  .checkout-layout{grid-template-columns:1fr; gap:40px;}
  .summary-card{position:static;}
  .insta-grid{grid-template-columns:repeat(3,1fr);}
  .trust-grid{grid-template-columns:repeat(2,1fr); gap:28px;}
  .testimonial-grid{grid-template-columns:1fr; max-width:480px; margin:0 auto;}
  .about-story{grid-template-columns:1fr;}
  .contact-layout{grid-template-columns:1fr;}
  .values-grid{grid-template-columns:1fr;}
}

@media (max-width:860px){
  .wrap{padding:0 22px;}
  nav{padding:18px 22px; grid-template-columns:auto auto auto;}
  .nav-left .nav-links{display:none;}
  .nav-left{gap:12px;}
  .menu-toggle{display:flex;}
  .logo{font-size:1.25rem;}
  .section{padding:64px 0;}
  .section-tight{padding:44px 0;}
  .hero{min-height:560px;}
  .hero-content{padding-bottom:48px;}
  .category-grid{grid-template-columns:repeat(2,1fr); gap:14px;}
  .product-grid{grid-template-columns:repeat(2,1fr); gap:18px 14px;}
  .footer-grid{grid-template-columns:1fr 1fr; gap:32px;}
  .footer-newsletter{grid-column:1 / -1;}
  .insta-grid{grid-template-columns:repeat(3,1fr); gap:8px;}
  .promo-strip{padding:48px 24px;}
  .countdown{gap:10px;}
  .countdown-unit{min-width:60px;}
  .countdown-num{font-size:1.7rem; padding:10px 0;}
  .search-results{grid-template-columns:repeat(2,1fr);}
  .footer-bottom{flex-direction:column; align-items:flex-start;}
}

@media (max-width:600px){
  .product-grid{grid-template-columns:repeat(2,1fr); gap:14px 10px;}
  .category-grid{grid-template-columns:1fr 1fr;}
  .trust-grid{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .insta-grid{grid-template-columns:repeat(3,1fr);}
  .cart-item{grid-template-columns:76px 1fr; row-gap:12px;}
  .cart-item-price{grid-column:1 / -1; text-align:left; display:flex; justify-content:space-between; align-items:center; padding-top:8px; border-top:1px dashed var(--border);}
  .form-row{grid-template-columns:1fr;}
  .newsletter-form{flex-direction:column; border:none; gap:10px;}
  .newsletter-form input{border:1px solid var(--border-strong); border-radius:2px; padding:13px 14px;}
  .newsletter-form button{border-radius:2px; padding:13px;}
  .review-summary{grid-template-columns:1fr; text-align:center;}
  .page-header{padding:40px 0 28px;}
}
