:root {
  --cream: #f8f3ea;
  --paper: #fffdf8;
  --ink: #4a3f35;
  --taupe: #a08b74;
  --taupe-dark: #7d6a55;
  --rose: #c9796b;
  --sage: #8e9a76;
  --line: #e6dccb;
  --serif: "Cormorant Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--taupe-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* header */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-dark); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { color: var(--rose); }
.basket-btn { background: none; border: 1px solid var(--taupe); color: var(--taupe-dark); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.basket-btn:hover { background: var(--taupe); color: #fff; }

/* hero */
.hero img { width: 100%; height: auto; }
.hero-tag { text-align: center; padding: 34px 20px 8px; }
.hero-tag h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-style: italic; font-weight: 500; color: var(--taupe-dark); }
.hero-tag p { max-width: 640px; margin: 0 auto; color: #6b5e51; }

/* shop */
.section { padding: 40px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--taupe-dark); }
.section-title::after { content: ""; display: block; width: 60px; height: 1px; background: var(--rose); margin: 14px auto 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 30px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 18px; font: inherit; font-size: .88rem; cursor: pointer; }
.chip.on, .chip:hover { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(90, 70, 50, .14); transform: translateY(-2px); }
.card .ph { aspect-ratio: 1 / 1; background: #efe7d9; position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--taupe-dark); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.badge.sold { background: var(--ink); color: #fff; border-color: var(--ink); }
.card .meta { padding: 14px 16px 18px; }
.card h3 { font-size: 1.15rem; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: var(--rose); font-weight: 600; }
.price small { color: #8a7c6e; font-weight: 400; }

/* about */
.about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 900px; }
.about img { border-radius: 50%; border: 6px solid var(--cream); box-shadow: 0 4px 18px rgba(90, 70, 50, .15); }
.about p { margin: 0 0 1em; }
.note { max-width: 760px; margin: 0 auto; text-align: center; color: #6b5e51; }

/* product page */
.crumb { padding: 22px 0 0; font-size: .88rem; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; padding: 22px 0 60px; }
.gallery .main { background: #efe7d9; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery .main img { width: 100%; max-height: 640px; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs button.on { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: 1.9rem; }
.info .price { font-size: 1.5rem; margin: 6px 0 18px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #7a6c5e; margin-bottom: 5px; }
.field select, .field input { width: 100%; padding: 11px 12px; border: 1px solid var(--taupe); border-radius: 4px; background: var(--paper); font: inherit; color: var(--ink); }
.btn { display: inline-block; width: 100%; background: var(--taupe-dark); color: #fff; border: 0; border-radius: 4px; padding: 14px 20px; font: inherit; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: var(--ink); }
.btn:disabled { background: #c9bfb2; cursor: not-allowed; }
.btn.ghost { background: none; color: var(--taupe-dark); border: 1px solid var(--taupe); }
.ship-line { font-size: .9rem; color: #6b5e51; margin: 14px 0 0; }
.desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.desc p { margin: 0 0 1em; white-space: pre-line; }
.err { color: #a33; font-size: .9rem; min-height: 1.4em; margin: 8px 0 0; }

/* basket drawer */
.scrim { position: fixed; inset: 0; background: rgba(60, 45, 35, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--paper); z-index: 50; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(60, 45, 35, .2); }
body.cart-open .scrim { opacity: 1; pointer-events: auto; }
body.cart-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.5rem; }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.lines { flex: 1; overflow: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.line .t { font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.line .o { font-size: .82rem; color: #7a6c5e; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--cream); border-radius: 50%; cursor: pointer; font: inherit; line-height: 1; }
.rm { background: none; border: 0; color: #9a8b7c; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 8px; }
.drawer footer { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.tot { display: flex; justify-content: space-between; margin-bottom: 4px; }
.tot.big { font-size: 1.15rem; font-weight: 600; margin: 8px 0 14px; }
.empty { text-align: center; color: #8a7c6e; padding: 50px 0; }

/* footer */
.foot { text-align: center; padding: 34px 20px 44px; font-size: .88rem; color: #7a6c5e; }
.foot a { margin: 0 8px; }

.center-card { max-width: 560px; margin: 70px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 44px 34px; text-align: center; }

@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .about .wrap { grid-template-columns: 1fr; text-align: center; }
  .about img { max-width: 180px; margin: 0 auto; }
  .brand { font-size: 1.05rem; letter-spacing: .08em; }
  .nav { gap: 12px; }
  .nav a { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card h3 { font-size: 1rem; }
}
