/* ----------------------------------------------------------- 1) GLOBAL COLORS / VARIABLES / ROOT
----------------------------------------------------------- */
body {
    background-color: #ffffff
}

html:root {
    --header-primary-color: #091932 !important;
    --menu-header-primary-color: #f3f4f600 !important;
    --header-primary-brightness: brightness(100%) !important;
    --menu-header-text-color-primary-bg: #000000 !important;
    --header-text-color-primary-bg: #ffffff !important;
    --footer-primary-color: #f3f4f6 !important;
    --footer-text-color-primary-bg: #000000 !important
}

/* ----------------------------------------------------------- 2) TYPOGRAPHY / TEXT ALIGNMENT
----------------------------------------------------------- */
.prod-col, .footer-about-us-div, h2.section-title.theme-text-primary, .section-title {
    text-align: center
}

.section-title {
    font-size: 2.0rem;
    font-weight: lighter;
    margin-bottom: 30px;
    color: #000000 !important
}

.home-categories-section * {
    color: #000000 !important
}

/* ----------------------------------------------------------- 3) BUTTONS
----------------------------------------------------------- */
.btn-primary {
    min-width: 100%;
    padding: 5px;
    font-weight: 800
}

.btn-product-card-out-of-stock {
    background-color: #ffffff !important
}

/* ----------------------------------------------------------- 4) SLIDERS / GALLERY / IMAGES
----------------------------------------------------------- */
.main-slider {
    transform: scale(0.95);
    border-radius: 10px;
    margin-top: 15px
}

ul.slick-dots {
    display: none !important
}

.gallery-section:first-of-type {
    padding: 20px !important;
    max-width: 100% !important
}

.ss img, .gallery-section img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important
}

.ss .box-1-1 .content, .gallery-section .box-1-1 .content {
    position: unset !important
}

.ss .box-1-1:before, .gallery-section .box-1-1:before, .ss .box-1-1.ratio21_9:before, .gallery-section .box-1-1.ratio21_9:before {
    content: unset !important;
    display: unset !important;
    padding-top: unset !important
}

.category-item img {
    border-radius: 5px
}

/* ----------------------------------------------------------- 5) FEATURE SECTION
----------------------------------------------------------- */
.features-section {
    background: #aba0a000 !important
}

.features-section .features-section {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px
}

.features-section * {
    color: #fff !important
}

.feature {
    border: 1px solid transparent;
    flex: 1;
    padding: 12px;
    transform: scale(1.8);
    transform-origin: center center;
    margin: 0 auto
}

@media (max-width: 680px) {
    .features-section .features-section {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .features-section .features-section .feature:nth-of-type(2) {
        grid-column: span 3;
        grid-row: 1
    }
}

/* ----------------------------------------------------------- 6) PRODUCT CARDS
----------------------------------------------------------- */
.prod-col {
    padding-left: 5px !important;
    padding-right: 5px !important
}

.product-item {
    background-color: #ffffff00 !important;
    padding: 10px !important;
    border-radius: 10px;
    border: 1px solid #e3e3e3 !important;
    width: 220px !important;
    max-width: 100% !important
}

.product-price {
    color: #000000 !important
}

.add-to-wishlist {
    background-color: #091932 !important
}

.icon-heart-mask {
    background-color: #fff !important
}

/* ----------------------------------------------------------- 7) HEADER / BREADCRUMB
----------------------------------------------------------- */
.header-wrapper {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 7px 0px;
    border-radius: 3px
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #ffffff;
    border-radius: 0.25rem
}

/* ----------------------------------------------------------- 8) FOOTER
----------------------------------------------------------- */
footer {
    background-image: url(""), linear-gradient(to bottom, #091932 -100%, #091932);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat
}

.footer-store-section, .footer-companies, .footer-copyrights-vat-certificate {
    background-color: transparent !important
}

.footer-copyrights-vat-certificate {
    color: #fff !important
}

.footer-theme-text-for-primary-bg {
    color: #ffffff
}

.store-section a {
    text-decoration: none;
    color: #ffffff;
    cursor: pointer
}

.store-section .social-icons span {
    height: 35px;
    width: 35px;
    color: #ffffff;
    font-size: 22px;
    border: 2px solid #ffffff;
    padding: 5px;
    border-radius: 50%
}

.footer-about-us-links-div.footer-about-us-div::before {
    content: "";
    background: url(https://i.postimg.cc/gcyKVqsW/Logo.png) center center / contain no-repeat;
    display: block;
    width: 100%;
    height: 50px;
    margin-bottom: 30px
}

body > div.app.d-flex.flex-column.visible > div.footer > footer > div.footer-store-section.store-section.footer-theme-bg-primary.footer-theme-text-for-primary-bg > div > div > div.col-12.col-lg-5 > div > h2 {
    display: none
}

@media (max-width: 992px) {
    .footer-about-us-links-div {
        text-align:center;
        padding-left: unset !important;
        margin-bottom: 20px
    }

    .social-icons {
        justify-content: center
    }
}

/* ----------------------------------------------------------- 9) ANIMATIONS (INTRO LOADER)
----------------------------------------------------------- */
body::before {
    content: " ";
    background-color: #f3f4f6;
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    z-index: 9998;
    opacity: 0;
    animation: intro 2s
}

body:after {
    z-index: 9999;
    position: fixed;
    content: "";
    background-image: url(https://i.postimg.cc/gcyKVqsW/Logo.png) !important;
    background-position: center;
    background-size: 100px;
    background-repeat: no-repeat;
    width: 0;
    transform: translate(50px, -50px);
    height: 100px;
    right: 50%;
    top: 50%;
    opacity: 0;
    visibility: visible !important;
    background-color: transparent !important;
    animation: intro_logo 1.5s
}

@keyframes intro {
    0% {
        width: 100%;
        opacity: 1
    }

    40% {
        opacity: 1
    }

    80% {
        opacity: 1
    }

    99% {
        width: 100%
    }

    100% {
        width: 0;
        opacity: 0;
        display: none
    }
}

@keyframes intro_logo {
    0% {
        width: 100px;
        opacity: .8
    }

    50% {
        opacity: .9
    }

    70% {
        opacity: 1
    }

    80% {
        opacity: 1
    }

    99% {
        width: 100px
    }

    100% {
        width: 0;
        opacity: 0;
        display: none
    }
}

/* ----------------------------------------------------------- 10) SECTION SPECIFIC CUSTOM FIXES
----------------------------------------------------------- */
div[section-id="53fb8502-3d1b-4690-8a10-f880748359f6"] {
    margin-top: -50px !important;
    margin-bottom: 0 !important
}

.subTitle-detail {
    margin-top: -15px;
    background-color: #ffffff;
    padding: 30px 30px
}

/* ----------------------------------------------------------- 11) MISC FIXES
----------------------------------------------------------- */
.bg-transparent {
    background-color: #fffffff0 !important
}

.logistics-pay-icons {
    gap: 10px
}

.logistics-pay-icons a {
    background-color: #fff;
    border-radius: 5px
}

.testimonials-customer-icon {
    font-size: 45px;
    line-height: initial;
    color: #F0E4E4
}

.testimonials-customer-card {
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 22%)
}

.filter-order, .filter-result, div:has(>#product-filter-count) * {
    color: #000000 !important
}

.form-control {
    border-radius: 25px;
}

@media (min-width: 992px) {
    .search-header .image-logo {
        padding: 30px;
        width: auto;
        max-height: 100%;
        position: relative;
        z-index: 1;
    }
}


/* Make the navbar RTL */
.main-nav {
    direction: rtl;
    display: flex !important;
    flex-direction: row; 
    justify-content: flex-start !important; /* In RTL this means start from right */
    align-items: center;
    gap: 0px;
    width: 100%;
    margin: 0;
    padding-right: 30px;
    list-style: none;
}

/* Override Bootstrap justify-content-between */
.justify-content-between {
    justify-content: flex-start !important;
}

/* Make nav full width */
.top-main-menu-wrapper nav {
    width: 100%;
}

/* Navbar wrapper */
.top-main-menu-wrapper {
    position: relative;
    z-index: 2;
    height: 100px;
    display: flex;
    align-items: center;
}

/* Blue background bar */
.menu-header-theme-bg-primary {
    background: #ffffff;
}

/* Menu link style */
.main-nav li a {
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
}

/* Hover underline */
.main-nav li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.main-nav li a:hover::after {
    width: 100%;
}

.main-nav li:first-child a {
    color: #FFC107;
    font-weight: bold;
}

@media (max-width: 991px) {
    #b0b37fde-7358-4684-adc7-ba14dc1afd74 {
        display: none !important;
    }
}



/* Container alignment */
.footer-copyrights {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Richline block */
.richline-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #75727B;
    font-size: 0.875rem;
}

/* Richline logo */
.richline-footer img {
    height: 18px;
}

/* Desktop layout */
@media (min-width: 992px) {
    .footer-copyrights {
        justify-content: flex-end;
    }
}

/* Mobile layout */
@media (max-width: 991px) {
    .footer-copyrights {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .richline-footer img {
        height: 16px;
    }
}

.richline-footer span,
.footer-copyrights a p {
    letter-spacing: 0.17px !important;
    font-family: "Almarai", sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    line-height: 1.43 !important;
    color: #ffffff !important;
}

body > div.app.d-flex.flex-column.visible > div.footer > footer > div.footer-copyrights-vat-certificate {
    margin-bottom: 50px !important;
}

body > div.app.d-flex.flex-column.visible > div.footer > footer > div.footer-store-section.store-section.footer-theme-bg-primary.footer-theme-text-for-primary-bg > div > div > div.col-12.col-lg-7 > div > div:nth-child(3) > div > div > a:nth-child(4) {
    display: none !important;
}

/* Mobile فقط */
@media (max-width: 768px) {

    /* تصغير حجم الكارد */
    .categories-slider .cat-col {
        flex: 0 0 45%; /* بدل ما يكون كبير */
        max-width: 48%;
    }

    /* تصغير الصورة داخل الكارد */
    .category-item img {
        width: 100%;
        height: auto;
        transform: scale(0.9); /* تصغير بسيط */
    }

    /* إخفاء النص تحت الكارد */
    .category-item h3 {
        display: none;
    }

    /* تقليل المسافات */
    .category-item {
        padding: 5px;
    }
}

.category-item h3 {
    display: none;
}

.product-card-add-to-cart {
    background-color: #091932; /* اللون الأساسي */
    border-color: #091932;
    color: #fff;
}

.product-card-add-to-cart:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #091932;
}

/* Login button - force white style */
#login-btn {
    background-color: #ffffff00;
    color: #000000;
    border: 1px solid #ffffff;
}

/* النص والأيقونة */
#login-btn span,
#login-btn .header-theme-icon-primary {
    color: #ffffff !important;
    fill: #000000 !important;
}

/* Zid logo فقط */
a[href*="zid.sa"] img {
    filter: brightness(0) invert(1);
}

/* Loyalty button فقط */
.loyalty_footer_btn {
    background-color: #ba9814 !important; /* اللون اللي تريده */
    color: #ffffff !important;
}