/* =============================================================
   TG 2026-04-22: index-v2 — мобильный продающий лендинг.
   API-контракты идентичны index.html:
     GET  https://pbb.kz/post-offers.php         → каталог
     GET  https://pbb.kz/post-offers.php?order_id=X → статус
     POST https://pbb.kz/post-offers.php         → оформление заказа
     POST https://pbb.kz/visitors.php            → трекинг визита
   ============================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --bg: #fdfaf5;
    --bg-soft: #f4ead9;
    --ink: #2a1a0f;
    --ink-soft: #6b4a33;
    --muted: #8a7362;
    --line: #e8dcc7;
    --brand: #6b3e1d;       /* тёплый корочный */
    --brand-dark: #4a2a13;
    --accent: #d98b3a;      /* охра/карамель */
    --accent-2: #b96b1c;
    --success: #2e7d3a;
    --danger: #b3261e;
    --warn: #b25d00;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 6px rgba(42, 26, 15, 0.06);
    --shadow-md: 0 10px 30px rgba(42, 26, 15, 0.10);
    --shadow-lg: 0 20px 60px rgba(42, 26, 15, 0.18);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body.lock-scroll { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.1; }
h2 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; }

p { margin: 0 0 12px; }

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 18px;
}

/* =========================
   HEADER
   ========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 250, 245, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
}

.brand__mark {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%);
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}

.brand__name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
}

.brand__tag {
    font-size: 11px;
    color: var(--muted);
    margin-top: -2px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
    background: var(--bg-soft);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.phone-link:active { transform: scale(0.97); }

.phone-link::before {
    content: "📞";
    font-size: 14px;
}

/* "Inline" версия для футера — просто подчёркнутая ссылка */
.phone-link--inline {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.phone-link--inline::before { content: none; }
.phone-link--inline:active { transform: none; opacity: 0.75; }

/* =========================
   HERO
   ========================= */
.hero {
    position: relative;
    padding: 28px 0 36px;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(217, 139, 58, 0.18) 0%, transparent 60%),
      linear-gradient(180deg, #fdfaf5 0%, #f4ead9 100%);
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.hero__eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(46, 125, 58, 0.15);
}

.hero h1 { margin-bottom: 14px; }
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 22px;
    max-width: 440px;
}

.hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 52px;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(107, 62, 29, 0.28);
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(185, 107, 28, 0.3);
}

.btn--ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn--block { width: 100%; }

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.hero__trust {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--ink-soft);
}

.hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero__trust span::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

/* =========================
   USP STRIP
   ========================= */
.usp {
    padding: 18px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.usp__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.usp__item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.usp__icon {
    width: 36px; height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bg-soft), #fff);
    display: grid; place-items: center;
    font-size: 18px;
    border: 1px solid var(--line);
}

.usp__title {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.25;
}

.usp__text {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 2px;
    line-height: 1.35;
}

/* =========================
   CATALOG
   ========================= */
.section {
    padding: 34px 0;
}

.section__head {
    margin-bottom: 18px;
}

.section__kicker {
    display: inline-block;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section__sub {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0;
}

.catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.product--unavailable { opacity: 0.72; }

.product__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f4ead9 0%, #e8dcc7 100%);
    overflow: hidden;
}

.product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product:hover .product__img { transform: scale(1.03); }

.product__placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: var(--muted);
    font-size: 36px;
}

.product__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
}

.product__stock {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(46, 125, 58, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.product__stock.is-low { background: rgba(178, 93, 0, 0.95); }
.product__stock.is-out { background: rgba(90, 90, 90, 0.9); }

.product__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product__name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.product__desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product__footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product__price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.product__price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.product__price-unit {
    font-size: 12px;
    color: var(--muted);
}

.add-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(185, 107, 28, 0.25);
}

.add-btn::before {
    content: "+";
    font-size: 18px;
    font-weight: 800;
}

.add-btn:disabled {
    background: #c9bdad;
    box-shadow: none;
    cursor: not-allowed;
}
.add-btn:disabled::before { content: "✕"; font-size: 14px; }

.stepper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px;
    min-height: 44px;
}

.stepper button {
    appearance: none;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.stepper button:active { transform: scale(0.96); }

.stepper__count {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    padding: 0 6px;
}

.catalog__empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}

.catalog__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 10px;
    color: var(--ink-soft);
}

.spinner {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 3px solid var(--line);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================
   HOW IT WORKS
   ========================= */
.steps {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    padding: 34px 0;
}

.steps__list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 14px 14px 60px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step__num {
    position: absolute;
    top: 14px; left: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-weight: 800;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}

.step__title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px;
}

.step__text {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* =========================
   DELIVERY INFO
   ========================= */
.delivery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.delivery-card h3 {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}

.delivery-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--line);
}

.delivery-row:first-of-type { border-top: 0; padding-top: 0; }

.delivery-row__icon {
    font-size: 22px;
    line-height: 1;
    padding-top: 2px;
}

.delivery-row__title {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 15px;
}

.delivery-row__text {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
}

/* =========================
   STORY
   ========================= */
.story {
    background: linear-gradient(180deg, #f8efde 0%, #f4ead9 100%);
}

.story blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

/* =========================
   REVIEWS (carousel)
   ========================= */
.reviews-section {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.reviews-carousel {
    position: relative;
    margin: 0 -16px;
}

.reviews-track {
    display: flex;
    gap: 12px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review {
    flex: 0 0 88%;
    max-width: 420px;
    scroll-snap-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.review__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--brand-dark);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 15px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent), var(--brand));
}

.review__name {
    font-weight: 700;
    font-size: 14px;
}

.review__stars {
    color: var(--accent-2);
    font-size: 14px;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-top: 2px;
}

.review__text {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
    quotes: "«" "»";
}

.review__text::before {
    content: open-quote;
    color: var(--accent-2);
    font-size: 22px;
    font-weight: 700;
    vertical-align: -2px;
    margin-right: 2px;
}

.review__text::after { content: close-quote; color: var(--accent-2); font-weight: 700; }

/* Nav arrows — скрыты на мобильных, видны на больших экранах */
.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background 0.15s ease;
}
.reviews-nav:hover { background: var(--bg-soft); }
.reviews-nav:active { transform: translateY(-50%) scale(0.94); }
.reviews-nav--prev { left: 6px; }
.reviews-nav--next { right: 6px; }

/* Dots */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.reviews-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.reviews-dot.is-active {
    background: var(--brand);
    width: 22px;
    border-radius: 999px;
}

@media (min-width: 720px) {
    .reviews-nav { display: flex; }
    .reviews-carousel { margin: 0; }
    .reviews-track { padding: 4px 8px 8px; }
    .review { flex-basis: 60%; max-width: 460px; }
}

/* =========================
   CASHBACK
   ========================= */
.cashback {
    background: linear-gradient(135deg, #FFF4E3 0%, #FFE1BF 100%);
}

.cashback__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 12px 28px rgba(42, 26, 15, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cashback__badge {
    position: relative;
    background: linear-gradient(135deg, #FFB26B 0%, var(--accent) 55%, var(--brand-dark) 120%);
    color: #fff;
    padding: 26px 20px 22px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.cashback__badge::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px -40px;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cashback__percent {
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    display: inline-flex;
    align-items: baseline;
}

.cashback__percent > span {
    font-size: 30px;
    font-weight: 700;
    margin-left: 4px;
    opacity: 0.9;
}

.cashback__badge-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: lowercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.cashback__body {
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cashback__title {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
}

.cashback__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

.cashback__text b { color: var(--ink); }

.cashback__how {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 14px 16px 16px;
    margin-top: 4px;
}

.cashback__how-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cashback__steps {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
    display: grid;
    gap: 6px;
}

.cashback__steps li::marker { color: var(--accent-2); font-weight: 700; }

.cashback__steps b { color: var(--ink); }

.cashback__ctas {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

@media (min-width: 720px) {
    .cashback__card { flex-direction: row; }
    .cashback__badge {
        flex: 0 0 240px;
        flex-direction: column;
        padding: 28px 20px;
        gap: 6px;
    }
    .cashback__percent { font-size: 84px; }
    .cashback__body { padding: 26px 28px; gap: 14px; }
    .cashback__title { font-size: 26px; }
    .cashback__ctas { grid-template-columns: 1fr 1fr; }
}

/* =========================
   HOW TO SPOT GOOD BREAD
   ========================= */
.bread-check {
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.bread-check__list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.bread-check__item {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    align-items: flex-start;
}

.bread-check__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(235, 141, 55, 0.15), rgba(163, 108, 54, 0.1));
    display: grid;
    place-items: center;
    font-size: 24px;
}

.bread-check__body h3 {
    font-size: 16px;
    margin: 2px 0 6px;
    font-weight: 700;
    color: var(--ink);
}

.bread-check__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.bread-check__body p b {
    color: var(--ink);
    font-weight: 700;
}

@media (min-width: 720px) {
    .bread-check__list { grid-template-columns: 1fr 1fr; }
}

/* =========================
   STATS
   ========================= */
.stats {
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.stats__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stats__item--hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border: none;
    padding: 22px 16px;
    box-shadow: 0 8px 24px rgba(163, 108, 54, 0.3);
}

.stats__num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.stats__item--hero .stats__num {
    color: #fff;
    font-size: 40px;
}

.stats__label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.35;
    font-weight: 600;
}

.stats__label small {
    display: block;
    font-weight: 400;
    opacity: 0.75;
    font-size: 11.5px;
    margin-top: 2px;
}

.stats__item--hero .stats__label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
}
.stats__item--hero .stats__label small {
    color: rgba(255, 255, 255, 0.78);
}

.stats__highlight {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.stats__highlight-icon {
    width: 48px; height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 24px;
    background: linear-gradient(135deg, #FFE3B8, #FFB26B);
}

.stats__highlight-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.stats__highlight p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

@media (min-width: 720px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); }
    .stats__item--hero { grid-column: 1 / -1; }
    .stats__num { font-size: 30px; }
    .stats__item--hero .stats__num { font-size: 48px; }
}

/* =========================
   FAQ
   ========================= */
.faq {
    display: grid;
    gap: 10px;
}

details.faq__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}

details.faq__item summary {
    padding: 14px 44px 14px 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    font-size: 15px;
}

details.faq__item summary::-webkit-details-marker { display: none; }

details.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--accent-2);
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

details.faq__item[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

details.faq__item p {
    padding: 0 16px 14px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* =========================
   STICKY CART BAR
   ========================= */
.cart-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(253, 250, 245, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 12px 14px calc(12px + var(--safe-bottom));
    transform: translateY(110%);
    transition: transform 0.25s ease;
    box-shadow: 0 -10px 30px rgba(42, 26, 15, 0.12);
}

.cart-bar.is-visible { transform: translateY(0); }

.cart-bar__row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}

.cart-bar__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.cart-bar__count {
    font-size: 12px;
    color: var(--muted);
}

.cart-bar__total {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.cart-bar__cta {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(107, 62, 29, 0.3);
}

body.has-cart { padding-bottom: 96px; }

/* =========================
   SHEET (checkout modal)
   ========================= */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(42, 26, 15, 0.55);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sheet-backdrop.is-open {
    opacity: 1; visibility: visible;
}

.sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    background: var(--bg);
    border-radius: 22px 22px 0 0;
    padding: 8px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -30px 60px rgba(42, 26, 15, 0.25);
}

.sheet.is-open { transform: translateY(0); }

.sheet__handle {
    width: 40px; height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin: 6px auto 4px;
}

.sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px 10px;
    border-bottom: 1px solid var(--line);
}

.sheet__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.sheet__close {
    appearance: none;
    border: 0;
    background: var(--bg-soft);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--ink);
    cursor: pointer;
    display: grid; place-items: center;
}

.sheet__body {
    overflow-y: auto;
    padding: 16px 18px calc(24px + var(--safe-bottom));
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Checkout cart list */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}

.cart-item__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}

.cart-item__price {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 18px 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #fff;
}

/* =========================
   FORM
   ========================= */
.toggle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.toggle-row button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-soft);
    border-radius: 10px;
    cursor: pointer;
}

.toggle-row button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    min-height: 48px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 139, 58, 0.18);
}

.field textarea { resize: vertical; min-height: 70px; }

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone-field .phone-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.phone-field .phone-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 139, 58, 0.18);
}

.phone-field .phone-prefix {
    padding: 12px 10px 12px 14px;
    color: var(--ink-soft);
    font-weight: 600;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    font-size: 16px;
}

.phone-field input {
    border: 0; border-radius: 0; background: transparent; flex: 1;
    box-shadow: none;
}
.phone-field input:focus { box-shadow: none; }

.pickup-options {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.pickup-option {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pickup-option.is-selected {
    border-color: var(--accent);
    background: rgba(217, 139, 58, 0.08);
    box-shadow: 0 0 0 3px rgba(217, 139, 58, 0.18);
}

.pickup-option__title { font-weight: 700; }
.pickup-option__meta { font-size: 12px; color: var(--ink-soft); }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.4;
}

.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

.summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary__label { color: var(--ink-soft); font-size: 14px; }
.summary__value { font-weight: 800; font-size: 20px; color: var(--ink); }

.notice {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin: 8px 0;
    display: flex;
    gap: 8px;
}

.notice--info { background: #eef5ff; color: #0b4a8c; }
.notice--warn { background: #fff7e6; color: #7a4c00; }
.notice--error { background: #ffe9e9; color: #a3160f; }
.notice--ok { background: #e8f6ea; color: #1e5f28; }

.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

/* =========================
   STATUS CARD
   ========================= */
.status-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 14px;
}

.status-card h4 { margin: 0 0 10px; font-size: 16px; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

.status-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}
.status-pill.st-inprogress, .status-pill.st-submitted { background: #eaf2ff; color: #0b4a8c; }
.status-pill.st-inprogress .dot, .status-pill.st-submitted .dot { background: #0b4a8c; }
.status-pill.st-approved { background: #e8f5ea; color: #1e5f28; }
.status-pill.st-approved .dot { background: #1e5f28; }
.status-pill.st-completed { background: #e8fff0; color: #1f6f3d; }
.status-pill.st-completed .dot { background: #1f6f3d; animation: none; }
.status-pill.st-canceled, .status-pill.st-removed, .status-pill.st-notfound { background: #fdecea; color: #a3160f; }
.status-pill.st-canceled .dot, .status-pill.st-removed .dot, .status-pill.st-notfound .dot { background: #a3160f; animation: none; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.status-card__desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* =========================
   TOAST
   ========================= */
.toast-wrap {
    position: fixed;
    left: 50%;
    bottom: calc(100px + var(--safe-bottom));
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: min(92vw, 420px);
}

.toast {
    background: #2a1a0f;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    animation: toast-in 0.25s forwards;
    pointer-events: auto;
}

.toast.ok { background: #1e5f28; }
.toast.warn { background: #7a4c00; }
.toast.err { background: #a3160f; }

@keyframes toast-in {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   FOOTER
   ========================= */
footer {
    background: var(--brand-dark);
    color: #f4ead9;
    padding: 26px 0 40px;
}

footer a { color: #f4ead9; text-decoration: underline; }
footer p { margin: 0 0 8px; font-size: 14px; }
footer small { color: rgba(244, 234, 217, 0.6); font-size: 12px; }

/* =========================
   MISC
   ========================= */
.hr {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 18px 0;
}

/* Small-screen tweaks */
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    h1 { font-size: 26px; }
    .product__name { font-size: 18px; }
}

/* Larger screens: keep mobile feel but centered */
@media (min-width: 720px) {
    .catalog { grid-template-columns: 1fr 1fr; }
    .usp__grid { grid-template-columns: repeat(4, 1fr); }
    .container { max-width: 760px; }
}

/* =========================
   CONTACT SHEET
   ========================= */
.sheet--compact {
    max-height: 80vh;
}

.contact-actions {
    padding: 14px 16px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.contact-action:active { transform: scale(0.985); }

.contact-action--wa {
    background: #25D366;
    border-color: #1ebd5d;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.contact-action__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    flex: 0 0 auto;
    color: #25D366;
}

.contact-action--wa .contact-action__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.contact-action__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.contact-action__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.contact-action__sub {
    font-size: 13px;
    opacity: 0.85;
}

.contact-action__chev {
    font-size: 26px;
    line-height: 1;
    opacity: 0.4;
    flex: 0 0 auto;
}

.contact-action--wa .contact-action__chev { opacity: 0.75; }
