
.slideshow-full-wrapper {
    --slider-overlay-alpha: 0.50;
    width: 100%;
    aspect-ratio: 1200 / 470;
    overflow: hidden;
}

#mainSlider.swiper-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#mainSlider .swiper-wrapper,
#mainSlider .swiper-slide {
    height: 100%;
}

#mainSlider .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Critical sizes for "Browse By Category" to avoid first-paint jump */
.featured-categories-slider {
    overflow: hidden;
    padding-bottom: 0.25rem;
}

.featured-categories-slider .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.featured-category-card {
    height: 136px;
    border-radius: 18px;
    overflow: hidden;
    padding: 16px 16px 14px;
}

.featured-category-bg-image {
    right: 2px;
    left: auto;
    width: 56%;
    max-width: 160px;
    height: 88%;
    object-fit: contain;
    object-position: right center;
}

.category-product-carousel {
    overflow: hidden;
}

.category-product-carousel .swiper-slide {
    width: 220px;
    height: auto;
}

.home-products-grid .product-card,
.category-product-carousel .swiper-slide .product-card {
    flex: 0 0 220px;
    max-width: 220px;
}

.product-card .image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-card .main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#mainSlider .swiper-slide.has-text-content::after {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, calc(var(--slider-overlay-alpha) + 0.08)) 0%,
        rgba(0, 0, 0, calc(var(--slider-overlay-alpha) - 0.12)) 45%,
        rgba(0, 0, 0, 0.04) 100%) !important;
}

.home-custom-section .home-custom-html-shell {
    border: 1px solid #eef1f6;
}

.home-custom-html-frame {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
    background: transparent;
}

.hero-promo-box {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(115deg, var(--hero-start), var(--hero-end));
    color: var(--hero-text);
}

.hero-promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay));
    z-index: 2;
}

.hero-promo-grid {
    position: relative;
    z-index: 3;
    min-height: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 28px;
    direction: ltr;
}

.hero-promo-grid.align-center { text-align: center; }
.hero-promo-grid.align-left { text-align: left; }
.hero-promo-grid.align-right { text-align: right; }

.hero-promo-content {
    direction: rtl;
}

.hero-promo-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-promo-media img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.hero-promo-content h2 {
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-promo-content p {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    margin-bottom: 18px;
    max-width: 700px;
}

.hero-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-promo-grid.align-right .hero-promo-actions {
    justify-content: flex-start;
}

.hero-promo-grid.align-center .hero-promo-actions {
    justify-content: center;
}

.hero-promo-grid.align-left .hero-promo-actions {
    justify-content: flex-end;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
    .hero-promo-grid {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 14px;
        direction: rtl;
    }

    .hero-promo-media {
        order: -1;
    }

    .hero-promo-media img {
        max-height: 220px;
    }

    .hero-btn {
        width: 100%;
    }
}


            /* =========================================
               Footer – هوية أسود/أحمر رسمية
               ========================================= */
            .site-footer {
                background: #0d0d0d;
                color: #c9c9c9;
                font-family: 'Cairo', sans-serif;
                padding-top: 0;
            }

            /* شريط علوي بالأحمر */
            .footer-top-bar {
                height: 3px;
                background: linear-gradient(90deg, #d20a11 0%, #ff4d54 50%, #d20a11 100%);
            }

            .footer-main {
                padding: 12px 0 8px;
            }

            .footer-brand-inline {
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .footer-brand-logo {
                height: 46px;
                width: auto;
                max-width: 130px;
                object-fit: contain;
                margin-bottom: 0;
            }

            .footer-brand-name {
                font-size: 1.02rem;
                font-weight: 800;
                color: #ffffff;
                margin: 0;
                letter-spacing: -0.3px;
            }

            .footer-brand-desc {
                font-size: 0.8rem;
                line-height: 1.35;
                color: #909090;
                margin: 0;
            }

            /* معلومات التواصل */
            .footer-contact-list {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-end;
                gap: 14px;
                flex-wrap: nowrap;
            }

            .footer-contact-list li {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 0.82rem;
                color: #909090;
                line-height: 1.2;
                white-space: nowrap;
            }

            .footer-contact-icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                min-width: 24px;
                background: #1a1a1a;
                border: 1px solid #2a2a2a;
                border-radius: 6px;
                color: #d20a11;
                font-size: 0.72rem;
            }

            /* شبكات التواصل */
            .footer-social {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-top: 8px;
            }

            .social-link {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 38px;
                height: 34px;
                background: #1a1a1a;
                border: 1px solid #2a2a2a;
                border-radius: 10px;
                color: #909090;
                font-size: 0.82rem;
                text-decoration: none;
                transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
            }

            .social-link:hover {
                background: #d20a11;
                border-color: #d20a11;
                color: #ffffff;
                transform: translateY(-3px);
            }

            /* فاصل */
            .footer-divider {
                border: none;
                border-top: 1px solid #1e1e1e;
                margin: 0;
            }

            /* شريط الحقوق */
            .footer-bottom {
                padding: 8px 0;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                flex-wrap: wrap;
            }

            .footer-copyright {
                font-size: 0.78rem;
                color: #606060;
                margin: 0;
                text-align: center;
            }

            .footer-copyright strong {
                color: #d20a11;
            }

            /* =========================================
               تجاوب الهاتف
               ========================================= */
            @media (max-width: 991px) {
                .footer-main {
                    padding: 10px 0 8px;
                }

                .footer-brand-inline {
                    margin-bottom: 10px;
                }

                .footer-col {
                    margin-bottom: 10px;
                }

                .footer-col:last-child {
                    margin-bottom: 0;
                }
            }

            @media (max-width: 575px) {
                .footer-main {
                    padding: 10px 0 6px;
                }

                .footer-brand-inline {
                    justify-content: center;
                    text-align: center;
                    flex-direction: column;
                    gap: 6px;
                }

                .footer-contact-list {
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 8px;
                }

                .footer-contact-list li {
                    font-size: 0.72rem;
                }

                .footer-bottom {
                    flex-direction: column;
                    text-align: center;
                    gap: 4px;
                }

                .footer-social {
                    margin-top: 10px;
                }

                .footer-brand-desc { display: block; }
            }
        