/* TakeFood Delivery — storefront (PWA shell). Tenant colors come from the
   dynamically generated theme.css (loaded after this file) via CSS custom
   properties — kept in an external stylesheet, not inline, to stay inside
   a strict style-src 'self' CSP with no 'unsafe-inline'. */

:root {
    --store-primary: #ff7a00;
    --store-secondary: #ffb703;
    --store-background: #0d0d10;
    --store-gradient: linear-gradient(135deg, var(--store-primary), var(--store-secondary));
    --store-accent-green: #4caf6f;
    --store-heart: #ff5a6e;
    --store-hero-gradient: linear-gradient(180deg, color-mix(in srgb, var(--store-primary) 12%, #fff) 0%, var(--bg) 100%);

    --font-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg: #f7f7f9;
    --surface: #ffffff;
    --surface-2: #f1f1f5;
    --border: #e4e4ea;
    --text: #16161d;
    --text-muted: #5a5a68;
    --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 16, 20, 0.08);
    --radius-md: 14px;
    --radius-lg: 20px;
    --bottom-nav-height: 68px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0b0b0e;
    --surface: #16161c;
    --surface-2: #1c1c24;
    --border: #2a2a34;
    --text: #f2f2f5;
    --text-muted: #a4a4b3;
    color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* ---------- Top bar (light, minimal — every storefront page) ---------- */
.store-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.store-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-logo {
    width: var(--store-logo-size, 46px);
    height: var(--store-logo-size, 46px);
    border-radius: var(--store-logo-radius, 10px);
    object-fit: cover;
    background: var(--store-logo-bg, var(--surface-2));
    border: var(--store-logo-border, none);
    flex-shrink: 0;
}
.store-brand-text { display: flex; flex-direction: column; min-width: 0; }
.store-name-prefix { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.store-tagline { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-muted); line-height: 1.35; margin-top: 2px; white-space: pre-line; }

.store-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.store-header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.icon-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--store-gradient);
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--store-gradient);
    color: #fff;
    cursor: pointer;
}
.btn[hidden] { display: none; }

.store-main { padding: 28px 0 60px; }
.flash-container { padding-top: 20px; }

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--store-secondary) transparent;
    /* Room for the selected-chip ring (box-shadow, up to 10px spread —
       see ThemeController's borda_espessura) on every edge: overflow-x:auto
       clips overflow-y too, so without this the ring on the very first/last
       chip (left/right) and on every chip (top) got visibly cut off instead
       of just clipping the row's own empty space. */
    padding: 10px;
    margin-bottom: 14px;
    cursor: grab;
}
.category-chips.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.category-chips::-webkit-scrollbar { height: 6px; }
.category-chips::-webkit-scrollbar-thumb { background: var(--store-secondary); border-radius: 999px; }
.category-chips::-webkit-scrollbar-track { background: transparent; }
.category-chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}
.category-chip.active { background: var(--store-gradient); color: #fff; border-color: transparent; }

.category-chip-icone, .category-chip-imagem {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 2px;
    width: auto;
    min-width: 62px;
    /* Reset the base .category-chip "pill" look (background/border/radius)
       — it still applies here since this link carries both classes, and
       left alone it shows as a warped oval behind the round icon/image. */
    background: transparent;
    border: none;
    border-radius: 0;
}
.category-chip-icone.active, .category-chip-imagem.active {
    background: transparent;
}

/* Category name for icon/image chips is always visible below the icon
   (matches the reference layout) — no longer a hover/tap-reveal tooltip. */
.category-chip-name {
    position: static;
    background: none;
    color: var(--text-muted);
    padding: 0;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}
.category-chip-icone.active .category-chip-name,
.category-chip-imagem.active .category-chip-name {
    color: var(--store-primary);
    font-weight: 700;
}

/* "Mostrar nome ao passar o mouse ou quando selecionado" (category's
   mostrar_nome_hover on, mostrar_nome_estatico off — see
   CategoryAdminService/storefront/show.php). Opacity/visibility instead of
   display:none so the name's own layout space stays reserved — hovering a
   chip doesn't shift the row below it. */
.category-chip.name-on-hover .category-chip-name {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}
.category-chip.name-on-hover:hover .category-chip-name,
.category-chip.name-on-hover.active .category-chip-name {
    opacity: 1;
    visibility: visible;
}

.category-chip-visual {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--store-gradient);
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    transition: box-shadow .15s ease;
}

/* Selection ring — drawn on the shaped .category-chip-visual itself (not
   the outer link) so it always follows the actual circle/square/rectangle,
   and only shows for whichever category is the current filter. Per-category
   color comes from cor_borda (see ThemeController); falls back to the
   store's own primary color when not customized. */
.category-chip-icone.active .category-chip-visual,
.category-chip-imagem.active .category-chip-visual {
    box-shadow: 0 0 0 3px var(--store-primary);
}
.category-chip-visual svg { width: 26px; height: 26px; }
.category-chip-visual img { width: 100%; height: 100%; object-fit: cover; }

.shape-quadrado .category-chip-visual { border-radius: var(--radius-md); }
.shape-circulo .category-chip-visual { border-radius: 50%; }
.shape-retangulo .category-chip-visual { width: 60px; height: 40px; border-radius: 8px; }

/* Same "quadrado/circulo/retangulo" choice, applied to a plain text chip
   itself instead of a .category-chip-visual box (texto mode has no such
   box — see storefront/show.php). Deliberately its own class (format-*, not
   shape-*): icone/imagem chips never carry this class, so there's no need
   to fence these off with :not() — and no risk of that guard accidentally
   out-specificity-ing ThemeController's per-category override rules below,
   which is exactly what happened before (a :not()-chain rule and a plain
   [data-category-id] rule have different specificity, so the more specific
   one always won regardless of stylesheet load order — the customized size
   never took visible effect). Keep every property below at the same
   specificity as ThemeController's generated `.category-chip[data-category-id="X"]`
   rules (one class, or one class + one attribute) so a customization always
   wins on source order (theme.css loads after this file) without a fight. */
.category-chip.format-quadrado { border-radius: var(--radius-md); }
.category-chip.format-retangulo { border-radius: 8px; }

/* "Círculo" can't just round an auto-width text pill (border-radius alone
   draws a stadium, not a circle, once there's more than ~1 character) — it
   needs a real width=height box with the text centered and wrapping inside
   it. This is the sane default (matches the icon chips' own 54px box);
   ThemeController's per-category CSS overrides width/height/font-size/
   padding when the admin customizes "Tamanho do formato"/"Tamanho do
   texto"/"Espaçamento interno" for that category. */
.category-chip.format-circulo {
    width: 54px;
    height: 54px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 1.15;
}

.category-section[hidden] { display: none; }

.category-section { margin-bottom: 34px; }
.category-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
}
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: block;
}
.product-image-wrap { position: relative; }
.product-image { width: 100%; height: 140px; object-fit: contain; background: var(--surface-2); }
.product-body { padding: 12px; }
.product-body-link { display: block; }
.product-name { font-weight: 600; font-size: 0.88rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price-group { margin: 0; }
.product-price { font-weight: 800; font-size: 1rem; color: var(--store-primary); }
.product-price-old { display: block; text-decoration: line-through; color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.product-unit { color: var(--text-muted); font-size: 0.75rem; }
.product-add-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.product-add-btn svg { width: 16px; height: 16px; }

/* ---------- Favorite heart button (product cards + detail page) ---------- */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.favorite-btn svg { width: 16px; height: 16px; }
.favorite-btn[data-favorite="1"] { color: var(--store-heart); }
.favorite-btn[data-favorite="1"] svg { fill: var(--store-heart); }
.favorite-btn.favorite-btn-lg { position: static; width: 40px; height: 40px; }
.favorite-btn.favorite-btn-lg svg { width: 20px; height: 20px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.store-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.offline-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(120%);
    background: var(--store-background);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    z-index: 200;
    transition: transform .25s ease;
    max-width: 90vw;
    text-align: center;
}
.offline-banner.visible { transform: translateX(-50%) translateY(0); }

/* ---------- Bottom tab navigation (every storefront page) ---------- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16, 16, 20, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 2px 8px;
    color: var(--text-muted);
    font-size: 0.63rem;
    font-weight: 600;
    position: relative;
    min-width: 0;
}
.bottom-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.bottom-nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bottom-nav-item.active { color: var(--store-primary); }
.bottom-nav-item .cart-count {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: var(--store-gradient);
    color: #fff;
    border-radius: 999px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0)); }

/* ---------- Chat widget (SompZap + IA assistant) ---------- */
.chat-widget {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 16px);
    z-index: 110;
}
/* The closed bubble stays below the sticky-cart-bar (120) so it never
   blocks the primary "Adicionar ao carrinho" click — but once the panel
   is actually open it's the active surface and needs to sit above
   everything on the page, sticky-cart-bar included, or its own content
   (input field, close button) gets visually clipped/unclickable behind
   whatever else is fixed at the bottom of that page. */
.chat-widget:has(.chat-panel:not([hidden])) {
    z-index: 200;
}
.chat-bubble {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.chat-bubble svg { width: 24px; height: 24px; }

.chat-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(340px, calc(100vw - 32px));
    height: min(460px, calc(100vh - 180px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--store-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}
.chat-panel-head .icon-btn { width: 30px; height: 30px; border-color: transparent; background: rgba(255,255,255,0.18); color: #fff; }
.chat-panel-head .icon-btn:hover { background: rgba(255,255,255,0.3); }
.chat-panel-head .icon-btn svg { width: 15px; height: 15px; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-message {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
}
.chat-message-assistant {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-message-user {
    align-self: flex-end;
    background: var(--store-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-message-typing { opacity: 0.6; font-style: italic; }
.chat-message-staff {
    align-self: flex-start;
    background: color-mix(in srgb, var(--brand-orange) 14%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--brand-orange) 30%, var(--border));
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-status-banner {
    margin: 0;
    padding: 8px 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

.chat-escalate-row { padding: 0 14px 10px; text-align: center; }
.chat-escalate-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.chat-escalate-btn:hover { color: var(--text); border-color: var(--brand-orange); }
.chat-escalate-btn:disabled { opacity: 0.6; cursor: default; }

.chat-escalate-name-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 10px;
}
.chat-escalate-name-form[hidden] { display: none; }

.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
}
.chat-input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.85rem;
    color: var(--text);
}
.chat-send {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    border: none;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat-send svg { width: 17px; height: 17px; }

/* ---------- App-style secondary page header (back + title + action) ---------- */
.app-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 4px;
}
.app-page-header .app-page-title { font-size: 1.1rem; font-weight: 800; margin: 0; }
.app-page-header .icon-btn { background: var(--surface); }

/* ---------- Home hero: greeting card + search ---------- */
.hero-section { padding: 14px 0 4px; margin-bottom: 8px; }
.greeting-card {
    background: var(--store-hero-gradient);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
}
.greeting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.greeting-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.greeting-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.greeting-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.greeting-avatar-photo { background: var(--surface-2); object-fit: cover; }
.install-btn { flex-shrink: 0; background: var(--surface); }
.install-btn svg { width: 16px; height: 16px; }
.greeting-text .greeting-hello { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.greeting-text .greeting-name { font-size: 1.12rem; font-weight: 800; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-status { margin: -4px 0 14px; font-size: 0.85rem; font-weight: 700; }
.store-status-open { color: #1d7a4c; }
.store-status-closed { color: #a12622; }

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}
.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.92rem;
}
.search-bar input:focus { outline: none; }
.search-bar-submit {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    color: var(--store-primary);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}
.search-bar-page { margin: 24px 0 8px; }
.search-result-count { margin-top: 20px; }

.greeting-actions .icon-btn { width: 38px; height: 38px; background: var(--surface); transition: color 0.15s, border-color 0.15s; }
.greeting-actions .icon-btn svg { width: 17px; height: 17px; }
.greeting-actions .icon-btn:hover { border-color: currentColor; }
.greeting-actions .icon-btn[data-social="instagram"]:hover { color: #e1306c; }
.greeting-actions .icon-btn[data-social="facebook"]:hover { color: #1877f2; }
.greeting-actions .icon-btn[data-social="whatsapp"]:hover { color: #25d366; }
.greeting-actions .icon-btn[data-social="youtube"]:hover { color: #ff0000; }

/* ---------- Promotional banner carousel ----------
   1 slide visible per "page" on phones, N on tablet/desktop (N = tenant's
   banner_carousel_desktop_count setting, emitted as --banner-count by the
   generated theme.css) — the JS auto-play advances by exactly one
   slide-width at a time regardless, so on wider screens it reads as a
   smooth N-up strip shifting by one. */
.banner-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 10px;
    margin: 6px 0 26px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.banner-carousel::-webkit-scrollbar { display: none; }
.banner-slide {
    scroll-snap-align: start;
    flex: 0 0 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: var(--store-gradient);
}
.banner-slide img { width: 100%; height: 150px; object-fit: contain; display: block; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin: -14px 0 22px; }
.banner-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.banner-dot.active { background: var(--store-primary); width: 16px; }

@media (min-width: 768px) {
    .banner-slide { flex-basis: calc((100% - (var(--banner-count, 3) - 1) * 14px) / var(--banner-count, 3)); }
    .banner-slide img { height: 170px; }
}

/* ---------- Product detail page ---------- */
.product-detail-image { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); margin-bottom: 18px; }

/* Photo carousel (main product photo + "Galeria de imagens" uploads) — only
   rendered when there's more than one photo; a single photo still uses the
   plain .product-detail-image above, unchanged. Its own position:relative
   wrapper (not the outer .product-image-wrap, which also holds the
   favorite button above this) is what the nav arrows anchor to, so
   top: 50% centers on the photo itself. */
.product-gallery-wrap { position: relative; margin-bottom: 18px; }
.product-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: var(--radius-lg);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.product-gallery::-webkit-scrollbar { display: none; }
.product-gallery-slide { scroll-snap-align: start; flex: 0 0 100%; min-width: 0; width: 100%; height: 260px; object-fit: cover; background: var(--surface-2); }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav-prev { left: 8px; }
.gallery-nav-next { right: 8px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.gallery-dot.active { background: var(--store-primary); width: 16px; }
.product-detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.product-detail-price { font-size: 1.4rem; font-weight: 800; color: var(--store-primary); }
.section-heading { font-size: 0.95rem; font-weight: 700; margin: 22px 0 10px; }
.product-description p { color: var(--text); line-height: 1.6; margin: 0; }
.product-grid-related { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ---------- Quantity stepper ---------- */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
}
.qty-stepper button {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-stepper output { min-width: 28px; text-align: center; font-weight: 700; }

/* ---------- Sticky add-to-cart bar (product detail) ---------- */
.sticky-cart-bar {
    position: sticky;
    /* Docks just above the bottom tab bar, not underneath/behind it — and
       outranks the chat bubble's z-index (110) since they occupy the same
       bottom-right corner on this page and this button is the primary
       action here. Without this the tab bar (and, once added, the chat
       bubble) could sit on top and silently eat clicks meant for this
       button — "nothing happens" with no error, since the click never
       actually reached the form's submit button. */
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16, 16, 20, 0.06);
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}
.sticky-cart-bar .sticky-cart-total-label { font-size: 0.72rem; color: var(--text-muted); margin: 0; }
.sticky-cart-bar .sticky-cart-total-value { font-size: 1.15rem; font-weight: 800; margin: 0; }
.sticky-cart-bar .btn { flex-shrink: 0; padding: 13px 26px; }

/* ---------- Narrow content page (cart, checkout, login, order) ---------- */
.page-narrow { max-width: 640px; margin: 0 auto; padding: 32px 20px 60px; }
.page-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.section-label { font-weight: 700; margin: 18px 0 10px; }
.section-label-first { font-weight: 700; margin: 0 0 10px; }
.page-subtitle { color: var(--text-muted); margin: 0 0 24px; font-size: 0.9rem; }
.cancel-order-form { margin-bottom: 20px; }
.btn-mt { margin-top: 14px; display: inline-flex; }
.cart-line-qty-form { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.text-right { text-align: right; }

/* ---------- Coupon (cart/checkout) ---------- */
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: var(--radius-md); padding: 10px 14px; }
.coupon-applied-code { font-weight: 700; color: var(--store-primary); }
.coupon-applied form { margin: 0; }
.totals-row-discount { color: var(--store-accent-green); }
.cart-line-note-tight { margin: 0 0 8px; }
.address-text { margin: 0; color: var(--text-muted); }
.history-time { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Product reviews ---------- */
.review-form { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-form:last-child { border-bottom: none; }
.review-form-product { font-weight: 600; margin: 0 0 8px; }
.review-form textarea {
    width: 100%;
    margin: 8px 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label { font-size: 1.6rem; line-height: 1; color: var(--border); cursor: pointer; transition: color .1s ease; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f5a623; }

.review-summary { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.review-summary .star-rating-static { color: #f5a623; font-size: 1rem; letter-spacing: 1px; }
.review-summary-count { color: var(--text-muted); font-size: 0.85rem; }

.review-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.review-item-author { font-weight: 600; font-size: 0.88rem; }
.review-item-date { color: var(--text-muted); font-size: 0.78rem; }
.review-item-stars { color: #f5a623; font-size: 0.9rem; letter-spacing: 1px; margin: 0 0 6px; }
.review-item-comment { margin: 0; font-size: 0.88rem; color: var(--text); line-height: 1.5; }

/* ---------- Confirm modal (replaces window.confirm(), see confirm-forms.js) ---------- */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}
.confirm-modal-backdrop[hidden] { display: none; }
.confirm-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    max-width: 380px;
    width: 100%;
}
.confirm-modal-message { margin: 0 0 20px; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.confirm-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.closed-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.closed-modal-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.closed-modal-schedule { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text); }
.closed-modal-schedule li { border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* ---------- Hero "texto de destaque" + botão Informações (below search bar) ---------- */
.hero-info-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hero-banner-text {
    flex: 1;
    background: color-mix(in srgb, var(--store-primary) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--store-primary) 30%, var(--border));
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.hero-info-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--store-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.hero-info-btn svg { width: 22px; height: 22px; }

/* ---------- Info modal (reuses .confirm-modal-backdrop/.confirm-modal as the outer shell) ---------- */
.info-modal { padding: 0; overflow: hidden; max-width: 420px; max-height: 88vh; overflow-y: auto; }
.info-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--store-gradient);
    color: #fff;
}
.info-modal-header-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-header-icon svg { width: 24px; height: 24px; }
.info-modal-header-text { flex: 1; min-width: 0; }
.info-modal-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: #fff; }
.info-modal-subtitle { margin: 2px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.info-modal-close { flex-shrink: 0; background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }

.info-modal-body { padding: 20px; }

.info-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}
.info-modal-body > .info-modal-section-title:not(:first-child) { margin-top: 22px; }
.info-modal-section-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-section-icon svg { width: 16px; height: 16px; }

.info-modal-schedule-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
.info-modal-schedule-toggle-left { display: flex; align-items: center; gap: 10px; }
.info-modal-schedule-toggle-left svg { width: 18px; height: 18px; color: var(--store-primary); }
.info-modal-schedule-toggle > svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.info-modal-schedule-toggle > svg.info-modal-schedule-chevron-open { transform: rotate(180deg); }
.info-modal-schedule-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text); }
.info-modal-schedule-list[hidden] { display: none; }
.info-modal-schedule-list li { border-bottom: 1px solid var(--border); padding-bottom: 6px; }

.info-modal-payments { display: flex; flex-wrap: wrap; gap: 10px; }
.info-modal-payment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.info-modal-payment-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-payment-icon svg { width: 18px; height: 18px; }
.info-modal-payment-icon-money { background: #d5f2e3; color: #1d7a4c; }
.info-modal-payment-icon-card { background: #ffe3cc; color: #c2540a; }
.info-modal-payment-icon-online { background: #dbe9ff; color: #2f5fd0; }

.info-modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.info-modal-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.info-modal-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--store-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-modal-stat-icon svg { width: 19px; height: 19px; }
.info-modal-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.info-modal-stat-value { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.info-modal-address {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
}

/* ---------- Featured products modal ("Ofertas Imperdíveis") ---------- */
.featured-modal { padding: 0; overflow: hidden; max-width: 340px; width: 100%; }
.featured-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--store-gradient);
}
.featured-modal-header-text { flex: 1; min-width: 0; }
.featured-modal-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #fff; }
.featured-modal-subtitle { margin: 4px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.9); }
.featured-modal-close { flex-shrink: 0; background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }

.featured-carousel-wrap { position: relative; padding: 20px; }
.featured-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-slide { scroll-snap-align: start; flex: 0 0 100%; min-width: 0; text-align: center; }
.featured-image-wrap { position: relative; margin: 0 auto 14px; width: 160px; height: 160px; }
.featured-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
}
.featured-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e0264f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.featured-name { margin: 0 0 6px; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.featured-price-row { margin: 0 0 16px; }
.featured-price { font-weight: 800; font-size: 1.15rem; color: var(--store-primary); }
.featured-cta { display: block; width: 100%; }

.featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.featured-nav svg { width: 18px; height: 18px; }
.featured-nav-prev { left: 4px; }
.featured-nav-next { right: 4px; }

.featured-dots { display: flex; justify-content: center; gap: 6px; padding: 0 20px 20px; }
.featured-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.featured-dot.active { background: var(--store-primary); width: 16px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 18px;
}

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
input, select, textarea {
    font: inherit;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--store-primary); outline-offset: 1px; }
.field-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.checkbox-row input { width: auto; }
.checkbox-row label { color: var(--text); font-weight: 500; }

.option-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.option-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    background: var(--surface);
    transition: border-color .15s, background .15s;
}
.option-card:has(input:checked) { border-color: var(--store-primary); background: var(--surface-2); }
.option-card input { margin: 0; width: auto; }

.product-option-group { margin-bottom: 20px; }
.product-option-group > label { display: block; font-weight: 700; margin-bottom: 4px; }
.option-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.option-list .checkbox-row { margin-bottom: 0; padding: 6px 0; }
.option-list input:disabled { opacity: 0.4; cursor: not-allowed; }
.product-option-group-count { margin: 2px 0 0; }
.product-option-fraction { color: var(--store-primary); font-weight: 600; margin-top: 6px; }

/* ---------- Per-option quantity stepper (sabores/acompanhamentos) ---------- */
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.option-row-label { color: var(--text); font-weight: 500; font-size: 0.92rem; }
.option-stepper { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.option-stepper button {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-stepper-plus { background: var(--store-gradient); color: #fff; }
.option-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.option-stepper-qty { min-width: 16px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.radio-row input { width: auto; margin-top: 3px; }

.mp-secure-badge { display: flex; align-items: center; gap: 6px; padding: 10px 12px; margin: 8px 0 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.mp-secure-badge[hidden] { display: none; }

.mp-pix-qr { display: block; width: 220px; height: 220px; margin: 0 auto 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; padding: 8px; }
.mp-pix-copy-paste { font-family: monospace; font-size: 0.78rem; resize: none; height: 90px; margin-bottom: 10px; }
.mp-pix-copy-btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.mp-pix-status { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin: 0; }

.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-danger { background: #e5484d; border-color: transparent; }

.alert { background: #fdecea; color: #a12622; border: 1px solid #f5c2bf; border-radius: 10px; padding: 12px 14px; font-size: 0.86rem; margin-bottom: 16px; }
.alert-success { background: #e6f7ee; color: #1d7a4c; border-color: #bfe8d3; }
:root[data-theme="dark"] .alert { background: #2a1414; color: #ff9d97; border-color: #4a2020; }
:root[data-theme="dark"] .alert-success { background: #113023; color: #6fdba3; border-color: #1c4a34; }

/* ---------- Cart lines ---------- */
.cart-line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line-image { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 0.92rem; margin: 0 0 3px; }
.cart-line-note { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.cart-line-unavailable { color: #c0392b; font-size: 0.8rem; font-weight: 600; }
.cart-line-price { font-weight: 700; white-space: nowrap; }
.cart-line-qty { width: 60px; text-align: center; }

.totals-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.totals-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Profile ---------- */
.profile-header { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.profile-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--store-gradient); color: #fff; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.profile-header-info { min-width: 0; }
.profile-name { font-weight: 700; font-size: 1.05rem; margin: 0 0 3px; }
.profile-email { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.profile-link-card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--text); font-weight: 600; }
.profile-link-arrow { color: var(--text-muted); }

.section-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.address-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.address-card:last-child { border-bottom: none; padding-bottom: 0; }
.address-card-label { font-weight: 700; font-size: 0.9rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.address-card-default { font-size: 0.7rem; font-weight: 600; color: var(--store-primary); border: 1px solid var(--store-primary); border-radius: 999px; padding: 2px 8px; }
.address-card-text { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.address-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Order history ---------- */
.order-card { display: flex; flex-direction: column; gap: 12px; }
.order-card-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; gap: 12px; }
.order-card-id { font-weight: 700; margin: 0 0 4px; }
.order-card-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.order-card-total { font-weight: 700; margin: 0 0 4px; }
.wallet-amount-credit { color: #1d9e6a; }
.wallet-amount-debit { color: #c23b4c; }
.order-card-status { color: var(--store-primary); font-size: 0.85rem; font-weight: 600; margin: 0; }
.order-card-reorder { display: flex; }

@media (max-width: 640px) {
    .store-header-inner { align-items: flex-start; }
    .store-header-actions { margin-top: 18px; }
}

@media (max-width: 366px) {
    .store-header-inner { flex-wrap: wrap; }
    .store-header-actions { margin-top: 10px; width: 100%; justify-content: center; }
}
