/* ── Strong Black & Sharp Orange Luxury Style System ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 17.5px;
}

/* Custom Orange/Black Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6f00, #ff5f00);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff8522;
}

body {
    background-color: #0a0a0a;
    color: #f4f6fb;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('./images/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ── Glassmorphism Navbar ── */
.glass-nav {
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.scrolled-nav {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 111, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ── Splash / Loading Screen ── */
#splashScreen {
    display: none !important;
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible, .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Blob Animation ── */
.animate-blob {
    animation: blob 8s infinite alternate ease-in-out;
}
.animation-delay-2000 {
    animation-delay: 2s;
}
@keyframes blob {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -40px) scale(1.08); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ── Glass Panel Styling ── */
/* ── Deep Black Card Styling ── */
.glass-panel,
.product-card-container,
.food-card {
    background: #050505 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
    border-color: rgba(255, 111, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 111, 0, 0.08);
}

/* ── Glow Shadows ── */
.shadow-orange-glow {
    box-shadow: 0 0 25px rgba(255, 111, 0, 0.15);
}

/* ── Toast Notifications ── */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 111, 0, 0.35);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
}
.toast.show {
    transform: translateX(0);
}
.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6f00;
    flex-shrink: 0;
    animation: toastBlink 1s infinite;
}
@keyframes toastBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Add Notification Banner ── */
.add-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #ff6f00, #ff3d00);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    animation: slideInNotification 0.3s ease, slideOutNotification 0.3s ease 1.7s forwards;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}
@keyframes slideInNotification {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutNotification {
    to { transform: translateX(100%); opacity: 0; }
}

/* ── Back to Top Button ── */
#backToTop {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 111, 0, 0.3);
    color: #ff6f00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s;
    z-index: 99;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}
#backToTop:hover {
    background-color: rgba(255, 111, 0, 0.15);
    border-color: #ff6f00;
}

/* ── Cart Drawer Transition ── */
#cartDrawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: flex-end;
}
#cartDrawer.open {
    display: flex;
}
#cartDrawer > div {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}
#cartDrawer.open > div {
    transform: translateX(0);
}

/* ── Modal Animate ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-card {
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}

/* ── Shimmer Effects ── */
.shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.01) 25%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.01) 75%);
    background-size: 200% 100%;
    animation: shimmerEffect 1.5s infinite;
}
@keyframes shimmerEffect {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Product Card Button Hover Slide Up ── */
.product-image-container .action-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.product-card-container:hover .product-image-container .action-btn {
    transform: translateY(0);
    opacity: 1;
}

@media (hover: none) {
    .product-image-container .action-btn {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* ── Print Styles for Receipts ── */
@media print {
    body * {
        visibility: hidden;
    }
    #receiptOverlay, #receiptOverlay * {
        visibility: visible;
    }
    #receiptOverlay {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: none !important;
    }
    #receiptContainer {
        background: white !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    #receiptContainer * {
        color: black !important;
    }
    #receiptContainer button,
    #receiptContainer .absolute {
        display: none !important;
    }
}
