:root {
  --blush: #f6e6df;
  --blush-deep: #eacfc4;
  --cream: #fffaf7;
  --ink: #3a241d;
  --ink-soft: #6b4d43;
  --rose: #b87a64;
  --rose-dark: #9a5f4b;
  --gold: #c8a25a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(90, 50, 40, .10);
  --script: "Parisienne", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--blush);
  line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--blush-deep); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand span { font-family: var(--script); font-size: 30px; line-height: 1; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.nav a:hover { color: var(--rose-dark); }
.basket-link { display: inline-flex; align-items: center; gap: 6px; }
.basket-count { background: var(--rose); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; display: inline-grid; place-items: center; letter-spacing: 0; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 12px; letter-spacing: .08em; }
}

/* Hero */
.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: min(380px, 80vw); margin: 0 auto; border-radius: 50%; box-shadow: var(--shadow); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 36px); margin: 28px 0 6px; }
.hero p { color: var(--ink-soft); margin: 0 0 24px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-family: var(--sans);
  background: var(--rose); color: #fff; padding: 14px 28px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 14px; transition: background .2s;
}
.btn:hover { background: var(--rose-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--rose-dark); border: 1px solid var(--rose); }
.btn-ghost:hover { background: var(--cream); }

/* Sections */
section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-family: var(--script); font-weight: 400; font-size: clamp(40px, 6vw, 56px); margin: 0; line-height: 1.1; }
.section-title p { margin: 4px 0 0; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; }
.panel { background: var(--cream); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; text-align: center; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 4px; }
.card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 15px; }
.price { font-weight: 500; color: var(--rose-dark); font-size: 18px; }

/* Product page */
.crumbs { font-size: 14px; color: var(--ink-soft); padding-top: 24px; }
.crumbs a { color: var(--ink-soft); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 24px 0 56px; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.gallery-main img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; width: 78px; height: 78px; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 44px); margin: 0 0 6px; line-height: 1.15; }
.product-info .price { font-size: 26px; display: block; margin-bottom: 18px; }
.product-info .desc p { margin: 0 0 14px; }
.buy { display: flex; gap: 12px; align-items: center; margin: 24px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: var(--cream); border: 1px solid var(--blush-deep); border-radius: 999px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.note { font-size: 14px; color: var(--ink-soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; transition: transform .3s; z-index: 20; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: #f5cdbd; margin-left: 8px; }

/* Basket */
.basket { max-width: 820px; margin: 0 auto; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.line h3 { margin: 0; font-family: var(--serif); font-size: 21px; }
.line h3 a { color: var(--ink); text-decoration: none; }
.line .controls { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.line .remove { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.line .line-total { font-weight: 500; }
.totals { background: var(--cream); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 1px solid var(--blush-deep); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 500; }
#paypal-buttons { max-width: 420px; margin: 0 auto; }
.empty, .thanks { text-align: center; }
.thanks h2 { font-family: var(--script); font-weight: 400; font-size: 52px; margin: 0; }
.alert { background: #fff3cd; border: 1px solid #e8d49a; padding: 12px 16px; border-radius: 10px; font-size: 15px; margin-bottom: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: #f3e2da; padding: 36px 0; margin-top: 40px; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #f5cdbd; }
.site-footer .script { font-family: var(--script); font-size: 30px; }
