/* Mystic Petals — demo storefront
   Palette is provisional: replace with colours sampled from the
   owner's logo/Instagram once available (only the :root block). */
:root {
  /* Taken from the Mystic Petals logo and Instagram graphics:
     black Didone monogram, blush pink, white, pink script, pink blossom line-art. */
  --ink: #1F1B1E;        /* logo black — text, buttons */
  --ink-soft: #5B5157;
  --blush: #F6E1E5;      /* blush pink — page bands */
  --petal: #E9AEBB;      /* petal pink — accents, ribbon */
  --wax: #FFFBFC;        /* near-white page */
  --paper: #FFFFFF;
  --rose-deep: #A3445A;  /* pink that passes contrast for text */
  --flame: #E9A23B;      /* used only for the lit wicks */
  --flame-deep: #A3445A; /* link hover (kept name for compatibility) */
  --leaf: #5E7A5A;
  --line: #EDD9DE;
  --error: #A3263A;
  --radius-s: 6px;
  --radius-l: 14px;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --body: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wax);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--flame-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
small { font-size: .85em; }

:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.narrow { max-width: 760px; }

/* Demo honesty layer */
.demo-bar { background: var(--ink); color: #F3CBD4; font-size: .875rem; text-align: center; padding: .5rem 1rem; }
.demo-bar strong { color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.4; color: #6E4A12; background: #FBF0DC; border: 1px dashed #C89234; border-radius: 999px; padding: .05rem .55rem; vertical-align: .1em; }
.note { font-size: .875rem; color: var(--ink-soft); font-style: italic; }
.badge { position: absolute; top: 12px; left: 12px; font-size: .75rem; font-weight: 700; background: var(--paper); color: var(--ink); border-radius: 999px; padding: .15rem .6rem; }

/* Header */
.site-header { background: var(--wax); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1; }
.brand-word { font-family: var(--display); font-size: 1.3rem; letter-spacing: .22em; }
.brand-script { font-family: var(--script); color: var(--rose-deep); font-size: 1.05rem; margin-top: .1rem; padding-left: .2em; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--petal); }
.cart-link { text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.cart-count { min-width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; background: var(--ink); color: #fff; border-radius: 999px; font-size: .8rem; padding: 0 .4rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); order: 3; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: 0 auto; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--petal); color: var(--ink); border-color: var(--petal); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

/* Hero — the one expressive moment: a bouquet with three lit blooms */
.hero { background: var(--blush); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; min-height: min(76vh, 620px); padding-top: 3rem; padding-bottom: 3rem; }
.script { font-family: var(--script); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--rose-deep); margin: 0 0 .1em; line-height: 1.2; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: .3em; line-height: 1; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-visual { display: grid; place-items: center; }
.hero-art { width: min(100%, 460px); height: auto; filter: drop-shadow(0 18px 30px rgba(163,68,90,.18)); }
.hflame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.8s ease-in-out infinite; }
.hflame-1 { animation-delay: -.9s; animation-duration: 3.3s; }
.hflame-2 { animation-delay: -1.7s; animation-duration: 2.5s; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  25% { transform: scale(.94, 1.06) skewX(-3deg); }
  50% { transform: scale(1.04, .96) skewX(2deg); }
  75% { transform: scale(.97, 1.04) skewX(-1deg); }
}

/* Sections */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head a { font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card-link { text-decoration: none; display: block; }
.card-media { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--paper); aspect-ratio: 1; border: 1px solid var(--line); }
.card-media .art { width: 100%; height: 100%; transition: transform .4s ease; }
.card-link:hover .art { transform: scale(1.03); }
.card h3 { margin: .9rem 0 .3rem; }
.card-blurb { font-size: .95rem; color: var(--ink-soft); margin-bottom: .4rem; }
.price { font-weight: 700; }

.band { background: var(--paper); border-block: 1px solid var(--line); }
.how { padding-block: clamp(48px, 7vw, 88px); }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--petal); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2rem; color: var(--rose-deep); display: block; line-height: 1; margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split p { max-width: 60ch; }
.ig-panel { background: var(--blush); border-radius: var(--radius-l); padding: 2rem; }
.ig-handle { font-family: var(--display); font-size: 1.6rem; margin-bottom: .5rem; }

/* Shop */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.filters a { text-decoration: none; font-weight: 600; font-size: .9rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.product-media .art { width: 100%; border-radius: var(--radius-l); background: var(--paper); }
.product-media .note { margin-top: .6rem; }
.product-info .lede { color: var(--ink-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.variant { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-s); margin-bottom: .5rem; cursor: pointer; }
.variant:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant .v-price { margin-left: auto; font-weight: 700; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); width: 1.15rem; height: 1.15rem; flex: none; }
.buy-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.qty label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.stepper button { width: 44px; height: 46px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--wax); }
.stepper input { width: 3rem; border: 0; text-align: center; font: 700 1rem var(--body); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.small button { width: 36px; height: 38px; }
details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p, details ul { margin: .7rem 0 0; color: var(--ink-soft); }
.product-info details { margin-top: 0; }
.product-info form + details { margin-top: 2rem; }
.related { margin-top: clamp(48px, 8vw, 96px); }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 1.5rem; }
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 1rem 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.line-art .art { border-radius: 12px; }
.line-info a { font-weight: 700; text-decoration: none; }
.line-info p { margin: .15rem 0 .3rem; font-size: .9rem; color: var(--ink-soft); }
.line-total { margin: 0; font-weight: 700; min-width: 5rem; text-align: right; }
.summary { background: var(--paper); border-radius: var(--radius-l); padding: 1.75rem; position: sticky; top: 92px; }
.summary h2 { font-size: 1.4rem; }
.totals { margin: 0 0 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-weight: 700; font-size: 1.15rem; }
.summary .btn { margin-top: .5rem; }
.mini { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.mini small { color: var(--ink-soft); }

.checkout fieldset { background: var(--paper); border-radius: var(--radius-l); padding: 1.5rem; }
.checkout legend { float: left; width: 100%; font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 1rem; }
.checkout legend + * { clear: both; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: 1rem var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid #CBB9C5; border-radius: var(--radius-s); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--rose-deep); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: inset 0 0 0 1px var(--error); }
.err { color: var(--error); font-size: .875rem; font-weight: 600; margin: .3rem 0 0; min-height: 0; }
.err:empty { display: none; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .7rem; align-items: start; }
.field.check label { font-weight: 400; margin: 0; }
.field.check input { margin-top: .3rem; }
.field.check .err { grid-column: 2; }
.field-row { display: grid; grid-template-columns: 1fr 140px; gap: 1rem; }
.option { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: .5rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { margin-top: .3rem; }
.option small { color: var(--ink-soft); }
.form-error { background: #F9E3E7; color: var(--error); border-left: 4px solid var(--error); padding: .9rem 1rem; border-radius: var(--radius-s); font-weight: 700; margin-bottom: 1.25rem; }

.confirm .next { padding-left: 1.2rem; }
.confirm .next li { margin-bottom: .4rem; }
.demo-box { margin: 2rem 0; padding: 1.5rem; border: 2px dashed #C89234; border-radius: var(--radius-l); background: #FBF3E8; }
.demo-box h2 { font-size: 1.3rem; }
.order-text { white-space: pre-wrap; font: .9rem/1.55 ui-monospace, Consolas, monospace; background: var(--paper); padding: 1rem; border-radius: var(--radius-s); overflow-x: auto; }

/* Prose pages */
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .lede { font-size: 1.2rem; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }

/* Newsletter + footer */
.newsletter { background: var(--ink); color: var(--wax); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; padding-block: clamp(48px, 7vw, 80px); align-items: start; }
.newsletter h2 { color: var(--wax); }
.newsletter p { color: #E2D3D8; max-width: 46ch; }
.nl-form label { color: var(--wax); }
.nl-form a { color: var(--petal); }
.nl-form .field input:not([type="checkbox"]) { border-color: transparent; }
.nl-form .err { color: #FFB8C4; }
.nl-status { margin-top: 1rem; color: var(--petal); font-weight: 700; }
.nl-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { background: #151214; color: #E2D3D8; font-size: .95rem; }
.site-footer a { color: var(--wax); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-brand { font-family: var(--display); font-size: 1.5rem; color: var(--wax); margin-bottom: .4rem; }
.footer-h { font-weight: 700; color: var(--wax); margin-bottom: .3rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; font-size: .85rem; }
.footer-base p { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(58,40,64,.3); z-index: 60; font-weight: 600; max-width: calc(100% - 32px); text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cart-layout, .product-grid, .split, .newsletter-inner { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .header-inner { gap: .75rem; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--wax); border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: .9rem clamp(16px, 4vw, 40px); border: 0; }
  .site-nav a[aria-current="page"] { background: var(--paper); }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-art { width: min(78%, 320px); }
  .line { grid-template-columns: 64px 1fr; }
  .line .stepper { grid-column: 2; justify-self: start; }
  .line-total { grid-column: 2; text-align: left; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card h3 { font-size: 1.05rem; }
  .card-blurb { display: none; }
  .brand { font-size: 1.2rem; }
}

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

/* Brand-specific additions */
.price-big { font-family: var(--display); font-size: 1.6rem; margin: -.2rem 0 .4rem; }
.occasions h2 { max-width: 22ch; }
.occasion-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.occasion-list a { display: block; height: 100%; text-decoration: none; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); }
.occasion-list a:hover { border-color: var(--petal); color: var(--ink); }
.occasion-list strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; margin-bottom: .3rem; }
.occasion-list span { color: var(--ink-soft); font-size: .95rem; }
.blossom { display: block; width: 120px; margin: 0 auto .5rem; color: var(--petal); }
@media (max-width: 760px) { .occasion-list { grid-template-columns: 1fr; } }

/* Checkout payment additions */
.enquire { background: var(--blush); border-radius: var(--radius-l); padding: 1.25rem 1.5rem; margin: 1rem 0 1.5rem; }
.enquire .btn { margin: .5rem .5rem 0 0; }
.secure-note { font-size: .875rem; color: var(--ink-soft); margin-top: .9rem; }
.btn:disabled { opacity: .65; cursor: progress; }
.confirm .mini { margin-top: 1.5rem; }
.confirm .btn { margin-top: 1.5rem; }

/* Address suggestions */
.hint { font-size: .85rem; color: var(--ink-soft); margin: -.15rem 0 .4rem; }
.combo { position: relative; }
.combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 28px rgba(31,27,30,.14); overflow: hidden; }
.combo-pop ul { list-style: none; margin: 0; padding: 4px 0; max-height: 280px; overflow-y: auto; }
.combo-pop li { padding: .65rem .9rem; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.combo-pop li span { font-size: .85rem; color: var(--ink-soft); }
.combo-pop li[aria-selected="true"], .combo-pop li:hover { background: var(--blush); }
.combo-credit { margin: 0; padding: .35rem .9rem; font-size: .75rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
