/* ============================================
   RestaurantCMS delivery_v3 - Modern Design
   Mobile-first, Bootstrap 5.3, no jQuery
   ============================================ */

:root {
    --v3-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --v3-primary: #e63946;
    --v3-primary-hover: #c5303c;
    --v3-primary-light: #fef2f2;
    --v3-secondary: #1d3557;
    --v3-accent: #f4a261;
    --v3-accent-light: #fef3e2;
    --v3-success: #10b981;
    --v3-success-bg: #ecfdf5;
    --v3-warning: #f59e0b;
    --v3-warning-bg: #fffbeb;
    --v3-info: #3b82f6;
    --v3-info-bg: #eff6ff;
    --v3-bg: #fafafa;
    --v3-bg-card: #ffffff;
    --v3-bg-hover: #f5f5f5;
    --v3-bg-warm: #fffaf5;
    --v3-border: #e5e7eb;
    --v3-border-light: #f1f3f5;
    --v3-text: #1a1a1a;
    --v3-text-secondary: #6b7280;
    --v3-text-muted: #9ca3af;
    --v3-gradient-primary: linear-gradient(135deg, #e63946, #ff6b6b);
    --v3-gradient-warm: linear-gradient(135deg, #f4a261, #e76f51);
    --v3-gradient-hero: linear-gradient(135deg, #1d3557 0%, #264653 50%, #2a9d8f 100%);
    --v3-radius: 14px;
    --v3-radius-sm: 10px;
    --v3-radius-lg: 18px;
    --v3-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    --v3-shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --v3-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --v3-shadow-primary: 0 4px 14px rgba(230,57,70,0.25);
    --v3-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --v3-navbar-height: 72px;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
    --v3-bg: #121214;
    --v3-bg-card: #1c1c1f;
    --v3-bg-hover: #26262a;
    --v3-bg-warm: #1a1714;
    --v3-border: #2e2e33;
    --v3-border-light: #232328;
    --v3-text: #f0f0f2;
    --v3-text-secondary: #9e9ea7;
    --v3-text-muted: #5c5c66;
    --v3-primary-light: #2a1a1c;
    --v3-accent-light: #2a2118;
    --v3-success-bg: #0d2518;
    --v3-warning-bg: #2a2008;
    --v3-info-bg: #0d1a2e;
    --v3-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --v3-shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --v3-shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --v3-shadow-primary: 0 4px 14px rgba(230,57,70,0.3);
    color-scheme: dark;
}

[data-theme="dark"] .v3-navbar {
    background: rgba(28,28,31,0.95);
    border-bottom-color: var(--v3-border);
}

[data-theme="dark"] .v3-choose-hero { background: var(--v3-bg); }
[data-theme="dark"] .v3-search input { background: var(--v3-bg-card); color: var(--v3-text); border-color: var(--v3-border); }
[data-theme="dark"] .v3-form-input { background: var(--v3-bg-card); color: var(--v3-text); border-color: var(--v3-border); }
[data-theme="dark"] .v3-customize-select { background: var(--v3-bg-card); color: var(--v3-text); border-color: var(--v3-border); }
[data-theme="dark"] .v3-chip { background: var(--v3-bg-card); border-color: var(--v3-border); }
[data-theme="dark"] .v3-method-btn { color: var(--v3-text-secondary); }
[data-theme="dark"] .v3-method-btn.active { background: var(--v3-bg-card); color: var(--v3-text); }
[data-theme="dark"] .v3-method-toggle { background: var(--v3-bg); border-color: var(--v3-border); }
[data-theme="dark"] .v3-cart-footer { background: #18181b; }
[data-theme="dark"] .v3-qty-btn { background: var(--v3-bg); border-color: var(--v3-border); color: var(--v3-text-secondary); }
[data-theme="dark"] .v3-mobile-nav { background: var(--v3-bg-card); }
[data-theme="dark"] .v3-cart-sheet { background: var(--v3-bg-card); }
[data-theme="dark"] .v3-topping-btn { background: var(--v3-bg-card); color: var(--v3-text); border-color: var(--v3-border); }
[data-theme="dark"] .v3-payment-option { border-color: var(--v3-border); }
[data-theme="dark"] .v3-payment-option.selected { background: var(--v3-primary-light); }
[data-theme="dark"] .v3-choose-form input { background: var(--v3-bg-card); color: var(--v3-text); border-color: var(--v3-border); }
[data-theme="dark"] .v3-subpage-content { background: var(--v3-bg-card); }

/* Dark mode: category sidebar */
[data-theme="dark"] .v3-cat-item { color: var(--v3-text-secondary); }
[data-theme="dark"] .v3-cat-item:hover { color: var(--v3-text); background: var(--v3-bg-hover); }
[data-theme="dark"] .v3-cat-item.active { color: var(--v3-primary); background: var(--v3-primary-light); }

/* Dark mode: category header with image - stronger overlay */
[data-theme="dark"] .v3-category-header[style*="background"] { filter: brightness(0.85); }
[data-theme="dark"] .v3-category-header:not([style*="background"]) { background: var(--v3-bg-hover) !important; border-bottom-color: var(--v3-border); }

/* Dark mode: alerts readable */
[data-theme="dark"] .v3-alert-warning { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
[data-theme="dark"] .v3-alert-info { background: rgba(59,130,246,0.1); color: #93c5fd; border-color: rgba(59,130,246,0.2); }
[data-theme="dark"] .v3-alert-success { background: rgba(16,185,129,0.1); color: #6ee7b7; border-color: rgba(16,185,129,0.2); }

/* Dark mode: PLZ bar */
[data-theme="dark"] .v3-plz-bar { background: rgba(59,130,246,0.1); color: #93c5fd; }
[data-theme="dark"] .v3-plz-bar a { color: #93c5fd; }

/* Dark mode: cart header */
[data-theme="dark"] .v3-cart-sidebar .v3-cart-header { background: var(--v3-bg-hover); border-bottom-color: var(--v3-border); }
[data-theme="dark"] .v3-cart-sidebar .v3-cart-title { color: var(--v3-text); }

/* Dark mode: item price */
[data-theme="dark"] .v3-item-price { color: #ff6b6b; }

/* Dark mode: item hover */
[data-theme="dark"] .v3-item:hover { background: var(--v3-bg-hover); }

/* Dark mode: cart item note */
[data-theme="dark"] .v3-cart-item-note { color: var(--v3-text-muted); }
[data-theme="dark"] .v3-cart-item-note:hover { color: var(--v3-primary); }

/* Dark mode: cart coupon */
[data-theme="dark"] .v3-cart-coupon { background: rgba(16,185,129,0.1); color: #6ee7b7; }

/* Dark mode: min order warning */
[data-theme="dark"] .v3-cart-min { color: #fbbf24; }

/* Dark mode: footer */
[data-theme="dark"] .v3-footer { background: linear-gradient(160deg, #0a0a0f 0%, #101018 100%); }

/* Dark mode: show-more button */
[data-theme="dark"] .v3-show-more-btn { border-color: var(--v3-border); color: var(--v3-primary); }
[data-theme="dark"] .v3-show-more-btn:hover { background: var(--v3-primary-light); }

/* Dark mode: scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #333; }

/* Dark mode: remove colored shadows - they glow too much */
[data-theme="dark"] .v3-btn-add { box-shadow: none; }
[data-theme="dark"] .v3-btn-confirm { box-shadow: none; }
[data-theme="dark"] .v3-btn-order:not(:disabled) { box-shadow: none; }
[data-theme="dark"] .v3-btn-order:not(:disabled)::after { display: none; }
[data-theme="dark"] .v3-btn-order:not(:disabled):hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
[data-theme="dark"] .v3-chip.active { box-shadow: none; }
[data-theme="dark"] .v3-cart-mobile-bar { box-shadow: 0 -4px 20px rgba(0,0,0,0.5); }
[data-theme="dark"] .v3-navbar::before { opacity: 0.7; }
[data-theme="dark"] .v3-category-header::before { opacity: 0.7; }

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

body {
    font-family: var(--v3-font) !important;
    background: var(--v3-bg) !important;
    color: var(--v3-text);
    -webkit-font-smoothing: antialiased;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: var(--v3-navbar-height) !important;
    position: static !important;
    min-height: 100vh;
}

a { color: var(--v3-primary); text-decoration: none; }
a:hover { color: var(--v3-primary-hover); }

/* Override old v1 custom restaurant styles that break v3 */
.bg-faded, .container-fluid.topbg, .container-fluid.content,
.container .topbg { all: unset !important; display: block !important; }
.navbar, .navbar a.nav-link, .navbar-collapse { all: unset !important; }

/* ---- Navbar ---- */
.v3-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--v3-navbar-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--v3-border);
    z-index: 1040;
}

/* Thin gradient accent line at top of navbar */
.v3-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--v3-gradient-primary);
}

.v3-navbar > .container {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v3-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.v3-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--v3-text);
    min-width: 0;
}

.v3-brand:hover { color: var(--v3-text); }

.v3-brand-logo {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .v3-brand-logo {
        height: 40px;
        max-width: 140px;
    }
}

.v3-brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
}

.v3-brand-status {
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.v3-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.v3-status-open { color: var(--v3-success); }
.v3-status-open .v3-status-dot { background: var(--v3-success); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.v3-status-closed { color: var(--v3-primary); }
.v3-status-closed .v3-status-dot { background: var(--v3-primary); }

.v3-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.v3-nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v3-text-secondary);
    border-radius: var(--v3-radius-sm);
    transition: all var(--v3-transition);
}

.v3-nav-link:hover {
    background: var(--v3-bg-hover);
    color: var(--v3-text);
}

.v3-theme-toggle {
    width: 38px; height: 38px;
    border-radius: var(--v3-radius-sm);
    border: 1px solid var(--v3-border);
    background: var(--v3-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--v3-text-secondary);
    transition: all var(--v3-transition);
    padding: 0;
}

.v3-theme-toggle:hover { background: var(--v3-bg-hover); color: var(--v3-text); }

/* Show/hide icons based on theme */
.v3-icon-light { display: none; }
.v3-icon-dark { display: block; }
[data-theme="dark"] .v3-icon-light { display: block; }
[data-theme="dark"] .v3-icon-dark { display: none; }

.v3-cart-toggle, .v3-menu-toggle {
    width: 42px; height: 42px;
    border-radius: var(--v3-radius-sm);
    border: 1px solid var(--v3-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 1.15rem;
    color: var(--v3-text);
    transition: all var(--v3-transition);
}

.v3-cart-toggle:hover, .v3-menu-toggle:hover {
    background: var(--v3-bg-hover);
    border-color: var(--v3-text-muted);
}

.v3-cart-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--v3-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Mobile Nav Drawer ---- */
.v3-mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px;
    background: #fff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--v3-shadow-lg);
}

.v3-mobile-nav.open { transform: translateX(0); }

.v3-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--v3-border);
    font-weight: 600;
    font-size: 1rem;
}

.v3-mobile-nav-header button {
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    color: var(--v3-text-secondary);
    padding: 0.25rem;
}

.v3-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--v3-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--v3-border-light);
    transition: background var(--v3-transition);
}

.v3-mobile-nav-link:hover { background: var(--v3-bg-hover); color: var(--v3-text); }

.v3-mobile-nav-footer { margin-top: auto; padding: 1.5rem; border-top: 1px solid var(--v3-border); }
.v3-mobile-contact a { color: var(--v3-text-secondary); font-size: 0.9rem; }

.v3-mobile-nav-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.v3-mobile-nav-backdrop.open { opacity: 1; pointer-events: all; }

/* ---- Alerts ---- */
.v3-alerts { padding: 0.75rem 0 0; }
.v3-alerts .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.v3-alert {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--v3-radius);
    font-size: 0.875rem; line-height: 1.5;
}

.v3-alert i { font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.v3-alert-warning { background: var(--v3-warning-bg); color: #92400e; border: 1px solid rgba(245,158,11,0.15); }
.v3-alert-info { background: var(--v3-info-bg); color: #1e40af; border: 1px solid rgba(59,130,246,0.15); }
.v3-alert-success { background: var(--v3-success-bg); color: #065f46; border: 1px solid rgba(16,185,129,0.15); }
.v3-alert-list { margin: 0.25rem 0 0 1.25rem; padding: 0; }

/* ---- Main Content ---- */
.v3-main {
    min-height: calc(100vh - var(--v3-navbar-height) - 300px);
    padding: 1.5rem 0 2rem;
}

.v3-main > .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Cards ---- */
.v3-card {
    background: var(--v3-bg-card);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    box-shadow: var(--v3-shadow);
}

.v3-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--v3-border-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.v3-card-body { padding: 1.25rem; }

/* ---- Menu Layout ---- */
.v3-menu-layout {
    display: grid;
    grid-template-columns: 220px 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1199px) {
    .v3-menu-layout { grid-template-columns: 1fr 340px; }
    .v3-categories-sidebar { display: none; }
}

@media (max-width: 991px) {
    .v3-menu-layout { grid-template-columns: 1fr; }
    .v3-cart-sidebar { display: none; }

    .v3-navbar > .container,
    .v3-alerts .container,
    .v3-main > .container,
    .v3-footer > .container { padding: 0 1rem; }

    .v3-category-header { padding: 0.85rem 1rem; }
    .v3-item { padding: 0.85rem 1rem; }
    .v3-item-customize { padding: 1rem; }

    body { padding-bottom: 70px !important; }
}

@media (max-width: 575px) {
    :root { --v3-navbar-height: 60px; }

    .v3-brand-name { font-size: 0.95rem; }
    .v3-category-header h2 { font-size: 1rem; }
    .v3-item-name { font-size: 0.9rem; }
    .v3-item-desc { font-size: 0.78rem; }
    .v3-item-price { font-size: 0.9rem; }
    .v3-btn-add { width: 34px; height: 34px; font-size: 1rem; }
    .v3-choose { margin: 1.5rem auto; padding: 0 0.5rem; }
    .v3-choose-title { font-size: 1.4rem; }
    .v3-choose-form { flex-direction: column; }
    .v3-choose-form input { max-width: 100% !important; }

    .v3-footer .row { gap: 1.5rem !important; }
    .v3-footer .col-md-4 { padding: 0; }
}

/* ---- Category Sidebar ---- */
.v3-categories-sidebar {
    position: sticky;
    top: calc(var(--v3-navbar-height) + 1.5rem);
    max-height: calc(100vh - var(--v3-navbar-height) - 3rem);
    overflow-y: auto;
}

.v3-cat-list { list-style: none; padding: 0; margin: 0; }

.v3-cat-item {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v3-text-secondary);
    border-radius: var(--v3-radius-sm);
    cursor: pointer;
    transition: all var(--v3-transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.v3-cat-item:hover { background: var(--v3-bg-hover); color: var(--v3-text); }
.v3-cat-item.active {
    background: var(--v3-primary-light);
    color: var(--v3-primary);
    border-left-color: var(--v3-primary);
    font-weight: 600;
}

/* ---- Mobile Category Chips ---- */
.v3-category-chips {
    display: none;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.v3-category-chips::-webkit-scrollbar { display: none; }

@media (max-width: 1199px) {
    .v3-category-chips { display: flex; }
}

/* Prevent horizontal overflow on mobile without breaking sticky */
.v3-menu-center { min-width: 0; }
.v3-category-chips { max-width: 100%; }

.v3-chip {
    flex-shrink: 0;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--v3-border);
    color: var(--v3-text-secondary);
    cursor: pointer;
    transition: all var(--v3-transition);
    white-space: nowrap;
    text-decoration: none;
}

.v3-chip:hover { background: var(--v3-primary-light); color: var(--v3-primary); border-color: var(--v3-primary); }
.v3-chip.active {
    background: var(--v3-gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(230,57,70,0.2);
}

/* ---- Search ---- */
.v3-search { position: relative; margin-bottom: 1rem; }

.v3-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    font-size: 0.9rem;
    background: var(--v3-bg);
    transition: border-color var(--v3-transition), box-shadow var(--v3-transition);
    font-family: var(--v3-font);
    color: var(--v3-text);
}

.v3-search input:focus {
    outline: none;
    border-color: var(--v3-primary);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
    background: #fff;
}

.v3-search input::placeholder { color: var(--v3-text-muted); }

.v3-search i {
    position: absolute; left: 0.95rem; top: 50%;
    transform: translateY(-50%);
    color: var(--v3-text-muted); font-size: 1rem;
    pointer-events: none;
}

/* ---- Delivery/Pickup Toggle ---- */
.v3-method-toggle {
    display: flex;
    background: var(--v3-bg);
    border-radius: var(--v3-radius);
    padding: 4px; gap: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--v3-border);
}

.v3-method-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: var(--v3-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--v3-text-secondary);
    transition: all var(--v3-transition);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: var(--v3-font);
}

.v3-method-btn.active { background: #fff; color: var(--v3-text); box-shadow: var(--v3-shadow-md); }
.v3-method-btn:hover:not(.active) { color: var(--v3-text); }

/* ---- PLZ Info Bar ---- */
.v3-plz-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    background: var(--v3-info-bg);
    border-radius: var(--v3-radius-sm);
    font-size: 0.82rem; color: #1e40af;
    margin-bottom: 1rem;
}

.v3-plz-bar i { font-size: 0.9rem; }
.v3-plz-bar a { color: #1e40af; text-decoration: underline; font-weight: 600; }

/* ---- Menu Items ---- */
.v3-category-section {
    background: var(--v3-bg-card);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    box-shadow: var(--v3-shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.v3-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--v3-bg);
    border-bottom: 1px solid var(--v3-border);
    scroll-margin-top: calc(var(--v3-navbar-height) + 1rem);
}

.v3-category-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

.v3-category-desc {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.75;
    margin-top: 0.15rem;
}

/* Menu Item */
.v3-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.25rem;
    transition: background var(--v3-transition);
    border-bottom: 1px solid var(--v3-border-light);
}

.v3-item:last-child { border-bottom: none; }

.v3-item:hover { background: var(--v3-bg-hover); }

.v3-item-body { flex: 1; min-width: 0; }

.v3-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    color: var(--v3-text);
}

.v3-item-desc {
    font-size: 0.8rem;
    color: var(--v3-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v3-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.45rem;
    gap: 0.5rem;
}

.v3-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--v3-primary);
}

.v3-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--v3-gradient-primary);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--v3-transition);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(230,57,70,0.25);
}

.v3-btn-add:hover { background: var(--v3-primary-hover); transform: scale(1.08); }

/* Item customization panel - animated via max-height in animations section */
.v3-item-customize {
    background: var(--v3-bg);
}

.v3-customize-group { margin-bottom: 0.85rem; }

.v3-customize-label {
    font-size: 0.78rem; font-weight: 600;
    color: var(--v3-text-secondary);
    text-transform: uppercase; letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.v3-customize-select {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    font-size: 0.875rem;
    background: #fff;
    font-family: var(--v3-font);
    color: var(--v3-text);
}

.v3-customize-checkbox {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0; font-size: 0.875rem;
}

.v3-customize-checkbox input { width: 18px; height: 18px; accent-color: var(--v3-primary); }

.v3-show-more-btn {
    display: block;
    width: 100%;
    padding: 0.55rem;
    margin-top: 0.35rem;
    border: 1px dashed var(--v3-border);
    border-radius: var(--v3-radius-sm);
    background: none;
    color: var(--v3-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--v3-font);
    transition: all var(--v3-transition);
}

.v3-show-more-btn:hover { background: var(--v3-primary-light); border-color: var(--v3-primary); }

.v3-btn-confirm {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--v3-radius-sm);
    background: var(--v3-gradient-primary);
    color: #fff;
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(230,57,70,0.2);
    transition: all var(--v3-transition);
    font-family: var(--v3-font);
    margin-top: 0.5rem;
}

.v3-btn-confirm:hover { background: var(--v3-primary-hover); }

/* ---- Cart Sidebar ---- */
.v3-cart-sidebar {
    position: sticky;
    top: calc(var(--v3-navbar-height) + 1.5rem);
    max-height: calc(100vh - var(--v3-navbar-height) - 3rem);
    display: flex;
    flex-direction: column;
}

.v3-cart-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--v3-border-light);
    display: flex; align-items: center; justify-content: space-between;
}

.v3-cart-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }

.v3-cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }

.v3-cart-empty { text-align: center; padding: 2.5rem 1rem; color: var(--v3-text-muted); font-size: 0.875rem; }
.v3-cart-empty i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.4; }

.v3-cart-item {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--v3-border-light);
}
.v3-cart-item:last-child { border-bottom: none; }

.v3-cart-item-qty-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.v3-qty-btn {
    width: 24px; height: 24px;
    border-radius: 6px;
    border: 1px solid var(--v3-border);
    background: var(--v3-bg-card);
    color: var(--v3-text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--v3-transition);
    padding: 0;
}

.v3-qty-btn:hover { background: var(--v3-bg-hover); color: var(--v3-text); border-color: var(--v3-text-muted); }
.v3-qty-btn.v3-qty-add:hover { background: var(--v3-primary-light); color: var(--v3-primary); border-color: var(--v3-primary); }
.v3-qty-btn i { font-size: 0.7rem; }

.v3-cart-item-qty {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--v3-primary);
    min-width: 24px;
    text-align: center;
    line-height: 1;
}

.v3-cart-item-body { flex: 1; min-width: 0; }
.v3-cart-item-name { font-weight: 600; font-size: 0.85rem; line-height: 1.3; }
.v3-cart-item-extras { font-size: 0.72rem; color: var(--v3-text-secondary); margin-top: 0.1rem; }
.v3-cart-item-price { font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

.v3-cart-item-note {
    font-size: 0.72rem;
    color: var(--v3-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    transition: color var(--v3-transition);
}

.v3-cart-item-note:hover { color: var(--v3-primary); }

.v3-cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--v3-text-muted); font-size: 0.9rem; padding: 0;
    transition: color var(--v3-transition);
}
.v3-cart-item-remove:hover { color: var(--v3-primary); }

.v3-cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--v3-border);
    background: var(--v3-bg);
    border-radius: 0 0 var(--v3-radius) var(--v3-radius);
}

.v3-cart-coupon {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--v3-success-bg);
    border-radius: var(--v3-radius-sm);
    font-size: 0.8rem; color: #065f46;
    margin-bottom: 0.65rem;
}

.v3-cart-total {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.v3-cart-min { font-size: 0.78rem; color: var(--v3-warning); margin-bottom: 0.5rem; }

.v3-btn-order {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: var(--v3-radius);
    background: var(--v3-primary);
    color: #fff;
    font-weight: 700; font-size: 1rem;
    cursor: pointer;
    transition: all var(--v3-transition);
    font-family: var(--v3-font);
}

.v3-btn-order:hover:not(:disabled) { background: var(--v3-primary-hover); }
.v3-btn-order:disabled { background: var(--v3-border); color: var(--v3-text-muted); cursor: not-allowed; }

/* ---- Mobile Cart Bottom Bar + Sheet ---- */
.v3-cart-mobile { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: none; }
@media (max-width: 991px) { .v3-cart-mobile { display: block; } }

.v3-cart-mobile-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--v3-gradient-primary);
    color: #fff;
    cursor: pointer;
    gap: 1rem;
    box-shadow: 0 -4px 24px rgba(230,57,70,0.2);
    border-radius: var(--v3-radius-lg) var(--v3-radius-lg) 0 0;
}

.v3-cart-mobile-bar-info { display: flex; align-items: center; gap: 0.75rem; }
.v3-cart-mobile-bar-count { width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.v3-cart-mobile-bar-text { font-weight: 600; font-size: 0.95rem; }
.v3-cart-mobile-bar-price { font-weight: 700; font-size: 1.1rem; }

.v3-cart-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: var(--v3-radius-lg) var(--v3-radius-lg) 0 0;
    max-height: 80vh; overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1055;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
.v3-cart-sheet.open { transform: translateY(0); }

.v3-cart-sheet-handle { display: flex; justify-content: center; padding: 0.85rem; cursor: pointer; }
.v3-cart-sheet-handle span { width: 40px; height: 4px; border-radius: 2px; background: var(--v3-text-muted); }

.v3-cart-sheet-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1045;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.v3-cart-sheet-backdrop.open { opacity: 1; pointer-events: all; }

/* ---- Choose PLZ Page ---- */
.v3-choose-hero {
    background: var(--v3-bg);
    margin: calc(var(--v3-navbar-height) * -1 - 1.5rem) -1.5rem 0;
    padding: calc(var(--v3-navbar-height) + 3rem) 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.v3-choose-hero .v3-choose-title { color: var(--v3-text); }
.v3-choose-hero .v3-choose-subtitle { color: var(--v3-text-secondary); }

.v3-choose { max-width: 480px; margin: 0 auto; text-align: center; position: relative; }

.v3-choose-logo {
    width: auto;
    max-width: 280px;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .v3-choose-logo { max-width: 200px; max-height: 100px; }
}

.v3-choose-title { font-size: 1.85rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.v3-choose-subtitle { font-size: 0.95rem; color: var(--v3-text-secondary); margin-bottom: 2rem; }

.v3-choose-form { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }

.v3-choose-form input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid var(--v3-border);
    border-radius: var(--v3-radius);
    font-size: 1rem;
    font-family: var(--v3-font);
    transition: border-color var(--v3-transition);
    color: var(--v3-text);
}

.v3-choose-form input:focus { outline: none; border-color: var(--v3-primary); }

.v3-choose-pickup { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--v3-border); }

.v3-btn-pickup {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--v3-radius);
    background: var(--v3-bg);
    border: 1px solid var(--v3-border);
    color: var(--v3-text);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--v3-transition);
    font-family: var(--v3-font);
    text-decoration: none;
}

.v3-btn-pickup:hover { background: var(--v3-bg-hover); border-color: var(--v3-text-muted); color: var(--v3-text); }

/* ---- Forms ---- */
.v3-form-group { margin-bottom: 1rem; }

.v3-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--v3-text-secondary);
    margin-bottom: 0.35rem;
}

.v3-form-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    font-size: 0.9rem;
    font-family: var(--v3-font);
    color: var(--v3-text);
    background: #fff;
    transition: border-color var(--v3-transition), box-shadow var(--v3-transition);
    appearance: none;
}

.v3-form-input:focus {
    outline: none;
    border-color: var(--v3-primary);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.v3-form-input::placeholder { color: var(--v3-text-muted); }
.v3-form-input:disabled { background: var(--v3-bg); color: var(--v3-text-secondary); cursor: not-allowed; }

select.v3-form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

textarea.v3-form-input { resize: vertical; min-height: 80px; }

.v3-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 575px) {
    .v3-form-row { grid-template-columns: 1fr; }
}

/* ---- Payment Options ---- */
.v3-payment-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    border: 2px solid var(--v3-border);
    border-radius: var(--v3-radius);
    cursor: pointer;
    transition: all var(--v3-transition);
}

.v3-payment-option:hover { border-color: var(--v3-text-muted); }
.v3-payment-option.selected { border-color: var(--v3-primary); background: var(--v3-primary-light); }

.v3-payment-option input { display: none; }
.v3-payment-option img { width: 48px; height: 28px; object-fit: contain; flex-shrink: 0; }
.v3-payment-option span { font-weight: 600; font-size: 0.9rem; flex: 1; }

/* ---- Checkout ---- */
.v3-checkout { max-width: 680px; margin: 0 auto; }

.v3-checkout-step { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }

.v3-step { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--v3-text-muted); }
.v3-step.active { color: var(--v3-primary); }
.v3-step.done { color: var(--v3-success); }

.v3-step-dot {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
}

.v3-step.active .v3-step-dot { background: var(--v3-primary); color: #fff; border-color: var(--v3-primary); }
.v3-step.done .v3-step-dot { background: var(--v3-success); color: #fff; border-color: var(--v3-success); }
.v3-step-line { flex: 1; height: 2px; background: var(--v3-border); }

/* ---- SubPage layout ---- */
.v3-subpage { max-width: 800px; margin: 0 auto; }

.v3-subpage-content {
    background: var(--v3-bg-card);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 2.5rem;
    box-shadow: var(--v3-shadow);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--v3-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 575px) {
    .v3-subpage-content { padding: 1.25rem; font-size: 0.9rem; }
}

.v3-subpage-content h1, .v3-subpage-content .card h1 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--v3-text) !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.v3-subpage-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.v3-subpage-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.v3-subpage-content p { margin-bottom: 0.85rem; }
.v3-subpage-content a { color: var(--v3-primary); text-decoration: underline; }
.v3-subpage-content img { max-width: 100%; height: auto; border-radius: var(--v3-radius-sm); }
.v3-subpage-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.v3-subpage-content table td, .v3-subpage-content table th { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--v3-border-light); text-align: left; }
.v3-subpage-content ul, .v3-subpage-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.v3-subpage-content li { margin-bottom: 0.35rem; }

/* Override old v1 card/content classes inside subpages */
.v3-subpage-content .card { all: unset !important; display: block !important; margin-bottom: 1.5rem; }
.v3-subpage-content .card.content { padding: 0 !important; border: none !important; box-shadow: none !important; }
.v3-subpage-content .container, .v3-subpage-content .container-fluid { padding: 0 !important; max-width: 100% !important; }
.v3-subpage-content .row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.v3-subpage-content .col-md-3, .v3-subpage-content .col-md-4, .v3-subpage-content .col-md-6,
.v3-subpage-content .col-md-8, .v3-subpage-content .col-md-9, .v3-subpage-content .col-md-12 {
    flex: 1; min-width: 200px; padding: 0;
}
.v3-subpage-content .form-control {
    width: 100%; padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--v3-border); border-radius: var(--v3-radius-sm);
    font-size: 0.9rem; font-family: var(--v3-font);
}
.v3-subpage-content .btn { display: inline-flex; padding: 0.6rem 1.25rem; border-radius: var(--v3-radius-sm); font-weight: 600; cursor: pointer; border: none; font-family: var(--v3-font); }
.v3-subpage-content .btn-primary, .v3-subpage-content .btn-buy { background: var(--v3-primary); color: #fff; }

/* Locations page specific */
.v3-subpage-content .location-card { padding: 1rem; background: var(--v3-bg); border-radius: var(--v3-radius-sm); margin-bottom: 0.75rem; }

/* ---- No results ---- */
.v3-no-results { text-align: center; padding: 2rem; color: var(--v3-text-muted); display: none; }

/* ---- Pizza ---- */
.v3-pizza-editor { display: flex; flex-direction: column; gap: 1rem; }
.v3-pizza-canvas-wrap { display: flex; align-items: center; gap: 1rem; }
.v3-pizza-toppings { width: 100%; }

.v3-topping-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.v3-topping-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--v3-border);
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: var(--v3-text);
    transition: all var(--v3-transition);
    font-family: var(--v3-font);
}

.v3-topping-btn:hover { border-color: var(--v3-primary); color: var(--v3-primary); }
.v3-topping-btn.active { background: var(--v3-primary); color: #fff; border-color: var(--v3-primary); }

/* ---- SweetAlert2 Override for v3 ---- */
.swal2-popup {
    font-family: var(--v3-font) !important;
    border-radius: var(--v3-radius-lg) !important;
    padding: 2rem !important;
    background: var(--v3-bg-card) !important;
    color: var(--v3-text) !important;
}

.swal2-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--v3-text) !important;
}

.swal2-html-container {
    color: var(--v3-text-secondary) !important;
    font-size: 0.9rem !important;
}

.swal2-textarea, .swal2-input {
    font-family: var(--v3-font) !important;
    border: 1.5px solid var(--v3-border) !important;
    border-radius: var(--v3-radius-sm) !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 0.95rem !important;
    background: var(--v3-bg) !important;
    color: var(--v3-text) !important;
    box-shadow: none !important;
}

.swal2-textarea:focus, .swal2-input:focus {
    border-color: var(--v3-primary) !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1) !important;
}

.swal2-confirm {
    background: var(--v3-gradient-primary) !important;
    border: none !important;
    border-radius: var(--v3-radius-sm) !important;
    font-weight: 600 !important;
    font-family: var(--v3-font) !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(230,57,70,0.25) !important;
}

.swal2-cancel {
    background: var(--v3-bg) !important;
    color: var(--v3-text) !important;
    border: 1px solid var(--v3-border) !important;
    border-radius: var(--v3-radius-sm) !important;
    font-weight: 600 !important;
    font-family: var(--v3-font) !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.swal2-cancel:hover { background: var(--v3-bg-hover) !important; }

/* Note modal custom textareas */
.v3-note-input {
    font-family: var(--v3-font) !important;
    border: 1.5px solid var(--v3-border) !important;
    border-radius: var(--v3-radius-sm) !important;
    font-size: 0.85rem !important;
    padding: 0.6rem 0.85rem !important;
    background: var(--v3-bg-card) !important;
    color: var(--v3-text) !important;
    width: 100% !important;
    min-height: 50px !important;
    resize: vertical;
    margin: 0 !important;
    transition: border-color var(--v3-transition);
}

.v3-note-input:focus {
    outline: none;
    border-color: var(--v3-primary) !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

/* ---- Allergene Modal ---- */
.v3-modal-allergene .modal-body { font-size: 0.875rem; }
.v3-allergene-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; }
.v3-allergene-item img { width: 24px; height: 24px; }

/* ---- Footer ---- */
.v3-footer {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    position: relative;
}

.v3-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--v3-gradient-warm);
}

.v3-footer > .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 991px) { .v3-footer { padding-bottom: 5.5rem; } }

.v3-footer-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-bottom: 0.85rem; }

.v3-hours { font-size: 0.82rem; }
.v3-hours-row { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.v3-hours-today { color: #fff; font-weight: 600; }
.v3-hours-day { flex-shrink: 0; width: 100px; }
.v3-hours-time { text-align: right; }
.v3-hours-closed { color: rgba(255,255,255,0.35); }

.v3-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v3-payment-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; width: 60px; }
.v3-payment-item img { max-width: 100%; height: 24px; object-fit: contain; }
.v3-payment-item span { font-size: 0.65rem; text-align: center; color: rgba(255,255,255,0.5); }

.v3-delivery-areas { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.v3-area-tag { padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); font-size: 0.75rem; transition: background var(--v3-transition); }
.v3-area-tag:hover { background: rgba(255,255,255,0.15); color: #fff; }

.v3-contact p { margin-bottom: 0.75rem; line-height: 1.6; }
.v3-contact-phone, .v3-contact-email { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); margin-bottom: 0.35rem; font-size: 0.85rem; }
.v3-contact-phone:hover, .v3-contact-email:hover { color: #fff; }

.v3-footer-legal { display: flex; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.v3-footer-legal a { color: rgba(255,255,255,0.45); font-size: 0.8rem; text-decoration: underline; }
.v3-footer-legal a:hover { color: #fff; }
.v3-footer-copy { color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-top: 0.5rem; }

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Page entrance */
@keyframes v3-fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v3-fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v3-scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes v3-slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes v3-pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes v3-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes v3-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes v3-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes v3-bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes v3-cartPulse {
    0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

.v3-fade-in { animation: v3-fadeIn 0.4s ease-out; }

/* Staggered category sections */
.v3-category-section {
    animation: v3-fadeInUp 0.5s ease-out both;
}
.v3-category-section:nth-child(1) { animation-delay: 0s; }
.v3-category-section:nth-child(2) { animation-delay: 0.05s; }
.v3-category-section:nth-child(3) { animation-delay: 0.1s; }
.v3-category-section:nth-child(4) { animation-delay: 0.15s; }
.v3-category-section:nth-child(5) { animation-delay: 0.2s; }
.v3-category-section:nth-child(n+6) { animation-delay: 0.25s; }

/* Item hover lift */
.v3-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.v3-item:hover {
    transform: translateX(4px);
}

/* Add button animation */
.v3-btn-add {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v3-btn-add:hover {
    transform: scale(1.12) rotate(90deg);
}
.v3-btn-add:active {
    transform: scale(0.9);
}
.v3-btn-add.v3-added {
    animation: v3-pop 0.4s ease;
    background: var(--v3-success) !important;
}

/* Confirm button shimmer */
.v3-btn-confirm {
    position: relative;
    overflow: hidden;
}
.v3-btn-confirm::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    background-size: 200% 100%;
    animation: v3-shimmer 3s infinite;
    pointer-events: none;
}

/* Order button glow */
.v3-btn-order:not(:disabled) {
    position: relative;
    overflow: hidden;
}
.v3-btn-order:not(:disabled)::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    background-size: 200% 100%;
    animation: v3-shimmer 2.5s infinite;
    pointer-events: none;
}
.v3-btn-order:not(:disabled) {
    background: var(--v3-gradient-primary);
    box-shadow: 0 3px 12px rgba(230,57,70,0.25);
}
.v3-btn-order:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(230,57,70,0.35);
}

/* Cart badge bounce */
.v3-cart-badge {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v3-cart-badge.v3-badge-pop {
    animation: v3-bounceIn 0.5s ease;
}

/* Cart item slide-in */
.v3-cart-item {
    animation: v3-slideInRight 0.3s ease-out;
}

/* Mobile cart bar pulse on add */
.v3-cart-mobile-bar.v3-pulse {
    animation: v3-cartPulse 0.6s ease;
}

/* Chip active animation */
.v3-chip {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v3-chip:active {
    transform: scale(0.92);
}

/* Category header with gradient accent */
.v3-category-header {
    position: relative;
}
.v3-category-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--v3-primary), var(--v3-accent));
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}
.v3-category-header:not([style*="background"])::before {
    opacity: 1;
}

/* Navbar smooth shadow on scroll */
.v3-navbar {
    transition: box-shadow 0.3s ease;
}
.v3-navbar.v3-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Alert entrance */
.v3-alert {
    animation: v3-fadeInUp 0.4s ease-out;
}
.v3-alert-success {
    position: relative;
    overflow: hidden;
}
.v3-alert-success::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--v3-success);
    border-radius: 4px 0 0 4px;
}
.v3-alert-warning::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--v3-warning);
    border-radius: 4px 0 0 4px;
}
.v3-alert-info {
    position: relative;
    overflow: hidden;
}
.v3-alert-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--v3-info);
    border-radius: 4px 0 0 4px;
}

/* Cart sidebar warm header */
.v3-cart-sidebar .v3-cart-header {
    background: linear-gradient(135deg, #fff5f5, #fff9f0);
    border-bottom: 2px solid var(--v3-primary-light);
}
.v3-cart-sidebar .v3-cart-title { color: var(--v3-primary); }

/* PLZ choose page animations */
.v3-choose-logo {
    animation: v3-scaleIn 0.5s ease-out;
}
.v3-choose-title {
    animation: v3-fadeInUp 0.5s ease-out 0.1s both;
}
.v3-choose-subtitle {
    animation: v3-fadeInUp 0.5s ease-out 0.2s both;
}
.v3-choose-form {
    animation: v3-fadeInUp 0.5s ease-out 0.3s both;
}

/* Customize panel slide open */
.v3-item-customize {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}
.v3-item-customize.open {
    max-height: 2000px;
    opacity: 1;
    padding: 1.15rem 1.25rem;
    border-top: 1px solid var(--v3-border);
    display: block;
}

/* Topping button micro-interaction */
.v3-topping-btn {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v3-topping-btn:active {
    transform: scale(0.9);
}

/* Status dot pulse */
.v3-status-open .v3-status-dot {
    animation: v3-pulse 2s ease-in-out infinite;
}

/* Footer hover effects */
.v3-area-tag {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.v3-area-tag:hover {
    transform: translateY(-2px);
}

/* Success page celebration */
.v3-checkout .v3-step.done .v3-step-dot {
    animation: v3-bounceIn 0.5s ease 0.2s both;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--v3-border); border-radius: 3px; }

/* ---- Print ---- */
@media print {
    .v3-navbar, .v3-cart-sidebar, .v3-cart-mobile, .v3-mobile-nav, .v3-mobile-nav-backdrop { display: none !important; }
    body { padding-top: 0 !important; }
}
