/* Scentastic Scents with Jaye
   Palette: the logo's teal, light aqua washes, a touch of sun yellow, deep slate ink. */

:root {
  --paper: #f9fcfc;
  --wash: #d9ecef;          /* light aqua, hero and highlight sections */
  --wash-2: #e8f3f5;        /* paler aqua */
  --sun: #f4d67a;           /* small warm accent, flower centres and count badge */
  --ink: #1f3b45;
  --ink-soft: #4a6670;
  --heading: #3b6c7c;       /* logo teal, darkened for contrast (6:1 on white) */
  --accent: #3b6c7c;        /* buttons and links */
  --accent-dark: #2b5160;
  --teal: #4e8391;          /* the logo's own teal */
  --petal: #b5d4da;         /* the logo's light ring */
  --leaf: #3f8a86;
  --leaf-dark: #2c5f66;
  --line: #d3e2e6;
  --error: #9c1f43;
  --error-bg: #fde8ee;

  --t-floral: #e2eef2;
  --t-fresh: #dcefe6;
  --t-fruity: #f6ead0;
  --t-masculine: #dfe4ee;
  --t-sweet: #ebe3f0;
  --t-wine: #eadde3;
  --t-seasonal: #f5efd2;
  --t-melt: #f3e6dc;
  --t-sway: #d5ecef;

  --display: "Oregano", "Georgia", cursive, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--heading); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; }
.bar {
  display: flex; align-items: center; gap: 20px;
  padding: 6px var(--gutter);
  background: rgba(249, 252, 252, 0.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; margin-right: auto; line-height: 0; }
.brand img { width: 64px; height: 64px; }
.bar nav { display: flex; gap: 20px; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-underline-offset: 5px; }
.cart-btn {
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 16px; display: inline-flex; align-items: center; gap: 10px;
}
.cart-btn:hover { background: #33606d; }
.cart-btn .count { background: var(--sun); color: var(--ink); min-width: 1.6em; padding: 0 0.45em; border-radius: 999px; text-align: center; font-size: 0.9em; }
.cart-btn.bump .count { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 860px) { .bar nav { display: none; } .brand img { width: 52px; height: 52px; } }

/* mobile nav row under the bar */
.subnav { display: none; }
@media (max-width: 860px) {
  .subnav { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
  .subnav a { flex: 0 0 auto; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px; font-weight: 500; }
  .subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  border-radius: 999px; padding: 12px 24px; text-align: center;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  background: var(--wash); padding: clamp(40px, 8vw, 96px) var(--gutter);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(16px, 4vw, 56px);
  align-items: center; overflow: hidden;
}
.hero-copy { max-width: 620px; margin-left: auto; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.8rem); margin-bottom: 0.4em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { max-width: 460px; width: 100%; margin-right: auto; }
.sprig { width: 100%; height: auto; overflow: visible; }
.sprig .stem { fill: none; stroke: var(--leaf-dark); stroke-width: 5; stroke-linecap: round; }
.lf { fill: var(--leaf); }
.bl { --petal-c: var(--petal); --heart-c: var(--sun); }
.sprig .b1, .sprig .b5 { --petal-c: var(--teal); --heart-c: var(--sun); }
.sprig .b3, .sprig .b4 { --petal-c: #fff; --heart-c: var(--teal); }
.sprig .bl, .sprig .lf { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .sprig .bl { animation: open 0.9s cubic-bezier(.2,.8,.3,1) both; }
  .sprig .b1 { animation-delay: 0.10s; } .sprig .b2 { animation-delay: 0.30s; }
  .sprig .b3 { animation-delay: 0.50s; } .sprig .b4 { animation-delay: 0.65s; } .sprig .b5 { animation-delay: 0.80s; }
  @keyframes open { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { margin: 0; }
  .hero-art { max-width: 280px; margin: 8px auto 0; }
}

/* page heading strip on product pages */
.page-hero { background: var(--wash); padding: clamp(32px, 6vw, 64px) var(--gutter); }
.page-hero > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: 0.3em; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: clamp(44px, 7vw, 80px) var(--gutter); }
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; }
section h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.section-note { color: var(--ink-soft); }

/* ---------- Deal banner ---------- */
.deal {
  max-width: var(--max); margin: 0 auto 28px; padding: 18px 22px;
  background: #fff; border: 2px dashed var(--petal); border-radius: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; align-items: center;
}
.deal p { margin: 0; }
.deal-home { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; gap: 14px 28px; margin-bottom: 30px; }
.deal-home .deal-group { display: grid; gap: 2px; }
.deal-home .deal-label { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.deal-home .deal-note { color: var(--ink-soft); font-size: 0.93rem; }
.deal-home .deal-foot { grid-column: 1 / -1; font-weight: 500; border-top: 2px dashed var(--line); padding-top: 12px; }
.deal-simple { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.deal-simple .deal-title { flex: 1 1 100%; }
.deal .deal-title { font-family: var(--display); color: var(--heading); font-size: 1.6rem; grid-column: 1 / -1; }
.deal .tier { font-weight: 700; }
.deal .tier b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--heading); margin-right: 4px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--max); margin: 0 auto 24px; }
.chip { font: inherit; font-weight: 500; cursor: pointer; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 7px 16px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.status { color: var(--ink-soft); min-height: 1.5em; max-width: var(--max); margin: 0 auto 8px; }

/* ---------- Catalog ---------- */
.grid { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; }
.card .photo { position: relative; border-radius: 28px 28px 28px 8px; overflow: hidden; aspect-ratio: 1; background: var(--tint, var(--t-floral)); display: grid; place-items: center; }
.card .photo img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.card .photo .corner { position: absolute; right: -14px; top: -14px; width: 64px; height: 64px; opacity: 0.9; pointer-events: none; --petal-c: #fff; --heart-c: var(--sun); }
.card h3 { font-size: 1.6rem; margin: 14px 0 4px; }
.card .fam { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 6px; }
.card .desc { font-size: 0.97rem; margin: 0 0 12px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card .price { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.card .price small { display: block; font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.add { font: inherit; font-weight: 700; cursor: pointer; background: #fff; color: var(--accent-dark); border: 2px solid var(--accent); border-radius: 999px; padding: 8px 16px; }
.add:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.add[aria-pressed="true"] { background: var(--leaf-dark); border-color: var(--leaf-dark); color: #fff; }

/* ---------- Scent of the month ---------- */
.feature { background: var(--wash-2); }
.feature-card { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; }
.feature-card .photo { border-radius: 36px 36px 36px 10px; aspect-ratio: 1; background: var(--tint, var(--t-floral)); display: grid; place-items: center; overflow: hidden; }
.feature-card .photo img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.feature-card h3 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 8px; }
.feature-card .price { font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
@media (max-width: 640px) { .feature-card { grid-template-columns: 1fr; } .feature-card .photo { max-width: 300px; } }

/* ---------- Category tiles ---------- */
.tiles { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tile { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: 32px 32px 32px 10px; padding: 26px 24px 28px; min-height: 200px; overflow: hidden; }
.tile:hover { transform: translateY(-3px); }
.tile h3 { font-size: 2.3rem; margin-bottom: 6px; }
.tile p { margin: 0 0 14px; max-width: 26ch; }
.tile .go { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; color: var(--heading); }
.tile.t-candles { background: var(--t-floral); }
.tile.t-melts { background: var(--t-melt); }
.tile.t-sways { background: var(--t-sway); }
.tile .corner { position: absolute; right: -18px; bottom: -18px; width: 110px; height: 110px; opacity: 0.85; --petal-c: #fff; --heart-c: var(--sun); }
@media (prefers-reduced-motion: no-preference) { .tile { transition: transform .2s ease; } }

/* ---------- How ---------- */
.how { background: var(--wash); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 12px auto 0; max-width: var(--max); display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; padding-left: 58px; position: relative; max-width: 34ch; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--display); font-size: 1.25rem; display: grid; place-items: center; }
.steps strong { display: block; font-size: 1.1rem; }
.how-extra { max-width: var(--max); margin: 22px auto 0; font-weight: 500; }

/* ---------- Events ---------- */
.events-list { list-style: none; padding: 0; margin: 12px auto 0; max-width: var(--max); display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 14px 18px; }
.event .when { text-align: center; background: var(--wash-2); border-radius: 16px; padding: 8px 4px; line-height: 1.15; }
.event .when .mo { font-weight: 700; color: var(--heading); }
.event .when .dy { font-family: var(--display); font-size: 2.2rem; color: var(--heading); }
.event h3 { font-size: 1.5rem; margin-bottom: 2px; }
.event p { margin: 0; color: var(--ink-soft); }
.event .place { color: var(--ink); font-weight: 500; }
.events-empty { max-width: var(--max); margin: 0 auto; color: var(--ink-soft); }

/* ---------- Find me / about ---------- */
.find { background: var(--t-fresh); }
.find .wrap p { max-width: 62ch; }
.about { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.about-logo { width: clamp(160px, 26vw, 300px); height: auto; }
.contact { list-style: none; padding: 0; margin: 0 0 16px; font-size: 1.15rem; }
.contact li { margin-bottom: 4px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about-logo { justify-self: start; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--wash-2); }
.nl-form { max-width: 620px; margin: 8px 0 0; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.nl-row .field { margin: 0; }
.hp { position: absolute; left: -5000px; height: 0; width: 0; overflow: hidden; }
.fine { font-size: 0.88rem; color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 640px) { .nl-row { grid-template-columns: 1fr; } .nl-row .btn { width: 100%; } }

/* ---------- Quick links ---------- */
.quick { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.quick a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px 20px; }
.quick a:hover { border-color: var(--accent); }
.quick strong { display: block; font-family: var(--display); font-weight: 400; color: var(--heading); font-size: 1.6rem; margin-bottom: 2px; }
.quick span { color: var(--ink-soft); }

/* ---------- Footer / socials ---------- */
.foot { background: var(--ink); color: #dcebee; padding: 32px var(--gutter); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; font-size: 0.95rem; max-width: none; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-block; color: #fff; text-decoration: none; border: 2px solid rgba(255,255,255,.4); border-radius: 999px; padding: 5px 14px; font-weight: 500; }
.socials a:hover { background: #fff; color: var(--ink); }

/* ---------- Request drawer ---------- */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); max-width: 100vw; padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: -12px 0 40px rgba(31, 59, 69, 0.25); }
.drawer::backdrop { background: rgba(31, 59, 69, 0.45); }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--wash); }
.drawer-head h2 { font-size: 2rem; margin: 0; }
.close { font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 0 6px; border-radius: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.empty { color: var(--ink-soft); }
.picked { list-style: none; padding: 0; margin: 0 0 12px; }
.picked li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.picked img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--wash-2); mix-blend-mode: multiply; }
.picked .nm { font-weight: 700; line-height: 1.25; }
.picked .pr { font-size: 0.92rem; color: var(--ink-soft); }
.picked .free { background: var(--t-fresh); border-radius: 14px; padding: 10px 12px; grid-template-columns: 1fr; border-bottom: 0; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty button:hover { border-color: var(--accent); }
.qty output { min-width: 1.4em; text-align: center; font-weight: 700; }
.summary { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 18px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; margin: 0; max-width: none; }
.summary .save { color: var(--leaf-dark); font-weight: 500; }
.summary .total { font-weight: 700; font-size: 1.15rem; border-top: 2px solid var(--line); margin-top: 8px; padding-top: 8px; }
.hint { margin: 8px 0 0; color: var(--leaf-dark); font-weight: 500; font-size: 0.95rem; max-width: none; }

.field { margin-bottom: 14px; }
label, legend { display: block; font-weight: 700; margin-bottom: 4px; }
legend { padding: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.reach { border: 2px dashed var(--petal); border-radius: 16px; padding: 14px 14px 2px; margin: 0 0 14px; }
.err { color: var(--error); font-size: 0.93rem; margin: 4px 0 0; }
.err:empty { display: none; }
.form-msg { margin: 8px 0 0; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--leaf-dark); background: var(--t-fresh); padding: 12px 14px; border-radius: 12px; }
.form-msg.bad { color: #8a1b3c; background: var(--error-bg); padding: 12px 14px; border-radius: 12px; }
@media (max-width: 560px) { .drawer { width: 100vw; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}


