@import url("https://fadyehabamer.github.io/Salla-Assets/WAFER/index.css");
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* 1. Global Font & Layout */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input {
    font-family: 'Tajawal', sans-serif !important;
}

body {
    background-color: #f8fafc;
}

/* Hide only the FIRST fixed-banner on HOMEPAGE (replaced by our custom slider) */
body.index section.s-block--fixed-banner:first-of-type {
    display: none !important;
}

/* Kill all global white space above header */
html, body, #app, .site-content, main, .store-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Kill white space above banner inside main */
main#main-content, #main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Kill gap between header and banner */
.store-header, header[data-testid="store-header"] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
salla-hook {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wide-placeholder {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* No sticky header ever */
salla-header, .store-header, header, .site-header {
    position: relative !important;
    top: auto !important;
    margin-top: 0 !important;
    transform: none !important;
}
salla-header.is-sticky, .store-header.is-sticky, header.is-sticky {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

.s-block {
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
    .s-block {
        margin-bottom: 1rem !important;
    }
}

/* 2. Header Enhancements */
.store-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 0 !important;
    margin: 0 !important;
}

/* Slider Container - Edge to Edge, No Gaps */
.custom-slider-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}
.myHeroSlider {
    border-radius: 0 !important;
}
.myHeroSlider img {
    border-radius: 0 !important;
}



.store-header-search salla-search, .header-search salla-search {
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.store-header .navbar-brand img {
    transition: transform 0.3s ease;
}

.store-header .navbar-brand:hover img {
    transform: scale(1.05);
}

/* 3. Professional Section Titles */
.s-block__title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.s-block__title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.s-block__title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 10px;
}

/* 4. Shop By Category Section (Custom Images) */
.custom-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .custom-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 5px !important;
    }
    .custom-category-card {
        padding: 6px !important;
        gap: 6px !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .custom-category-title {
        font-size: clamp(0.6rem, 2.5vw, 0.85rem) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        padding: 0 2px !important;
    }
}

.custom-category-card {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.custom-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

.custom-category-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-category-card:hover .custom-category-img-box img {
    transform: scale(1.15) rotate(2deg);
}

.custom-category-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #334155;
}

/* 5. Enhanced Product Cards */
salla-product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

salla-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* 6. Beautiful Top Slider (Hero Section) */
.myHeroSlider {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .myHeroSlider {
        border-radius: 16px;
    }
}

.myHeroSlider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.myHeroSlider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.myHeroSlider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ffffff;
    opacity: 0.7;
}

.myHeroSlider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #2563eb;
    width: 25px;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 7. In-between Banners Enhancements */
.banner--fixed {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
    display: block;
}

.banner--fixed:hover {
    transform: scale(1.02);
}

/* --- 8. PREMIUM ANIMATIONS --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for children */
.custom-category-card:nth-child(1) { transition-delay: 0.05s; }
.custom-category-card:nth-child(2) { transition-delay: 0.1s; }
.custom-category-card:nth-child(3) { transition-delay: 0.15s; }
.custom-category-card:nth-child(4) { transition-delay: 0.2s; }
.custom-category-card:nth-child(5) { transition-delay: 0.25s; }
.custom-category-card:nth-child(6) { transition-delay: 0.3s; }
.custom-category-card:nth-child(7) { transition-delay: 0.35s; }

/* Subtle pulse animation for buttons */
.btn-primary, .s-button-element {
    transition: all 0.3s ease !important;
}
.btn-primary:hover, .s-button-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}