/* =====================================================
   Cake Palace — Deep Crust style theme (v2)
   Loaded AFTER style.css and enhancements.css.
   Brand colour: #662f82 · Font: Figtree
   ===================================================== */

/* ---------- Font: Figtree everywhere ---------- */
*, *::before, *::after { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }

/* ---------- Palette ---------- */
:root {
    --plum-900: #32173f;
    --plum-700: #662f82;
    --plum-600: #7d44a0;
    --plum-500: #9660b8;
    --orchid-300: #cdb3de;
    --orchid-100: #efe6f5;
    --gold-500: #e0a526;
    --gold-300: #f2d27a;
    --cream-50: #faf7fc;
    --cream-100: #ece3f2;
    --ink-900: #24152e;
    --ink-600: #6a5877;
    --hdr-bg: #f3ecf7;
    --band-bg: #e8dff0;
    --line: #e0d3e8;
    --shadow-card: 0 10px 30px -12px rgba(50, 23, 63, 0.30);
    --shadow-soft: 0 4px 16px rgba(50, 23, 63, 0.10);
}
body { background: #fff; color: var(--ink-900); }
body.modal-open { overflow: hidden; }
.btn-primary { box-shadow: 0 10px 24px -8px rgba(102, 47, 130, 0.55); }
.btn-primary:hover { box-shadow: 0 14px 28px -8px rgba(102, 47, 130, 0.65); }

/* ---------- Header (beige-style bar, search with mic, boxed actions) ---------- */
.site-header { background: var(--hdr-bg); box-shadow: none; border-bottom: 1px solid var(--line); }
.header-row { padding-top: 14px; padding-bottom: 14px; }
.search-bar {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 2px 8px 2px 14px;
    max-width: 560px;
}
.search-bar button[type="submit"] {
    order: -1; background: none; color: var(--ink-600);
    width: 30px; height: 30px; border-radius: 0; margin-right: 6px;
}
.search-bar input { padding: 12px 0; font-size: 14.5px; }
.search-bar .mic-btn {
    background: none; border: none; color: var(--ink-900);
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.header-actions { gap: 10px; }
.header-actions .header-icon-link {
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    color: var(--ink-900);
    transition: background .15s ease, border-color .15s ease;
}
.header-actions .header-icon-link:hover { border-color: var(--plum-500); }
.header-actions .header-cart-btn { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
.header-actions .header-cart-btn:hover { background: var(--plum-600); }
.header-cart-btn .cart-badge { top: -8px; right: -8px; background: var(--gold-500); color: #2b1a00; }

.main-nav { background: var(--hdr-bg); border-top: 1px solid var(--line); }
.main-nav .container { justify-content: center; }
.main-nav a { padding: 14px 22px; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--plum-700); border-color: var(--plum-700); }

/* ---------- Home: hero slider as a rounded banner ---------- */
.banner-slider {
    max-width: 1240px;
    width: calc(100% - 32px);
    margin: 18px auto 0;
    border-radius: 22px;
    height: min(46vw, 440px);
    min-height: 260px;
}
.hero { margin: 18px auto 0; max-width: 1240px; width: calc(100% - 32px); border-radius: 22px; }

/* ---------- Home: "Baking Fresh Everyday" band + category cards ---------- */
.dc-band { background: var(--band-bg); padding: 48px 0 56px; margin-top: 26px; }
.dc-title-lines {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-900); font-family: inherit;
}
.dc-title-lines::before, .dc-title-lines::after { content: ''; width: 38px; height: 2px; background: var(--ink-900); opacity: .8; }
.dc-subline { text-align: center; color: var(--ink-600); font-size: 13.5px; margin: 8px 0 28px; }

.dc-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; width: 100%; }
.dc-cat-card {
    display: block;
    background: #fff; border-radius: 16px; padding: 8px 8px 12px;
    text-align: center; box-shadow: 0 2px 8px rgba(50,23,63,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dc-cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.dc-cat-card .dc-cat-img {
    aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
    background: var(--orchid-100); display: flex; align-items: center; justify-content: center; color: var(--plum-700);
}
.dc-cat-card .dc-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.dc-cat-card .dc-cat-img svg { width: 44px; height: 44px; }
.dc-cat-card h4 { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.dc-cat-hidden { display: none; }
.dc-cat-grid.dc-expanded .dc-cat-hidden { display: block; }
.dc-toggle-wrap { text-align: center; margin-top: 26px; }
.dc-toggle {
    background: var(--plum-700); color: #fff; border: none; border-radius: 10px;
    padding: 11px 30px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.dc-toggle:hover { background: var(--plum-600); }

/* ---------- Home: feature strip ---------- */
.dc-features {
    width: 100%; margin: 34px 0 0; background: #fff; border-radius: 18px;
    box-shadow: var(--shadow-soft); padding: 22px 8px;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.dc-feature { display: flex; gap: 12px; align-items: center; padding: 4px 18px; border-right: 1px solid var(--line); }
.dc-feature:last-child { border-right: none; }
.dc-feature .ico {
    width: 40px; height: 40px; border-radius: 50%; background: var(--orchid-100); color: var(--plum-700);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dc-feature .ico svg { width: 20px; height: 20px; }
.dc-feature h5 { font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.dc-feature p { font-size: 10.5px; color: var(--ink-600); line-height: 1.4; margin-top: 2px; }

/* ---------- Home: exclusive offer + signature slider ---------- */
.dc-band-light { background: var(--band-bg); padding: 12px 0 44px; }
.dc-offer-title { text-align: center; padding: 44px 0 20px; }
.dc-promo-card {
    position: relative; overflow: hidden;
    max-width: 330px; margin: 0 auto 26px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow-soft); padding: 18px 20px;
}
.dc-promo-card .big { font-size: 20px; font-weight: 800; color: var(--ink-900); }
.dc-promo-card .code {
    display: inline-block; margin-top: 8px; border: 1.5px solid var(--ink-900); border-radius: 999px;
    padding: 3px 12px; font-size: 11px; font-weight: 700;
}
.dc-promo-card .pct {
    position: absolute; right: -10px; bottom: -14px; width: 74px; height: 74px; border-radius: 18px;
    background: var(--gold-500); color: #fff; font-size: 38px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; transform: rotate(-12deg);
}
.dc-sub-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.dc-offer-slider { position: relative; width: 100%; }
.dc-offer-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 4px 14px; scrollbar-width: thin;
}
.dc-offer-card {
    flex: 0 0 220px; scroll-snap-align: start; background: #fff; border-radius: 14px; padding: 10px;
    box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dc-offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.dc-offer-img .cake-swatch { border-radius: 10px; }
.dc-offer-card h4 { font-size: 13px; font-weight: 600; line-height: 1.35; min-height: 2.7em; color: var(--ink-900); }
.dc-offer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.dc-offer-price { display: flex; flex-direction: column; line-height: 1.15; }
.dc-offer-price .now { font-weight: 800; color: var(--ink-900); font-size: 14px; }
.dc-offer-price .old { text-decoration: line-through; color: var(--ink-600); font-size: 11.5px; }
.dc-view-btn {
    background: var(--plum-700); color: #fff; border-radius: 8px; padding: 7px 18px;
    font-weight: 700; font-size: 12.5px; transition: background .15s ease;
}
.dc-view-btn:hover { background: var(--plum-600); }
.dc-arrows button {
    position: absolute; top: 40%; z-index: 6;
    width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff;
    background: var(--plum-700); color: #fff; padding: 0;
    box-shadow: 0 6px 16px rgba(50, 23, 63, .35); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, transform .15s ease;
}
.dc-arrows button:hover { background: var(--plum-600); transform: scale(1.06); }
.dc-arrows button svg { width: 20px; height: 20px; }
.dc-arrows button[data-dir="-1"] { left: -8px; }
.dc-arrows button[data-dir="1"] { right: -8px; }

/* ---------- Home: chef / kitchen story ---------- */
.dc-story { padding: 60px 0; }
.dc-story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; width: 100%; }
.dc-story h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 16px; }
.dc-story p { color: var(--ink-600); line-height: 1.75; font-size: 15.5px; margin-bottom: 14px; white-space: pre-line; }
.dc-story .quote { border-left: 3px solid var(--plum-700); padding-left: 18px; margin: 20px 0; font-size: 17px; font-weight: 600; color: var(--ink-900); }
.dc-story .tag { font-size: 20px; font-weight: 600; color: var(--ink-900); }
.dc-story-frame { border: 7px solid var(--gold-500); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); }
.dc-story-frame .cake-swatch { aspect-ratio: 4 / 5; border-radius: 0; }

/* ---------- Home: banner carousel ---------- */
.dc-slides { background: var(--band-bg); padding: 34px 0; }
.dc-slides-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 8px; scrollbar-width: none; }
.dc-slides-track::-webkit-scrollbar { display: none; }
.dc-slide {
    position: relative; flex: 0 0 min(520px, 82vw); height: 280px; border-radius: 16px; overflow: hidden;
    scroll-snap-align: center; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 22px; color: #fff; font-size: 30px; font-weight: 800;
}
.dc-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,21,46,0) 35%, rgba(36,21,46,.72) 100%); }
.dc-slide span { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-700); color: #fff; padding-top: 10px; }
.footer-grid { grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 44px 24px 26px; }
.footer-grid h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-grid li, .footer-grid a { color: rgba(255,255,255,.9); }
.footer-grid li { font-size: 13px; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold-300); }
.dc-pay-badges { display: flex; flex-wrap: wrap; gap: 8px; max-width: 220px; }
.dc-pay-badge {
    background: #fff; color: #333; border-radius: 6px; padding: 6px 9px; font-size: 10.5px; font-weight: 800;
    min-width: 52px; text-align: center; letter-spacing: .02em;
}
.dc-store-line { font-size: 12.5px; font-weight: 700; padding: 14px 0 6px; margin: 0 24px; border-top: 1px solid rgba(255,255,255,.18); letter-spacing: .04em; }
.dc-store-line a { color: #fff; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); justify-content: center; gap: 18px; padding: 18px 24px; text-align: center; }

/* ---------- Our Products page (category cards) ---------- */
.op-products { padding: 30px 0 60px; }
.op-products h1 { text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 26px; }
.op-products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.op-products-grid .dc-cat-card { border: 1px solid var(--line); box-shadow: none; padding: 10px 10px 14px; }
.op-products-grid .dc-cat-card h4 { font-size: 15px; font-weight: 600; }

/* ---------- Order Now page ---------- */
.op-layout {
    display: grid; grid-template-columns: 290px 1fr; gap: 24px;
    max-width: 1240px; margin: 24px auto 60px; padding: 0 24px; align-items: start;
}
.op-menu {
    position: sticky; top: 150px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft);
    border: 1px solid var(--line); overflow: hidden; max-height: calc(100vh - 170px); overflow-y: auto;
}
.op-menu h3 { font-size: 20px; font-weight: 800; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.op-menu a.op-link {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 13px 20px; font-size: 14.5px; font-weight: 600; color: var(--ink-900);
    border-left: 3px solid transparent;
}
.op-menu a.op-link:hover { background: var(--cream-50); }
.op-menu a.op-link.active { background: var(--orchid-100); border-left-color: var(--plum-700); color: var(--plum-700); }
.op-menu .cnt { font-size: 12.5px; color: var(--ink-600); font-weight: 500; }
.op-menu .op-parent { display: flex; align-items: stretch; }
.op-menu .op-parent a.op-link { flex: 1; }
.op-plus { background: none; border: none; width: 34px; font-size: 16px; cursor: pointer; color: var(--ink-600); }
.op-sub { display: none; background: var(--cream-50); }
.op-sub.open { display: block; }
.op-sub a.op-link { padding-left: 34px; font-size: 13.5px; font-weight: 500; }

.op-main { min-width: 0; }
.op-head {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
    display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.op-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op-open { border: 1.5px solid #2f9e5f; color: #2f9e5f; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.op-addr { font-size: 13.5px; color: var(--ink-600); margin-top: 6px; }
.op-offer {
    background: #f1f7f2; border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 440px;
}
.op-offer .ico { width: 32px; height: 32px; border-radius: 50%; background: #dff0e4; color: #2f9e5f; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.op-offer b { font-size: 13.5px; display: block; }
.op-offer small { font-size: 11.5px; color: var(--ink-600); }
.op-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.op-chip {
    border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 15px;
    font-size: 13px; font-weight: 600; color: var(--ink-900); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.op-chip:hover { border-color: var(--plum-500); }
.op-chip.active { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
.op-login-bar {
    background: #fffbe9; border: 1.5px dashed #e6c95a; border-radius: 14px; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; font-weight: 500;
}
.op-login-bar button { background: var(--gold-500); color: #2b1a00; border: none; border-radius: 10px; padding: 10px 22px; font-weight: 800; cursor: pointer; }

.op-section { margin-top: 30px; }
.op-section-title {
    display: flex; align-items: center; gap: 16px; scroll-margin-top: 160px;
    font-size: 15px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 16px;
}
.op-section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; }
.op-section-title .count { order: 2; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-600); }
.op-section-title .sub { font-weight: 500; color: var(--ink-600); }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.op-feature-wrap { position: relative; }
.op-feature-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; }
.op-feature-track .op-card { flex: 0 0 250px; scroll-snap-align: start; }
.op-feature-wrap .dc-arrows button { top: 32%; }

.op-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.op-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.op-card.op-hidden, .op-section.op-hidden { display: none; }
.op-img { display: block; }
.op-img .cake-swatch { aspect-ratio: 4 / 3; border-radius: 0; }
.op-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.op-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.op-tag { background: #fbf0cf; color: #6b4f00; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; }
.op-body h4 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.op-price { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 800; }
.op-price .old { font-size: 13px; font-weight: 500; text-decoration: line-through; color: var(--ink-600); }
.op-desc { font-size: 12.5px; color: var(--ink-600); line-height: 1.5; }
.op-desc a { color: var(--ink-900); font-weight: 800; display: inline-block; margin-top: 2px; }
.op-foot { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 8px; }
.op-add {
    border: 1.5px solid #cdbbd9; background: #fff; border-radius: 10px; padding: 8px 20px;
    font-weight: 800; font-size: 13px; color: var(--plum-700); cursor: pointer; display: inline-block;
}
.op-add:hover { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }
.op-empty { text-align: center; padding: 50px 10px; color: var(--ink-600); display: none; }
.op-empty.show { display: block; }

/* ---------- Popups (product + login) ---------- */
.pm-overlay {
    position: fixed; inset: 0; background: rgba(36,21,46,.55); z-index: 120;
    display: none; align-items: center; justify-content: center; padding: 18px;
}
.pm-overlay.open { display: flex; }
.pm-box { background: #fff; border-radius: 22px; width: min(580px, 100%); max-height: 94vh; overflow-y: auto; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.pm-loading { padding: 70px 20px; text-align: center; color: var(--ink-600); font-weight: 600; }
.pm-media { position: relative; }
.pm-media .cake-swatch { aspect-ratio: 5 / 4; border-radius: 0; }
.pm-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 10px; }
.pm-circle {
    width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: var(--ink-900);
    display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.pm-body { padding: 20px 24px 6px; }
.pm-body h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.pm-price { font-size: 17px; font-weight: 700; margin: 6px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.pm-price .old { font-size: 14px; font-weight: 500; color: var(--ink-600); text-decoration: line-through; }
.pm-desc { color: var(--ink-600); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; white-space: pre-line; }
.pm-field { margin-bottom: 14px; }
.pm-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.pm-field select, .pm-field input[type="text"], .pm-field input[type="email"], .pm-field input[type="tel"], .pm-field textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff;
}
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-note { font-size: 12.5px; color: var(--ink-600); margin-bottom: 12px; }
.pm-qty { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.pm-qty .stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.pm-qty .stepper button { width: 38px; height: 38px; border: none; background: var(--cream-50); font-size: 18px; font-weight: 700; color: var(--plum-700); cursor: pointer; }
.pm-qty .stepper input { width: 42px; text-align: center; border: none; font-weight: 700; font-size: 15px; background: #fff; }
.pm-qty small { color: var(--ink-600); }
.pm-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: calc(100% - 48px); margin: 8px 24px 22px; padding: 17px 22px;
    background: var(--plum-700); color: #fff; border: none; border-radius: 14px; font-size: 17px; font-weight: 800; cursor: pointer;
}
.pm-bar:hover { background: var(--plum-600); }
.pm-bar:disabled { opacity: .45; cursor: not-allowed; }
.pm-bar .pm-add { color: var(--gold-300); }
.pm-custom { margin: 0 24px 24px; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.pm-custom summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--plum-700); font-size: 14px; }
.pm-custom form { padding-bottom: 14px; }
.pm-custom .pm-submit { width: 100%; padding: 13px; border-radius: 12px; border: none; background: var(--plum-700); color: #fff; font-weight: 800; cursor: pointer; }

.lm-box { width: min(470px, 100%); }
.lm-head { background: var(--hdr-bg); padding: 26px 20px 20px; text-align: center; position: relative; border-bottom: 1px solid var(--line); }
.lm-head .lm-logo { font-size: 24px; font-weight: 800; color: var(--plum-700); }
.lm-head img { height: 40px; width: auto; }
.lm-head .pm-circle { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
.lm-body { padding: 26px 24px 24px; }
.lm-body h3 { text-align: center; font-size: 24px; font-weight: 800; }
.lm-sub { text-align: center; color: var(--ink-600); font-size: 14px; margin: 6px 0 22px; }
.lm-body label.lbl { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.lm-body label.lbl span { color: #d12d2d; }
.lm-body input[type="email"], .lm-body input[type="password"] {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; margin-bottom: 16px;
}
.lm-terms { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; margin-bottom: 16px; cursor: pointer; }
.lm-terms input { width: 20px; height: 20px; accent-color: var(--plum-700); }
.lm-terms a { font-weight: 800; text-decoration: underline; color: var(--ink-900); }
.lm-error { color: #c0392b; font-size: 13.5px; margin-bottom: 12px; min-height: 0; }
.lm-submit { width: 100%; padding: 16px; border: none; border-radius: 14px; background: var(--plum-700); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.lm-submit:hover { background: var(--plum-600); }
.lm-submit:disabled { opacity: .6; }
.lm-foot { text-align: center; margin-top: 14px; font-size: 14px; }
.lm-foot a { color: var(--plum-700); font-weight: 800; }
.lm-note { text-align: center; color: var(--ink-600); font-size: 12.5px; margin-top: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; }

/* ---------- Cart bar + toast ---------- */
.cart-bar {
    position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
    background: var(--plum-700); color: #fff; border-radius: 14px; padding: 14px 22px; min-width: 320px;
    display: flex; align-items: center; gap: 16px; z-index: 70; box-shadow: 0 14px 34px rgba(50,23,63,.4);
    transition: transform .3s ease; font-weight: 700;
}
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.cart-bar .txt { flex: 1; line-height: 1.25; }
.cart-bar .txt b { display: block; font-size: 15px; }
.cart-bar .txt small { font-size: 12.5px; opacity: .85; font-weight: 600; }
.cp-toast {
    position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink-900); color: #fff;
    padding: 12px 20px; border-radius: 12px; z-index: 140; opacity: 0; pointer-events: none; transition: opacity .25s ease; font-weight: 600; font-size: 14px;
}
.cp-toast.show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dc-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .op-products-grid { grid-template-columns: repeat(4, 1fr); }
    .op-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .dc-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .dc-features { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .dc-feature:nth-child(2) { border-right: none; }
    .dc-story-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .op-products-grid { grid-template-columns: repeat(3, 1fr); }
    .op-layout { grid-template-columns: 1fr; padding: 0 16px; }
    .op-menu { position: static; max-height: none; display: flex; overflow-x: auto; border-radius: 14px; }
    .op-menu h3 { display: none; }
    .op-menu .op-parent { flex: 0 0 auto; }
    .op-menu a.op-link { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 14px 16px; }
    .op-menu a.op-link.active { border-bottom-color: var(--plum-700); }
    .op-menu .cnt, .op-plus, .op-sub { display: none !important; }
}
@media (max-width: 640px) {
    .dc-band { padding: 36px 0 44px; }
    .dc-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dc-features { grid-template-columns: 1fr; }
    .dc-feature { border-right: none; border-bottom: 1px solid var(--line); padding: 10px 14px; }
    .dc-feature:last-child { border-bottom: none; }
    .dc-offer-card { flex-basis: 158px; }
    .dc-arrows button { width: 36px; height: 36px; }
    .dc-arrows button svg { width: 16px; height: 16px; }
    .op-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .op-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .op-feature-track .op-card { flex-basis: 190px; }
    .op-head { padding: 14px; }
    .main-nav a { padding: 13px 20px; }
    .dc-slide { height: 200px; font-size: 22px; }
    .pm-overlay { padding: 0; align-items: flex-end; }
    .pm-box { border-radius: 22px 22px 0 0; max-height: 96vh; }
    .pm-row { grid-template-columns: 1fr; }
    .cart-bar { bottom: 78px; min-width: 0; width: calc(100% - 28px); }
    .cp-toast { bottom: 150px; }
}

/* =====================================================
   v3 additions
   ===================================================== */

/* ---------- Reviews: grid that auto-scrolls ---------- */
.testimonial-grid[data-autoscroll] {
    display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 14px;
    grid-template-columns: none;
}
.testimonial-grid[data-autoscroll]::-webkit-scrollbar { display: none; }
.testimonial-grid[data-autoscroll] .testimonial-card { flex: 0 0 min(360px, 82vw); }

/* ---------- Register popup (re-uses the login popup styling) ---------- */
.lm-body input[type="text"], .lm-body input[type="tel"] {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; margin-bottom: 16px;
}
.lm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Mobile bottom tab bar (app style) ---------- */
.mobile-bottom-nav {
    border-radius: 20px 20px 0 0;
    border-top: none;
    box-shadow: 0 -8px 28px rgba(50, 23, 63, .14);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav a { flex: 1; font-size: 10.5px; font-weight: 700; padding: 6px 2px; border-radius: 12px; }
.mobile-bottom-nav a svg { width: 22px; height: 22px; }
.mobile-bottom-nav a.active { color: var(--plum-700); background: var(--orchid-100); }

/* ---------- Mobile: app-like layout ---------- */
@media (max-width: 640px) {
    body { background: var(--cream-50); }
    .container { padding-left: 16px; padding-right: 16px; }

    /* compact top bar: logo + icon buttons, then the search field */
    .topbar-marquee { padding: 6px 0; }
    .site-header { box-shadow: 0 2px 12px rgba(50, 23, 63, .08); }
    .header-row { padding: 10px 16px 12px; gap: 10px 8px; }
    .header-actions { gap: 8px; }
    .header-actions .header-icon-link { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 12px; }
    .header-actions .header-icon-link .label-text { display: none; }
    .search-bar { border-radius: 14px; }
    .search-bar input { padding: 11px 0; font-size: 14px; }
    .main-nav.open a { padding: 15px 20px; font-size: 15px; }

    /* home */
    .banner-slider, .hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 18px; height: 190px; min-height: 0; }
    .dc-band { padding: 30px 0 38px; margin-top: 18px; }
    .dc-title-lines { font-size: 16px; gap: 10px; }
    .dc-title-lines::before, .dc-title-lines::after { width: 22px; }
    .dc-subline { font-size: 12.5px; margin-bottom: 20px; }
    .dc-cat-card { border-radius: 14px; padding: 6px 6px 10px; }
    .dc-cat-card h4 { font-size: 12.5px; }
    .dc-features { grid-template-columns: 1fr 1fr; padding: 14px 4px; row-gap: 12px; }
    .dc-feature { padding: 6px 10px; border-right: none; border-bottom: none; gap: 8px; }
    .dc-feature .ico { width: 34px; height: 34px; }
    .dc-feature h5 { font-size: 11.5px; }
    .dc-feature p { display: none; }
    .dc-offer-title { padding: 30px 0 14px; }
    .dc-sub-title { font-size: 13px; }
    .dc-story { padding: 36px 0; }
    .dc-story-frame { border-width: 5px; }
    .dc-story-frame .cake-swatch { aspect-ratio: 4 / 3; }
    .dc-slides { padding: 22px 0; }
    .dc-slides-track { padding: 0 16px 6px; }

    /* order page */
    .op-layout { margin-top: 12px; padding: 0 12px; gap: 12px; }
    .op-menu { border-radius: 14px; margin-bottom: 0; }
    .op-head h2 { font-size: 17px; }
    .op-offer { width: 100%; max-width: none; }
    .op-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -12px; padding: 2px 12px; }
    .op-chips::-webkit-scrollbar { display: none; }
    .op-chip { flex: 0 0 auto; padding: 8px 14px; }
    .op-login-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .op-body { padding: 10px 11px 12px; }
    .op-body h4 { font-size: 13.5px; }
    .op-price { font-size: 14.5px; }
    .op-desc { display: none; }
    .op-foot { padding-top: 4px; }
    .op-add { width: 100%; text-align: center; padding: 9px 0; }

    /* products page */
    .op-products { padding: 20px 0 40px; }
    .op-products h1 { font-size: 24px; margin-bottom: 18px; }

    /* footer */
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 30px 20px 16px; }
    .footer-bottom { flex-direction: column; gap: 6px; padding: 16px 20px 22px; }
    .dc-store-line { margin: 0 20px; }
    .site-footer { padding-bottom: 10px; }
}
