:root{
  --bg:#f5f3ef;
  --bg-soft:#ece7df;
  --text:#151515;
  --muted:#6b6b6b;
  --line:#ddd5ca;
  --accent:#c8a97e;
  --shadow:0 20px 50px rgba(17,17,17,0.08);
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  display:block;
  max-width:100%;
}

button,
input,
select,
textarea{
  font:inherit;
}

.container{
  width:min(calc(100% - 32px),var(--max));
  margin:0 auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(245,243,239,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(23,23,23,.06);
}

.nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo{
  font-family:"Playfair Display",serif;
  font-size:1.5rem;
  letter-spacing:4px;
}

.desktop-nav{
  display:flex;
  gap:26px;
}

.desktop-nav a{
  font-size:.95rem;
  color:#333;
  transition:.25s ease;
}

.desktop-nav a:hover{
  color:#000;
}

.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:1px solid rgba(0,0,0,.08);
  background:transparent;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span{
  width:20px;
  height:2px;
  background:#111;
  border-radius:999px;
}

.mobile-nav{
  display:grid;
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  background:rgba(245,243,239,.98);
}

.mobile-nav a{
  padding:14px 24px;
  border-top:1px solid rgba(0,0,0,.06);
}

.mobile-nav.open{
  max-height:260px;
}

/* HERO */
.hero{
  padding:72px 0 44px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:42px;
  align-items:center;
}

.eyebrow{
  display:inline-block;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.22em;
  color:var(--accent);
  font-weight:700;
  margin-bottom:16px;
}

.hero-copy h1,
.section-head h2,
.brand-copy h2,
.newsletter-box h2{
  margin:0 0 16px;
  font-family:"Playfair Display",serif;
  line-height:.98;
  letter-spacing:-.03em;
}

.hero-copy h1{
  font-size:clamp(2.8rem,6vw,5.4rem);
}

.hero-copy p,
.section-head p,
.brand-copy p,
.newsletter-box p{
  color:var(--muted);
  line-height:1.85;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 24px;
  border-radius:999px;
  font-weight:700;
  transition:.25s ease;
  border:none;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  background:var(--text);
  color:#fff;
}

.btn-secondary{
  background:transparent;
  border:1px solid rgba(0,0,0,.1);
}

.hero-media img,
.brand-media img,
.lookbook-item img,
.product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:28px;
  box-shadow:var(--shadow);
}

/* SECTIONS */
.section{
  padding:40px 0;
}

.alt-section{
  background:var(--bg-soft);
}

.section-head{
  max-width:720px;
  margin-bottom:28px;
}

.section-head h2,
.brand-copy h2,
.newsletter-box h2{
  font-size:clamp(2rem,4vw,3.4rem);
}

/* PRODUCTS */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}

.product-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .3s ease, box-shadow .3s ease;
}

.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 60px rgba(17,17,17,.12);
}

.product-media{
  position:relative;
  aspect-ratio:4/5;
  background:#f1ece4;
}

.badge{
  position:absolute;
  top:16px;
  left:16px;
  z-index:2;
  background:rgba(255,255,255,.86);
  padding:8px 12px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.product-body{
  padding:20px;
}

.product-body h3{
  margin:0 0 10px;
  font-family:"Playfair Display",serif;
  font-size:1.5rem;
}

.price{
  margin:0 0 14px;
  color:var(--muted);
}

.product-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.25s ease;
  gap:8px;
}

.product-link::after{
  content:"→";
}

.product-link:hover{
  transform:translateY(-2px);
  background:#222;
}

/* BRAND */
.brand-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

/* LOOKBOOK */
.lookbook-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.lookbook-item{
  margin:0;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow);
}

.lookbook-item img{
  aspect-ratio:4/5;
  transition:transform .5s ease;
}

.lookbook-item:hover img{
  transform:scale(1.05);
}

/* NEWSLETTER */
.newsletter-section{
  padding-bottom:70px;
}

.newsletter-box{
  text-align:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  padding:40px 28px;
  box-shadow:var(--shadow);
}

.newsletter-box p{
  max-width:680px;
  margin:0 auto 22px;
}

.newsletter-form{
  max-width:620px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
}

.newsletter-form input{
  min-height:56px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  padding:0 18px;
  background:#faf8f4;
}

.newsletter-form button{
  min-height:56px;
  padding:0 24px;
  border-radius:999px;
  border:0;
  background:var(--accent);
  color:#111;
  font-weight:700;
  cursor:pointer;
}

/* FOOTER */
.site-footer{
  padding:26px 0 40px;
  border-top:1px solid rgba(0,0,0,.08);
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.footer-grid h3,
.footer-grid h4{
  margin:0 0 10px;
  font-family:"Playfair Display",serif;
}

.footer-grid p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* CART */
.cart-toggle{
  position:fixed;
  right:20px;
  top:92px;
  z-index:120;
  background:#111;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:14px 18px;
  font-weight:700;
  box-shadow:0 16px 32px rgba(0,0,0,.18);
  cursor:pointer;
}

.cart-panel{
  position:fixed;
  top:0;
  right:-420px;
  width:400px;
  max-width:100%;
  height:100vh;
  background:#fff;
  color:#111;
  z-index:130;
  box-shadow:-20px 0 40px rgba(0,0,0,.18);
  transition:right .35s ease;
  display:flex;
  flex-direction:column;
}

.cart-panel.open{
  right:0;
}

.cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px;
  border-bottom:1px solid #eee;
}

.cart-header h3{
  margin:0;
  font-family:"Playfair Display",serif;
  font-size:1.6rem;
}

.cart-close{
  background:none;
  border:none;
  font-size:1.8rem;
  cursor:pointer;
}

.cart-items{
  flex:1;
  overflow:auto;
  padding:20px;
}

.cart-item{
  padding:16px 0;
  border-bottom:1px solid #eee;
}

.cart-item h4{
  margin:0 0 8px;
  font-size:1rem;
}

.cart-item p{
  margin:4px 0;
  color:#666;
  font-size:.95rem;
}

.cart-empty{
  color:#666;
}

.cart-footer{
  padding:20px 22px;
  border-top:1px solid #eee;
  background:#faf8f4;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.checkout-btn{
  min-height:48px;
  border:none;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.25s ease;
}

.checkout-btn:hover{
  background:#222;
  transform:translateY(-2px);
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:140;
  overflow-y:auto;
  padding:24px 16px;
}

.modal.open{
  display:block;
}

.modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.modal-box{
  position:relative;
  z-index:2;
  width:min(100%, 520px);
  margin:40px auto;
  background:#fff;
  color:#111;
  border-radius:24px;
  padding:28px;
  box-shadow:0 30px 60px rgba(0,0,0,.22);
}

.modal-close{
  position:absolute;
  top:14px;
  right:16px;
  background:none;
  border:none;
  font-size:1.8rem;
  cursor:pointer;
}

.modal-box h3{
  margin:0 0 8px;
  font-family:"Playfair Display",serif;
  font-size:2rem;
}

.modal-price{
  margin:0 0 22px;
  color:#666;
}

/* FORMS */
.buy-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  font-weight:600;
}

.form-group input,
.form-group select,
.form-group textarea{
  min-height:50px;
  padding:12px 14px;
  border:1px solid #ddd;
  border-radius:14px;
  background:#fff;
}

.form-group textarea{
  min-height:120px;
  resize:vertical;
}

.buy-submit{
  margin-top:8px;
}

/* CHECKOUT SUMMARY */
.checkout-summary{
  padding:14px 16px;
  border:1px solid #eee;
  border-radius:16px;
  background:#faf8f4;
  margin-bottom:18px;
}

.checkout-summary-item{
  padding:10px 0;
  border-bottom:1px solid #e7e1d8;
}

.checkout-summary-item:last-child{
  border-bottom:none;
}

.checkout-summary-item h4{
  margin:0 0 6px;
  font-size:1rem;
}

.checkout-summary-item p{
  margin:4px 0;
  color:#666;
  font-size:.95rem;
}

.checkout-success{
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:#eef7ee;
  color:#1f5f2a;
  font-weight:600;
}

/* RESPONSIVE */
@media (max-width:1024px){
  .hero-grid,
  .brand-grid,
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }

  .products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .lookbook-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:780px){
  .desktop-nav{
    display:none;
  }

  .menu-toggle{
    display:inline-flex;
  }

  .hero-grid,
  .brand-grid,
  .footer-grid,
  .newsletter-form,
  .lookbook-grid{
    grid-template-columns:1fr;
  }

  .products-grid{
    grid-template-columns:1fr;
  }

  .hero-copy h1{
    font-size:clamp(2.5rem,10vw,4rem);
  }

  .cart-toggle{
    right:16px;
    top:auto;
    bottom:16px;
  }

  .cart-panel{
    width:100%;
  }

  .modal-box{
    margin:40px auto 0;
  }
}

#checkoutModal .modal-box{
  max-height:calc(100vh - 80px);
  overflow-y:auto;
}

#checkoutModal .buy-submit{
  width:100%;
  position:sticky;
  bottom:0;
  left:0;
  background:#111;
  color:#fff;
  box-shadow:0 -8px 20px rgba(255,255,255,.9);
}