/* =========================================================================
   Sabor Oriental — estilos do site
   Paleta escura com vermelho de ação e dourado de destaque.
   ========================================================================= */

:root {
    --bg: #08090b;
    --bg-soft: #0d0e11;
    --surface: #121316;
    --surface-2: #18191d;
    --surface-3: #1f2025;
    --border: #26272c;
    --border-soft: #1d1e22;
    --text: #f6f6f7;
    --text-soft: #c7c8cd;
    --muted: #8e9098;
    --brand: #e11d2e;
    --brand-dark: #b8121f;
    --brand-soft: rgba(225, 29, 46, 0.14);
    --gold: #e8b45a;
    --success: #35c17f;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
    --shadow-brand: 0 16px 32px -16px rgba(225, 29, 46, 0.55);
    --display: 'Anton', 'Arial Narrow', system-ui, sans-serif;
    --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body.site {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(225, 29, 46, 0.16), transparent 60%),
        radial-gradient(80% 50% at 100% 0%, rgba(232, 180, 90, 0.08), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.nowrap { white-space: nowrap; }

.icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- layout */

.app {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px calc(104px + env(safe-area-inset-bottom));
}

.page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 14px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px;
    background: linear-gradient(180deg, rgba(8, 9, 11, 0.96) 55%, rgba(8, 9, 11, 0.65));
    backdrop-filter: blur(14px);
}

.topbar__side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
}

.topbar__side--right { justify-content: flex-end; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.icon-btn:active { transform: scale(0.96); }

.cart-btn { position: relative; }

.cart-btn__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
}

/* ---------------------------------------------------------------- marca */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 40px;
    color: var(--brand);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-mark--sm { width: 26px; height: 32px; }

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
}

.brand__text strong {
    font-family: var(--display);
    font-size: 21px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.brand__text em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--brand);
    margin-top: 2px;
}

/* ---------------------------------------------------------------- busca */

.searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 14px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

.searchbar__icon { display: inline-flex; color: var(--muted); }

.searchbar input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
}

.searchbar input::placeholder { color: #6c6e76; }
.searchbar input::-webkit-search-cancel-button { filter: invert(0.6); }

.searchbar__go {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

/* ---------------------------------------------------------------- seções */

.section { display: flex; flex-direction: column; gap: 12px; }

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.section__title,
.page-title {
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.page-title { font-size: 28px; }

.section__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.02);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(8, 9, 11, 0.94) 18%, rgba(8, 9, 11, 0.4) 62%, rgba(8, 9, 11, 0.05)),
        linear-gradient(0deg, rgba(8, 9, 11, 0.85), transparent 60%);
}

.hero__content {
    padding: 22px;
    max-width: 68%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero__title {
    font-family: var(--display);
    font-size: 40px;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero__text {
    font-size: 12.5px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

.hero .btn { align-self: flex-start; margin-top: 6px; }

/* ---------------------------------------------------------------- entrada */

.welcome {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
}

.welcome__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.welcome::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.2) 32%, rgba(8, 9, 11, 0.92) 74%, #08090b 100%);
}

.welcome__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 24px calc(38px + env(safe-area-inset-bottom));
    text-align: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.welcome__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.welcome__brand .brand-mark { width: 62px; height: 74px; }

.welcome__brand strong {
    font-family: var(--display);
    font-size: 40px;
    letter-spacing: 0.03em;
    line-height: 1;
}

.welcome__brand em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.42em;
    color: var(--brand);
}

.welcome__slogan {
    max-width: 300px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.welcome__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ---------------------------------------------------------------- botões */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-brand);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { background: #ef2334; }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.45; box-shadow: none; cursor: not-allowed; }

.btn--outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: var(--text);
    box-shadow: none;
}

.btn--outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn--soft {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}

.btn--soft:hover { background: var(--surface-3); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn--sm {
    min-height: 40px;
    font-size: 13px;
    padding: 0 16px;
    border-radius: 12px;
    width: auto;
}

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

/* ---------------------------------------------------------------- chips */

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: none;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.chip:hover { border-color: #3a3b42; color: var(--text); }

.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px -14px rgba(225, 29, 46, 0.9);
}

/* ---------------------------------------------------------------- categorias */

.cat-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
    flex: none;
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.cat-pill__img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.cat-pill__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.cat-pill:hover .cat-pill__img { border-color: var(--brand); transform: translateY(-2px); }

.cat-pill span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.2;
}

.cat-pill.is-active .cat-pill__img { border-color: var(--brand); }
.cat-pill.is-active span { color: var(--text); }

/* ---------------------------------------------------------------- cards de produto */

.grid-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover { transform: translateY(-3px); border-color: #34353c; }

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(150deg, #1a1b1f, #101114);
}

.product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
}

.product-card__name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.price {
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
}

.price--old {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: line-through;
    margin-right: 6px;
}

.price__row { display: flex; align-items: baseline; flex-wrap: wrap; }

.add-btn {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(225, 29, 46, 0.9);
    transition: transform 0.15s ease, background 0.15s ease;
}

.add-btn:hover { background: #ef2334; }
.add-btn:active { transform: scale(0.92); }

/* linha horizontal (cardápio / categoria) */

.product-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-row:hover { border-color: #34353c; background: #141519; }

.product-row__media {
    flex: none;
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(150deg, #1a1b1f, #101114);
}

.product-row__media img { width: 100%; height: 100%; object-fit: cover; }

.product-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
}

.product-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-row__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.product-row__desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-row__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.product-row__side { display: flex; align-items: flex-end; }

/* selos */

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--surface-3);
    color: var(--text-soft);
}

.badge--brand { background: var(--brand-soft); color: #ff6a77; }
.badge--gold { background: rgba(232, 180, 90, 0.14); color: var(--gold); }
.badge--age { background: rgba(255, 255, 255, 0.08); color: var(--text-soft); }

.product-card__media .badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

/* ---------------------------------------------------------------- formulários */

.field { display: flex; flex-direction: column; gap: 6px; }

.field > label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.input,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
    border-color: var(--brand);
    background: #141519;
}

.field input::placeholder,
.field textarea::placeholder { color: #6c6e76; }

.form-grid { display: grid; gap: 12px; }

.form-grid--2 { grid-template-columns: 1fr 1fr; }

.form-grid--3 { grid-template-columns: 2fr 1fr; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* painel branco? não: cartões escuros */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.card__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ---------------------------------------------------------------- produto */

.product-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: linear-gradient(150deg, #1a1b1f, #101114);
}

.product-hero img { width: 100%; height: 100%; object-fit: cover; }

.product-hero__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.product-hero .icon-btn { background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(8px); }

.product-head { display: flex; flex-direction: column; gap: 8px; }

.product-head h1 {
    font-family: var(--display);
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.option-list { display: flex; flex-direction: column; gap: 8px; }

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.option:hover { border-color: #3a3b42; }

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option__check {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 6px;
    border: 1.5px solid #3d3e45;
    display: grid;
    place-items: center;
    color: transparent;
    transition: all 0.18s ease;
}

.option input:checked ~ .option__check {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.option__label { flex: 1; font-size: 14px; font-weight: 500; }
.option__price { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.option__price--free { color: var(--success); }

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.stepper button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: background 0.15s ease;
}

.stepper button:hover { background: var(--surface-3); }

.stepper__value {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.buy-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-bar .btn { flex: 1; }

/* ---------------------------------------------------------------- carrinho */

.cart-list { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-item__media {
    flex: none;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(150deg, #1a1b1f, #101114);
}

.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.cart-item__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }

.cart-item__name { font-size: 14px; font-weight: 700; line-height: 1.25; }

.cart-item__meta { font-size: 12px; color: var(--muted); line-height: 1.35; }

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

.remove-btn { color: #7a7c84; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.remove-btn:hover { color: var(--brand); background: var(--brand-soft); }

.summary { display: flex; flex-direction: column; gap: 8px; }

.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-soft); }
.summary__row--total { padding-top: 10px; border-top: 1px dashed var(--border); font-size: 18px; font-weight: 800; color: var(--text); }

.pay-list { display: flex; flex-direction: column; gap: 8px; }

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.pay-option:hover { border-color: #3a3b42; }
.pay-option input { position: absolute; opacity: 0; }

.pay-option__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface-3);
    display: grid;
    place-items: center;
    color: var(--text-soft);
}

.pay-option__label { flex: 1; font-size: 14px; font-weight: 600; }

.pay-option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #3d3e45;
    display: grid;
    place-items: center;
    color: transparent;
}

.pay-option__radio::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.pay-option input:checked ~ .pay-option__radio { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pay-option:has(input:checked) { border-color: var(--brand); background: rgba(225, 29, 46, 0.06); }

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

.address-line__icon { color: var(--brand); padding-top: 2px; }
.address-line__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.address-line__body strong { font-size: 14px; }
.address-line__body span { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- pedidos */

.order-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.18s ease;
}

.order-card:hover { border-color: #34353c; }

.order-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.order-card__code { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-soft); }
.order-card__items { font-size: 13px; color: var(--muted); line-height: 1.4; }
.order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--border); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--brand-soft);
    color: #ff7a85;
}

.status--em_preparo { background: rgba(232, 180, 90, 0.15); color: var(--gold); }
.status--saiu_entrega { background: rgba(90, 160, 255, 0.15); color: #7db0ff; }
.status--entregue { background: rgba(53, 193, 127, 0.15); color: var(--success); }
.status--cancelado { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.timeline { display: flex; flex-direction: column; gap: 0; padding: 6px 0; }

.timeline__step { display: flex; gap: 12px; }

.timeline__marker { display: flex; flex-direction: column; align-items: center; }

.timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #3a3b42;
    background: var(--surface);
    margin-top: 3px;
}

.timeline__step.is-done .timeline__dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.timeline__line { flex: 1; width: 2px; background: var(--border); min-height: 26px; }
.timeline__step.is-done .timeline__line { background: var(--brand); }
.timeline__step:last-child .timeline__line { display: none; }

.timeline__body { padding-bottom: 18px; display: flex; flex-direction: column; gap: 2px; }
.timeline__body strong { font-size: 14px; }
.timeline__body span { font-size: 12px; color: var(--muted); }

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.015);
}

.empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--muted);
}

.empty h3 { font-size: 16px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 260px; }
.empty .btn { max-width: 240px; }

/* ---------------------------------------------------------------- rodapé e navegação */

.bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 9, 11, 0.92);
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
}

.bottomnav__item {
    flex: 1;
    max-width: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 12px;
    color: #7c7e86;
    font-size: 10.5px;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease;
}

.bottomnav__item:hover { color: var(--text-soft); }
.bottomnav__item.is-active { color: var(--brand); background: rgba(225, 29, 46, 0.08); }

/* ---------------------------------------------------------------- drawer */

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); }

.drawer__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(84%, 330px);
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideIn 0.22s ease both;
}

.drawer__head { display: flex; align-items: center; gap: 10px; }
.drawer__head > div { flex: 1; display: flex; flex-direction: column; }
.drawer__head strong { font-size: 14px; }
.drawer__head span { font-size: 11px; }

.drawer__links { display: flex; flex-direction: column; gap: 4px; }

.drawer__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
}

.drawer__links a:hover { background: var(--surface); color: var(--text); }

.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer__foot p { font-size: 12px; }

/* ---------------------------------------------------------------- flash */

.flash {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 6px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    animation: fadeUp 0.25s ease both;
}

.flash--sucesso { background: rgba(53, 193, 127, 0.12); color: #7ce0b0; border: 1px solid rgba(53, 193, 127, 0.25); }
.flash--erro { background: rgba(225, 29, 46, 0.12); color: #ff8b94; border: 1px solid rgba(225, 29, 46, 0.28); }

/* ---------------------------------------------------------------- utilitários */

.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--sm { gap: 8px; }
.grow { flex: 1; }
.divider { height: 1px; background: var(--border); }
.section-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #3a3b42;
    background: linear-gradient(150deg, #191a1e, #0e0f12);
}

/* ---------------------------------------------------------------- animações */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes slideIn {
    from { transform: translateX(-14px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.page > * { animation: fadeUp 0.28s ease both; }
.page > *:nth-child(2) { animation-delay: 0.03s; }
.page > *:nth-child(3) { animation-delay: 0.06s; }

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

/* ---------------------------------------------------------------- desktop */


/* detalhe do produto (empilhado no celular, lado a lado no desktop) */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.icon-btn.is-favorito {
    color: var(--brand);
    border-color: rgba(225, 29, 46, 0.5);
    background: var(--brand-soft);
}

.icon-btn.is-favorito svg { fill: currentColor; }

.product-detail .card { gap: 10px; }

@media (min-width: 900px) {
    body.site { font-size: 15.5px; }
    .app { padding: 0 28px calc(112px + env(safe-area-inset-bottom)); }
    .page { gap: 26px; }
    .topbar { padding: 16px 0; }
    .brand-mark { width: 38px; height: 44px; }
    .brand__text strong { font-size: 23px; }

    .hero { min-height: 300px; }
    .hero__title { font-size: 52px; }
    .hero__content { padding: 30px; max-width: 55%; }

    .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .product-row__media { width: 118px; height: 118px; }
    .product-row__name { font-size: 15px; }

    .section__title { font-size: 28px; }

    .split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
    .split__aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }

    .product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; }
    .product-hero { aspect-ratio: 1 / 1; position: sticky; top: 92px; }

    .bottomnav { padding: 10px; }
    .bottomnav__item { max-width: 150px; }
}

/* =========================================================================
   Tema claro — ativado pelo painel (Configurações → Aparência do site)
   ========================================================================= */

body.site[data-tema="claro"] {
    --bg: #f6f5f2;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f2ee;
    --surface-3: #eae7e1;
    --border: #e4e0d9;
    --border-soft: #eeece7;
    --text: #17181b;
    --text-soft: #414349;
    --muted: #75777e;
    --brand: #c8102e;
    --brand-dark: #a50d24;
    --brand-soft: rgba(200, 16, 46, 0.1);
    --gold: #a1701c;
    --success: #157a50;
    --shadow: 0 20px 45px -30px rgba(20, 18, 15, 0.35);
    --shadow-brand: 0 16px 30px -18px rgba(200, 16, 46, 0.4);
    --border-strong: #d3cec5;
    background:
        radial-gradient(110% 55% at 50% -12%, rgba(200, 16, 46, 0.09), transparent 60%),
        radial-gradient(70% 45% at 100% 0%, rgba(233, 190, 110, 0.16), transparent 55%),
        var(--bg);
}

body.site[data-tema="claro"] .topbar {
    background: linear-gradient(180deg, rgba(246, 245, 242, 0.97) 60%, rgba(246, 245, 242, 0.72));
}

body.site[data-tema="claro"] .icon-btn {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-soft);
}

body.site[data-tema="claro"] .icon-btn:hover { background: var(--surface-2); }
body.site[data-tema="claro"] .cart-btn__badge { border-color: #ffffff; }

body.site[data-tema="claro"] .searchbar {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 10px 24px -22px rgba(20, 18, 15, 0.5);
}

body.site[data-tema="claro"] .searchbar input { color: var(--text); }
body.site[data-tema="claro"] .searchbar input::placeholder,
body.site[data-tema="claro"] .field input::placeholder,
body.site[data-tema="claro"] .field textarea::placeholder { color: #9b9da3; }

body.site[data-tema="claro"] .btn {
    color: #ffffff;
    box-shadow: 0 14px 26px -18px rgba(200, 16, 46, 0.55);
}

body.site[data-tema="claro"] .btn--ghost {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text);
}

body.site[data-tema="claro"] .btn--soft {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

body.site[data-tema="claro"] .chip {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-soft);
}

body.site[data-tema="claro"] .chip:hover { border-color: var(--border-strong); color: var(--text); }
body.site[data-tema="claro"] .chip.is-active { background: var(--brand); border-color: var(--brand); color: #ffffff; }

body.site[data-tema="claro"] .product-card__media,
body.site[data-tema="claro"] .product-row__media,
body.site[data-tema="claro"] .cart-item__media,
body.site[data-tema="claro"] .product-hero,
body.site[data-tema="claro"] .thumb-placeholder {
    background: linear-gradient(150deg, #f1eee9, #e5e1da);
}

body.site[data-tema="claro"] .thumb-placeholder { color: #c8c3ba; }

body.site[data-tema="claro"] .product-card:hover,
body.site[data-tema="claro"] .product-row:hover,
body.site[data-tema="claro"] .order-card:hover { border-color: var(--border-strong); }

body.site[data-tema="claro"] .product-row:hover { background: #fbfaf8; }

body.site[data-tema="claro"] .field input:focus,
body.site[data-tema="claro"] .field select:focus,
body.site[data-tema="claro"] .field textarea:focus,
body.site[data-tema="claro"] .input:focus {
    background: #ffffff;
    border-color: var(--brand);
}

body.site[data-tema="claro"] .option__check,
body.site[data-tema="claro"] .pay-option__radio { border-color: #cbc6bd; }

body.site[data-tema="claro"] .option:hover,
body.site[data-tema="claro"] .pay-option:hover { border-color: var(--border-strong); }

body.site[data-tema="claro"] .remove-btn { color: #96989e; }

body.site[data-tema="claro"] .product-hero .icon-btn {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.9);
}

body.site[data-tema="claro"] .bottomnav {
    background: rgba(246, 245, 242, 0.94);
    border-top-color: var(--border);
}

body.site[data-tema="claro"] .bottomnav__item { color: #8b8d93; }
body.site[data-tema="claro"] .drawer__overlay { background: rgba(20, 18, 15, 0.38); }

body.site[data-tema="claro"] .empty {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border);
}

body.site[data-tema="claro"] .flash--sucesso {
    background: rgba(21, 122, 80, 0.1);
    color: #126b46;
    border-color: rgba(21, 122, 80, 0.22);
}

body.site[data-tema="claro"] .flash--erro {
    background: rgba(200, 16, 46, 0.08);
    color: #b0121f;
    border-color: rgba(200, 16, 46, 0.22);
}

body.site[data-tema="claro"] .status {
    background: rgba(200, 16, 46, 0.1);
    color: #b0121f;
}

body.site[data-tema="claro"] .status--em_preparo { background: rgba(161, 112, 28, 0.14); color: #8a5c0c; }
body.site[data-tema="claro"] .status--saiu_entrega { background: rgba(29, 95, 191, 0.12); color: #1d5fbf; }
body.site[data-tema="claro"] .status--entregue { background: rgba(21, 122, 80, 0.13); color: #157a50; }
body.site[data-tema="claro"] .status--cancelado { background: rgba(20, 18, 15, 0.06); color: var(--muted); }

body.site[data-tema="claro"] .timeline__dot { border-color: #d5d0c7; background: #ffffff; }
body.site[data-tema="claro"] .timeline__line { background: var(--border); }

body.site[data-tema="claro"] .badge { background: var(--surface-3); color: var(--text-soft); }
body.site[data-tema="claro"] .badge--brand { background: rgba(200, 16, 46, 0.1); color: var(--brand); }
body.site[data-tema="claro"] .badge--gold { background: rgba(161, 112, 28, 0.12); color: #8a5c0c; }

body.site[data-tema="claro"] .section-note,
body.site[data-tema="claro"] .hint { color: var(--muted); }

body.site[data-tema="claro"] .hero::after {
    background:
        linear-gradient(100deg, rgba(8, 9, 11, 0.9) 18%, rgba(8, 9, 11, 0.35) 62%, rgba(8, 9, 11, 0.02)),
        linear-gradient(0deg, rgba(8, 9, 11, 0.8), transparent 60%);
}

/* textos sobre fotos continuam claros nos dois temas */
body.site[data-tema="claro"] .welcome { color: #f7f7f8; }
body.site[data-tema="claro"] .welcome__slogan { color: #dadce1; }
body.site[data-tema="claro"] .welcome .muted { color: #b9bbc2; }
body.site[data-tema="claro"] .welcome .btn--outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}
body.site[data-tema="claro"] .welcome .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
body.site[data-tema="claro"] .hero__content { color: #f7f7f8; }
body.site[data-tema="claro"] .hero .hero__kicker { color: #e8b45a; }
body.site[data-tema="claro"] .hero__text { color: #d7d9de; }
body.site[data-tema="claro"] .hero__content .btn { color: #ffffff; }
