/* ================= إعدادات الخلفية العامة ================= */
.bg-white {
    background-color: #fcfbf9;
}
body {
    background-color: #fcfbf9 !important;
}

.content--single-page h1:first-of-type {
    display: none;
}
.s-comments-page, .p-6 {
    padding-top: 0rem;
    padding: 0rem;
}

/* ================= المتغيرات الأساسية (ألوان الهوية الجديدة) ================= */
:root {
    --ty-brown: #111111; /* أسود/رمادي داكن بدلاً من البني */
    --ty-gold:  #F2B705; /* أصفر الهوية */
    --ty-bg: #fcfbf9;    /* أبيض كريمي للخلفيات */
    --ty-text: #1a1a1a;  /* أسود للنصوص */
    --ty-primary: #F2B705; /* أصفر الهوية كلون رئيسي */
}

/* ================= الهيدر والقائمة العلوية ================= */
.fixed-header, #mainnav, .sub-menu {
    /* تم تحويل الخطوط المائلة للون الأسود والرمادي الداكن بدلاً من البني */
    background: #111111 !important;
    background-color: #111111 !important;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(17, 17, 17, 0.95) 100%), 
        repeating-linear-gradient(-45deg, #1a1a1a, #1a1a1a 1px, #111111 1px, #111111 4px) !important;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    color: #ffffff;
}

.fixed-header .bg-inherit {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background: #111111 !important;
}

.index #mainnav {
    background: transparent !important;
}

.index .bg-white {
    background-color: transparent;
}

.index .main-nav-container {
    position: absolute;
    z-index: 99999999999;
    width: 100%;
    background: transparent;
}

.index .main-menu li.root-level>a {
    color: #ffffff;
}

.index .top-navbar, .top-navbar {
    display: none;
}

.index [class^=sicon-], .index [class*=" sicon-"], [class^=sicon-], [class*=" sicon-"] {
    color: #ffffff;
}

@media only screen and (min-width: 1024px) {
    .main-menu>.has-children:hover>a, .main-menu li>a:hover {
        color: #F2B705 !important; /* أصفر عند مرور الماوس */
    }
}

/* ================= تصميم الفوتر الجديد ================= */
.store-footer {
    position: relative;
    overflow: hidden !important; 
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95), rgba(0, 0, 0, 0.85)), 
                url('https://cdn.salla.sa/WlpNjW/xwDaVVW7AaoxNPvToinUPcuAfX35xVSZTfGgZY56.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

.footer-is-light .store-footer .store-footer__inner {
    background-color: #111111 !important;
    color: white;
}

.store-footer__inner, .footer-copyright, .footer-is-light .store-footer .store-footer__inner {
    background-color: transparent !important;
    background: transparent !important;
    border-bottom: 0px;
}

.footer-is-light .store-footer {
    border-top: 6px solid #F2B705; /* خط أصفر علوي للفوتر */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* زخرفة الفوتر */
.store-footer::after {
    content: '';
    position: absolute;
    bottom: -70px; 
    left: 0;
    width: 100%;
    height: 250px; 
    background-image: url('https://cdn.salla.sa/OqZwEY/YAYmmRUJamKwlH7fbFtfKwkd1tHesAZ9WqziaLYM.png');
    background-repeat: no-repeat !important;
    background-position: bottom center !important;
    background-size: contain !important;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .store-footer::after {
        right: 40%;
    }
    .store-footer .contact-social ul {
        justify-content: center;
    }
}

/* نصوص الفوتر */
.store-footer h3, .store-footer .footer-heading-mobile {
    color: #F2B705 !important; /* عناوين الفوتر بالأصفر */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.store-footer p, .store-footer a, .store-footer span, .s-menu-footer-item {
    color: #e0e0e0 !important;
    justify-content: center;
}

.store-footer a:hover {
    color: #F2B705 !important; /* أصفر عند مرور الماوس */
    transform: translateX(-5px);
}

.social-icon, .s-social-icon {
    color: #F2B705 !important;
}

/* ================= إعدادات الموبايل (الفوتر والقوائم) ================= */
@media (max-width: 1024px) {
    .footer-heading-mobile {
        cursor: pointer;
        position: relative;
        padding-bottom: 10px;
        border-bottom: 1px solid #333; 
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-heading-mobile::after {
        content: '+'; 
        font-size: 1.5rem;
        font-weight: bold;
        color: #F2B705; /* سهم أصفر */
        transition: transform 0.3s ease;
        margin-left: 10px;
    }
    .footer-heading-mobile.active::after {
        content: '-';
        transform: rotate(180deg);
    }
    .mobile-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .s-menu-footer-item {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s;
        display: block;
        padding: 5px 0;
    }
}

@media (min-width: 1024px) {
    .store-footer__inner {
        padding-bottom: 0rem;
    }
}

/* ================= العناوين والأقسام (Sections) ================= */
.ty-sec-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    color: #000000; /* لون العنوان أسود */
    font-size: 1.5rem;
    font-weight: 600;
}

.ty-sec-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #F2B705; /* خط أصفر تحت العنوان */
    border-radius: 2px;
    width: 40%;
    margin: 0 auto;
}

.ty-cats-section {
    padding: 0px 0;
}

.ty-cat-icon {
    width: 150px;
    height: 150px;
}

@media (max-width: 768px) {
    .ty-cat-icon {
        width: 170px;
        height: 170px;
        margin: 0 auto;
    }  
    .ty-cats-grid {
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= قسم "عن المتجر" والفيديو ================= */
.ty-about-section {
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95), rgba(0, 0, 0, 0.85)), 
                url(https://cdn.salla.sa/WlpNjW/xwDaVVW7AaoxNPvToinUPcuAfX35xVSZTfGgZY56.jpg) !important;
}

.ty-about-content h3, .ty-about-content p {
    color: #ffffff !important;
}

.ty-btn-outline {
    display: inline-block;
    border: 2px solid #F2B705; /* زر بحدود صفراء */
    color: #F2B705;
}

.ty-btn-outline:hover {
    background-color: #F2B705;
    color: #000000;
}

.ty-about-video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 20px 20px 0px #F2B705 !important; /* ظل أصفر للفيديو */
    aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
    .ty-about-video-wrapper {
        box-shadow: none !important;
        border: 4px solid #F2B705 !important; /* حدود صفراء في الموبايل */
        position: revert-layer;
    }
}

/* ================= اللودر (شاشة التحميل) ================= */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111111; /* خلفية سوداء للودر */
    z-index: 9999990;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    opacity: 1;
    visibility: visible;
}

body.site-loaded::before {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ty-half-ring {
    width: 200px;
    height: 200px;
    margin-top: -101px;
}

.ty-half-spinner-wrapper {
    left: 28%;
    width: 200px;
    height: 130px;
}

@media (max-width: 768px) {
    .ty-half-spinner-wrapper {
        width: 200px;
        height: 200px;
        top: 0px;
    }
    .ty-half-ring {
        width: 200px;
        height: 200px;
        margin-top: -50px;
    }
}

/* ================= متفرقات ================= */
.s-block__title {
    justify-content: center;
}

.ty-partner-img {
    max-width: 188px;
    max-height: 110px;
    object-fit: cover;
}

.ty-slider-nav {
    left: 10%;
    width: 50%;
}

.s-block--tabs-produtcs {
    background: #fcfbf9 !important;
}

.sm\:py-16 {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

#ty-hero-slider, .s-trust-badges-wrapper, #tySteps {
    display: none;
}

.s-cart-summary-total {
    color: #111111; /* لون إجمالي السلة */
}