/* =============================================================================
   Sushi Store — Premium mobile-first dark theme
   DM Sans + Fraunces · charcoal #141414 · accent #c41e3a
   ============================================================================= */

:root {
    --bg: #141414;
    --bg-elevated: #1c1c1c;
    --bg-card: #222222;
    --bg-input: #2a2a2a;
    --text: #f5f0e8;
    --text-muted: #a89f94;
    --accent: #c41e3a;
    --accent-hover: #e85d04;
    --accent-soft: rgba(196, 30, 58, 0.15);
    --border: rgba(245, 240, 232, 0.08);
    --success: #2ecc71;
    --error: #e74c3c;
    --info: #3498db;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --nav-height: 68px;
    --banner-height: 36px;
    --font: 'DM Sans', system-ui, sans-serif;
    --font-brand: 'Fraunces', Georgia, serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.store-body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0));
    -webkit-font-smoothing: antialiased;
}

.font-brand { font-family: var(--font-brand); }

img { max-width: 100%; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Banner */
.store-banner {
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(90deg, #2d1810, #1a1a1a);
    color: var(--text);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.store-banner--closed {
    background: linear-gradient(90deg, #3d1515, #1a1a1a);
}

.store-main {
    min-height: calc(100dvh - var(--nav-height));
}

/* Hero */
.hero {
    position: relative;
    padding: 48px 20px 32px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(196, 30, 58, 0.25), transparent),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(232, 93, 4, 0.12), transparent),
        var(--bg);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.hero-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bg-card);
    padding: 8px;
}
.hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), #d4c4b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.hero-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}
.hero-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}
.hero-search input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero-search input::placeholder { color: var(--text-muted); }

.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    text-align: left;
}
.search-results.hidden { display: none; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--bg-card); }
.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-info strong { display: block; font-size: 0.875rem; }
.search-result-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Categories sticky bar */
.categories-bar {
    padding: 12px 0;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.sticky-categories {
    position: sticky;
    top: 0;
    z-index: 50;
}
.store-banner + .store-main .sticky-categories {
    top: var(--banner-height);
}
.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition);
    white-space: nowrap;
}
.category-chip:hover,
.category-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.category-chip.active {
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}

/* Sections */
.section {
    padding: 24px 16px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    white-space: nowrap;
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
.menu-category-section {
    scroll-margin-top: 72px;
}
.menu-category-section + .menu-category-section {
    padding-top: 8px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product card */
.product-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.product-card-link { display: block; color: inherit; }
.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-input);
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-pizza {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent, #c41e3a);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pizza-mode {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-input, #1e1e1e);
    border-radius: 14px;
}
.pizza-mode-title {
    font-size: 1rem;
    margin: 0 0 12px;
}
.pizza-mode-options {
    display: grid;
    gap: 10px;
}
.pizza-mode-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    background: rgba(0,0,0,0.2);
}
.pizza-mode-option:has(input:checked) {
    border-color: var(--accent, #c41e3a);
    background: rgba(196, 30, 58, 0.12);
}
.pizza-mode-option input { margin-top: 4px; }
.pizza-mode-option strong { display: block; }
.pizza-mode-option small { color: var(--text-muted, #999); }
.half-flavor-picker {
    margin-top: 14px;
}
.half-flavor-picker label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.half-price-hint {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--accent, #c41e3a);
}
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-badge--new { background: var(--success); color: #fff; }
.product-badge--promo { background: var(--accent); color: #fff; }
.product-card-body { padding: 12px; }
.product-card-cat {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price { display: flex; align-items: baseline; gap: 6px; }
.price-old {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-current {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent-hover);
}
.price-lg { font-size: 1.5rem; }
.product-card-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
    transition: transform var(--transition), background var(--transition);
    z-index: 2;
}
.product-card-add:hover { background: var(--accent-hover); transform: scale(1.08); }
.product-card-add:disabled { opacity: 0.7; pointer-events: none; }
.product-card-add.is-adding { transform: scale(0.92); }
.product-card-add.is-added { background: #2ecc71; }
.product-card-add svg { width: 18px; height: 18px; }

/* Fade-in animation */
.fade-in {
    animation: fadeInUp 0.5s ease both;
}
.product-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.product-grid .product-card:nth-child(n+5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cart badge bounce */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.9); }
}
.cart-badge.bounce { animation: cartBounce 0.5s ease; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #a01830);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-ghost { color: var(--text-muted); padding: 8px 16px; }
.btn-ghost:hover { color: var(--error); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-link { background: none; color: var(--accent-hover); font-size: 0.875rem; padding: 0; }
.text-danger { color: var(--error); }

/* Bottom nav */
.store-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 300;
}
.store-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: color var(--transition);
    min-width: 64px;
}
.store-nav-item svg { width: 22px; height: 22px; }
.store-nav-item.active,
.store-nav-item:hover { color: var(--accent-hover); }
.cart-badge-wrap { position: relative; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-badge:empty { display: none; }

/* Page header */
.page-header {
    padding: 24px 16px 8px;
    max-width: 640px;
    margin: 0 auto;
}
.page-title { font-size: 1.75rem; font-weight: 700; }
.page-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 12px;
    transition: color var(--transition);
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; }

/* Product detail */
.product-detail { max-width: 640px; margin: 0 auto; }
.product-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    background: rgba(20,20,20,0.7);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 50%;
    color: #fff;
}
.product-detail-hero { position: relative; }
.product-detail-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg-input);
}
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.product-gallery-thumbs .thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-input);
    cursor: pointer;
}
.product-gallery-thumbs .thumb.active {
    border-color: var(--accent, #c41e3a);
}
.product-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.btn-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20,20,20,0.7);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}
.btn-favorite.active { color: var(--accent); }
.btn-favorite svg { width: 22px; height: 22px; }
.product-detail-body { padding: 20px 16px 100px; }
.product-detail-title { font-size: 1.5rem; margin: 8px 0; }
.product-detail-price { margin-bottom: 16px; }
.product-detail-desc { color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.product-meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }

/* Addons */
.addon-groups { margin-bottom: 20px; }
.addon-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.addon-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.addon-group-header h3 { font-size: 0.9375rem; font-weight: 600; flex: 1; }
.addon-required {
    font-size: 0.6875rem;
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}
.addon-limit { font-size: 0.6875rem; color: var(--text-muted); }
.addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.addon-item:last-child { border-bottom: none; }
.addon-item input { accent-color: var(--accent); width: 18px; height: 18px; }
.addon-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.addon-name { font-size: 0.875rem; }
.addon-price { font-size: 0.8125rem; color: var(--accent-hover); font-weight: 600; }

/* Qty control */
.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.qty-control--sm { scale: 0.9; transform-origin: left; }
.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.125rem;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--bg-card); }
.qty-input {
    width: 48px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-value { padding: 0 12px; font-weight: 600; min-width: 36px; text-align: center; }
.product-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.product-detail-footer {
    position: fixed;
    bottom: var(--nav-height);
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
}
.product-total { flex: 1; }
.product-total span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.product-total strong { font-size: 1.125rem; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
}
.input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-group--cep { max-width: 160px; }
.form-group--uf { max-width: 80px; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 12px;
    cursor: pointer;
}
.checkbox-label input { accent-color: var(--accent); }

/* Cart page */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    position: relative;
}
.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-body h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.cart-item-addons {
    list-style: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.cart-item-notes { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.cart-item-price { font-weight: 700; color: var(--accent-hover); }
.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--error); }
.cart-item-remove svg { width: 18px; height: 18px; }

.cart-coupon { margin: 20px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.summary-discount { color: var(--success); }
.summary-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1rem;
    color: var(--text);
}
.summary-total strong { font-size: 1.25rem; color: var(--accent-hover); }
.cart-actions { display: flex; flex-direction: column; gap: 12px; }

/* Checkout */
.checkout-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.block-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-brand);
}
.delivery-type, .payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}
.radio-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.radio-card input { accent-color: var(--accent); }
.shipping-result {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--success);
}
.min-order-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.tab-buttons { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
}
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Success */
.success-page {
    text-align: center;
    padding: 48px 20px;
    max-width: 480px;
    margin: 0 auto;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: fadeInUp 0.6s ease;
}
.success-title { font-size: 1.75rem; margin-bottom: 8px; }
.success-number {
    font-size: 1.25rem;
    color: var(--accent-hover);
    font-weight: 700;
    margin-bottom: 12px;
}
.success-msg { color: var(--text-muted); margin-bottom: 24px; }
.success-details {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.success-items { text-align: left; margin-bottom: 24px; }
.success-items h2 { font-size: 1rem; margin-bottom: 12px; }
.success-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.success-actions { display: flex; flex-direction: column; gap: 12px; }

/* Auth */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--nav-height) - 48px);
    padding: 24px 16px;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border);
}
.auth-title { font-size: 1.5rem; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-muted); }

/* Account */
.account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}
.stat-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--accent-hover); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.account-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--text);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.account-link:hover { border-color: var(--accent); }
.account-link svg { width: 18px; height: 18px; color: var(--text-muted); }
.address-card {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}
.address-card p { color: var(--text-muted); margin-top: 4px; }
.address-form { margin-top: 16px; }
.logout-form { margin-top: 24px; text-align: center; }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color var(--transition);
}
.order-card:hover { border-color: var(--accent); }
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}
.status-new { background: rgba(52, 152, 219, 0.2); color: var(--info); }
.status-active { background: rgba(232, 93, 4, 0.2); color: var(--accent-hover); }
.status-done { background: rgba(46, 204, 113, 0.2); color: var(--success); }
.status-cancel { background: rgba(231, 76, 60, 0.2); color: var(--error); }
.order-card-body {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.order-status-banner {
    background: var(--accent-soft);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.875rem;
}
.status-timeline { list-style: none; }
.status-timeline li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.timeline-date { color: var(--text-muted); }

/* Pizza builder */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.option-grid--flavors { grid-template-columns: 1fr; }
@media (min-width: 480px) {
    .option-grid--flavors { grid-template-columns: repeat(2, 1fr); }
}
.option-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition);
}
.option-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-name { font-size: 0.875rem; font-weight: 500; }
.option-price { font-size: 0.8125rem; color: var(--accent-hover); margin-top: 4px; font-weight: 600; }
.pizza-footer {
    position: sticky;
    bottom: var(--nav-height);
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

/* Alerts & empty */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.875rem;
}
.alert-error { background: rgba(231, 76, 60, 0.15); color: var(--error); border: 1px solid rgba(231, 76, 60, 0.3); }
.alert-success { background: rgba(46, 204, 113, 0.15); color: var(--success); border: 1px solid rgba(46, 204, 113, 0.3); }
.alert-info { background: rgba(52, 152, 219, 0.15); color: var(--info); border: 1px solid rgba(52, 152, 219, 0.3); }
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { margin-bottom: 20px; }

/* Error page */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-code {
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.error-msg { color: var(--text-muted); margin-bottom: 24px; }

.hidden { display: none !important; }
