@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #2b2724;
  --muted: #7a716a;
  --line: #e6dfd6;
  --accent: #8c6f5a;
  --accent-dark: #6f5543;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 4px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }

/* Announcement + header */
.announce { background: var(--ink); color: #f3ede6; text-align: center; font-size: .8rem; letter-spacing: .08em; padding: 8px 16px; }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--accent); }
.cart-link { position: relative; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .7rem; margin-left: 6px; padding: 0 6px; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 14px 32px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s; font-family: var(--sans); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn[disabled] { background: #b9b0a7; border-color: #b9b0a7; cursor: not-allowed; }
.btn.block { width: 100%; text-align: center; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; border-bottom: 1px solid var(--line); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px max(24px, calc((100vw - var(--max)) / 2 + 24px)); padding-right: 64px; }
.hero-text p { color: var(--muted); max-width: 440px; margin: 0 0 32px; font-size: 1.05rem; }
.hero-img { background: linear-gradient(160deg, #e9ddcf, #cdb8a3); position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.section-head a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card { text-decoration: none; display: block; }
.card .img { aspect-ratio: 3 / 4; background: #eee7de; overflow: hidden; position: relative; margin-bottom: 14px; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .img img { transform: scale(1.04); }
.card .name { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 2px; }
.card .price { color: var(--muted); font-size: .95rem; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--paper); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { background: transparent; border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; font-size: .85rem; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Promise strip */
.promise { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.promise .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.promise h3 { margin-bottom: 4px; }
.promise p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 48px 0 80px; }
.gallery .main { aspect-ratio: 3 / 4; background: #eee7de; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { width: 76px; aspect-ratio: 3/4; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; overflow: hidden; }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info .price { font-size: 1.3rem; margin-bottom: 20px; }
.info .desc { color: var(--muted); margin-bottom: 28px; white-space: pre-line; }
.opt { margin-bottom: 22px; }
.opt label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-row button { min-width: 52px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--ink); border-radius: var(--radius); }
.opt-row button.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { width: 40px; display: flex; align-items: center; justify-content: center; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.msg { margin-top: 12px; font-size: .9rem; color: var(--accent-dark); min-height: 1.4em; }
.breadcrumb { font-size: .8rem; color: var(--muted); padding-top: 28px; }
.breadcrumb a { text-decoration: none; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 40px 0 80px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 96px; aspect-ratio: 3/4; object-fit: cover; background: #eee7de; }
.cart-item .meta { color: var(--muted); font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; font-family: var(--sans); }
.summary { background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-weight: 600; }
.empty { text-align: center; padding: 100px 0; }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h2 { margin-top: 48px; }
.page p, .page li { color: #4a443f; }
.contact-form { display: grid; gap: 14px; margin-top: 24px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--paper); font-family: var(--sans); font-size: 1rem; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--ink); color: #d8cfc6; padding: 64px 0 32px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; margin: 0 0 14px; }
.site-footer a { display: block; text-decoration: none; color: #d8cfc6; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.copy { border-top: 1px solid #4a433d; padding-top: 24px; font-size: .8rem; color: #a59a90; }

.loading { padding: 80px 0; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .product, .cart-layout { grid-template-columns: 1fr; }
  .hero-img { min-height: 360px; order: -1; }
  .hero-text { padding: 48px 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .promise .wrap, .site-footer .cols { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav.open { display: flex; }
  section { padding: 56px 0; }
}
