/* ============================================
   أوبسيديان - Obsidian
   Custom Stylesheet for Premium Dark Theme
   ============================================ */

/* 1. Custom Font & Global Style overrides */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    --primary-fixed: #c5f400;
    --primary-fixed-dim: #acd600;
    --background: #111317;
    --surface-container: #1e2023;
    --surface-container-high: #282a2e;
    --surface-container-highest: #333539;
    --on-surface: #e2e2e7;
    --on-surface-variant: #c4c9ac;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    background-color: var(--background);
    color: var(--on-surface);
}

/* 2. Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-container-highest);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-fixed-dim);
}

/* 3. Hide scrollbars utility */
.hide-scrollbar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
}
.hide-scrollbar,
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 4. Glow Utilities */
.electric-glow {
    box-shadow: 0 0 15px rgba(197, 244, 0, 0.15);
}
.electric-glow-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.electric-glow-hover:hover {
    box-shadow: 0 0 20px 4px rgba(197, 244, 0, 0.25);
    border-color: rgba(197, 244, 0, 0.4) !important;
}
.neon-glow {
    box-shadow: 0 0 10px rgba(197, 244, 0, 0.2);
}

/* 5. Gradients */
.hero-gradient {
    background: linear-gradient(0deg, rgba(17,19,23,1) 0%, rgba(17,19,23,0) 50%, rgba(17,19,23,0.8) 100%);
}

.hero-gradient-l {
    background: linear-gradient(to left, rgba(17,19,23,1) 0%, rgba(17,19,23,0.7) 40%, rgba(17,19,23,0) 100%);
}

/* 6. Animations */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 7. Cart Drawer custom styling */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.cart-drawer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 420px;
    background-color: var(--surface-container);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.show {
    transform: translateX(0);
}

/* 8. Lightbox Overlay modal custom styling */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(12, 14, 18, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.lightbox-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.15s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 2010;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 2010;
    transition: all 0.2s;
}
.lightbox-arrow:hover {
    background: var(--primary-fixed);
    color: #111;
    border-color: var(--primary-fixed);
}
.lightbox-prev {
    right: 20px;
}
.lightbox-next {
    left: 20px;
}

/* 9. Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 40;
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 24px;
        width: 56px;
        height: 56px;
        font-size: 30px;
    }
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
}

/* 10. Form Validation & Loading Spinner */
.was-validated :invalid {
    border-color: #ef4444 !important;
}
.was-validated :invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.was-validated :valid {
    border-color: #10b981 !important;
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 11. Glassmorphism for Product Images */
.product-glass-bg {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all 0.3s ease !important;
}
.product-glass-bg:hover {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), 0 0 15px 1px rgba(255, 255, 255, 0.02) !important;
}
