/* Gilbee Girls Wicks & Wax
   Cowhide, hot pink and a paper hang tag. Mobile first, no framework. */

@font-face {
  font-family: "Ultra";
  src: url("/fonts/ultra.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/work-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Allison";
  src: url("/fonts/allison-tagline.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --milk: #fffafb;
  --hide: #2b1c17;
  --pink: #ff5983;
  --pink-deep: #c2185b;
  --pink-ink: #a3124b;
  --blush: #ffe6ee;
  --muted: #6e5a52;
  --line: #ecdbe0;
  --wood: #8a5a3b;

  --display: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allison", "Snell Roundhand", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);

  --r-sm: 10px;
  --r-img: 18px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  --wrap: 72rem;
  --shadow-tag: 0 1px 0 rgba(43, 28, 23, .08), 0 14px 30px -18px rgba(43, 28, 23, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--hide);
  font: 400 var(--step-0)/1.6 var(--body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-deep); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--pink-ink); }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--hide); color: var(--milk); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; color: var(--milk); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- type */
.h1 { font: 400 var(--step-4)/1.05 var(--display); letter-spacing: -.01em; }
.h2 { font: 400 var(--step-3)/1.1 var(--display); letter-spacing: -.005em; }
.h3 { font: 650 var(--step-2)/1.25 var(--body); letter-spacing: -.01em; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 38rem; }
.fine { font-size: var(--step--1); color: var(--muted); }
.script { font: 400 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1 var(--script); margin: .1em 0 .35em; }
.more { font-weight: 600; white-space: nowrap; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--r-sm);
  border: 2px solid transparent; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--pink-deep); color: #fff; box-shadow: 3px 3px 0 var(--hide); }
.btn--primary:hover { background: var(--pink-ink); color: #fff; }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hide); }
.btn--primary:disabled { background: #b9a9ac; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: var(--milk); color: var(--hide); border-color: var(--hide); }
.btn--ghost:hover { background: var(--hide); color: var(--milk); }
.btn--quiet { background: none; color: var(--hide); text-decoration: underline; text-underline-offset: .2em; }
.btn--block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--hide); }
.icon-btn:hover { background: var(--blush); }

/* ---------- masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 251, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .masthead { background: rgba(255, 250, 251, .82); backdrop-filter: blur(8px); } }
.masthead__bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cart" "nav nav"; align-items: center; gap: .25rem 1rem; padding-block: .6rem .2rem; }
.brand { grid-area: brand; display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: var(--hide); white-space: nowrap; }
.brand__name { font: 400 1.35rem/1 var(--display); color: var(--pink-deep); text-transform: uppercase; letter-spacing: .01em; }
.brand__sub { font-size: var(--step--1); font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 419px) { .brand__name { font-size: 1.2rem; } .brand__sub { display: none; } }
.nav { grid-area: nav; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.6rem; }
.nav a { padding: .55rem .6rem; color: var(--hide); text-decoration: none; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--blush); }
.nav a[aria-current="page"] { color: var(--pink-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.cart-link { grid-area: cart; position: relative; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .6rem; color: var(--hide); text-decoration: none; border-radius: 999px; }
.cart-link:hover { background: var(--blush); color: var(--hide); }
.cart-link__count { min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--hide); color: var(--milk); font-size: .8rem; font-weight: 700; }
.cart-link__count.is-bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); background: var(--pink-deep); } }

@media (min-width: 760px) {
  .masthead__bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cart"; padding-block: .8rem; }
  .nav { justify-content: flex-end; margin: 0; overflow: visible; }
}

/* ---------- hero: cowhide + hang tag */
.hero {
  position: relative;
  background: var(--milk) url("/img/cowhide.svg") center / cover no-repeat;
  border-bottom: 6px solid var(--hide);
  overflow: hidden;
}
.hero__inner { display: grid; gap: 1.75rem; padding-block: 2rem 2.5rem; align-items: center; }
.tag {
  position: relative;
  background: var(--milk);
  padding: 2.25rem 1.4rem 1.6rem;
  border-radius: 14px;
  clip-path: polygon(1.6rem 0, calc(100% - 1.6rem) 0, 100% 1.6rem, 100% 100%, 0 100%, 0 1.6rem);
}
.tag-wrap { filter: drop-shadow(0 16px 18px rgba(43, 28, 23, .32)); max-width: 38rem; }
.tag__hole {
  position: absolute; top: .85rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem;
  border-radius: 50%; background: var(--hide); box-shadow: inset 0 0 0 3px #c9b8ae;
}
.tag__hole::after {
  /* the ribbon tied through the hole, like the tags on every candle */
  content: ""; position: absolute; left: 50%; top: -2rem; width: 4px; height: 2.4rem; margin-left: -2px;
  background: var(--pink); border-radius: 2px; transform: rotate(-12deg); transform-origin: bottom;
}
.wordmark { margin: 0; font: 400 clamp(2.4rem, 1.2rem + 5.6vw, 4.25rem)/.92 var(--display); text-transform: uppercase; color: var(--pink); letter-spacing: .01em; }
.wordmark__line { display: block; text-shadow: .045em .045em 0 var(--hide); }
.wordmark__line--2 { font-size: .74em; margin-top: .12em; }
.tag__lede { max-width: 30rem; margin-bottom: 1.25rem; }
.tag__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__photo { margin: 0; position: relative; justify-self: center; width: min(100%, 26rem); }
.hero__img { width: 100%; border-radius: var(--r-img); border: 6px solid var(--milk); box-shadow: var(--shadow-tag); transform: rotate(2deg); }
.hero__photo figcaption {
  position: absolute; left: -.5rem; bottom: 1.2rem; background: var(--hide); color: var(--milk);
  padding: .5rem .85rem; border-radius: 8px; font-size: var(--step--1); transform: rotate(-3deg);
}
.hero__photo figcaption a { color: var(--milk); font-weight: 650; }
.hero__photo figcaption span { margin-left: .35rem; color: #f8c9d6; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding-block: 4rem; gap: 3rem; }
  .tag { padding: 2.75rem 2.5rem 2.25rem; }
  .hero__photo { width: 100%; justify-self: end; }
}

/* ---------- next pop-up band */
.popup { background: var(--hide); color: var(--milk); }
.popup__inner { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; padding-block: 1rem; }
.popup__date { margin: 0; grid-row: span 2; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 10px; background: var(--pink); color: var(--hide); line-height: 1; }
.popup__date span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.popup__date strong { font: 400 1.6rem/1 var(--display); }
.popup__text { margin: 0; }
.popup__text strong { color: #ffc2d4; }
.popup__link { color: var(--milk); font-weight: 650; }
.popup__link:hover { color: #ffc2d4; }
@media (min-width: 760px) { .popup__inner { grid-template-columns: auto 1fr auto; } .popup__date { grid-row: auto; } }

/* ---------- sections */
.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.section > .h2 { margin-bottom: 1.5rem; }

/* category tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tile { position: relative; display: block; border-radius: var(--r-img); overflow: hidden; color: var(--milk); text-decoration: none; aspect-ratio: 4 / 5; background: var(--hide); }
.tile picture, .tile__img { width: 100%; height: 100%; }
.tile__img { object-fit: cover; transition: transform .4s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(43, 28, 23, .82)); }
.tile__name, .tile__count { position: absolute; left: 1rem; z-index: 1; }
.tile__name { bottom: 2.1rem; font: 400 var(--step-1)/1.1 var(--display); }
.tile__count { bottom: .9rem; font-size: var(--step--1); color: #f3dfe5; }
.tile:hover { color: var(--milk); }
.tile:hover .tile__img { transform: scale(1.04); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

/* product grid + cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem var(--gap); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card__link { display: grid; gap: .35rem; color: var(--hide); text-decoration: none; }
.card__media { position: relative; display: block; border-radius: var(--r-img); overflow: hidden; background: var(--blush); aspect-ratio: 1; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card__link:hover .card__img { transform: scale(1.04); }
.card__link:hover .card__name { text-decoration: underline; text-underline-offset: .2em; }
.card__name { font-weight: 650; line-height: 1.3; margin-top: .35rem; }
.card__price { color: var(--muted); font-variant-numeric: tabular-nums; }
.card__flags { position: absolute; left: .6rem; top: .6rem; right: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.flag { display: inline-block; padding: .2rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 700; line-height: 1.4; background: var(--hide); color: var(--milk); }
.flag:empty { display: none; }
.flag--pink { background: var(--pink); color: var(--hide); }
.flag--sm { font-size: .7rem; padding: .05rem .4rem; vertical-align: .1em; }
.flag--stock[data-stock="sold_out"] { background: var(--milk); color: var(--hide); border: 1.5px solid var(--hide); }
.card[data-sold-out] .card__img { filter: grayscale(.55); opacity: .75; }

/* how it comes together */
.steps { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); background: var(--blush); }
.steps .h2 { margin-bottom: 1.75rem; }
.steps__list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps__list li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps__list li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--milk); border: 2px solid var(--hide);
  font: 400 1.25rem/1 var(--display); color: var(--pink-deep);
}
.steps__list h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: .3rem; }
.steps__list p { margin: 0; max-width: 34ch; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* scents teaser */
.scents-teaser { display: grid; gap: 1.5rem; align-items: center; }
.scents-teaser__copy .h2 { margin-bottom: .6rem; }
.bestsellers { list-style: none; counter-reset: bs; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bestsellers li {
  counter-increment: bs; display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1rem; border: 2px solid var(--hide); border-radius: var(--r-sm); background: var(--milk);
  font-weight: 650; font-size: var(--step-1); box-shadow: 3px 3px 0 var(--pink);
}
.bestsellers li::before { content: counter(bs); font: 400 1.1rem/1 var(--display); color: var(--pink-deep); min-width: 1.2rem; }
@media (min-width: 900px) { .scents-teaser { grid-template-columns: .9fr 1.1fr; gap: 3rem; } }

/* story */
.story { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); background: var(--hide); color: var(--milk); }
.story__inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: center; }
.story__img { width: 100%; max-width: 24rem; border-radius: var(--r-img); border: 6px solid var(--milk); transform: rotate(-2deg); }
.story .h2 { color: var(--pink); margin-bottom: 1rem; }
.story p { max-width: 36rem; }
.story .more { color: #ffc2d4; }
@media (min-width: 900px) { .story__inner { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .story__img { justify-self: center; } }

/* quote */
.quote { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.quote blockquote { margin: 0 auto; max-width: 44rem; text-align: center; }
.quote p { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); line-height: 1.45; font-weight: 500; }
.quote p::before { content: "\201C"; display: block; font: 400 4rem/.6 var(--display); color: var(--pink); margin-bottom: .6rem; }
.quote footer { color: var(--muted); font-weight: 600; }

/* newsletter */
.signup { background: var(--pink); color: var(--hide); border-top: 6px solid var(--hide); }
.signup__inner { display: grid; gap: 1.25rem; padding-block: 2.5rem; align-items: center; }
.signup .h2 { margin-bottom: .4rem; }
.signup p { margin: 0; max-width: 32rem; }
.signup__form { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.signup__form input[type="email"] { min-height: 3rem; padding: .6rem .9rem; border: 2px solid var(--hide); border-radius: var(--r-sm); background: var(--milk); }
.signup .btn--primary { background: var(--hide); box-shadow: 3px 3px 0 var(--milk); }
.signup .btn--primary:hover { background: #000; }
.signup .form-msg { grid-column: 1 / -1; font-weight: 600; }
@media (min-width: 600px) { .signup__form { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) { .signup__inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- footer */
.footer { background: var(--hide); color: #eadcd6; font-size: var(--step--1); }
.footer__hide { height: 4rem; background: var(--milk) url("/img/cowhide-band.svg") center / auto 100% repeat-x; border-bottom: 4px solid var(--pink); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding-block: 2.5rem 1.5rem; }
.footer__brand { grid-column: 1 / -1; }
.footer__name { font: 400 1.6rem/1 var(--display); color: var(--pink); text-transform: uppercase; margin-bottom: .2rem; }
.footer__script { font: 400 2rem/1 var(--script); color: var(--milk); margin-bottom: .6rem; }
.footer h2 { font-size: .95rem; font-weight: 700; color: var(--milk); margin-bottom: .6rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { color: #eadcd6; }
.footer a:hover { color: #ffc2d4; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1rem 2rem; border-top: 1px solid #4a3830; }
.footer__legal p { margin: 0; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } .footer__brand { grid-column: auto; } }

/* ---------- shop */
.shop { padding-block: 2rem 3rem; }
.shop__head { margin-bottom: 1.25rem; }
.shop__intro { color: var(--muted); max-width: 40rem; margin: .6rem 0 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.filters { display: grid; gap: 1rem; margin-bottom: 1rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.chip { flex: none; padding: .5rem 1rem; border: 2px solid var(--hide); border-radius: 999px; color: var(--hide); text-decoration: none; font-weight: 600; font-size: var(--step--1); background: var(--milk); }
.chip:hover { background: var(--blush); color: var(--hide); }
.chip[aria-current="page"] { background: var(--hide); color: var(--milk); }
.filters__tools { display: grid; grid-template-columns: 1fr auto; gap: .75rem; }
.field--inline { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; }
.field--inline input, .field--inline select { min-height: 2.75rem; border: 2px solid #cdb8bd; border-radius: var(--r-sm); padding: .4rem .7rem; background: #fff; width: 100%; }
.field--inline select { width: auto; }
.shop__count { font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.empty { padding: 2rem 0; color: var(--muted); }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr auto; align-items: center; } .filters__tools { grid-template-columns: 16rem auto; } }

/* ---------- product page */
.pdp { padding-block: 1.25rem 3rem; }
.pdp__grid { display: grid; gap: 1.75rem; }
.pdp__media { position: relative; }
.pdp__img { width: 100%; border-radius: var(--r-img); background: var(--blush); }
.pdp__badge { position: absolute; left: .9rem; top: .9rem; }
.pdp__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.pdp__price { font-size: var(--step-2); font-weight: 650; margin: .6rem 0 .2rem; font-variant-numeric: tabular-nums; }
.pdp__stock { font-weight: 650; color: var(--pink-deep); margin: 0 0 .8rem; }
.pdp__stock:empty { display: none; }
.pdp__price { margin-bottom: 1rem; }
.pdp__stock[data-stock="sold_out"] { color: var(--hide); }
.pdp__desc { margin-bottom: 1.5rem; max-width: 36rem; }
@media (min-width: 900px) {
  .pdp__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: start; }
  .pdp__media { position: sticky; top: 5.5rem; }
}

.buy { display: grid; gap: 1.25rem; padding: 1.25rem; border: 2px solid var(--hide); border-radius: 14px; background: #fff; box-shadow: 4px 4px 0 var(--pink); }
.field { display: grid; gap: .35rem; }
.field label, .choice legend { font-weight: 650; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field__help { font-size: var(--step--1); font-weight: 600; }
.field__hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field__error { font-size: var(--step--1); color: #b00020; font-weight: 600; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.optional { font-weight: 400; color: var(--muted); }
.field select, .field input, .field textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 2px solid #cdb8bd; border-radius: var(--r-sm); background: #fff;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--hide); outline: 3px solid rgba(194, 24, 91, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b00020; }
.field textarea { min-height: 6rem; resize: vertical; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .45rem .9rem; border: 2px solid #cdb8bd; border-radius: 999px; font-weight: 600; background: #fff; }
.pill em { font-style: normal; color: var(--muted); font-weight: 500; }
.pill__badge { font-size: .7rem; padding: .05rem .4rem; border-radius: 5px; background: var(--pink); color: var(--hide); }
.pill input:checked + span { border-color: var(--hide); background: var(--hide); color: var(--milk); }
.pill input:checked + span em { color: #f3dfe5; }
.pill input:focus-visible + span { outline: 3px solid var(--pink-deep); outline-offset: 2px; }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--hide); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty__btn { width: 2.75rem; height: 3rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.qty__btn:hover { background: var(--blush); }
.qty input { width: 2.75rem; height: 3rem; border: 0; text-align: center; font-weight: 650; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__add { width: 100%; white-space: nowrap; padding-inline: 1rem; }
@media (max-width: 479px) { .buy__add [data-total] { display: none; } .qty__btn { width: 2.5rem; } .qty input { width: 2.25rem; } }
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: var(--step--1); color: var(--muted); }
.facts li { padding-left: 1.3rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--pink); }
@media (min-width: 1100px) { .grid--four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- content pages */
.page { padding-block: 2rem 3.5rem; }
.page__head { margin-bottom: 2rem; }
.page__head .h1 { margin-bottom: .8rem; }
.prose { max-width: 40rem; }
.prose .h3 { margin: 2rem 0 .5rem; }
.prose .h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.callout { margin-top: 2.5rem; padding: 1.25rem 1.4rem; background: var(--blush); border-radius: 14px; border-left: 6px solid var(--pink-deep); max-width: 44rem; }
.callout .h3 { margin-bottom: .35rem; font-size: var(--step-1); }
.callout p { margin: 0; }

/* scent guide */
.bs-panel { margin-bottom: 2.5rem; }
.bs-panel .h3 { margin-bottom: .8rem; }
.bestsellers--wide { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.collections { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.collection { padding: 1.25rem 1.4rem; border: 2px solid var(--hide); border-radius: 14px; background: #fff; }
.collection .h3 { font: 400 var(--step-1)/1.2 var(--display); color: var(--pink-deep); margin-bottom: .7rem; }
.collection ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.collection__note { margin: .9rem 0 0; font-size: var(--step--1); color: var(--muted); }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.event { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.25rem; border: 2px solid var(--hide); border-radius: 14px; background: #fff; }
.event__date { margin: 0; display: grid; place-items: center; align-content: center; width: 4.5rem; height: 4.75rem; border-radius: 12px; background: var(--pink); color: var(--hide); line-height: 1; }
.event__date span { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.event__date strong { font: 400 2rem/1 var(--display); }
.event__body .h3 { margin-bottom: .35rem; }
.event__body p { margin: 0 0 .35rem; }
.event__when { font-weight: 650; }
.event__where { color: var(--muted); }

/* about */
.about__grid { display: grid; gap: 2rem; }
.about__portrait { margin: 0; }
.about__img { width: 100%; max-width: 26rem; border-radius: var(--r-img); }
.about__portrait figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.sign { font: 400 3rem/1 var(--script); color: var(--pink-deep); margin-top: 1.5rem; }
.about__market { display: grid; gap: var(--gap); margin-top: 3rem; }
.about__market-img { width: 100%; border-radius: var(--r-img); }
.about__next { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .about__grid { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; } .about__market { grid-template-columns: 1fr 1fr; } }

/* contact */
.contact__grid { display: grid; gap: 2.5rem; }
.stack { display: grid; gap: 1.1rem; }
.contact__direct { padding: 1.4rem; border-radius: 14px; background: var(--blush); align-self: start; }
.contact__direct .h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #b00020; }
.form-msg.is-ok { color: #1b5e20; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.4fr .8fr; gap: 4rem; } .contact .stack { max-width: 36rem; } }

/* ---------- cart drawer */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100dvh; max-height: 100dvh; width: min(100%, 26rem); max-width: 100%;
  background: var(--milk); color: var(--hide); display: none; flex-direction: column; box-shadow: -10px 0 30px rgba(43, 28, 23, .25);
}
.drawer[open] { display: flex; animation: slide-in .25s ease-out; }
.drawer::backdrop { background: rgba(43, 28, 23, .45); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 400 var(--step-2)/1 var(--display); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; background: #fff; }
.drawer__subtotal { display: flex; justify-content: space-between; font-size: var(--step-1); margin: 0; }
.drawer__foot .fine { margin: 0; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.line { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.line__img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 10px; background: var(--blush); }
.line__name { font-weight: 650; color: var(--hide); text-decoration: none; line-height: 1.3; }
.line__name:hover { text-decoration: underline; }
.line__opts { margin: .2rem 0 .5rem; padding: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }
.line__price { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.line__controls { display: flex; align-items: center; gap: .75rem; }
.line__controls .qty__btn, .line__controls input { height: 2.4rem; width: 2.4rem; }
.line__remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: var(--step--1); padding: .5rem 0; }
.line__remove:hover { color: var(--pink-deep); }
.drawer__empty { color: var(--muted); }

/* ---------- cart page */
.cartpage { min-height: 75vh; }
.cartpage__grid { display: grid; gap: 2rem; }
.checkout { display: grid; gap: 1.25rem; padding: 1.4rem; border: 2px solid var(--hide); border-radius: 14px; background: #fff; box-shadow: 4px 4px 0 var(--pink); align-self: start; }
.option { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 2px solid #cdb8bd; border-radius: var(--r-sm); cursor: pointer; margin-bottom: .5rem; }
.option:has(input:checked) { border-color: var(--hide); background: var(--blush); }
.option input { margin-top: .35rem; accent-color: var(--pink-deep); width: 1.1rem; height: 1.1rem; }
.option span { display: flex; flex-wrap: wrap; gap: .25rem .5rem; flex: 1; }
.option em { font-style: normal; margin-left: auto; font-weight: 650; }
.totals { margin: 0; display: grid; gap: .4rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__sum { padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 700; font-size: var(--step-1); }
.totals__sum dt { color: var(--hide); }
.checkout__pay { margin: 0; text-align: center; }
@media (min-width: 900px) { .cartpage__grid { grid-template-columns: 1.3fr .9fr; gap: 3rem; } }

.thanks, .notfound { text-align: left; max-width: 40rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%); background: var(--hide); color: var(--milk); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 600; z-index: 60; transition: transform .25s ease; max-width: calc(100% - 2rem); }
.toast:not(.is-on) { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.toast.is-on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .footer, .signup, .drawer, .toast { display: none !important; }
}
