*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sage:      #A8B89E;
  --sage-lt:   #C8D8BC;
  --sage-bg:   #EBF2E7;
  --dusty:     #C9A4A4;
  --dusty-lt:  #E4C8C8;
  --dusty-bg:  #F5EEEE;
  --champ:     #D4C4A0;
  --champ-lt:  #EAE0C8;
  --champ-bg:  #F7F3EB;
  --charcoal:  #2D2320;
  --brown:     #7B5C51;
  --brown-lt:  #A07060;
  --cream:     #FDF8F5;
  --blush:     #F5E3D7;
  --blush-mid: #EDD3C3;
  --blush-dk:  #D9B9A8;
}
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--charcoal); font-size: 16px; line-height: 1.7; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(253,248,245,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blush-mid); transition: padding .3s;
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; letter-spacing: .06em; color: var(--charcoal); text-decoration: none; }
.nav-logo em { font-style: italic; font-weight: 300; }
.nav-logo small { font-family: 'Jost', sans-serif; font-size: .5rem; font-weight: 400; letter-spacing: .25em; vertical-align: middle; margin-left: .3rem; text-transform: uppercase; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--charcoal); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brown); }
.nav-links a.active { border-bottom: 1px solid var(--brown); padding-bottom: 1px; }
.nav-cart { position: relative; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.nav-cart svg { width: 20px; height: 20px; stroke: var(--charcoal); fill: none; stroke-width: 1.5; }
.cart-count { position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--charcoal); color: var(--cream); font-size: .6rem; display: flex; align-items: center; justify-content: center; font-weight: 500; }

/* ANNOUNCE */
.announce { background: var(--charcoal); color: var(--cream); text-align: center; padding: .65rem 2rem; font-size: .75rem; letter-spacing: .1em; }
.announce a { color: var(--blush-mid); text-decoration: underline; cursor: pointer; }

/* BUTTONS */
.btn-dark { display: inline-block; background: var(--charcoal); color: var(--cream); padding: .9rem 2.2rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border-radius: 2px; border: none; cursor: pointer; transition: background .2s, transform .15s; font-family: 'Jost', sans-serif; }
.btn-dark:hover { background: var(--brown); transform: translateY(-1px); }
.btn-light { display: inline-block; background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal); padding: .9rem 2.2rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border-radius: 2px; cursor: pointer; transition: all .2s; font-family: 'Jost', sans-serif; }
.btn-light:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .68rem; }

/* PAGE WRAPPER */
.page-wrap { padding-top: 72px; }
.announce + .page-wrap { padding-top: 108px; }

/* SECTIONS */
.section { padding: 6rem 2rem; }
.section-sm { padding: 4rem 2rem; }
.container { max-width: 1160px; margin: 0 auto; }
.sec-label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brown); margin-bottom: .6rem; }
.sec-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 300; line-height: 1.15; color: var(--charcoal); margin-bottom: 1rem; }
.sec-title em { font-style: italic; }
.sec-sub { font-size: .9rem; font-weight: 300; color: var(--brown); line-height: 1.8; max-width: 520px; }

/* PROMISE BAR */
.promise { background: var(--charcoal); display: flex; justify-content: center; gap: 4rem; padding: 1.1rem 2rem; flex-wrap: wrap; }
.promise span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.promise span::before { content: '—'; margin-right: .5rem; color: var(--blush-dk); }

/* DRESS SILHOUETTE (CSS shape) */
.dress-shape { border-radius: 60% 60% 10% 10% / 50% 50% 10% 10%; }

/* CART DRAWER */
.cart-overlay { position: fixed; inset: 0; background: rgba(45,35,32,.4); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; background: var(--cream); z-index: 400; transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--blush-mid); }
.cart-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; }
.cart-x { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--charcoal); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--brown); font-style: italic; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--blush); }
.ci-swatch { width: 64px; height: 80px; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ci-dress { width: 36px; height: 58px; border-radius: 22px 22px 5px 5px; }
.ci-info { flex: 1; }
.ci-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 400; margin-bottom: .15rem; }
.ci-detail { font-size: .75rem; color: var(--brown); margin-bottom: .5rem; }
.ci-remove { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-lt); background: none; border: none; cursor: pointer; font-family: 'Jost', sans-serif; text-decoration: underline; }
.ci-price { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; align-self: center; white-space: nowrap; }
.cart-foot { padding: 1.5rem 2rem; border-top: 1px solid var(--blush-mid); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1.2rem; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; }
.cart-note { font-size: .72rem; color: var(--brown); text-align: center; margin-top: .6rem; font-weight: 300; }

/* FOOTER */
footer { background: var(--charcoal); padding: 3.5rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--cream); letter-spacing: .05em; margin-bottom: .8rem; }
.footer-brand em { font-style: italic; font-weight: 300; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.4); font-weight: 300; line-height: 1.7; max-width: 220px; }
.footer-col h4 { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .82rem; color: rgba(255,255,255,.5); text-decoration: none; font-weight: 300; transition: color .2s; }
.footer-col ul a:hover { color: var(--blush-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }

/* FADE IN */
.fi { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.fi.v { opacity: 1; transform: none; }

/* BURGER / MOBILE NAV */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 61px;
    left: 0; right: 0;
    background: rgba(253,248,245,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--blush-mid);
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
  .nav-links a.active { border-bottom: none; padding-bottom: 0.85rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .promise { gap: 1.5rem; }
}
