/* ================================
   FRANCIS BURGUER - Design System
   ================================ */

:root {
    /* Colors */
    --bg-primary: #0d0d0d;
    --bg-secondary: #161616;
    --bg-card: #1a1a1a;
    --bg-elevated: #222222;
    --bg-glass: rgba(26, 26, 26, 0.85);
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.25);
    --danger: #ef4444;
    --success: #22c55e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 24px rgba(245, 158, 11, 0.3);

    /* Spacing — mobile-first base */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.875rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE
   ================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 100px;
    position: relative;
}

/* ================================
   ANIMATED BACKGROUND
   ================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 600px 500px at 15% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 600px at 80% 75%, rgba(245, 158, 11, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(139, 92, 246, 0.025) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle food pattern overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating food emojis container */
.floating-emojis {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0;
    animation: float-up linear infinite;
    filter: blur(0.5px);
    will-change: transform, opacity;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.8);
    }

    10% {
        opacity: 0.12;
    }

    90% {
        opacity: 0.12;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) rotate(360deg) scale(1.1);
    }
}

/* Ambient glow orbs — smooth GPU-accelerated drift only */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    z-index: -1;
    will-change: transform;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.08);
    top: 5%;
    left: -8%;
    animation: orb-drift-1 40s ease-in-out infinite;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(245, 158, 11, 0.06);
    bottom: 15%;
    right: -8%;
    animation: orb-drift-2 50s ease-in-out infinite;
}

.glow-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.05);
    top: 45%;
    left: 35%;
    animation: orb-drift-3 45s ease-in-out infinite;
}

@keyframes orb-drift-1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    14% {
        transform: translate(80px, 50px);
    }

    28% {
        transform: translate(40px, 120px);
    }

    42% {
        transform: translate(-60px, 90px);
    }

    57% {
        transform: translate(-100px, 30px);
    }

    71% {
        transform: translate(-40px, -50px);
    }

    85% {
        transform: translate(50px, -25px);
    }
}

@keyframes orb-drift-2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    16% {
        transform: translate(-90px, -60px);
    }

    33% {
        transform: translate(-50px, 70px);
    }

    50% {
        transform: translate(60px, 100px);
    }

    66% {
        transform: translate(100px, 15px);
    }

    83% {
        transform: translate(40px, -80px);
    }
}

@keyframes orb-drift-3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    16% {
        transform: translate(80px, -60px);
    }

    33% {
        transform: translate(60px, 50px);
    }

    50% {
        transform: translate(-40px, 70px);
    }

    66% {
        transform: translate(-80px, -25px);
    }

    83% {
        transform: translate(-25px, -70px);
    }
}

/* ================================
   RIPPLE EFFECT
   ================================ */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.35);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Add to cart success burst */
.cart-success-burst {
    position: fixed;
    pointer-events: none;
    z-index: 999;
}

.burst-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: burst 0.7s ease-out forwards;
}

@keyframes burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

input,
textarea {
    font-family: inherit;
    outline: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* ================================
   HEADER
   ================================ */
.store-header {
    position: relative;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    overflow: hidden;
    min-height: 140px;
    background: #0d0d0d;
}

.header-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: blur(1px);
}

.header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.7) 60%, rgba(13, 13, 13, 1) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: none;
    margin: 0;
}

.store-logo {
    flex-shrink: 0;
}

/* 3D Logo effect */
.store-logo.logo-3d img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    border: 2px solid var(--accent);
    box-shadow:
        var(--shadow-accent),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(245, 158, 11, 0.15);
    animation: logo-float 4s ease-in-out infinite;
    background: var(--bg-card);
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

.logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #0d0d0d;
    border: 2px solid var(--accent);
    box-shadow:
        var(--shadow-accent),
        0 8px 32px rgba(0, 0, 0, 0.5);
    animation: logo-float 4s ease-in-out infinite;
}

.store-info h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.store-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.store-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-status.open {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.store-status.closed {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ================================
   SEARCH BAR
   ================================ */
.search-wrapper {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-bar {
    position: relative;
    max-width: none;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: all var(--transition-normal);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-elevated);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--text-muted);
    color: var(--text-primary);
}

/* ================================
   CATEGORY NAV
   ================================ */
.category-nav {
    position: sticky;
    top: 50px;
    z-index: 89;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-md);
}

.category-scroll {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: none;
    margin: 0;
    padding: var(--space-xs) 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.cat-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.cat-btn.active {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: var(--shadow-accent);
}

/* ================================
   MENU CONTAINER
   ================================ */
.menu-container {
    max-width: none;
    margin: 0;
    padding: var(--space-md) var(--space-md) var(--space-2xl);
}

.menu-section {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title .emoji {
    font-size: 1.15rem;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ================================
   PRODUCT CARD
   ================================ */
.product-card {
    display: flex;
    gap: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:active {
    transform: scale(0.97) translateZ(0);
    transition-duration: 0.1s;
}

/* Card entrance animation */
.product-card.visible {
    animation: card-enter 0.4s ease-out both;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-img {
    flex-shrink: 0;
    width: 86px;
    height: 86px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    position: relative;
}

.product-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.product-add-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-accent);
}

.product-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

/* ================================
   NO RESULTS
   ================================ */
.no-results {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.no-results svg {
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.no-results p {
    font-size: 1rem;
    font-weight: 500;
}

.no-results span {
    font-size: 0.85rem;
    display: block;
    margin-top: var(--space-xs);
}

/* ================================
   CART FAB
   ================================ */
.cart-fab {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: var(--accent);
    color: #0d0d0d;
    padding: 11px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-accent), var(--shadow-lg);
    transition: all var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.cart-fab.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
    animation: fab-glow 3s ease-in-out infinite;
}

@keyframes fab-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3), var(--shadow-lg);
    }

    50% {
        box-shadow: 0 4px 35px rgba(245, 158, 11, 0.55), 0 0 60px rgba(245, 158, 11, 0.15), var(--shadow-lg);
    }
}

.cart-fab:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 32px rgba(245, 158, 11, 0.4), var(--shadow-lg);
    animation: none;
}

.cart-fab:active {
    transform: translateX(-50%) scale(0.93);
    transition-duration: 0.1s;
}

/* Cart bounce animation on add */
.cart-fab.bounce {
    animation: fab-bounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes fab-bounce {
    0% {
        transform: translateX(-50%) scale(1);
    }

    30% {
        transform: translateX(-50%) scale(1.2);
    }

    50% {
        transform: translateX(-50%) scale(0.9);
    }

    70% {
        transform: translateX(-50%) scale(1.08);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.cart-fab svg {
    width: 20px;
    height: 20px;
}

.cart-count {
    background: #0d0d0d;
    color: var(--accent);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ================================
   CART SIDEBAR
   ================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    border-left: 1px solid var(--border);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1.1rem;
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-close:hover {
    background: var(--text-muted);
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm) var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cart-item-obs {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-extras-list {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 2px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
}

.cart-item-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
}

.cart-qty-btn:hover {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.cart-qty-btn.remove:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.cart-item-qty {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-2xl);
}

.cart-empty p {
    font-weight: 600;
    margin-top: var(--space-md);
}

.cart-empty span {
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.cart-footer {
    padding: var(--space-md) var(--space-lg);
    padding-bottom: calc(var(--space-md) + 68px);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.cart-total-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent);
}

.btn-checkout {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #0d0d0d;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.btn-checkout:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-accent);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   MODALS
   ================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(6px);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: none;
    width: 100%;
    max-height: 85vh;
    margin-bottom: 60px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    position: relative;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-img-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-elevated);
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: var(--space-xl);
}

.modal-body h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

/* Modal Extras */
.extras-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--space-sm);
}

.extras-toggle:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.3);
    color: var(--accent);
}

.extras-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.modal-extras.open .extras-chevron {
    transform: rotate(180deg);
}

.extras-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.modal-extras.open .extras-list {
    max-height: 500px;
}

.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.extra-item:hover {
    border-color: var(--border-hover);
}

.extra-item.selected {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.extra-item input[type="checkbox"] {
    display: none;
}

.extra-check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.extra-item.selected .extra-check {
    background: var(--accent);
    border-color: var(--accent);
}

.extra-check svg {
    width: 14px;
    height: 14px;
    stroke: #0d0d0d;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.extra-item.selected .extra-check svg {
    opacity: 1;
}

.extra-info {
    flex: 1;
    margin: 0 var(--space-md);
}

.extra-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.extra-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* Modal Obs */
.modal-obs {
    margin-bottom: var(--space-lg);
}

.modal-obs label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.modal-obs textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    resize: none;
    transition: all var(--transition-normal);
}

.modal-obs textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-obs textarea::placeholder {
    color: var(--text-muted);
}

/* Modal Qty */
.modal-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.qty-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #0d0d0d;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.btn-add-cart:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-accent);
}

/* ================================
   CHECKOUT MODAL
   ================================ */
.checkout-content {
    padding: var(--space-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.checkout-content h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    padding-right: 36px;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.checkout-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

.checkout-summary-item strong {
    color: var(--accent);
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--border);
}

.checkout-summary-total .total-val {
    color: var(--accent);
}

.btn-send-order {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
}

.btn-send-order:hover {
    background: #16a34a;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.3);
}

/* ================================
   PAYMENT SECTION
   ================================ */
.payment-section {
    margin-bottom: var(--space-lg);
}

.payment-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.payment-option:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.payment-option.selected {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.payment-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.payment-option.selected .payment-icon {
    background: rgba(245, 158, 11, 0.1);
}

.payment-option-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.payment-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-fast);
}

.payment-option.selected .payment-radio {
    border-color: var(--accent);
}

.payment-option.selected .payment-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

/* Delivery Payment Details */
.delivery-payment-details {
    animation: fadeSlideIn 0.3s ease;
}

.form-group-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.delivery-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.delivery-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.delivery-method-btn:hover {
    border-color: var(--border-hover);
}

.delivery-method-btn.selected {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.delivery-method-btn input[type="radio"] {
    display: none;
}

.delivery-method-btn span {
    font-size: 0.85rem;
    font-weight: 500;
}

.delivery-method-btn.selected span {
    color: var(--accent);
    font-weight: 700;
}

/* Change Section */
.change-section {
    margin-top: var(--space-sm);
    animation: fadeSlideIn 0.3s ease;
}

.change-toggle {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.change-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.change-btn:hover {
    border-color: var(--border-hover);
}

.change-btn.active {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
    font-weight: 700;
}

.change-input-wrap {
    animation: fadeSlideIn 0.3s ease;
}

.change-input-wrap label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.change-input-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.change-prefix {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.change-input-row input {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.change-input-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.change-input-row input::placeholder {
    color: var(--text-muted);
}

/* ================================
   SUCCESS MODAL
   ================================ */
.success-content {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.success-icon {
    color: var(--success);
    margin-bottom: var(--space-lg);
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.success-sub {
    font-size: 0.9rem;
    margin-bottom: var(--space-xl) !important;
}

/* ================================
   FOOTER
   ================================ */
.store-footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
    max-width: none;
    margin: 0;
}

.admin-link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.admin-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* ================================
   RESPONSIVE — Desktop Expansion
   Base styles are mobile-first.
   This breakpoint restores larger sizes for tablets & desktops.
   ================================ */
@media (min-width: 768px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    /* Header */
    .store-header {
        padding: var(--space-2xl) var(--space-lg) var(--space-xl);
        min-height: 200px;
    }

    .header-content {
        gap: var(--space-lg);
        max-width: 800px;
        margin: 0 auto;
    }

    .store-logo.logo-3d img {
        width: 90px;
        height: 90px;
    }

    .logo-fallback {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }

    .store-info h1 {
        font-size: 1.6rem;
    }

    .store-tagline {
        font-size: 0.95rem;
    }

    /* Search */
    .search-wrapper {
        padding: var(--space-md) var(--space-lg);
    }

    .search-bar {
        max-width: 800px;
        margin: 0 auto;
    }

    .search-bar input {
        padding: 12px 40px 12px 44px;
        font-size: 0.9rem;
    }

    /* Category Nav */
    .category-nav {
        top: 62px;
        padding: 0 var(--space-lg);
    }

    .category-scroll {
        max-width: 800px;
        margin: 0 auto;
        padding: var(--space-sm) 0;
    }

    .cat-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Menu Container */
    .menu-container {
        max-width: 800px;
        margin: 0 auto;
        padding: var(--space-lg) var(--space-lg) var(--space-2xl);
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: var(--space-md);
    }

    .section-title .emoji {
        font-size: 1.3rem;
    }

    .menu-grid {
        gap: var(--space-md);
    }

    /* Product Cards */
    .product-card {
        gap: var(--space-md);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }

    .product-card::before {
        border-radius: var(--radius-lg);
    }

    .product-img {
        width: 110px;
        height: 110px;
        border-radius: var(--radius-md);
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .product-desc {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1.05rem;
        margin-top: var(--space-sm);
    }

    .product-add-btn {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }

    /* Cart FAB */
    .cart-fab {
        padding: 14px 28px;
        gap: var(--space-sm);
        font-size: 0.95rem;
    }

    .cart-fab svg {
        width: 22px;
        height: 22px;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    /* Cart Sidebar */
    .cart-sidebar {
        max-width: 420px;
    }

    .cart-header {
        padding: var(--space-lg) var(--space-xl);
    }

    .cart-header h2 {
        font-size: 1.2rem;
    }

    .cart-items {
        padding: var(--space-md) var(--space-xl);
    }

    .cart-footer {
        padding: var(--space-lg) var(--space-xl);
        padding-bottom: calc(var(--space-lg) + 68px);
    }

    .cart-total-row {
        font-size: 1.1rem;
        margin-bottom: var(--space-md);
    }

    .cart-total-value {
        font-size: 1.3rem;
    }

    .btn-checkout {
        padding: 14px;
        font-size: 1rem;
    }

    /* Modals */
    .modal-content {
        max-width: 500px;
        max-height: 80vh;
        margin-bottom: 68px;
    }

    .modal-img-wrapper {
        height: 200px;
    }

    .modal-body h2 {
        font-size: 1.3rem;
        margin-bottom: var(--space-sm);
    }

    .modal-desc {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }

    .modal-price {
        font-size: 1.3rem;
        margin-bottom: var(--space-lg);
    }

    .btn-add-cart {
        padding: 16px;
        font-size: 1.05rem;
    }

    /* Checkout */
    .checkout-content {
        padding: var(--space-xl);
    }

    .checkout-content h2 {
        font-size: 1.3rem;
        margin-bottom: var(--space-xl);
        padding-right: 40px;
    }

    .btn-send-order {
        padding: 16px;
        font-size: 1rem;
    }

    /* Footer */
    .store-footer {
        padding: var(--space-xl) var(--space-lg);
        font-size: 0.8rem;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Category Grid */
    .category-card {
        gap: var(--space-sm);
        padding: var(--space-xl) var(--space-md);
        border-radius: var(--radius-lg);
        min-height: 140px;
    }

    .category-card-emoji {
        font-size: 2.8rem;
    }

    .category-card-name {
        font-size: 1.1rem;
    }

    .category-card-count {
        font-size: 0.75rem;
    }

    /* WhatsApp FAB */
    .whatsapp-fab {
        left: 16px;
        width: 52px;
        height: 52px;
    }

    /* My Orders Page */
    .my-orders-page {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ================================
   ADMIN STYLES
   ================================ */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-header h1 span {
    color: var(--accent);
}

.admin-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-admin {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-admin.primary {
    background: var(--accent);
    color: #0d0d0d;
}

.btn-admin.primary:hover {
    background: var(--accent-hover);
}

.btn-admin.secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-admin.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-whatsapp-small {
    color: #25d366 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
}

.btn-whatsapp-small:hover {
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: #25d366 !important;
    color: #25d366 !important;
}

.admin-back {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.admin-back:hover {
    color: var(--accent);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.order-card:hover {
    border-color: var(--border-hover);
}

.order-card.completed {
    opacity: 0.6;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.order-id {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-customer {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.order-badge.done {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.order-body {
    padding: var(--space-lg);
}

.order-items-list {
    list-style: none;
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.order-items-list li:last-child {
    border-bottom: none;
}

.order-item-extras {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.order-item-obs {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
}

.order-obs {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-obs strong {
    color: var(--text-primary);
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.order-total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.order-actions {
    display: flex;
    gap: var(--space-sm);
}

.no-orders {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-muted);
}

.no-orders p {
    font-size: 1rem;
    font-weight: 500;
    margin-top: var(--space-md);
}

.no-orders span {
    font-size: 0.85rem;
    display: block;
    margin-top: var(--space-xs);
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ================================
   LOADING SHIMMER
   ================================ */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ================================
   CATEGORY GRID
   ================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-lg) var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 110px;
    -webkit-tap-highlight-color: transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* Shine sweep effect */
.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(245, 158, 11, 0.06) 45%, rgba(245, 158, 11, 0.12) 50%, rgba(245, 158, 11, 0.06) 55%, transparent 60%);
    transform: translateX(-100%) rotate(0deg);
    transition: none;
    pointer-events: none;
}

.category-card:hover::after {
    animation: shine-sweep 0.8s ease-out;
}

@keyframes shine-sweep {
    to {
        transform: translateX(100%) rotate(0deg);
    }
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent), var(--shadow-md);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

/* Category card entrance */
.category-card {
    animation: card-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.category-card:nth-child(1) {
    animation-delay: 0s;
}

.category-card:nth-child(2) {
    animation-delay: 0.08s;
}

.category-card:nth-child(3) {
    animation-delay: 0.16s;
}

.category-card:nth-child(4) {
    animation-delay: 0.24s;
}

.category-card:nth-child(5) {
    animation-delay: 0.32s;
}

.category-card:nth-child(6) {
    animation-delay: 0.40s;
}

.category-card:nth-child(7) {
    animation-delay: 0.48s;
}

@keyframes card-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.category-card-emoji {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-normal);
}

.category-card:hover .category-card-emoji {
    transform: scale(1.15);
}

.category-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.category-card-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Back button in category nav */
.cat-btn.back-btn {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    color: var(--text-primary);
    font-weight: 600;
}

.cat-btn.back-btn:hover {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

/* ================================
   SUBCATEGORY PICKER
   ================================ */
.subcategory-picker {
    text-align: center;
    padding: var(--space-md) 0;
}

.subcategory-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.subcategory-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent), var(--shadow-md);
}

.subcategory-card:hover::before {
    opacity: 1;
}

.subcategory-card:active {
    transform: translateY(-1px);
}

.subcategory-card-emoji {
    font-size: 2.8rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-normal);
}

.subcategory-card:hover .subcategory-card-emoji {
    transform: scale(1.15);
}

.subcategory-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.subcategory-card-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================
   PIX MODAL
   ================================ */
.pix-content {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pix-modal-body {
    padding: var(--space-xl);
    text-align: center;
}

.pix-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.pix-icon {
    font-size: 2rem;
}

.pix-header h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.pix-amount-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.pix-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.pix-qr-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: inline-block;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pix-qr-img {
    width: 220px;
    height: 220px;
    display: block;
}

.pix-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.pix-code-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.pix-code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.6;
    display: block;
    text-align: left;
}

.btn-pix-copy {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: var(--space-sm);
}

.btn-pix-copy:hover {
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.4);
    transform: translateY(-1px);
}

.btn-pix-copy.copied {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.pix-close-btn {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.pix-close-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Category grid handled in the main @media (min-width: 768px) */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================
   LOGIN SCREEN
   ================================ */
.login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    padding: var(--space-lg);
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 500px at 30% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 70% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: bg-shift 20s ease-in-out infinite;
    pointer-events: none;
}

.login-card {
    position: relative;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(245, 158, 11, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: login-enter 0.5s ease-out;
}

@keyframes login-enter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card.shake {
    animation: login-shake 0.5s ease;
}

@keyframes login-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-6px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(6px);
    }
}

.login-logo {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    animation: logo-float 4s ease-in-out infinite;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.login-field {
    margin-bottom: var(--space-md);
    text-align: left;
}

.login-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.login-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-elevated);
}

.login-field input::placeholder {
    color: var(--text-muted);
}

.login-error {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-normal);
    height: 0;
    overflow: hidden;
}

.login-error.visible {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-bottom: var(--space-md);
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #0d0d0d;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-btn:hover {
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* ================================
   ADMIN PANEL
   ================================ */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-header h1 span {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.btn-admin.secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-admin.secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-admin.primary {
    background: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.btn-admin.primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-accent);
}

.btn-admin.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-admin.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.order-card:hover {
    border-color: var(--border-hover);
}

.order-card.completed {
    opacity: 0.6;
}

.order-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.order-id {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent);
    margin-right: var(--space-sm);
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-customer {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.order-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.order-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.order-badge.done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.order-body {
    padding: var(--space-md) var(--space-lg);
}

.order-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.order-item-extras {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.order-item-obs {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

.order-obs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.order-total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.order-actions {
    display: flex;
    gap: var(--space-sm);
}

.no-orders {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.no-orders svg {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.no-orders p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.no-orders span {
    font-size: 0.85rem;
}

/* Store Footer */
.store-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

/* ================================
   ADMIN RESPONSIVE
   ================================ */
@media (min-width: 640px) {
    .admin-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================
   LOGIN SUCCESS ANIMATION
   ================================ */
.login-card-exit {
    animation: login-card-exit 0.4s ease-in forwards;
}

@keyframes login-card-exit {
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

.login-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.login-success-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.login-success-content {
    text-align: center;
    animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-success-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.admin-reveal {
    animation: admin-reveal 0.6s ease-out;
}

@keyframes admin-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   PASSWORD TOGGLE
   ================================ */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.password-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-elevated);
}

.password-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-normal);
}

.toggle-password:hover {
    color: var(--accent);
}

/* ================================
   PAYMENT STATUS BADGE
   ================================ */
.order-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.order-header-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.payment-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.payment-badge.paid {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.payment-badge.unpaid {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-admin.success:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

/* ================================
   LABELS / TAGS SYSTEM
   ================================ */
.order-label {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

/* Labels Modal */
.labels-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: var(--space-lg);
}

.labels-modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.labels-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: success-pop 0.3s ease-out;
}

.labels-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.labels-modal-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.labels-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-normal);
}

.labels-modal-close:hover {
    color: var(--text-primary);
}

.labels-modal-body {
    padding: var(--space-lg) var(--space-xl);
}

.label-create-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.label-create-form input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.label-create-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-elevated);
}

.label-create-form input::placeholder {
    color: var(--text-muted);
}

.label-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.label-color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.label-color-btn:hover {
    transform: scale(1.15);
}

.label-color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 12px currentColor;
    transform: scale(1.2);
}

.labels-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.labels-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-lg) 0;
}

.label-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.label-item-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    color: #fff;
}

.label-item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color var(--transition-normal);
}

.label-item-delete:hover {
    color: var(--danger);
}

/* Label dropdown on order cards */
.label-dropdown-wrapper {
    position: relative;
}

.btn-label-toggle {
    font-size: 0.85rem;
    min-width: 36px;
    justify-content: center;
}

.label-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    z-index: 100;
    padding: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.label-dropdown-wrapper.open .label-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.label-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: left;
}

.label-dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.label-dropdown-item.active {
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

.label-dropdown-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.label-check {
    margin-left: auto;
    color: var(--success);
    font-weight: 700;
}

/* ==================== DELIVERY MODE OPTIONS ==================== */
.delivery-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.delivery-mode-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.delivery-mode-option input[type="radio"] {
    display: none;
}

.delivery-mode-option:hover {
    border-color: var(--accent);
    background: rgba(255, 140, 0, 0.05);
}

.delivery-mode-option.selected {
    border-color: var(--accent);
    background: rgba(255, 140, 0, 0.1);
    box-shadow: 0 0 0 1px var(--accent);
}

.delivery-mode-option .payment-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-mode-option.selected .payment-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.delivery-mode-option.selected .payment-radio::after {
    content: '✓';
    color: #0d0d0d;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.delivery-mode-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.delivery-mode-icon {
    font-size: 1.4rem;
}

.delivery-mode-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ==================== FIELD HINTS ==================== */
.field-hint {
    display: block;
    font-size: 0.78rem;
    margin-top: 4px;
    min-height: 1.2em;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.field-hint.error {
    color: #ef4444;
    font-weight: 500;
}

.field-hint.success {
    color: #22c55e;
}

/* ==================== DELIVERY MODE BADGE (Admin) ==================== */
.delivery-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.delivery-mode-badge.entrega {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.delivery-mode-badge.retirada {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

/* Delivery payment badge */
.payment-badge.delivery {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* ==================== ADDRESS FIELD ==================== */
#customerAddress {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

#customerAddress:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==================== FIELD VALIDATION ==================== */
.field-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.field-shake {
    animation: fieldShake 0.4s ease;
}

@keyframes fieldShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.field-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-error-msg::before {
    content: '⚠️';
    font-size: 0.75rem;
}

/* ==================== TAB PAGES ==================== */
.tab-page {
    display: none;
}

.tab-page.active {
    display: block;
}

/* ==================== BOTTOM TAB BAR ==================== */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 900;
    background: rgba(18, 18, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.bottom-tab svg {
    transition: transform 0.2s ease;
}

.bottom-tab.active {
    color: var(--accent);
}

.bottom-tab.active svg {
    transform: scale(1.1);
}

/* Cart tab badge */
.tab-cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent);
    color: #0d0d0d;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Push body content up so it's not hidden by tab bar */
body {
    padding-bottom: 70px;
}

/* Adjust cart FAB to sit above the tab bar */
.cart-fab {
    bottom: 80px !important;
}

/* ==================== MY ORDERS PAGE ==================== */
.my-orders-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.my-orders-header {
    margin-bottom: var(--space-lg);
}

.my-orders-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.my-orders-subtitle {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 4px 0 0;
}

.my-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
    color: var(--text-tertiary);
    text-align: center;
}

.my-orders-empty svg {
    opacity: 0.3;
    margin-bottom: var(--space-sm);
}

.my-orders-empty p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.my-orders-empty span {
    font-size: 0.85rem;
}

/* Date groups */
.my-orders-date-group {
    margin-bottom: var(--space-lg);
}

.my-orders-date-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-tertiary);
    padding: var(--space-xs) 0;
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Order cards */
.my-order-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.my-order-card:hover {
    border-color: var(--accent);
}

.my-order-summary {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    gap: var(--space-sm);
}

.my-order-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 60px;
}

.my-order-id {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
}

.my-order-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.my-order-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.my-order-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.my-order-total {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.my-order-chevron {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.my-order-card.expanded .my-order-chevron {
    transform: rotate(180deg);
}

/* Order details (accordion) */
.my-order-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--bg-primary);
    border-top: 0 solid var(--border);
}

.my-order-card.expanded .my-order-details {
    max-height: 600px;
    border-top-width: 1px;
}

.my-order-detail-section {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.my-order-detail-section:last-child {
    border-bottom: none;
}

.my-order-detail-section strong {
    color: var(--text-primary);
}

.my-order-detail-section ul {
    list-style: none;
    padding: 0;
    margin: var(--space-xs) 0 0;
}

.my-order-detail-section ul li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85rem;
}

.my-order-extras {
    font-size: 0.78rem !important;
    color: var(--text-tertiary) !important;
    padding-left: 12px !important;
}

.my-order-item-obs {
    font-size: 0.78rem !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
    padding-left: 12px !important;
}

/* ==================== ADMIN STATUS DROPDOWN ==================== */
.status-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.status-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    min-width: 200px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.status-dropdown-wrapper.open .status-dropdown-menu {
    display: block;
}

.status-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.status-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-dropdown-item.active {
    background: rgba(var(--status-color), 0.1);
    font-weight: 600;
}

/* Success note - payment warning */
.success-note {
    font-size: 0.8rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 12px;
    line-height: 1.4;
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-fab {
    position: fixed;
    bottom: 80px;
    left: 12px;
    z-index: 100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    animation: whatsapp-pulse 3s ease-in-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab:active {
    transform: scale(0.95);
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}