/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;700;900&display=swap');

/* Basic setup and variables */
:root { 
    --cool-blue: #2563eb; 
    --deep-blue: #1e3a8a; 
}
body { 
    font-family: 'Tajawal', sans-serif; 
    scroll-behavior: smooth; 
    text-align: right; 
    overflow-x: hidden; 
    background-color: #f8fafc; 
}

/* UI Components */
.nav-glass { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid #e2e8f0; 
}
.announcement-bar { 
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%); 
}
.drawer-right { 
    position: fixed; 
    top: 15px; left: 15px; bottom: 15px; width: calc(100% - 30px); max-width: 360px; 
    background: white; z-index: 1000; 
    transform: translateX(-120%); 
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 28px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3); 
    display: flex; flex-direction: column; overflow: hidden; 
}
.drawer-right.open { transform: translateX(0); }

.product-card { 
    transition: all 0.4s ease; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid #f1f5f9; 
    background: white; 
    position: relative; 
}
.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
}

/* Image Hover Zoom Effect */
.product-card .aspect-square img, .featured-item .aspect-square img {
    transition: transform 0.5s ease;
}
.product-card:hover .aspect-square img, .featured-item:hover .aspect-square img {
    transform: scale(1.08);
}
.product-card .aspect-square, .featured-item .aspect-square {
    transition: box-shadow 0.4s ease;
}
.product-card:hover .aspect-square, .featured-item:hover .aspect-square {
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* Views Management */
.view-frame { display: none; }
.view-frame.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay { 
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); 
    z-index: 999; display: none; backdrop-filter: blur(6px); 
}
.overlay.active { display: block; }
.hidden-view { display: none !important; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Hero Video */
.video-hero-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

/* Sale Badge */
@keyframes pulse-sale { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.sale-badge { 
    position: absolute; top: 10px; right: 10px; z-index: 20; 
    background: #ef4444; color: white; font-size: 8px; font-weight: 900; 
    padding: 3px 8px; border-radius: 50px; 
    animation: pulse-sale 1.5s infinite ease-in-out; 
}

/* Buttons */
.whatsapp-btn { 
    position: fixed; bottom: 85px; right: 20px; 
    width: 50px; height: 50px; background-color: #25d366; color: white; border-radius: 50px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 600; transition: transform 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.sticky-mobile-btn { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    background: white; padding: 12px 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.05); 
    z-index: 400; display: none; border-radius: 20px 20px 0 0; border-top: 1px solid #eee; 
}
@media (max-width: 768px) { 
    #view-product.active ~ .sticky-mobile-btn { display: block; } 
    .whatsapp-float { bottom: 80px;} 
}
.mini-thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; border: 1px solid #eee; cursor: pointer; }

/* Toast Notifications */
.toast-container { 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); 
    z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; 
}
.toast { 
    background: #1e293b; color: white; padding: 12px 24px; border-radius: 50px; 
    font-size: 11px; font-weight: bold; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    opacity: 0; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.1); 
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }

/* Spotlight Hero Section */
.spotlight-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: #1e293b;
}

@media (min-width: 768px) {
    .spotlight-thumb {
        width: 70px;
        height: 70px;
    }
}

.spotlight-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.spotlight-thumb.active {
    opacity: 1;
    border-color: #3b82f6; /* Tailwind blue-500 */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.fade-transition {
    opacity: 0;
    transform: scale(0.95);
}

/* Background Marquee */
.bg-marquee-track {
    display: flex;
    width: max-content;
    animation: bg-scroll 100s linear infinite;
    gap: 1.5rem;
}
.bg-marquee-track.reverse {
    animation-direction: reverse;
    animation-duration: 120s;
}

@keyframes bg-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } 
}

.bg-marquee-item {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    opacity: 0.65;
    transform: scale(0.85);
    filter: grayscale(30%) blur(0.5px);
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .bg-marquee-item {
        width: 180px;
        height: 180px;
    }
}

/* Scroll Indicator */
@keyframes bounce-down {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-bounce-down {
    animation: bounce-down 1.5s infinite;
}
