:root {
  --cream: #fcf7f4;
  --blush: #f5dcdc;
  --blush-soft: #f9e9e7;
  --rose: #e8b4b8;
  --rose-deep: #c97f88;
  --cocoa: #5b3a2e;
  --cocoa-soft: #7a5546;
  --line: #e5cfc9;
  --serif: "Playfair Display", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --caps: "Montserrat", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.tiny-heart { width: .8em; height: .8em; fill: none; stroke: var(--rose-deep); stroke-width: 2; vertical-align: -.05em; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--blush);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  font-family: var(--caps); font-size: 13px; letter-spacing: .06em;
}
.announce p { margin: 0; text-align: center; flex: 1; }
.announce p span { opacity: .85; margin: 0 6px; }
.announce strong { font-weight: 500; font-size: 15px; margin-left: 6px; }
.announce-bow, .logo-bow { width: 30px; height: 18px; fill: none; stroke: var(--cocoa); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 247, 244, .96);
  backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 44px;
  border-bottom: 1px solid transparent;
}
.main-nav { display: flex; gap: 38px; font-size: 18px; }
.main-nav > a, .has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.main-nav a:hover { color: var(--rose-deep); }
.chev { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -16px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 0; min-width: 170px;
  box-shadow: 0 12px 30px rgba(91, 58, 46, .08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.dropdown a { display: block; padding: 6px 18px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .logo-bow { width: 74px; height: 44px; stroke-width: 2.2; margin-bottom: -10px; }
.logo-word { font-family: var(--serif); font-size: 48px; letter-spacing: -.01em; }
.logo-word em, .hero-title em, .footer-logo em { font-family: var(--script); font-style: normal; font-size: .72em; margin: 0 .05em; }
.logo-sub { font-family: var(--caps); font-size: 12px; letter-spacing: .45em; margin-top: 8px; padding-left: .45em; text-transform: uppercase; }

.header-icons { display: flex; justify-content: flex-end; gap: 22px; }
.icon-btn { background: none; border: 0; padding: 4px; display: inline-flex; position: relative; }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: var(--cocoa); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -2px; right: -4px;
  background: var(--cocoa); color: var(--cream);
  font-family: var(--caps); font-size: 10px; line-height: 16px;
  min-width: 16px; height: 16px; border-radius: 8px; text-align: center; padding: 0 4px;
}
.menu-toggle { display: none; }

.search-bar { display: flex; justify-content: center; gap: 8px; padding: 12px 16px; background: var(--blush-soft); }
.search-bar[hidden] { display: none; }
.search-bar input {
  width: min(480px, 100%); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; background: var(--cream); color: var(--cocoa);
}
.search-bar button { border: 0; background: var(--cocoa); color: var(--cream); border-radius: 999px; padding: 0 20px; font-family: var(--caps); font-size: 13px; letter-spacing: .1em; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(90deg, var(--blush-soft) 0%, var(--blush) 100%);
  min-height: 420px; overflow: hidden;
}
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 24px 48px; }
.hero-note {
  position: absolute; top: 28px; left: 32px; margin: 0;
  font-family: var(--script); font-size: 34px; line-height: 1; transform: rotate(-12deg); text-align: left;
}
.hero-bow { width: 140px; height: 84px; fill: rgba(232, 180, 184, .55); stroke: var(--rose); stroke-width: 2; margin-bottom: -8px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 84px); line-height: 1.05; margin: 0; }
.hero-cats { font-family: var(--caps); letter-spacing: .32em; text-transform: uppercase; font-size: 14px; margin: 14px 0 0; }
.hero-cats .tiny-heart { margin: 0 12px; }
.hero-script { font-family: var(--script); font-size: 40px; margin: 10px 0 18px; }
.hero-script span { font-family: var(--body); font-size: 20px; margin: 0 10px; }
.hero-img { position: relative; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-heart { position: absolute; top: 60px; right: 28px; width: 44px; height: 44px; fill: none; stroke: var(--rose-deep); stroke-width: 1.6; transform: rotate(10deg); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cocoa); color: var(--cream); border: 1px solid var(--cocoa);
  border-radius: 10px; padding: 12px 22px;
  font-family: var(--caps); font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--cocoa-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--cocoa); }
.btn-outline:hover { background: var(--cocoa); color: var(--cream); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Section headings ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 48px 56px; text-align: center; }
.rule-heading, .short-heading {
  font-family: var(--caps); font-weight: 400; font-size: 20px; letter-spacing: .32em; text-transform: uppercase;
  display: flex; align-items: center; gap: 18px; margin: 0 0 28px;
}
.rule-heading::before, .rule-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.short-heading { justify-content: center; margin-bottom: 4px; }
.short-heading::before, .short-heading::after { content: ""; width: 60px; height: 1px; background: var(--rose); }
.heading-heart { width: 16px; height: 16px; fill: none; stroke: var(--rose-deep); stroke-width: 2; margin-bottom: 18px; }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.cat { position: relative; border-radius: 12px; overflow: hidden; background: var(--blush-soft); }
.cat img { aspect-ratio: 1 / .95; width: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.05); }
.cat span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--blush); margin: -14px 0 0; position: relative; border-radius: 12px 12px 0 0;
  padding: 12px 6px 10px; font-family: var(--caps); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Perks ---------- */
.perks { background: var(--blush); display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 48px; }
.perk { text-align: center; padding: 6px 12px; }
.perk + .perk { border-left: 1px solid var(--rose); }
.perk svg { width: 40px; height: 40px; fill: none; stroke: var(--cocoa); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.perk h3 { font-family: var(--caps); font-weight: 500; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin: 10px 0 2px; }
.perk p { margin: 0; font-size: 17px; }

/* ---------- Products ---------- */
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.filter-chips button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 6px 16px; font-family: var(--caps); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.filter-chips button.active, .filter-chips button:hover { background: var(--blush); border-color: var(--rose); }
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: left; }
.product { display: flex; flex-direction: column; }
.product-img { position: relative; border-radius: 12px; overflow: hidden; background: var(--blush-soft); aspect-ratio: 3 / 4; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product-img img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--cream); border-radius: 999px; padding: 2px 10px; font-family: var(--caps); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.product h3 { font-family: var(--body); font-weight: 600; font-size: 19px; margin: 12px 0 0; line-height: 1.25; }
.price { font-family: var(--caps); font-size: 14px; margin: 4px 0 10px; }
.price s { opacity: .55; margin-left: 6px; }
.product select { font: inherit; font-size: 16px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--cocoa); margin-bottom: 8px; }
.add-btn {
  margin-top: auto; border: 1px solid var(--cocoa); background: transparent; border-radius: 10px; padding: 9px 10px;
  font-family: var(--caps); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: .2s;
}
.add-btn:hover:not(:disabled) { background: var(--cocoa); color: var(--cream); }
.add-btn:disabled { opacity: .5; cursor: default; }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 30px 0; font-style: italic; }
.skeleton { background: var(--blush-soft); border-radius: 12px; aspect-ratio: 3 / 4; animation: pulse 1.4s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 40px 48px 64px; }
.about-img img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-copy .short-heading { justify-content: flex-start; }
.about-copy .short-heading::before { display: none; }
.script { font-family: var(--script); font-size: 44px; margin: 6px 0 0; line-height: 1.2; }

/* ---------- Contact ---------- */
.contact { background: var(--blush-soft); text-align: center; padding: 56px 24px; }
.contact > p { max-width: 520px; margin: 14px auto 0; }
.contact-email { border-bottom: 1px solid var(--rose); font-size: 21px; }
.newsletter { margin: 30px auto 0; max-width: 520px; }
.newsletter label { display: block; font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.newsletter div { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--cream); color: var(--cocoa); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 40px 16px 30px; }
.site-footer .logo-bow { width: 54px; height: 32px; stroke-width: 2.4; }
.footer-logo { font-family: var(--serif); font-size: 32px; margin: 0 0 10px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.small { font-size: 15px; opacity: .8; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(91, 58, 46, .25); z-index: 40; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(400px, 100%); background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -10px 0 30px rgba(91, 58, 46, .1);
}
.cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--caps); font-weight: 400; font-size: 16px; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.cart-line h4 { margin: 0; font-size: 17px; line-height: 1.2; }
.cart-line .variant { font-size: 15px; opacity: .75; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { background: none; border: 0; width: 28px; height: 26px; }
.qty span { min-width: 18px; text-align: center; font-family: var(--caps); font-size: 13px; }
.line-price { font-family: var(--caps); font-size: 14px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; font-family: var(--caps); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.drawer-foot .small { margin: 4px 0 14px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--cocoa); color: var(--cream); padding: 10px 20px; border-radius: 999px;
  font-family: var(--caps); font-size: 13px; letter-spacing: .08em;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 24px; }
  .logo-word { font-size: 40px; }
}

@media (max-width: 820px) {
  .announce-bow, .announce p span, .announce .tiny-heart { display: none; }
  .announce strong { margin: 0; font-size: 13px; }
  .site-header { padding: 10px 16px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; width: 32px; height: 32px; padding: 4px; }
  .menu-toggle span { height: 1.5px; background: var(--cocoa); border-radius: 1px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .has-dropdown > a { padding: 10px 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; background: none; }
  .dropdown a { padding: 5px 0; }
  .logo .logo-bow { width: 50px; height: 30px; margin-bottom: -6px; }
  .logo-word { font-size: 28px; }
  .logo-sub { font-size: 9px; margin-top: 5px; }
  .header-icons { gap: 6px; }
  .header-icons #accountBtn { display: none; }
  .icon-btn svg { width: 22px; height: 22px; }

  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; aspect-ratio: 16 / 10; }
  .hero-copy { padding: 32px 16px 40px; }
  .hero-note { display: none; }
  .hero-cats { font-size: 11px; letter-spacing: .2em; }
  .hero-cats .tiny-heart { margin: 0 6px; }
  .hero-script { font-size: 32px; }

  .section { padding: 32px 16px 44px; }
  .rule-heading, .short-heading { font-size: 16px; letter-spacing: .22em; gap: 12px; }
  .short-heading::before, .short-heading::after { width: 32px; }
  .categories { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat span { font-size: 11px; letter-spacing: .14em; }
  .perks { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; row-gap: 20px; }
  .perk + .perk { border-left: 0; }
  .perk h3 { font-size: 12px; letter-spacing: .14em; }
  .perk p { font-size: 15px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product h3 { font-size: 17px; }
  .about { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 44px; }
  .about-img img { aspect-ratio: 4 / 3; }
  .newsletter div { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
}
