/* ============================================================
   ANAYA BAKING: refined theme taken from the logo
   Deep plum + soft lavender-ivory, with the logo's pink and mint
   used sparingly. Hairline borders, generous space, editorial serif.
   Script lettering is kept for a few signature words only.
   Class names are the same as the Cakery template.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:wght@400;500;600;700&family=Great+Vibes&display=swap');

:root {
    /* ---- brand colours (from the logo) ---- */
    --cocoa: #2e2147;       /* deep plum: text, buttons, dark sections */
    --cream: #faf7fc;       /* page background */
    --blush: #f1eaf8;       /* soft lavender panels */
    --blush-soft: #f6f1fa;
    --rose: #7a55c2;        /* logo purple: small accents, hover */
    --gold: #1f8a83;        /* logo mint, deepened */
    --pink: #f4b9ca;        /* cake pink */
    --pink-soft: #fdeef2;
    --mint: #bfeae4;
    --lilac: #b9a4e3;
    --line: #e8e0f1;
    --dash: rgba(122, 85, 194, .3);
    --muted: #675b7b;
    --wa: #128c7e;
    --wa-dark: #0d6e63;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Great Vibes', 'Brush Script MT', cursive;
    --sans: 'DM Sans', Arial, sans-serif;
    --shadow-soft: 0 28px 50px -30px rgba(46, 33, 71, .4);
}

* { box-sizing: border-box }

html { scroll-behavior: smooth }

body {
    margin: 0;
    background: var(--cream);
    color: var(--cocoa);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased
}

button, input, select { font: inherit }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
::selection { background: var(--pink); color: var(--cocoa) }

/* Placeholder + image layering (used by hero, cards, story, modal) */
.ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    opacity: 1
}

/* ---------- Announcement + header ---------- */
.announcement {
    background: #21173a;
    color: #e7dcf6;
    text-align: center;
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: 2.6px;
    text-transform: uppercase
}

.header {
    height: 82px;
    padding: 0 6.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 247, 252, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line)
}

.brand { display: flex; align-items: center; gap: 12px }
.brand-logo { height: 50px; width: auto; border-radius: 50% }

.brand-text { font: 700 27px/1 var(--serif); letter-spacing: .4px }
.brand-text small { display: block; font: 21px/1 var(--script); color: var(--rose); margin-top: 3px; letter-spacing: 0 }

.nav { display: flex; gap: 34px; font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase }
.nav a { padding: 10px 0; position: relative; color: var(--cocoa) }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s
}
.nav a:hover { color: var(--rose) }
.nav a:hover::after { transform: scaleX(1) }

.header-right { display: flex; align-items: center; gap: 16px }
.icon-btn { border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--cocoa) }
.menu-btn { display: none }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--cocoa);
    color: #fff;
    padding: 16px 32px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 1px solid var(--cocoa);
    border-radius: 999px;
    cursor: pointer;
    transition: background .3s, border-color .3s, color .3s, transform .3s
}
.btn:hover { background: var(--rose); border-color: var(--rose); transform: translateY(-2px) }

.btn-wa { background: var(--wa); border-color: var(--wa) }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark) }

/* ---------- Hero (deep plum, echoing the footer) ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding: 72px 6.5% 64px;
    min-height: 640px;
    background:
        radial-gradient(circle at 82% 18%, rgba(122, 85, 194, .42), transparent 48%),
        radial-gradient(circle at 8% 100%, rgba(244, 185, 202, .14), transparent 42%),
        linear-gradient(160deg, #36264f, #21173a);
    color: #f5eefc;
    overflow-x: clip
}

.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 3.4px; text-transform: uppercase; color: var(--mint) }

.hero h1 { font: 500 clamp(46px, 6.4vw, 88px)/1 var(--serif); letter-spacing: -.01em; margin: 22px 0; color: #fff }
.hero h1 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.12em; line-height: 1; color: var(--pink) }

.hero p { font-size: 15px; line-height: 1.95; color: #d3c6e8; max-width: 440px }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px }
.hero .btn { background: #fff; color: var(--cocoa); border-color: #fff }
.hero .btn:hover { background: var(--pink); border-color: var(--pink); color: var(--cocoa) }
.hero .btn-wa { background: var(--wa); border-color: var(--wa); color: #fff }
.hero .btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff }

.hero-art {
    position: relative;
    width: 100%;
    max-width: 440px;
    justify-self: center;
    aspect-ratio: 4/5;
    border-radius: 220px 220px 28px 28px;
    overflow: hidden;
    background: #3a2a5c;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65)
}
.hero-art .ph { font-size: 140px }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }

/* slim highlights bar under the hero */
.ticker {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 46px;
    padding: 20px 16px;
    background: #21173a;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #cdbfe6;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.6px;
    text-transform: uppercase
}
.ticker span:nth-child(even) { color: var(--pink) }

/* ---------- Sections ---------- */
.section { padding: 96px 6.5% }

.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 38px }

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 600 11px/1.2 var(--sans);
    letter-spacing: 3.2px;
    text-transform: uppercase;
    color: var(--rose)
}
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7 }

.section h2 { font: 500 clamp(36px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -.01em; margin: 14px 0 0 }
.sub { font-size: 13px; color: var(--muted); line-height: 1.8 }

/* ---------- Collections ---------- */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px }

.category {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 22px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    transition: transform .4s, box-shadow .4s, border-color .4s
}
.category:nth-child(even) { background: var(--blush-soft) }
.category:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--lilac) }

.cat-emoji { font-size: 44px; margin-bottom: auto }
.category b { font: 600 25px var(--serif) }
.category small { font-size: 11px; color: var(--muted) }
.category em { font-style: normal; font-size: 9px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--rose); margin-top: 8px }

/* ---------- Catalogue ---------- */
.catalogue { background: #fff }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 26px 0 36px }

.search {
    flex: 1;
    min-width: 190px;
    max-width: 330px;
    border: 1px solid var(--line);
    padding: 14px 22px;
    background: var(--cream);
    font-size: 12px;
    outline: none;
    border-radius: 999px;
    transition: border-color .25s, box-shadow .25s
}
.search:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(122, 85, 194, .1) }

.filters { display: flex; gap: 8px; flex-wrap: wrap }

.filter, .sort {
    border: 1px solid var(--line);
    background: #fff;
    padding: 12px 20px;
    font-size: 11px;
    color: var(--cocoa);
    cursor: pointer;
    border-radius: 999px;
    transition: .25s
}
.filter:hover { border-color: var(--cocoa) }
.filter.active, .size-btn.active { background: var(--cocoa); border-color: var(--cocoa); color: #fff }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px }

.product-card { min-width: 0 }

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--blush);
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    transition: box-shadow .4s
}
.product-card:hover .product-image { box-shadow: var(--shadow-soft) }
.product-image .ph { font-size: 64px }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--blush); transition: transform .7s cubic-bezier(.2, .7, .2, 1) }
.product-card:hover .product-image img { transform: scale(1.06) }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--cocoa);
    color: #fff;
    padding: 7px 12px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.4px;
    border-radius: 999px;
    text-transform: uppercase
}

.tag-eggless, .tag-seasonal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .94);
    padding: 6px 11px;
    font-size: 9px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px
}
.tag-seasonal { color: #8c3f5d; letter-spacing: .5px }
.tag-eggless i { width: 8px; height: 8px; border-radius: 50%; background: #2e9e4f; display: block }

.quick-view {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .96);
    border: 0;
    padding: 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: .3s;
    border-radius: 999px
}
.product-card:hover .quick-view { opacity: 1; transform: none }

.product-info { padding: 16px 2px 0 }

.product-category { font-size: 9px; color: var(--rose); font-weight: 600; letter-spacing: 2px; text-transform: uppercase }
.product-name { font: 600 21px/1.2 var(--serif); margin: 8px 0 12px; cursor: pointer }

.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px }
.price { font-weight: 700 }
.price .from, .price .unit { font-weight: 400; color: var(--muted); font-size: 10px }

.card-wa {
    border: 1px solid var(--line);
    color: var(--wa);
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    transition: .25s
}
.card-wa:hover { background: var(--wa); border-color: var(--wa); color: #fff }

.empty { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--muted) }

/* ---------- How to order ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px 30px;
    transition: transform .35s, box-shadow .35s
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft) }

.num {
    display: block;
    width: auto;
    height: auto;
    background: none;
    color: var(--lilac);
    font: 500 54px/1 var(--serif);
    margin-bottom: 14px
}

.step h3 { font: 600 25px var(--serif); margin: 0 0 8px }
.step p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; background: var(--blush) }
.story-image { position: relative; min-height: 360px; background: #e3d8f3 }
.story-image .ph { font-size: 110px }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }

.story-copy { padding: 9%; display: flex; flex-direction: column; justify-content: center }
.story-copy h2 { font: 500 48px/1.06 var(--serif); margin: 14px 0 }
.story-copy p { font-size: 14px; line-height: 2; color: var(--muted); max-width: 420px }

/* ---------- QR section ---------- */
.qr-section { background: var(--cream) }
.qr-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; max-width: 980px; margin: 0 auto }
.qr-copy h2 { font: 500 clamp(36px, 4.6vw, 54px)/1.05 var(--serif); margin: 12px 0 14px }
.qr-copy p { font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 430px; margin: 0 }
.qr-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px }
.btn-ghost { background: transparent; color: var(--cocoa) }
.btn-ghost:hover { color: #fff }
.qr-card {
    justify-self: center;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
    transform: rotate(2deg);
    transition: transform .4s
}
.qr-card:hover { transform: rotate(0) }
.qr-card-inner { text-align: center; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 20px }
.qr-title { font: italic 600 32px/1 var(--serif) }
.qr-title small { display: block; font: 600 11px/1 var(--sans); font-style: normal; color: var(--rose); margin-top: 10px; letter-spacing: 2px; text-transform: uppercase }
.qr-card img { width: 100%; max-width: 240px; height: auto; margin: 20px auto; background: #fff; border-radius: 8px }
.qr-card p { font-size: 14px; line-height: 1.6; margin: 0 0 14px }
.qr-url { font-size: 11px; color: var(--muted); letter-spacing: .5px }

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    padding: 100px 20px;
    background:
        radial-gradient(circle at 50% 0, rgba(122, 85, 194, .45), transparent 60%),
        linear-gradient(160deg, #36264f, #21173a);
    color: #fff
}
.cta .kicker { justify-content: center; color: var(--pink) }
.cta h2 { font: 400 clamp(48px, 7.2vw, 78px)/1.05 var(--script); margin: 12px }
.cta p { font-size: 14px; color: #d3c6e8; margin-bottom: 30px }
.cta .btn { background: #fff; color: var(--cocoa); border-color: #fff }
.cta .btn:hover { background: var(--pink); border-color: var(--pink) }
.cta .btn-wa { background: var(--wa); border-color: var(--wa); color: #fff }
.cta .btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark) }

/* ---------- Footer (kept as approved) ---------- */
.footer { position: relative; background: #21173a; color: #eee; padding: 60px 6.5% 25px }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 35px }
.footer .brand-text { color: #fff }
.footer .brand-text small { color: var(--pink) }
.footer p { font-size: 13px; color: #bdb0d4; line-height: 1.9; max-width: 270px }
.footer h4 { font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--mint) }
.footer-top a { display: block; font-size: 13px; color: #d6cbea; margin: 13px 0; transition: color .2s, transform .2s }
.footer-top a:hover { color: #fff; transform: translateX(3px) }
.copyright {
    border-top: 1px dashed #4d3f72;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 9px;
    color: #a798c4;
    display: flex;
    justify-content: space-between;
    letter-spacing: 1px
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 14px 28px -8px rgba(18, 140, 126, .65);
    transition: .25s
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px) }
.wa-float span { font-size: 18px }

/* ---------- Hero collage (rotating cards) ---------- */
.hero-collage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.05; justify-self: center }

.collage-glow {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(185, 164, 227, .5) 0%, rgba(122, 85, 194, .22) 55%, transparent 72%);
    animation: breathe 6s ease-in-out infinite
}

.collage-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); animation: spin 45s linear infinite }

.collage-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 66%;
    margin: 0;
    padding: 10px 10px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .6);
    opacity: 0;
    z-index: 0;
    transform: translate(-50%, -50%) scale(.8);
    transition: transform .9s cubic-bezier(.22, .8, .3, 1), opacity .9s ease;
    will-change: transform
}

.collage-card[data-pos="0"] { opacity: 1; z-index: 5; transform: translate(-50%, -50%) rotate(-3deg) }
.collage-card[data-pos="1"] { opacity: 1; z-index: 4; transform: translate(-50%, -50%) translate(26%, -5%) rotate(7deg) scale(.92) }
.collage-card[data-pos="2"] { opacity: 1; z-index: 3; transform: translate(-50%, -50%) translate(-27%, -7%) rotate(-9deg) scale(.88) }

.collage-card .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 9px; background: linear-gradient(160deg, var(--a, #efe6fb), var(--b, #fde8ee)) }
.collage-card .ph { font-size: 90px }
.collage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.collage-card figcaption { padding: 8px 4px 12px; text-align: center; font: 26px/1.2 var(--script); color: var(--cocoa) }

.sprinkle { position: absolute; z-index: 6; font-size: 22px; color: var(--pink); pointer-events: none; animation: floaty 5s ease-in-out infinite }
.sprinkle.s1 { top: 2%; left: 8%; animation-delay: 0s }
.sprinkle.s2 { top: 36%; right: -2%; animation-delay: 1.2s; font-size: 26px; color: var(--mint) }
.sprinkle.s3 { bottom: 8%; left: 2%; animation-delay: 2.1s; font-size: 26px; color: var(--lilac) }
.sprinkle.s4 { bottom: 2%; right: 10%; animation-delay: .6s }

@keyframes spin { to { transform: rotate(360deg) } }
@keyframes breathe { 50% { transform: scale(1.05) } }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(8deg) } }

@media (prefers-reduced-motion: reduce) {
    .collage-glow, .collage-ring, .sprinkle { animation: none }
    .collage-card { transition: none }
}

/* ---------- Stickers ---------- */
.stamp {
    position: absolute;
    top: 2%;
    right: 0;
    z-index: 7;
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: inset 0 0 0 4px var(--pink), inset 0 0 0 5.5px rgba(46, 33, 71, .55);
    color: var(--cocoa);
    font: 700 9.5px/1.3 var(--sans);
    letter-spacing: .16em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(10deg);
    pointer-events: none
}

.thanks-stamp {
    position: absolute;
    top: -40px;
    right: 6.5%;
    z-index: 2;
    display: grid;
    width: 104px;
    height: 104px;
    place-content: center;
    gap: 2px;
    border: 1px solid var(--lilac);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 0 0 5px var(--cream);
    color: var(--cocoa);
    text-align: center;
    transform: rotate(-8deg);
    pointer-events: none
}
.thanks-stamp b { color: var(--rose); font: 400 24px/1 var(--script) }
.thanks-stamp span { padding: 0 12px; font-size: 8.5px; font-weight: 600; line-height: 1.25 }

/* ---------- Gentle reveal on scroll (modern browsers only) ---------- */
@supports (animation-timeline: view()) {
    .product-card, .category, .step, .section-head, .qr-wrap, .story-copy {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
}
@media (prefers-reduced-motion: reduce) {
    .product-card, .category, .step, .section-head, .qr-wrap, .story-copy { animation: none }
}

/* ---------- Modal / product page ---------- */
.modal { position: fixed; inset: 0; background: var(--blush); display: none; align-items: stretch; justify-content: center; padding: 0; z-index: 30 }
.modal.open { display: flex }

.modal-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    height: 100dvh;
    max-height: none;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 0 60px rgba(46, 33, 71, .14);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    position: relative
}
.modal.open .modal-box { animation: sheetIn .28s cubic-bezier(.2, .8, .25, 1) }
@keyframes sheetIn { from { opacity: 0; transform: translateY(28px) } to { opacity: 1; transform: none } }

.modal-media { position: relative; flex: none; width: 100%; min-height: 0; max-height: 62dvh; aspect-ratio: 1 / 1; background: var(--blush) }
.modal-media .ph { font-size: 100px }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 820px) and (orientation: portrait) and (min-height: 880px) and (max-aspect-ratio: 9 / 18) {
    .modal-media { aspect-ratio: 4 / 5; max-height: 66dvh }
}

.modal-content { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 24px 22px 20px }
.modal-content h3 { font: 600 32px/1.12 var(--serif); margin: 4px 0 }
.eggless-line { font-size: 11px; color: #2e7d46 }
.size-label { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 12px }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 }
.size-btn { border: 1px solid var(--line); background: #fff; padding: 10px 16px; font-size: 12px; cursor: pointer; border-radius: 999px; transition: .25s }
.size-btn:hover { border-color: var(--cocoa) }
.modal-price { font-size: 24px; margin: 10px 0 14px }

.buybar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(46, 33, 71, .07)
}
.buybar .modal-price { flex: none; margin: 0; font-size: 24px; line-height: 1 }
.buybar .btn { flex: 1; width: auto; min-height: 50px }

.close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2)
}

@media (orientation: landscape) and (min-width: 640px), (min-width: 1100px) {
    .modal-box {
        display: grid;
        max-width: 1280px;
        overflow: hidden;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto
    }
    .modal-media { grid-column: 1; grid-row: 1 / 3; height: 100%; max-height: none; aspect-ratio: auto }
    .modal-content { grid-column: 2; grid-row: 1; min-height: 0; overflow-y: auto; padding: 64px 44px 20px }
    .buybar { grid-column: 2; grid-row: 2; position: static; padding: 16px 44px 28px; box-shadow: none }
    .close { position: absolute; top: 16px; right: 16px }
}
@media (orientation: landscape) and (max-height: 520px) {
    .modal-content { padding: 20px 24px 10px }
    .modal-content h3 { font-size: 24px }
    .buybar { padding: 10px 24px 14px }
    .buybar .btn { min-height: 44px }
}

.mobile-nav { display: none }

/* ---------- Header fit (long shop name) ---------- */
@media (min-width: 1181px) {
    .header { padding: 0 4% }
    .brand-text { font-size: 22px; white-space: nowrap }
    .brand-text small { font-size: 20px }
    .nav { gap: 22px; letter-spacing: 1.3px; white-space: nowrap }
    .header-right .btn { padding: 13px 22px; white-space: nowrap }
}
@media (min-width: 641px) and (max-width: 1180px) {
    .brand-text { white-space: nowrap }
    .nav, .header-right .btn-wa { display: none }
    .menu-btn { display: block }
    .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 6% 16px; border-bottom: 1px solid var(--line); background: var(--cream) }
    .mobile-nav.open { display: block }
    .mobile-nav a { display: block; padding: 13px 0; font-size: 11px; letter-spacing: 1px; text-transform: uppercase }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .nav { gap: 18px }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
    .hero { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; text-align: center }
    .hero p { margin-left: auto; margin-right: auto }
    .hero-art { display: none }
    .hero-actions { justify-content: center }
    .steps { grid-template-columns: 1fr }
    .footer-top { grid-template-columns: 2fr 1fr 1fr }
    .footer-top > div:last-child { display: none }
    .qr-wrap { grid-template-columns: 1fr; gap: 36px; text-align: center }
    .qr-copy p { margin: 0 auto }
    .qr-actions { justify-content: center }
    .qr-copy .kicker { justify-content: center }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
    .announcement { font-size: 8px }
    .header { height: 66px; padding: 0 5% }
    .brand-logo { height: 42px }
    .brand-text { font-size: 22px }
    .brand-text small { font-size: 19px }
    .nav, .header-right .btn-wa { display: none }
    .menu-btn { display: block }

    .hero { padding: 3.2rem 1.5rem; min-height: 0; gap: 28px }
    .hero p { font-size: 14px }
    .hero-actions .btn { flex: 1; padding: 14px 16px }

    .ticker { gap: 10px 22px; padding: 16px 12px; font-size: 8px; letter-spacing: 1.8px }

    .section { padding: 64px 5% }
    .section-head { align-items: start; gap: 10px; flex-direction: column }

    .categories { grid-template-columns: repeat(2, 1fr); gap: 10px }
    .category { min-height: 175px; padding: 20px 16px }
    .category b { font-size: 21px }

    .toolbar { gap: 8px }
    .search { max-width: none; flex-basis: 100% }
    .filter, .sort { padding: 10px 14px; font-size: 10px }

    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px }
    .product-name { font-size: 17px }
    .product-badge { top: 8px; left: 8px; font-size: 7px; padding: 5px 8px }
    .tag-eggless, .tag-seasonal { top: 8px; right: 8px; font-size: 8px; padding: 5px 8px }
    .quick-view { opacity: 1; transform: none; bottom: 7px; left: 7px; right: 7px; padding: 9px; font-size: 8px }
    .card-wa { padding: 7px 10px; font-size: 9px }

    .story { grid-template-columns: 1fr }
    .story-image { min-height: 280px }
    .story-copy { padding: 45px 8% }
    .story-copy h2 { font-size: 38px }

    .qr-actions .btn { flex: 1 1 100% }

    .cta { padding: 72px 18px }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 25px }
    .footer-top > div:first-child { grid-column: 1/-1 }
    .footer-top > div:last-child { display: block }
    .copyright { gap: 10px; flex-direction: column }

    .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 11px }

    .stamp { width: 76px; height: 76px; font-size: 8px }
    .thanks-stamp { top: -34px; right: 5%; width: 92px; height: 92px }
    .thanks-stamp b { font-size: 21px }
    .thanks-stamp span { padding: 0 9px; font-size: 7.5px }

    .mobile-nav { position: absolute; top: 66px; left: 0; right: 0; background: var(--cream); padding: 18px 6%; border-bottom: 1px solid var(--line); display: none }
    .mobile-nav.open { display: block }
    .mobile-nav a { display: block; padding: 12px 0; font-size: 11px; letter-spacing: 1px; text-transform: uppercase }
}

@media (max-width: 520px) {
    .brand-text { font-size: 20px; line-height: 1.05 }
    .brand-text small { font-size: 18px }
}

/* =====================================================================
   RESPONSIVE REFINEMENTS (kept at the very end so they win over the rules above)
   Breakpoints: 1500+ big screens | 1100 small laptops | 900 tablets |
                640 phones | 380 small phones | touch devices
   ===================================================================== */
html, body { overflow-x: clip }

/* Big screens: keep content to a comfortable reading width */
@media (min-width: 1500px) {
    .header, .hero, .section, .footer {
        padding-left: calc((100vw - 1400px) / 2);
        padding-right: calc((100vw - 1400px) / 2)
    }
    .hero h1 { font-size: 92px }
}

/* Small laptops / tablets in landscape */
@media (max-width: 1100px) {
    .hero { gap: 24px }
    .footer-top { gap: 28px }
}

/* Product grid: 4 per row on desktop, 2 per row on tablets and phones (never 3) */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px }
}

/* Tablets (portrait) */
@media (max-width: 900px) {
    .hero-collage { max-width: 400px; margin-top: 4px }
    .section { padding-top: 76px; padding-bottom: 76px }
    .story { grid-template-columns: 1fr }
    .story-image { min-height: 340px }
    .story-copy { padding: 60px 8% }
    .story-copy p { max-width: 560px }
    .cta { padding: 84px 20px }
}
@media (min-width: 641px) and (max-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 14px }
    .step { padding: 26px 20px }
    .num { font-size: 44px }
    .step h3 { font-size: 21px }
    .footer-top { grid-template-columns: repeat(3, 1fr) }
    .footer-top > div:first-child { grid-column: 1 / -1 }
    .footer-top > div:last-child { display: block }
}

/* Phones */
@media (max-width: 640px) {
    .hero h1 { margin: 16px 0 }
    .hero-collage { max-width: 320px }
    .section { padding-top: 60px; padding-bottom: 60px }
    .hero { gap: 28px }
    .story-image { min-height: 280px }
    .story-copy { padding: 45px 8% }
    .cta { padding: 72px 18px }

    /* filter chips scroll sideways instead of wrapping onto 3 rows */
    .filters {
        flex: none;
        flex-wrap: nowrap;
        width: calc(100% + 10vw);
        margin: 0 -5vw;
        padding: 2px 5vw;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }
    .filters::-webkit-scrollbar { display: none }
    .filter { flex: none; white-space: nowrap }

    /* price on one line, full-width WhatsApp button below (easy to tap) */
    .product-bottom { flex-wrap: wrap; gap: 10px }
    .product-bottom .card-wa { flex: 1 1 100%; text-align: center; padding: 10px }

    .wa-float { bottom: calc(14px + env(safe-area-inset-bottom)) }
    .qr-card { transform: none }
}

/* Small phones (360px and below) */
@media (max-width: 380px) {
    .hero h1 { font-size: 38px }
    .section h2, .qr-copy h2 { font-size: 30px }
    .story-copy h2 { font-size: 32px }
    .cta h2 { font-size: 44px }
    .announcement { letter-spacing: 1.4px }
    .btn { padding: 14px 20px; letter-spacing: 1.2px }
    .product-grid { gap: 22px 8px }
    .category { padding: 18px 14px }
    .category b { font-size: 19px }
    .copyright { text-align: center }
}

/* Touch screens: no hover, so show the quick-view button and drop sticky hover effects */
@media (hover: none) {
    .quick-view { opacity: 1; transform: none }
    .product-card:hover .product-image img { transform: none }
    .category:hover, .step:hover, .btn:hover, .wa-float:hover { transform: none }
}

.wa-float { bottom: calc(20px + env(safe-area-inset-bottom)) }
@media (max-width: 640px) { .wa-float { bottom: calc(14px + env(safe-area-inset-bottom)) } }

/* ---------- Anaya Baking: small additions ---------- */
.eggless-line { color: var(--rose); font-weight: 500; letter-spacing: .3px }