/* Core Reset & White Mirror Theme Variables */
:root {
    --bg-color: #faf6f5; /* Pure soft rose white */
    --glass-bg: rgba(255, 255, 255, 0.78); /* Pure white crystalline background */
    --glass-border: rgba(255, 255, 255, 0.6); /* Crystalline white border */
    
    /* Elegant Luxury Accents */
    --accent-rose-gold: #b76e79; /* Rose Gold */
    --accent-rose-gold-hover: #9c5c66;
    --accent-lavender: #b39ddb; /* Soft Lavender */
    --accent-sky-blue: #81d4fa; /* Soft Sky Blue */
    --scanner-blue: #a0c4ff; /* Sky blue scan line HUD */
    
    /* Typography & Errors */
    --text-primary: #3d2f30; /* Rose charcoal */
    --text-secondary: #7a6667; /* Soft slate rose */
    --error-color: #ff3b30;
    
    --font-primary: 'Cairo', sans-serif;
    --font-number: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* Webcam Live Mirror Backdrop (Bright & Naturally Lit Cafe Atmosphere) */
.mirror-camera-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    /* Soft white marble with a subtle rose gold/lavender tone */
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 30%, #f8eff0 70%, #ffffff 100%);
}

#webcam-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Horizontally flip camera for mirror effect */
    opacity: 0.55; /* Higher opacity to make the camera mirror reflection clearer */
    filter: brightness(1.05) contrast(95%);
}

.mirror-overlay-tint {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Pearlescent white natural light blur */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(2px) brightness(1.02);
    pointer-events: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    height: 3px;
    width: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(183, 110, 121, 0.2);
    border-radius: 10px;
}

/* Centered container */
.app-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px;
    position: relative;
    z-index: 3;
}

@media (min-width: 481px) {
    html {
        background-color: #f0eae7 !important;
    }
    body {
        max-width: 480px;
        margin: 0 auto !important;
        box-shadow: 0 10px 40px rgba(183, 110, 121, 0.12) !important;
        border-left: 1px solid rgba(183, 110, 121, 0.1);
        border-right: 1px solid rgba(183, 110, 121, 0.1);
        min-height: 100vh;
        position: relative;
    }
    .basket-hud-portal {
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        margin-left: 180px;
    }
    .options-hud-overlay, .cart-drawer-overlay {
        max-width: 480px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Crystalline Glass Card */
.mirror-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    /* Soft, luxury shadow with a rose gold/lavender hue */
    box-shadow: 0 8px 32px 0 rgba(183, 110, 121, 0.08), inset 0 0 12px rgba(255, 255, 255, 0.6);
}

/* HUD corner brackets (Rose Gold instead of green) */
.hud-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent-rose-gold);
    pointer-events: none;
    z-index: 10;
}
.hud-bracket.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.hud-bracket.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.hud-bracket.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.hud-bracket.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Language Switcher */
.lang-btn {
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(183, 110, 121, 0.2);
    color: var(--text-primary);
    font-family: var(--font-number);
    font-weight: 600;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(183, 110, 121, 0.05);
}
.lang-btn:hover {
    border-color: var(--accent-rose-gold);
    color: var(--accent-rose-gold);
    background: #fff;
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.15);
}
html[dir="ltr"] .lang-btn {
    left: auto;
    right: 20px;
}

/* Header */
.mirror-header {
    text-align: center;
    padding: 20px 0 15px;
}
.mirror-header h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mirror-header h1 i {
    color: var(--accent-rose-gold);
}
.mirror-header p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Mood Scanner Panel */
.scanner-screen {
    padding: 30px 20px;
    text-align: center;
    margin-top: 10px;
}
.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.target-box {
    width: 140px;
    height: 140px;
    border: 2px dashed rgba(183, 110, 121, 0.3);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--scanner-blue);
    box-shadow: 0 0 12px var(--scanner-blue);
    top: 0;
    left: 0;
    animation: scanLineMove 2.5s infinite ease-in-out;
}
.face-indicator {
    font-size: 48px;
    /* Soft sky blue/lavender crystal look */
    color: var(--accent-sky-blue);
    text-shadow: 0 2px 8px rgba(129, 212, 250, 0.4);
    opacity: 0.85;
    animation: pulseIcon 1.5s infinite ease-in-out;
}

.scan-glow-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-rose-gold);
    text-shadow: 0 1px 4px rgba(183, 110, 121, 0.15);
}
.scan-subtext {
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 6px;
    max-width: 250px;
    line-height: 1.4;
}

.scan-progress-bar {
    width: 200px;
    height: 10px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(183, 110, 121, 0.15);
    border-radius: 6px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, var(--accent-sky-blue), var(--accent-lavender));
    box-shadow: 0 0 8px rgba(179, 157, 219, 0.4);
    transition: width 0.1s linear;
}
.progress-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-number);
    font-size: 8px;
    font-weight: 800;
    color: var(--text-primary);
}

.scan-trigger-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #e5bec2 0%, var(--accent-rose-gold) 100%);
    border: none;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 11.5px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.2);
    transition: all 0.25s;
}
.scan-trigger-btn:hover {
    background: linear-gradient(135deg, var(--accent-rose-gold) 0%, #e5bec2 100%);
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.3);
}

/* Menu Console (Slides in) */
.menu-console {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mood Bar */
.mood-status-bar {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mood-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.mood-header .label {
    color: var(--text-secondary);
}
.mood-badge {
    background: rgba(183, 110, 121, 0.12);
    border: 1px solid var(--accent-rose-gold);
    color: var(--accent-rose-gold);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}
.mood-selector-chips {
    display: flex;
    gap: 6px;
}
.mood-chip {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(183, 110, 121, 0.15);
    color: var(--text-secondary);
    padding: 6px 4px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.mood-chip.active {
    background: rgba(183, 110, 121, 0.15);
    border-color: var(--accent-rose-gold);
    color: var(--accent-rose-gold);
    font-weight: 700;
    box-shadow: inset 0 0 6px rgba(183, 110, 121, 0.05);
}

/* Recommendations */
.recos-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recos-section .section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-rose-gold);
    padding-right: 4px;
}
.recos-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.recos-slider::-webkit-scrollbar {
    display: none;
}
.reco-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.04);
    transition: all 0.25s;
}
.reco-card:hover {
    border-color: var(--accent-rose-gold);
    box-shadow: 0 6px 18px rgba(183, 110, 121, 0.1);
}
.reco-img-wrap {
    width: 100%;
    aspect-ratio: 1.3;
    border-radius: 6px;
    overflow: hidden;
}
.reco-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reco-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.reco-price {
    font-family: var(--font-number);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-rose-gold);
    margin-top: 2px;
}

/* Search Box */
.mirror-search-wrap {
    position: relative;
}
.mirror-search-wrap .search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 13px;
}
html[dir="ltr"] .mirror-search-wrap .search-icon {
    right: auto;
    left: 14px;
}
#mirror-search {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 10px 38px 10px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.03);
}
html[dir="ltr"] #mirror-search {
    padding: 10px 16px 10px 38px;
}
#mirror-search:focus {
    border-color: var(--accent-rose-gold);
}

/* Categories selector */
.categories-scroller {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.categories-scroller::-webkit-scrollbar {
    display: none;
}
.categories-tab {
    white-space: nowrap;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.categories-tab.active {
    background: rgba(183, 110, 121, 0.12);
    border-color: var(--accent-rose-gold);
    color: var(--accent-rose-gold);
    font-weight: 700;
}

/* Menu catalog list */
.menu-catalog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.catalog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.04);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    
    /* Digital Spin-In & Scanline Animation */
    opacity: 0;
    transform: perspective(600px) rotateX(-15deg) translateY(15px);
    animation: mirrorCardScan 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.catalog-card:nth-child(1) { animation-delay: 50ms; }
.catalog-card:nth-child(2) { animation-delay: 100ms; }
.catalog-card:nth-child(3) { animation-delay: 150ms; }
.catalog-card:nth-child(4) { animation-delay: 200ms; }
.catalog-card:nth-child(5) { animation-delay: 250ms; }
.catalog-card:nth-child(6) { animation-delay: 300ms; }
.catalog-card:nth-child(7) { animation-delay: 350ms; }
.catalog-card:nth-child(8) { animation-delay: 400ms; }

@keyframes mirrorCardScan {
    to {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
    }
}
.catalog-card:hover {
    border-color: var(--accent-rose-gold);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}
.card-img-wrap {
    width: 100%;
    aspect-ratio: 1.25;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-rose-gold);
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
}
html[dir="ltr"] .card-badge {
    right: auto;
    left: 4px;
}
.card-info {
    margin-top: 6px;
}
.card-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-price {
    font-family: var(--font-number);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-rose-gold);
    margin-top: 2px;
}

/* WiFi Info */
.wifi-info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
.wifi-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wifi-left i {
    font-size: 18px;
    /* Lavender crystal icon style */
    color: var(--accent-lavender);
    text-shadow: 0 0 5px rgba(179, 157, 219, 0.3);
}
.wifi-left span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
}
.wifi-left small {
    display: block;
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}
.copy-icon {
    font-size: 12px;
    color: var(--text-secondary);
}

.location-bar {
    text-align: center;
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.85;
}

/* Options popup (Crystalline Pure White HUD) */
.options-hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 246, 245, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.options-hud-overlay.active {
    opacity: 1;
    display: flex;
}
.hud-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid var(--accent-rose-gold);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    position: relative;
    box-shadow: 0 12px 40px rgba(183, 110, 121, 0.15), inset 0 0 20px rgba(255,255,255,0.8);
    transform: scale(0.9);
    transition: transform 0.3s;
    color: var(--text-primary);
}
.options-hud-overlay.active .hud-panel {
    transform: scale(1);
}
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(183, 110, 121, 0.15);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.hud-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-rose-gold);
}
.hud-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
.hud-close-btn:hover {
    color: var(--error-color);
}

.hud-body {
    max-height: 50vh;
    overflow-y: auto;
}
.hud-preview {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    border-radius: 8px;
    border: 1px dashed rgba(183, 110, 121, 0.15);
}
.hud-preview img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}
.hud-preview p {
    font-size: 10.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.opt-group {
    margin-bottom: 10px;
}
.opt-title {
    display: block;
    font-size: 10.5px;
    color: var(--accent-rose-gold);
    margin-bottom: 5px;
    font-weight: 700;
}
.hud-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hud-pill {
    position: relative;
    cursor: pointer;
}
.hud-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.hud-pill-label {
    display: inline-block;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(183, 110, 121, 0.15);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    transition: all 0.2s;
}
.hud-pill input:checked + .hud-pill-label {
    background: rgba(183, 110, 121, 0.15);
    border-color: var(--accent-rose-gold);
    color: var(--accent-rose-gold);
    font-weight: 600;
}

.hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(183, 110, 121, 0.15);
    padding-top: 12px;
    margin-top: 12px;
}
.hud-price-box {
    display: flex;
    flex-direction: column;
}
.hud-price-box span:first-child {
    font-size: 8.5px;
    color: var(--text-secondary);
}
.hud-price-box .price-val {
    font-family: var(--font-number);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-rose-gold);
}
.hud-add-btn {
    background: linear-gradient(135deg, #d4a5ab 0%, var(--accent-rose-gold) 100%);
    border: none;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.2);
    transition: all 0.25s;
}
.hud-add-btn:hover {
    background: linear-gradient(135deg, var(--accent-rose-gold) 0%, #d4a5ab 100%);
    box-shadow: 0 6px 16px rgba(183, 110, 121, 0.3);
}

/* Floating Basket */
.basket-hud-portal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.12);
    z-index: 99;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}
.basket-hud-portal.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.portal-icon {
    font-size: 18px;
    /* Lavender crystal indicator */
    color: var(--accent-lavender);
    text-shadow: 0 0 5px rgba(179, 157, 219, 0.3);
    animation: rotatePortal 8s infinite linear;
}
.basket-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-rose-gold);
    color: #fff;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-family: var(--font-number);
    font-weight: 700;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 246, 245, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.cart-drawer-overlay.active {
    opacity: 1;
    display: flex;
}
.cart-drawer-content {
    background: rgba(255, 255, 255, 0.98);
    border-top: 2px solid var(--accent-rose-gold);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    max-height: 85vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 32px rgba(183, 110, 121, 0.15);
}
.cart-drawer-overlay.active .cart-drawer-content {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(183, 110, 121, 0.15);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.drawer-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-rose-gold);
}
.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
}

/* Cart empty state */
.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}
.cart-empty-state i {
    font-size: 32px;
    color: rgba(183, 110, 121, 0.2);
    margin-bottom: 10px;
}

/* Item row inside Drawer */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(183, 110, 121, 0.12);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
}
.cart-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.cart-item-options-desc {
    font-size: 9px;
    color: var(--accent-rose-gold);
}
.cart-item-price-desc {
    font-family: var(--font-number);
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(183, 110, 121, 0.2);
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--accent-rose-gold);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-val {
    font-family: var(--font-number);
    font-size: 11px;
    padding: 0 4px;
    min-width: 14px;
    text-align: center;
    color: var(--text-primary);
}
.remove-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 10.5px;
}

/* Order Form */
.drawer-form {
    margin-top: 14px;
    border-top: 1px solid rgba(183, 110, 121, 0.15);
    padding-top: 12px;
}
.drawer-form h3 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-rose-gold);
    margin-bottom: 10px;
}
.form-row {
    margin-bottom: 8px;
}
.form-row label {
    display: block;
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}
.form-row label .required {
    color: var(--error-color);
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(183, 110, 121, 0.25);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s;
}
.input-wrap select option {
    background: #ffffff;
    color: var(--text-primary);
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
    border-color: var(--accent-rose-gold);
}

.drawer-footer {
    border-top: 1px solid rgba(183, 110, 121, 0.15);
    padding-top: 12px;
    margin-top: 12px;
    background: rgba(255,255,255,0.95);
}
.drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.drawer-total-row span:first-child {
    font-size: 12px;
    color: var(--text-secondary);
}
.drawer-price-val {
    font-family: var(--font-number);
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-rose-gold);
}
.submit-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4a5ab 0%, var(--accent-rose-gold) 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.2);
    transition: all 0.3s;
}
.submit-order-btn:hover {
    background: linear-gradient(135deg, var(--accent-rose-gold) 0%, #d4a5ab 100%);
    box-shadow: 0 6px 16px rgba(183, 110, 121, 0.35);
}
.submit-order-btn:disabled {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.25) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Toast Console */
.toast-notify {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--accent-rose-gold);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}
.toast-notify.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* Animations */
@keyframes scanLineMove {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}
@keyframes pulseIcon {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes rotatePortal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Entry Splash Screen - AI Mirror Theme */
.app-splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0c101c;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.app-splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}
.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.splash-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--accent-rose-gold);
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.3);
    object-fit: cover;
    animation: splashPulse 2s infinite ease-in-out;
    margin-bottom: 16px;
}
.splash-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    font-family: 'Cairo', sans-serif;
}
.splash-subtitle {
    font-size: 11px;
    color: var(--accent-rose-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 24px;
}
.splash-loader {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.splash-loader::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    background: var(--accent-rose-gold);
    animation: loaderMove 1.5s infinite ease-in-out;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(183, 110, 121, 0.2)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 20px rgba(183, 110, 121, 0.4)); }
}
@keyframes loaderMove {
    0% { left: -50%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ── Mirror Shimmer Sweep ── */
.catalog-card::after {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent 25%, rgba(183,110,121,.08) 50%, transparent 75%);
    transform: skewX(-12deg);
    animation: mirrorShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}
.catalog-card:nth-child(1)::after { animation-delay:    0s }
.catalog-card:nth-child(2)::after { animation-delay: -1.5s }
.catalog-card:nth-child(3)::after { animation-delay:   -3s }
.catalog-card:nth-child(4)::after { animation-delay: -4.5s }
.catalog-card:nth-child(5)::after { animation-delay: -.75s }
.catalog-card:nth-child(6)::after { animation-delay: -2.25s }
.catalog-card:nth-child(7)::after { animation-delay: -3.75s }
.catalog-card:nth-child(8)::after { animation-delay: -5.25s }
@keyframes mirrorShimmer {
    0%,65%,100% { left: -70%; opacity: 0 }
    10% { left: -70%; opacity: 1 }
    45% { left: 130%; opacity: 1 }
    55% { left: 130%; opacity: 0 }
}

/* ── Idle Breath Glow via ::before ── */
.catalog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    animation: cardBreathGlow 3.5s ease-in-out 1s infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes cardBreathGlow {
    0%,100% { box-shadow: inset 0 0 0 1px rgba(183,110,121,.06), inset 0 0 8px rgba(183,110,121,0); }
    50%      { box-shadow: inset 0 0 0 1px rgba(183,110,121,.18), inset 0 0 14px rgba(183,110,121,.07); }
}
