@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --ink: #12100e;
  --ink-soft: #4a453f;
  --paper: #faf8f4;
  --cream: #f0ebe1;
  --gold: #b58a48;
  --line: #e2dbcf;
  --danger: #b3452f;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(18, 16, 14, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { line-height: 1.65; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250,248,244,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 21px; font-style: italic; }
.brand-text { display: flex; flex-direction: column; font-family: 'Playfair Display', serif; font-size: 17px; line-height: 1.05; letter-spacing: .01em; }
.brand-text span { font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: 32px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--ink); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s; }
.cart-button:hover { background: var(--cream); border-color: var(--ink); }
.cart-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { background: var(--ink); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }

/* Hero */
.hero { padding: 78px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.hero-copy h1 { font-size: clamp(48px, 5.6vw, 76px); letter-spacing: -.02em; margin-bottom: 26px; }
.hero-lede { font-size: 17px; color: var(--ink-soft); max-width: 430px; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 100px; padding: 15px 26px; font-size: 13px; font-weight: 700; letter-spacing: .02em; transition: transform .2s, background .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2621; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-full { width: 100%; }
.text-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 42px; font-size: 11px; color: var(--ink-soft); letter-spacing: .02em; }
.hero-visual { position: relative; }
.hero-image { width: 100%; border-radius: 4px; box-shadow: var(--shadow); }
.hero-note { position: absolute; bottom: 22px; left: 22px; background: var(--ink); color: #fff; border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.hero-note strong { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 500; }
.hero-note span { font-size: 11px; color: #c8c2b8; }

/* Marquee */
.marquee { background: var(--ink); color: #e8e2d6; overflow: hidden; padding: 13px 0; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: slide 28s linear infinite; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Shop */
.shop { padding: 90px 0 100px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 38px; }
.section-head h2, .how h2 { font-size: clamp(36px, 4vw, 52px); }
.section-intro { max-width: 380px; color: var(--ink-soft); font-size: 14px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter { background: transparent; border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px; font-size: 12px; font-weight: 600; color: var(--ink-soft); transition: all .2s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.product-card { display: flex; flex-direction: column; }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); border-radius: 8px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge { position: absolute; top: 12px; left: 12px; background: rgba(250,248,244,.94); border-radius: 100px; padding: 5px 11px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.add-button { position: absolute; bottom: 12px; left: 12px; right: 12px; background: var(--ink); color: #fff; border: 0; border-radius: 100px; padding: 12px; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.product-card:hover .add-button, .add-button:focus-visible { opacity: 1; transform: none; }
.product-info { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 5px; }
.product-category { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product-name { font-family: 'Playfair Display', serif; font-size: 18px; line-height: 1.25; }
.product-price { font-size: 14px; font-weight: 700; margin-top: 2px; }

/* Lookbook */
.lookbook { background: var(--cream); padding: 96px 0; }
.lookbook-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 84px; align-items: center; }
.lookbook-image img { border-radius: 6px; box-shadow: var(--shadow); width: 100%; }
.lookbook-copy h2 { font-size: clamp(44px, 5vw, 66px); margin-bottom: 24px; }
.lookbook-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 440px; font-size: 15px; }
.lookbook-copy .btn { margin-top: 18px; }

/* How */
.how { padding: 96px 0 110px; text-align: center; }
.how h2 { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step-num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 32px; color: var(--gold); }
.step h3 { font-size: 23px; margin: 10px 0 10px; }
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Footer */
footer { background: var(--ink); color: #f3efe7; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.brand-footer .brand-mark { background: #f3efe7; color: var(--ink); }
.brand-footer .brand-text { color: #f3efe7; }
.footer-note { color: #a9a198; font-size: 13px; max-width: 260px; margin: 18px 0 0; }
.footer-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 16px; }
.footer-grid div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #37322c; padding-top: 22px; display: flex; justify-content: space-between; font-size: 11px; color: #8f887e; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(18,16,14,.45); z-index: 50; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 51; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.15); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-head h2 span { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink-soft); }
.icon-button { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink-soft); padding: 0 4px; }
.icon-button:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 26px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px 26px 28px; }
.summary-line { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.summary-note { font-size: 11px; color: var(--ink-soft); margin: 0 0 18px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 66px; height: 78px; object-fit: cover; border-radius: 5px; }
.cart-line-info { flex: 1; }
.cart-line-info strong { font-family: 'Playfair Display', serif; font-size: 15px; display: block; }
.cart-line-info small { color: var(--ink-soft); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 7px; border: 1px solid var(--line); border-radius: 100px; padding: 2px 5px; }
.qty button { border: 0; background: none; width: 22px; height: 22px; font-size: 15px; line-height: 1; color: var(--ink-soft); }
.qty span { font-size: 12px; font-weight: 700; min-width: 12px; text-align: center; }
.remove-line { border: 0; background: none; font-size: 11px; color: var(--ink-soft); text-decoration: underline; }
.empty-cart { text-align: center; padding: 60px 10px; color: var(--ink-soft); }
.empty-cart strong { display: block; font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ink); margin-bottom: 10px; }

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(18,16,14,.6); z-index: 60; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-card { background: var(--paper); border-radius: var(--radius); width: min(470px, 100%); max-height: 92vh; overflow-y: auto; padding: 34px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 18px; right: 20px; }
.modal-card h2 { font-size: 32px; margin-bottom: 20px; }
.order-summary { display: flex; flex-direction: column; gap: 8px; background: var(--cream); border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; font-size: 13px; }
.order-summary .total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.pay-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 9px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:has(input:checked) { border-color: var(--ink); background: #fff; }
.pay-option input { accent-color: var(--ink); }
.pay-label { flex: 1; display: flex; flex-direction: column; }
.pay-label strong { font-size: 14px; }
.pay-label small { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.pay-icon { font-size: 17px; font-weight: 700; color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.field input { border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; font-size: 14px; font-family: inherit; background: #fff; }
.field input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-error { color: var(--danger); font-size: 12px; margin: -8px 0 14px; }
.secure-note { font-size: 11px; color: var(--ink-soft); text-align: center; margin: 16px 0 0; }
.status-card { text-align: center; }
.status-card h2 { margin-bottom: 10px; }
.status-card p { color: var(--ink-soft); font-size: 14px; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; margin: 12px auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { font-size: 44px; margin: 12px 0 20px; }
#statusActions { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
#statusActions[hidden] { display: none; }

@media (max-width: 980px) {
  .hero-grid, .lookbook-grid { grid-template-columns: 1fr; gap: 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 54px; }
  .hero-copy h1 { font-size: 46px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-grid { gap: 22px 12px; }
  .add-button { opacity: 1; transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .modal-card { padding: 26px 22px; }
}
