:root {
  --ivory: #f7f3ee;
  --sand: #ece4da;
  --taupe: #b9a99a;
  --mocha: #7a6656;
  --ink: #2a2522;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
em { font-style: italic; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 620px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.center { text-align: center; margin-bottom: 40px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow.dark { color: var(--mocha); }

.btn { display: inline-block; padding: 15px 34px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--white); border: 1px solid var(--ink); transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.link-underline { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s; }
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Image placeholders — replace with <img> or background-image of real photos */
.ph { background: var(--sand); position: relative; overflow: hidden; }
.ph-1 { background: linear-gradient(160deg, #e9dfd3, #cdbba8); }
.ph-2 { background: linear-gradient(160deg, #efe8df, #d8c7b4); }
.ph-3 { background: linear-gradient(160deg, #e4dcd2, #b9a99a); }
.ph-4 { background: linear-gradient(160deg, #f1ebe4, #c9b8a6); }
.ph-5 { background: linear-gradient(200deg, #e2d6c8, #a99382); }
.ph-hero { background: linear-gradient(120deg, #cbb9a7 0%, #8f7a68 55%, #5e4d41 100%); }
.ph-dark { background: linear-gradient(140deg, #3a302b, #1c1714); }
.ph span { position: absolute; bottom: 16px; left: 16px; font-family: var(--serif); font-size: 22px; color: var(--white); }

/* Announcement */
.announce { background: var(--ink); color: var(--ivory); font-size: 12px; letter-spacing: .12em; text-align: center; height: 36px; overflow: hidden; position: relative; }
.announce p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; opacity: 0; transition: opacity .6s; }
.announce p.active { opacity: 1; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--ivory); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.scrolled { border-color: var(--sand); }
.header-inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: .28em; white-space: nowrap; text-align: center; }
.nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.nav > a, .has-mega > a { padding: 28px 0; position: relative; }
.nav > a::after, .has-mega > a::after { content: ""; position: absolute; left: 0; bottom: 22px; width: 0; height: 1px; background: currentColor; transition: width .3s; }
.nav > a:hover::after, .has-mega:hover > a::after { width: 100%; }
.header-icons { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--sand); }
.currency { background: transparent; border: 0; font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--ink); cursor: pointer; margin-right: 6px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 2px; background: var(--ink); color: var(--white); font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
.menu-toggle { display: none; }

.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-top: 1px solid var(--sand); padding: 40px var(--gutter); display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; text-transform: none; letter-spacing: normal; }
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 { font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.mega a { display: block; font-size: 15px; padding: 4px 0; color: var(--mocha); }
.mega a:hover { color: var(--ink); }
.mega-img { min-height: 220px; }

/* Drawer */
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--ivory); z-index: 100; padding: 70px 28px 28px; display: flex; flex-direction: column; gap: 4px; transform: translateX(-100%); transition: transform .35s ease; }
.drawer a { font-family: var(--serif); font-size: 24px; padding: 6px 0; border-bottom: 1px solid var(--sand); }
.drawer-close { position: absolute; top: 16px; right: 16px; }
.drawer.open { transform: none; }
.overlay { position: fixed; inset: 0; background: rgba(20,15,12,.4); z-index: 90; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.show { opacity: 1; visibility: visible; }

/* Hero */
.hero { position: relative; height: calc(100vh - 112px); min-height: 520px; max-height: 900px; display: flex; align-items: flex-end; color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.35)); }
.hero-content { position: relative; padding: 0 var(--gutter) clamp(48px, 8vw, 96px); max-width: 720px; }
.hero h1 { font-size: clamp(42px, 6vw, 84px); margin-bottom: 18px; }
.hero p:not(.eyebrow) { font-size: 16px; margin-bottom: 30px; max-width: 460px; }

/* Intro */
.intro { text-align: center; max-width: 760px; padding-top: clamp(56px, 8vw, 110px); }
.intro h2 { margin-bottom: 20px; }
.intro p { color: var(--mocha); margin-bottom: 26px; font-size: 16px; }

/* Products */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; }
.carousel-ctrls { display: flex; gap: 6px; }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.product-row::-webkit-scrollbar { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.product { scroll-snap-align: start; }
.product-media { aspect-ratio: 3 / 4; margin-bottom: 14px; position: relative; overflow: hidden; }
.product-media .ph { position: absolute; inset: 0; transition: opacity .5s, transform 1s; }
.product-media .alt { opacity: 0; }
.product:hover .product-media .alt { opacity: 1; }
.product:hover .product-media .ph { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ivory); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; }
.wish { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.7); }
.wish.on svg { fill: var(--ink); }
.quick-add { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; background: var(--ivory); padding: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transform: translateY(140%); transition: transform .35s; }
.product:hover .quick-add, .quick-add:focus { transform: none; }
.product h3 { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .02em; }
.product .colour { font-size: 13px; color: var(--mocha); }
.product .meta { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; }
.product .rating { color: var(--mocha); }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

/* Reviews */
.reviews { background: var(--sand); }
.reviews-head { text-align: center; margin-bottom: 44px; }
.stars { letter-spacing: .2em; margin-bottom: 8px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { background: var(--ivory); }
.review-img { aspect-ratio: 1; }
.review blockquote { font-family: var(--serif); font-size: 19px; padding: 20px 20px 8px; line-height: 1.35; }
.review figcaption { padding: 0 20px 20px; font-size: 12px; letter-spacing: .08em; color: var(--mocha); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { position: relative; display: block; overflow: hidden; }
.cat .ph { aspect-ratio: 3 / 4; transition: transform 1s; }
.cat:hover .ph { transform: scale(1.04); }
.cat span { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-family: var(--serif); font-size: 28px; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.2); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; background: var(--white); }
.split-media { min-height: 600px; }
.split-content { padding: clamp(40px, 7vw, 110px); align-self: center; max-width: 620px; }
.split-content h2 { margin-bottom: 20px; }
.split-content > p { color: var(--mocha); margin-bottom: 26px; }
.steps { list-style: none; counter-reset: s; margin-bottom: 34px; }
.steps li { counter-increment: s; padding: 14px 0 14px 44px; border-top: 1px solid var(--sand); position: relative; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; font-family: var(--serif); font-size: 20px; color: var(--taupe); top: 10px; }
.steps strong { font-weight: 500; }

/* Edit */
.edit { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 80px var(--gutter); }
.edit-media { position: absolute; inset: 0; }
.edit-content { position: relative; max-width: 560px; }
.edit h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 18px; }
.edit p:not(.eyebrow) { margin-bottom: 30px; opacity: .85; }

/* Journal */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post .ph { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.post time { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mocha); }
.post h3 { font-size: 24px; margin: 8px 0 14px; }

/* Newsletter */
.newsletter { background: var(--sand); text-align: center; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--mocha); margin-bottom: 26px; }
.news-form { display: flex; border: 1px solid var(--ink); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: inherit; color: var(--ink); outline: none; }
.form-msg { margin: 14px 0 0 !important; min-height: 1.6em; }

/* Footer */
.footer { background: var(--ink); color: var(--sand); padding-top: 80px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer .logo { display: inline-block; color: var(--white); margin-bottom: 16px; font-size: 22px; }
.footer p { margin-bottom: 14px; opacity: .75; }
.footer h4 { color: var(--white); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a:not(.logo) { display: block; padding: 3px 0; opacity: .75; transition: opacity .2s; }
.footer-grid a:hover { opacity: 1; }
.socials { display: flex; gap: 14px; }
.socials a { display: inline-block !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.footer-bottom p { margin: 0; }
.payments { display: flex; gap: 8px; flex-wrap: wrap; }
.payments span { border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 8px; font-size: 11px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: var(--white); padding: 14px 24px; font-size: 13px; letter-spacing: .06em; z-index: 200; transition: transform .35s; }
.toast.show { transform: translate(-50%, 0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1360px) {
  .nav-extra { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; justify-self: start; }
  .currency { display: none; }
  .product-row { grid-auto-columns: calc((100% - 20px) / 2.3); }
  .product-grid, .cat-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { height: 60px; gap: 8px; }
  .logo { font-size: 18px; letter-spacing: .2em; }
  .header-icons .icon-btn[aria-label="Search"], .header-icons .icon-btn[aria-label="Account"] { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 420px; }
  .journal-grid { grid-template-columns: 1fr; }
  .hero { height: 78vh; }
  .product-row { grid-auto-columns: 72%; }
  .product-grid { gap: 28px 12px; }
  .quick-add { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
