/* Vanilys — brand palette carried over from the Shopify theme */
:root {
  /* Palette sampled from the Vanilys logo */
  --cream: #fbf7f5;     /* logo background */
  --blush: #f3edf5;     /* light lavender wash */
  --sand: #e3d8e8;      /* lavender borders */
  --ink: #2e2733;       /* body text (plum-tinted near black) */
  --plum: #5e4468;      /* buttons, headings accents — 8:1 contrast on cream */
  --lavender: #9a7aa4;  /* logo script colour */
  --muted: #6e6573;
  --gold: #9a7aa4;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); letter-spacing: .01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--plum); line-height: 1.15; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 48px 20px; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head .section-title { text-align: left; }
.sr, .hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; border: 1px solid var(--plum); background: transparent; color: var(--plum); padding: 13px 28px; font: 600 .95rem var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background .2s, color .2s; }
.btn--dark { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn--dark:hover { background: #4a3453; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--plum); }
.btn--light:hover { background: var(--sand); }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--full { width: 100%; text-align: center; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }

/* Header */
.announce { background: var(--plum); color: var(--cream); text-align: center; font-size: .85rem; padding: 8px 16px; letter-spacing: .04em; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 50; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 8px; padding-bottom: 6px; }
.logo { grid-column: 2; display: block; line-height: 0; }
.logo img { width: 96px; height: 96px; }
.header-icons { grid-column: 3; justify-self: end; display: flex; gap: 14px; }
.icon-link { position: relative; display: inline-flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--plum); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.nav-toggle { grid-column: 1; justify-self: start; display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; padding-bottom: 12px; margin: 0 auto; }
.main-nav a { text-decoration: none; font-size: .95rem; padding: 4px 0; }
.main-nav a:hover, .main-nav a[aria-current] { text-decoration: underline; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; border-top: 1px solid var(--sand); }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 12px 20px 20px; }
  .main-nav a { font-size: 1.1rem; }
  .logo img { width: 68px; height: 68px; }
}

.flash { background: var(--blush); border-left: 3px solid var(--gold); padding: 12px 16px; margin-top: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }

/* Hero */
.hero { position: relative; min-height: 70vh; display: grid; align-items: end; justify-items: center; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05) 60%); }
.hero-box { position: relative; z-index: 1; text-align: center; color: #fff; padding: 40px 20px 56px; max-width: 820px; }
.hero h1 { color: #fff !important; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero h1 span { display: block; font-style: italic; font-size: .7em; margin-top: .2em; }
.hero p { font-size: 1.15rem; }

/* Promo banner hero (image carries its own text) */
.hero--banner { min-height: 0; display: block; overflow: visible; }
.hero--banner::after { display: none; }
.hero-link { display: block; line-height: 0; background: #fcefe0; }
.hero--banner picture { display: block; max-width: 1400px; margin: 0 auto; }
.hero--banner img { position: static; display: block; width: 100%; height: auto; }
.hero-intro { text-align: center; padding-top: 32px; padding-bottom: 8px; }
.hero-intro h1 { color: var(--plum) !important; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.hero-intro h1 span { display: block; font-style: italic; font-size: .72em; color: var(--lavender); }
.hero-intro p { color: var(--muted); }
.hero-scents { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hero-scents .btn { padding: 10px 18px; font-size: .82rem; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--blush); transition: transform .4s; }
.tile:hover img { transform: scale(1.02); }
.tile-name { font: 500 1.35rem var(--serif); }
.tile-sub { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile:last-child { grid-column: span 2; } .tile:last-child img { aspect-ratio: 16/9; } }

/* Product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card a { text-decoration: none; display: block; }
.card-media { position: relative; background: var(--blush); overflow: hidden; }
.card-media img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform .4s; }
.card a:hover img { transform: scale(1.03); }
.card-title { font: 600 1rem/1.35 var(--sans); margin: 12px 0 4px; }
.card--soldout img { opacity: .6; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--cream); color: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge--dark { background: var(--plum); color: var(--cream); }
.price { margin: 0; }
.price s { color: var(--muted); margin-right: 6px; }
.price--lg { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price--lg .badge { position: static; background: var(--sand); }

/* About band + promises */
.about-band { background: var(--blush); padding: 64px 0; text-align: center; }
.about-inner { max-width: 760px; }
.about-inner p { font-size: 1.1rem; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.promises strong { display: block; font: 500 1.3rem var(--serif); }
.promises span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { border-bottom: 1px solid var(--sand); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.faq-group { margin-top: 36px; font-size: 1.6rem; }
.faq-block { margin: 56px auto 0; }

/* Collection */
.collection-head { max-width: 780px; margin: 0 auto 32px; text-align: center; }
.intro { color: var(--muted); }
.count { color: var(--muted); font-size: .9rem; }

/* Product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 24px; padding-bottom: 48px; }
.product-media img[data-main-img] { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--blush); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.eyebrow a { text-decoration: none; }
.stock { font-size: .9rem; }
.stock.in::before { content: "●"; color: #5a8a5a; margin-right: 6px; }
.stock.out { color: var(--muted); }
.add-form { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 20px 0 12px; }
.qty { display: inline-flex; border: 1px solid var(--ink); }
.qty button { width: 40px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 32px; } .qty--sm input { width: 38px; padding: 6px 0; }
.ship-note { font-size: .88rem; color: var(--muted); }
.description { margin-top: 24px; }
.notes { background: var(--blush); padding: 20px 24px; margin: 24px 0; }
.notes h2 { font-size: 1.4rem; }
.notes dl { margin: 0; display: grid; gap: 8px; }
.notes dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.notes dt { font-weight: 600; }
.notes dd { margin: 0; }
.facts { padding-left: 1.1em; color: var(--muted); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 24px; } }

/* Cart */
.cart table { width: 100%; border-collapse: collapse; }
.cart th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--sand); padding: 8px 0; }
.cart td { border-bottom: 1px solid var(--sand); padding: 16px 0; vertical-align: top; }
.cart .num { text-align: right; }
.cart-prod { display: flex; gap: 14px; align-items: flex-start; }
.cart-summary { margin: 28px 0 0 auto; max-width: 360px; }
.cart-summary p:first-child { display: flex; justify-content: space-between; font-size: 1.15rem; }
.continue { display: block; text-align: center; margin-top: 14px; font-size: .9rem; }
.free-bar { background: var(--blush); padding: 12px 16px; text-align: center; }
.free-bar--ok { background: #e9efe6; }
.fine { font-size: .82rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input:not([type]), input[type=email], input[type=text], input[type=tel], input[type=search], textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #bfb3ad; background: var(--white); border-radius: var(--radius); width: 100%;
}
.errors { background: #fbeaea; border-left: 3px solid #b44; padding: 10px 16px; }
.search-form { display: flex; gap: 10px; max-width: 600px; margin-bottom: 20px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.lead { font-size: 1.2rem; }

/* Footer */
.site-footer { background: var(--blush); margin-top: 48px; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; } .footer-grid a:hover { text-decoration: underline; }
.footer-title { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.logo--footer { margin-bottom: 12px; display: block; width: 120px; height: 120px; }
.social { display: flex !important; gap: 14px !important; margin-top: 12px !important; }
.newsletter { display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--sand); margin-top: 40px; padding-top: 20px; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: span 2; } }

/* Account icon + login pop-up */
.account-link { position: relative; }
.account-dot { position: absolute; right: 3px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); border: 2px solid var(--cream); }
.login-modal { border: 0; padding: 32px 28px 24px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px rgba(46,39,51,.25); border-radius: 6px; }
.login-modal::backdrop { background: rgba(46,39,51,.45); backdrop-filter: blur(2px); }
.modal-open { overflow: hidden; }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.modal-logo { margin: 0 auto 8px; width: 72px; height: 72px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--sand); margin-bottom: 18px; }
.auth-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px; font: 600 .95rem var(--sans); color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.auth-tabs button[aria-selected="true"] { color: var(--plum); border-bottom-color: var(--plum); }
.auth-panel { display: grid; gap: 14px; }
.auth-panel[hidden] { display: none; }
.auth-panel label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
.auth-panel label small { font-weight: 400; color: var(--muted); }
.auth-panel label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.auth-panel .linkbtn { justify-self: center; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-msg { background: #fbeaea; border-left: 3px solid #b44; padding: 10px 12px; font-size: .9rem; margin: 0 0 14px; }
.auth-msg.is-ok { background: #e9efe6; border-left-color: #5a8a5a; }
input[type=password] { font: inherit; padding: 12px 14px; border: 1px solid #bfb3ad; background: var(--white); border-radius: var(--radius); width: 100%; }
.account-login .auth { max-width: 440px; }

/* Password fields: eye toggle + match message */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px !important; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; line-height: 0; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--plum); }
.pw-match { margin: -6px 0 0; font-size: .85rem; color: #a33; }
.pw-match.is-ok { color: #4f7d4f; }
input::-ms-reveal, input::-ms-clear { display: none; }

/* Wishlist hearts */
.card { position: relative; }
.wish-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.wish { background: rgba(251,247,245,.92); border: 0; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--plum); cursor: pointer; }
.wish svg path { fill: transparent; transition: fill .15s; }
.wish.is-saved svg path { fill: var(--plum); }
.wish:hover svg path { fill: rgba(94,68,104,.25); }
.wish.is-saved:hover svg path { fill: var(--plum); }
.wish--text { width: auto; height: auto; border-radius: 0; background: none; display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; font: inherit; font-size: .92rem; }
.wish-inline { margin: 0 0 6px; }

/* Account page */
.account-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--sand); padding-bottom: 12px; margin: 8px 0 28px; }
.account-nav a { text-decoration: none; font-weight: 600; color: var(--plum); }
.account-block { margin-bottom: 48px; scroll-margin-top: 170px; }
.notice { background: var(--blush); border-left: 3px solid var(--lavender); padding: 12px 16px; margin: 12px 0 20px; }
form.inline { display: inline; }
.order { border: 1px solid var(--sand); background: var(--white); margin-bottom: 10px; }
.order summary { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.order-status { font-size: .8rem; background: #e9efe6; padding: 3px 10px; border-radius: 20px; }
.order[open] summary { border-bottom: 1px solid var(--sand); }
.order > *:not(summary) { margin-left: 16px; margin-right: 16px; }
.order-items { width: calc(100% - 32px); border-collapse: collapse; margin-top: 10px; margin-bottom: 10px; }
.order-items td { padding: 6px 0; border-bottom: 1px solid var(--blush); }
.order-items .num, .order .num { text-align: right; }
.order-items tr.sub td { border: 0; color: var(--muted); }
.order form { display: block; margin-bottom: 16px; }
.form--grid { grid-template-columns: 1fr 1fr; max-width: 720px; }
.form--grid .span2 { grid-column: span 2; }
.form select { font: inherit; padding: 12px 14px; border: 1px solid #bfb3ad; background: var(--white); border-radius: var(--radius); width: 100%; }
.form input:disabled { background: var(--blush); color: var(--muted); }
.pw summary { cursor: pointer; color: var(--plum); font-weight: 600; margin-bottom: 10px; }
.pw label { margin-bottom: 10px; }
@media (max-width: 640px) { .form--grid { grid-template-columns: 1fr; } .form--grid .span2 { grid-column: auto; } .auth-row { grid-template-columns: 1fr; } }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--white); border: 1px solid var(--sand); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 20px; z-index: 90; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 10px 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
