/* ============================================ */
/* تنسيق الهيدر (الرأس) */
/* ============================================ */

header .container {
    background: #ffffff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f5f5f5;
}

header .container > .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* اللوجو في المنتصف */
.navbar-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 10;
}

.navbar-brand img {
    max-height: 90px !important;
    width: auto !important;
    transition: all 0.3s ease-in-out;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.05));
}

.navbar-brand:hover img {
    transform: scale(1.08);
}

/* تنسيق الأزرار */
.header-btn, salla-cart-summary a {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #00a98f !important;
    transition: 0.3s !important;
}

.header-btn:hover, salla-cart-summary a:hover {
    background: #00a98f !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,169,143,0.2);
}

/* إخفاء النصوص الزائدة */
.s-cart-summary-total, .s-cart-summary-content {
    display: none !important;
}

.s-cart-summary-count {
    background: #ff4d4d !important;
    border: 2px solid #fff !important;
    font-weight: bold !important;
}

/* استجابة للجوال */
@media (max-width: 1024px) {
    .navbar-brand img {
        max-height: 65px !important;
    }
}

/* ============================================ */
/* تنسيق الفوتر (التذييل) - اللون الذهبي */
/* ============================================ */

.store-footer__inner {
    background-color: #ffffff !important;
    padding: 80px 0 40px 0 !important;
    border-top: 1px solid #eee;
}

/* العناوين */
.store-footer__inner h3 {
    color: #A68948 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
}

/* النصوص العادية */
.store-footer__inner p {
    color: #636e72 !important;
    font-size: 15px !important;
    line-height: 1.8;
}

/* الروابط */
.store-footer__inner a {
    color: #A68948 !important;
    text-decoration: none;
    transition: 0.3s;
}

.store-footer__inner a:hover {
    color: #8C734B !important;
}

/* كروت التواصل والسجل التجاري */
.s-trust-badges-wrapper, .s-contacts-item {
    background: #f8f9fa !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 16px !important;
    padding: 12px 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.s-trust-badges-wrapper:hover, .s-contacts-item:hover {
    background: #ffffff !important;
    border-color: #A68948 !important;
    box-shadow: 0 10px 20px rgba(166,137,72,0.1) !important;
    transform: translateY(-5px);
}

/* الحل السحري للأيقونات في الفوتر */
.store-footer__inner svg,
.store-footer__inner svg *,
.store-footer__inner .s-contacts-icon svg,
.store-footer__inner .s-contacts-icon svg * {
    fill: #A68948 !important;
}

/* النصوص داخل الكروت */
.s-trust-badges-label {
    color: #b2bec3 !important;
}

.s-trust-badges-number {
    color: #A68948 !important;
    font-weight: bold !important;
}

.s-menu-footer-item {
    color: #636e72 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    transition: 0.3s;
}

.s-menu-footer-item:hover {
    color: #A68948 !important;
    padding-right: 15px;
}

/* حقوق الملكية */
footer .footer-bottom {
    background: #fdfdfd !important;
    border-top: 1px solid #f1f1f1;
    padding: 20px 0;
}

/* استجابة الجوال للفوتر */
@media (max-width: 768px) {
    .store-footer__inner {
        text-align: center;
    }
    .store-footer__inner p {
        margin: 0 auto 20px auto;
    }
}

/* ============================================ */
/* تنسيق سكشن المنتجات */
/* ============================================ */

.s-block.container {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* عنوان السكشن */
.s-block__title h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #A68948 !important;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.s-block__title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #A68948 !important;
    border-radius: 10px;
}

/* كارت المنتج */
custom-salla-product-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid #f1f1f1 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
}

custom-salla-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08) !important;
    border-color: #A68948 !important;
}

/* صورة المنتج */
.s-product-card-image {
    border-radius: 15px !important;
    margin: 10px !important;
    overflow: hidden !important;
}

.s-product-card-image-cover {
    transition: transform 0.6s ease !important;
}

custom-salla-product-card:hover .s-product-card-image-cover {
    transform: scale(1.1);
}

/* عنوان المنتج */
.s-product-card-content-title a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2d3436 !important;
    text-decoration: none !important;
    transition: 0.3s;
}

.s-product-card-content-title a:hover {
    color: #A68948 !important;
}

/* سعر المنتج */
.s-product-card-price {
    color: #A68948 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
}

/* زر إضافة للسلة */
.s-product-card-content-footer .s-button-element {
    background-color: transparent !important;
    border: 2px solid #A68948 !important;
    color: #A68948 !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    transition: all 0.3s !important;
}

.s-product-card-content-footer .s-button-element:hover {
    background-color: #A68948 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(166,137,72,0.3);
}

/* زر المفضلة */
.s-product-card-wishlist-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    border: none !important;
}

.s-product-card-wishlist-btn i {
    color: #A68948 !important;
}

/* المسافات بين الكروت */
.s-products-list-wrapper {
    gap: 25px !important;
    padding: 20px 10px !important;
}

/* ============================================ */
/* تنسيقات إضافية وتحسينات */
/* ============================================ */

/* توزيع العناصر في الهيدر */
.flex.items-center:first-child {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.flex.items-center.justify-end {
    flex: 1;
    gap: 12px !important;
}

.header-btn i, .s-cart-summary-icon {
    font-size: 20px !important;
}