/* CSS DESIGN SYSTEM FOR LE WOK TAKEOUT - LIGHT CENTER PANEL */

/* Variables and Tokens */
:root {
    --bg-outer: #35373c; /* Elegant slate grey for outer page canvas */
    --bg-panel: #ffffff; /* Clean white center panel background */
    --bg-card: #f9fafb; /* Light grey for choice cards */
    --bg-card-hover: #f3f4f6;
    --border-color: #e5e7eb; /* Light border color */
    
    /* Dark contrast typography */
    --text-primary: #111827; 
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    /* Elegant Red and Gold Palette */
    --accent-red: #c8102e; /* Chinese imperial red */
    --accent-red-hover: #a60c23;
    --accent-red-glow: rgba(200, 16, 46, 0.15);
    --accent-gold: #b8860b; /* Dark gold for visibility on white */
    --accent-gold-glow: rgba(184, 134, 11, 0.2);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 8px 24px rgba(200, 16, 46, 0.15);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-outer);
    /* Subtle, extremely low-contrast vertical pinstripes for sophisticated background filler */
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 100%;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-outer);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* App Container (Center Panel - White Background) */
.app-container {
    max-width: 480px; /* Mobile first lock */
    margin: 0 auto;
    background-color: var(--bg-panel);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding-bottom: 90px; /* Leave space for floating cart */
}

/* Header */
.main-header {
    padding: 16px 20px 20px 20px;
    background-color: var(--bg-panel);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Language Switcher */
.lang-switch-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.lang-switch {
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-lang {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px 4px;
}

.btn-lang:hover {
    color: var(--text-primary);
}

.btn-lang.active {
    color: var(--accent-red);
    font-weight: 800;
}

.lang-divider {
    color: var(--border-color);
    font-size: 10px;
}

/* Logo Image - Perfectly blending in White Center Panel */
.logo-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    height: 100px;
}

.header-logo-img {
    height: 100%;
    max-width: 220px;
    object-fit: contain;
    /* Since center panel is white, mix-blend-mode: multiply blends the white background away completely */
    mix-blend-mode: multiply;
}

.header-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 6px;
    font-weight: 500;
}

/* Menu Container */
.menu-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero Combo Card */
.combo-hero-card {
    background-color: var(--bg-panel);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.combo-hero-card:hover .hero-image {
    transform: scale(1.03);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--accent-red);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.combo-info {
    padding: 20px;
}

.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.combo-title {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.1;
}

.combo-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-red);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.tax-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

.combo-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 350;
    line-height: 1.5;
}

.included-items-container {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle i {
    color: var(--accent-red);
    width: 16px;
    height: 16px;
}

.included-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.included-list li {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    line-height: 1.45;
}

.bullet-dot {
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
}

.included-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Choices Section */
.choices-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.choices-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.choices-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 80%;
}

.choices-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.choices-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 350;
}

.choices-counter {
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition-smooth);
}

.choices-counter.ready {
    border-color: var(--accent-red);
    background-color: rgba(200, 16, 46, 0.08);
    color: var(--accent-red);
}

.choices-counter .current-count {
    color: var(--accent-red);
}

.choices-counter.ready .current-count {
    color: var(--accent-red);
}

.choices-counter .total-needed {
    color: var(--text-muted);
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Choice Card */
.choice-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    user-select: none;
    box-shadow: var(--shadow-premium);
}

.choice-card:hover {
    border-color: rgba(200, 16, 46, 0.25);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.card-image-wrapper {
    width: 110px;
    height: 110px;
    position: relative;
    flex-shrink: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.item-description {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 350;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Selected State */
.choice-card.selected {
    border-color: var(--accent-red);
    background-color: rgba(200, 16, 46, 0.03);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.08);
}

.choice-card.selected .item-title {
    color: var(--accent-red);
}

.card-checkbox-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-checkbox-indicator i {
    width: 12px;
    height: 12px;
    color: transparent;
    stroke-width: 3px;
    transition: var(--transition-smooth);
}

.choice-card.selected .card-checkbox-indicator {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 8px rgba(200, 16, 46, 0.3);
    transform: scale(1.1);
}

.choice-card.selected .card-checkbox-indicator i {
    color: white;
}

/* Limit reached overlay effect */
.choice-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Floating Cart Bar (High Contrast Dark Bar at Bottom) */
.floating-cart-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: rgba(20, 20, 24, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-quantity-badge {
    background-color: var(--accent-red);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.3);
}

.cart-details {
    display: flex;
    flex-direction: column;
}

.cart-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.cart-price-info {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 200px;
}

.btn-checkout {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-checkout:hover:not(.disabled) {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.btn-checkout i {
    width: 16px;
    height: 16px;
}

.btn-checkout.disabled {
    background-color: #2e2e38;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-drawer {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 85vh;
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    z-index: 201;
    color: var(--text-primary);
}

.drawer-overlay.active .checkout-drawer {
    bottom: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 {
    font-size: 20px;
    font-weight: 800;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    transition: var(--transition-smooth);
}

.btn-close-drawer:hover {
    background-color: #e5e7eb;
    color: var(--text-primary);
}

.btn-close-drawer i {
    width: 18px;
    height: 18px;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Order Summary */
.summary-section h3,
.checkout-form h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-red);
    padding-left: 10px;
}

.summary-card {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item-header .item-qty {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 14px;
}

.summary-item-header .item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    flex-grow: 1;
}

.summary-item-header .item-base-price {
    font-weight: 600;
    font-size: 14px;
}

.summary-item-details {
    padding-left: 28px;
}

.selected-choices-summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-choices-summary-list li {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-choices-summary-list li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.summary-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-calc-row.total-row {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 16px;
    margin-top: 4px;
}

.summary-calc-row.total-row span:last-child {
    color: var(--accent-red);
}

/* Forms */
.form-instructions {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 16px;
    font-weight: 350;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.input-wrapper i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.input-wrapper input,
.input-wrapper select {
    flex-grow: 1;
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
    display: block;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--accent-red);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.08);
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.payment-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: #f9fafb;
    border: 1px dashed var(--border-color);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
}

.payment-disclaimer i {
    color: var(--accent-red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-disclaimer span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-submit-order {
    background-color: var(--accent-red);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}

.btn-submit-order:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit-order.loading .btn-text {
    visibility: hidden;
}

.btn-submit-order.loading .spinner {
    display: block;
    position: absolute;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Modal Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-panel);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: scaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    color: var(--text-primary);
}

@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-container {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.success-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(200, 16, 46, 0.06);
    border: 2px solid var(--accent-red);
}

.success-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-red);
    z-index: 2;
    stroke-width: 3px;
}

/* Ring pulse animation on success */
.animate-ring {
    animation: pulseRing 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1.25); opacity: 0; }
}

.success-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 350;
    max-width: 320px;
}

.success-message strong {
    color: var(--accent-red);
    font-weight: 700;
}

/* Receipt box design */
.receipt-box {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 100%;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: var(--shadow-premium);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.receipt-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-red);
    font-size: 15px;
}

.receipt-id {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.receipt-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 16px;
}

.receipt-divider.dashed {
    border-bottom: 1px dashed var(--border-color);
    background: none;
    height: 0;
    margin: 16px 0;
}

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

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.receipt-row .label {
    color: var(--text-secondary);
}

.receipt-row .value {
    font-weight: 600;
    color: var(--text-primary);
}

.receipt-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.receipt-item-row {
    display: flex;
    font-size: 12px;
    color: var(--text-primary);
}

.receipt-item-row .item-qty {
    width: 24px;
    color: var(--accent-red);
    font-weight: 700;
}

.receipt-item-row .item-name {
    flex-grow: 1;
    font-weight: 600;
}

.receipt-item-row .item-choices {
    font-size: 11px;
    color: var(--text-secondary);
    padding-left: 24px;
    margin-top: 2px;
}

.success-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 32px;
    font-weight: 350;
}

.success-footer-info i {
    width: 14px;
    height: 14px;
    color: var(--accent-red);
}

.btn-close-success {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-success:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   DESKTOP RESPONSIVENESS, PRIVACY MODAL, AND PREMIUM STYLING ENHANCEMENTS
   ========================================================================== */

/* Full-Screen Immersive Blurred Backdrop for Desktop Viewports */
body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(17, 17, 21, 0.85), rgba(17, 17, 21, 0.93)), url('images/tv_food_display.png');
    background-size: cover;
    background-position: center;
    filter: blur(50px);
    transform: scale(1.05); /* Prevents blurred bleed edges */
    z-index: -1;
    pointer-events: none;
}

/* Hide desktop side panels by default (Mobile-First) */
.desktop-wing {
    display: none;
}

/* Desktop Only Responsive Framework */
@media (min-width: 1100px) {
    .desktop-wing {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 120px;
        width: 270px;
        background: rgba(30, 30, 35, 0.45);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
        padding: 28px;
        color: #ffffff;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
        z-index: 90;
        animation: fadeIn 0.8s ease-out forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .desktop-wing-left {
        left: calc(50% - 240px - 290px);
    }

    .wing-title {
        font-family: 'Outfit', sans-serif;
        font-size: 18px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid var(--accent-red);
        padding-bottom: 6px;
        display: inline-block;
        width: 100%;
    }

    .wing-content {
        font-size: 13px;
        color: #d1d5db;
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .wing-link {
        color: #ffffff;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        transition: var(--transition-smooth);
        margin-top: 4px;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 8px 12px;
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: center;
    }

    .wing-link:hover {
        background-color: var(--accent-red);
        color: #ffffff;
        border-color: var(--accent-red);
        transform: translateY(-1px);
    }
}

/* Address styling in header */
.header-address {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 450;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px 10px;
    border-radius: 12px;
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
}

.header-address:hover {
    color: var(--accent-red);
    background-color: rgba(200, 16, 46, 0.05);
    border-color: rgba(200, 16, 46, 0.15);
}

.header-address i {
    width: 14px;
    height: 14px;
}

/* Success details address block */
.receipt-item-choices.receipt-address {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 500;
}

.receipt-item-choices.receipt-address i {
    width: 12px;
    height: 12px;
    color: var(--accent-red);
}

/* Simple Quebec Privacy Footer in app-container */
.app-footer {
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto; /* Push to bottom of container */
}

.footer-links-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-privacy-trigger {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.btn-privacy-trigger:hover {
    color: var(--text-primary);
}

/* In-App Privacy Modal Overlay */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.privacy-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-card {
    background-color: var(--bg-panel);
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.privacy-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-close-privacy {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    transition: var(--transition-smooth);
}

.btn-close-privacy:hover {
    background-color: #e5e7eb;
    color: var(--text-primary);
}

.btn-close-privacy i {
    width: 16px;
    height: 16px;
}

.privacy-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.privacy-body ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Simple Law 25 Functional Cookie Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background-color: rgba(20, 20, 24, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ffffff;
    max-width: 440px;
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.consent-text {
    font-size: 11.5px;
    color: #d1d5db;
    line-height: 1.5;
}

.consent-text a {
    color: #ffffff;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-consent {
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-consent-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-consent-primary:hover {
    background-color: var(--accent-red-hover);
}

.btn-consent-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-consent-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Interactive animations and pop-effects */
.cart-quantity-badge.pop {
    animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.4); background-color: var(--accent-gold); }
    100% { transform: scale(1); }
}

.choice-card {
    transition: transform 0.25s cubic-bezier(0.2, 1, 0.2, 1), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.choice-card:hover:not(.disabled) {
    transform: translateY(-2px) scale(1.01);
}

.choice-card:active:not(.disabled) {
    transform: translateY(0) scale(0.99);
}

