/* Add custom CSS styles below */ 
/* ========================================
   HALA GBT Custom Styling for Salla.sa
   Version: 1.0
   Brand: HalaGBT - AI Services Platform
   ======================================== */

/* Import Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Exo+2:wght@400;500;600;700;800&display=swap');

/* ========================================
   CSS Variables - Brand Identity
   ======================================== */
:root {
    /* Primary Brand Colors */
    --hala-blue: #0006FF;
    --hala-blue-light: #5050FF;
    --hala-blue-medium: #3939FF;
    --hala-magenta: #FF00F6;
    --hala-magenta-light: #FF99F6;
    --hala-magenta-medium: #FF4DF6;
    --hala-black: #0F000B;
    --hala-purple: #6B4FFF;
    --hala-pink: #C244FF;
    
    /* Brand Gradients */
    --hala-gradient: linear-gradient(90deg, #0006FF 0%, #FF00F6 100%);
    --hala-gradient-bg: linear-gradient(90deg, #0006FF 0%, #8B5CF6 50%, #FF00F6 100%);
    --hala-gradient-135: linear-gradient(135deg, #0006FF 0%, #6B4FFF 35%, #C244FF 65%, #FF00F6 100%);
    
    /* Typography */
    --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
    --font-latin: 'Exo 2', sans-serif;
}

/* ========================================
   Global Typography
   ======================================== */
body {
    font-family: var(--font-arabic), var(--font-latin), sans-serif;
}

body[dir="rtl"] *,
.arabic-text {
    font-family: var(--font-arabic), sans-serif;
}

.en-text,
[lang="en"] {
    font-family: var(--font-latin), sans-serif;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header,
.s-header {
    background: var(--hala-black) !important;
    border-bottom: 2px solid transparent;
    border-image: var(--hala-gradient) 1;
    box-shadow: 0 4px 20px rgba(0, 6, 255, 0.2);
}

.header__logo img,
.s-header__logo img {
    filter: drop-shadow(0 0 10px rgba(255, 0, 246, 0.4));
    transition: all 0.3s ease;
}

.header__logo:hover img,
.s-header__logo:hover img {
    filter: drop-shadow(0 0 20px rgba(255, 0, 246, 0.8));
    transform: scale(1.05);
}

.header__menu a,
.s-header-menu__link {
    color: #fff !important;
    position: relative;
    transition: all 0.3s ease;
}

.header__menu a:hover,
.s-header-menu__link:hover {
    color: var(--hala-magenta) !important;
}

.header__menu a::after,
.s-header-menu__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hala-gradient);
    transition: width 0.3s ease;
}

.header__menu a:hover::after,
.s-header-menu__link:hover::after {
    width: 100%;
}

/* ========================================
   Buttons & Call-to-Actions
   ======================================== */
.btn,
.s-button,
button[type="submit"],
.add-to-cart,
.s-button-primary {
    background: var(--hala-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 6, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover,
.s-button:hover,
.add-to-cart:hover,
.s-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 0, 246, 0.5);
}

.btn::before,
.s-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before,
.s-button:hover::before {
    left: 100%;
}

.btn-secondary,
.s-button-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    color: white !important;
}

.btn-secondary:hover,
.s-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
}

/* ========================================
   Product Cards
   ======================================== */
.product-card,
.s-product-card,
.s-product-card-vertical {
    border-radius: 20px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before,
.s-product-card::before,
.s-product-card-vertical::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--hala-gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.product-card:hover,
.s-product-card:hover,
.s-product-card-vertical:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 6, 255, 0.2);
}

.product-card:hover::before,
.s-product-card:hover::before,
.s-product-card-vertical:hover::before {
    opacity: 1;
}

.product-card__image,
.s-product-card__image,
.s-product-card-vertical__image {
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.product-card__image img,
.s-product-card__image img,
.s-product-card-vertical__image img {
    transition: transform 0.4s ease;
}

.product-card:hover img,
.s-product-card:hover img,
.s-product-card-vertical:hover img {
    transform: scale(1.1);
}

.product-badge,
.s-product-card__badge {
    background: var(--hala-gradient) !important;
    color: white !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 6, 255, 0.3);
}

.product-price,
.s-product-card__price {
    background: var(--hala-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

/* ========================================
   Hero Section / Main Banner
   ======================================== */
.hero-section,
.main-slider,
.s-hero,
.s-banner {
    background: var(--hala-gradient-135);
    position: relative;
    overflow: hidden;
    padding: 80px 40px;
    border-radius: 0 0 40px 40px;
}

.hero-section::before,
.main-slider::before,
.s-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-section h1,
.hero-section h2,
.main-slider h1,
.main-slider h2,
.s-banner h1,
.s-banner h2 {
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* ========================================
   Category Cards
   ======================================== */
.category-card,
.s-category-card {
    border-radius: 20px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::after,
.s-category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hala-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover,
.s-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 6, 255, 0.2);
}

.category-card:hover::after,
.s-category-card:hover::after {
    transform: scaleX(1);
}

/* ========================================
   Footer Styling
   ======================================== */
.footer,
.s-footer {
    background: var(--hala-black) !important;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer::before,
.s-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hala-gradient);
}

.footer a,
.s-footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer a:hover,
.s-footer a:hover {
    color: var(--hala-magenta);
}

/* ========================================
   Search Bar
   ======================================== */
.search-input,
.s-search-input,
input[type="search"] {
    border: 2px solid rgba(0, 6, 255, 0.3) !important;
    border-radius: 50px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.search-input:focus,
.s-search-input:focus,
input[type="search"]:focus {
    border-color: var(--hala-magenta) !important;
    box-shadow: 0 0 20px rgba(255, 0, 246, 0.3);
    outline: none;
}

/* ========================================
   Shopping Cart
   ======================================== */
.cart-icon,
.s-cart-icon {
    position: relative;
}

.cart-count,
.s-cart-count,
.s-cart-badge {
    background: var(--hala-gradient) !important;
    color: white !important;
    border-radius: 50%;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 0, 246, 0.5);
}

/* ========================================
   Loading Animation
   ======================================== */
.loader,
.s-loader {
    border: 4px solid rgba(0, 6, 255, 0.2);
    border-top: 4px solid var(--hala-magenta);
    animation: spin 1s linear infinite;
}

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

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0, 6, 255, 0.4),
                    0 0 20px rgba(0, 6, 255, 0.3),
                    0 0 30px rgba(0, 6, 255, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 0, 246, 0.4),
                    0 0 30px rgba(255, 0, 246, 0.3),
                    0 0 40px rgba(255, 0, 246, 0.2);
    }
}

/* ========================================
   Forms & Inputs
   ======================================== */
input,
textarea,
select,
.form-control,
.s-form-control {
    border: 2px solid rgba(0, 6, 255, 0.2) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.s-form-control:focus {
    border-color: var(--hala-magenta) !important;
    box-shadow: 0 0 15px rgba(255, 0, 246, 0.2);
    outline: none;
}

/* ========================================
   Badges & Labels
   ======================================== */
.badge,
.label,
.tag,
.s-badge {
    background: var(--hala-gradient) !important;
    color: white !important;
    border-radius: 20px;
    padding: 4px 12px;
    font-weight: 600;
}

/* ========================================
   Special Animations
   ======================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.special-offer,
.sale-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--hala-black);
}

::-webkit-scrollbar-thumb {
    background: var(--hala-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hala-magenta);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-section,
    .main-slider,
    .s-banner {
        padding: 40px 20px;
        border-radius: 0 0 20px 20px;
    }
    
    .btn,
    .s-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .product-card,
    .s-product-card,
    .s-product-card-vertical {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .product-price,
    .s-product-card__price {
        font-size: 1.2rem;
    }
    
    .btn,
    .s-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}