/* ============================================================
   نبض العود — تصميم احترافي بطابع الدخيل للعود (نسخة نهائية)
   ============================================================ */

* { -webkit-tap-highlight-color: transparent; }

html, body { background: #FFFFFF !important; color: #111827 !important; }

h1, h2, h3, h4, h5, h6 { color: #111827 !important; font-weight: 700 !important; }

/* ===== الهيدر ===== */
header.store-header, .store-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(5,15,44,0.04) !important;
    padding: 16px 0 !important;
}

.store-header nav a, header nav a {
    font-weight: 500 !important;
    color: #111827 !important;
    transition: color 0.3s ease !important;
    position: relative;
    padding: 8px 0 !important;
}

.store-header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #B89567;
    transition: width 0.3s ease;
}

.store-header nav a:hover { color: #050f2c !important; }
.store-header nav a:hover::after { width: 100%; }

/* ===== الأزرار ===== */
.btn, button.btn-primary, .salla-button-primary,
salla-button[type="primary"], .button-primary,
button[type="submit"], salla-add-product-button button {
    background: #050f2c !important;
    background-image: none !important;
    border: 1px solid #050f2c !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.btn:hover, button.btn-primary:hover, .salla-button-primary:hover {
    background: #B89567 !important;
    border-color: #B89567 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(184,149,103,0.3) !important;
}

.product-entry .add-to-cart, .product-card .add-to-cart,
salla-add-product-button button {
    background: transparent !important;
    border: 1.5px solid #050f2c !important;
    color: #050f2c !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    width: calc(100% - 24px) !important;
    margin: 8px 12px 12px !important;
}

.product-entry:hover .add-to-cart,
salla-add-product-button button:hover {
    background: #050f2c !important;
    color: #FFFFFF !important;
}

/* ===== البانر ===== */
.slider, .main-slider, .hero-slider, salla-slider {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 32px !important;
    box-shadow: 0 8px 24px rgba(5,15,44,0.08) !important;
}

.swiper-pagination-bullet-active { background: #B89567 !important; }

/* ===== بطاقات المنتجات ===== */
.product-entry, .product-card, salla-product-card,
.s-product-card-entry, custom-salla-product-card {
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(5,15,44,0.05) !important;
    overflow: hidden !important;
    transition: all 0.35s ease !important;
    position: relative;
}

.product-entry:hover, .product-card:hover, salla-product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(5,15,44,0.12) !important;
}

/* ========== حاوي صورة المنتج ========== */
html body div.s-product-card-image,
.product-entry .product-image,
.product-card .product-image,
.s-product-card-image,
salla-product-card .s-product-card-image,
custom-salla-product-card .s-product-card-image,
.s-product-card-entry .s-product-card-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    display: block !important;
    background: #FAFAFA !important;
    cursor: pointer !important;
}

/* ========== الـ LINK حول الصورة - يأخذ كل المساحة ========== */
html body div.s-product-card-image > a,
html body div.s-product-card-image a,
html body salla-product-card div.s-product-card-image a,
html body custom-salla-product-card div.s-product-card-image a,
html body .s-product-card-entry div.s-product-card-image a,
.product-entry .product-image > a,
.product-card .product-image > a {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* ========== الصورة - تملأ الـ LINK ========== */
html body div.s-product-card-image img,
html body div.s-product-card-image img.s-product-card-image-cover,
html body salla-product-card div.s-product-card-image img,
html body custom-salla-product-card div.s-product-card-image img,
.product-entry .product-image img,
.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    transition: transform 0.5s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body salla-product-card:hover div.s-product-card-image img,
html body .s-product-card-entry:hover div.s-product-card-image img,
.product-entry:hover .product-image img {
    transform: scale(1.05) !important;
}

/* ========== أيقونة القلب والشارات فوق الـ LINK ========== */
.s-product-card-favorite,
.s-product-card-discount-badge,
button[class*="favorite"],
.discount-badge, .product-badge {
    z-index: 10 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.s-product-card-favorite, button[class*="favorite"] {
    top: 10px !important;
    left: 10px !important;
    background: #FFFFFF !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
    color: #050f2c !important;
}

.s-product-card-favorite:hover {
    background: #B89567 !important;
    color: #FFFFFF !important;
}

.discount-badge, .product-badge, .s-product-card-sale-price,
.s-product-card-discount-badge, .badge-new, .new-badge {
    background: #B89567 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(184,149,103,0.3) !important;
    top: 10px !important;
    right: 10px !important;
}

/* ===== اسم المنتج ===== */
.product-entry .product-name, .product-card .product-name,
.product-title, .s-product-card-content-title {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin: 12px 14px 4px !important;
    line-height: 1.5 !important;
    text-align: center;
}

/* ===== السعر ===== */
.product-price, .price, .s-product-card-price {
    color: #050f2c !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    margin: 4px 14px 0 !important;
    text-align: center;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    align-items: baseline;
}

.product-price .old-price, .price-before {
    color: #9ca3af !important;
    text-decoration: line-through;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* ===== العناوين ===== */
.section-title, .section-heading, section h2, .home-section h2 {
    text-align: center !important;
    color: #111827 !important;
    font-weight: 800 !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    margin: 32px 0 36px !important;
    padding-bottom: 18px !important;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after, .section-heading::after, section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #B89567;
    border-radius: 2px;
}

/* ===== Grid 4 منتجات ===== */
@media (min-width: 1024px) {
    html body div.s-products-list-wrapper,
    html body div.s-products-list-wrapper.s-products-list-vertical-cards,
    html body salla-products-list .s-products-list-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html body div.s-products-list-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767px) {
    html body div.s-products-list-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .product-entry .product-name, .product-title { font-size: 13px !important; }
    .product-price, .price { font-size: 14px !important; }
}

salla-products-list .swiper-button-prev,
salla-products-list .swiper-button-next,
salla-products-list .swiper-pagination { display: none !important; }

/* ===== الميزات ===== */
.features-section, .store-features {
    background: #F8F6F2 !important;
    border-radius: 16px !important;
    padding: 56px 32px !important;
    margin: 40px 0 !important;
    box-shadow: none !important;
}

.feature-item, .feature-card {
    background: transparent !important;
    border: none !important;
    text-align: center;
    padding: 20px !important;
}

.feature-icon {
    width: 72px !important;
    height: 72px !important;
    background: #050f2c !important;
    background-image: none !important;
    color: #B89567 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(5,15,44,0.1) !important;
    font-size: 28px !important;
    margin: 0 auto 16px !important;
}

.feature-item:hover .feature-icon {
    background: #B89567 !important;
    color: #FFFFFF !important;
    transform: scale(1.05);
}

.feature-title { color: #111827 !important; font-weight: 700 !important; font-size: 17px !important; }
.feature-desc { color: #6b7280 !important; font-size: 14px !important; line-height: 1.6; }

/* ===== الحقول ===== */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], textarea, select, .form-control {
    border-radius: 6px !important;
    border: 1.5px solid #E5E7EB !important;
    background: #FFFFFF !important;
    padding: 12px 16px !important;
    transition: all 0.25s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #050f2c !important;
    box-shadow: 0 0 0 3px rgba(5,15,44,0.08) !important;
    outline: none !important;
}

/* ===== الفوتر ===== */
footer, .footer, .main-footer, footer.store-footer, .store-footer {
    background: #050f2c !important;
    background-image: none !important;
    color: #FFFFFF !important;
    padding: 64px 0 24px !important;
    margin-top: 64px !important;
    position: relative;
    overflow: hidden;
}

footer::before, .store-footer::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B89567, transparent);
}

.store-footer__inner { background: transparent !important; color: #FFFFFF !important; }

.store-footer h3, .store-footer h4, .footer h3, .footer h4 {
    color: #B89567 !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    padding-bottom: 12px;
    margin-bottom: 18px !important;
    position: relative;
}

.store-footer h3::after, .store-footer h4::after,
.footer h3::after, .footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 36px; height: 2px;
    background: #B89567;
}

.store-footer p, .store-footer div, .store-footer span, .store-footer li {
    color: rgba(255,255,255,0.85) !important;
}

.store-footer a, .footer a {
    color: rgba(255,255,255,0.75) !important;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.store-footer a:hover, .footer a:hover { color: #B89567 !important; }

.social-icons a, .footer-social a {
    background: rgba(184,149,103,0.1) !important;
    border: 1px solid rgba(184,149,103,0.3) !important;
    color: #B89567 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.social-icons a:hover, .footer-social a:hover {
    background: #B89567 !important;
    border-color: #B89567 !important;
    color: #050f2c !important;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(184,149,103,0.15) !important;
    color: rgba(255,255,255,0.5) !important;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* إخفاء كردت سلة */
.salla-credit, .store-footer__credits,
.store-footer a[href*="salla.sa/?utm"],
.store-footer a[href*="salla.sa"],
[class*="salla-credit"] { display: none !important; }

/* ===== رمز الريال السعودي - الرسمي من Wikipedia ===== */
i.sicon-sar, .sicon-sar {
    display: inline-block !important;
    width: 0.85em !important;
    height: 0.85em !important;
    vertical-align: -0.06em !important;
    margin: 0 3px !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'><path d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/><path d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/></svg>") no-repeat center / contain !important;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1124.14 1256.39'><path d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/><path d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/></svg>") no-repeat center / contain !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

.sicon-sar::before, i.sicon-sar::before { content: '' !important; display: none !important; }

i[class^="sicon-"]:not(.sicon-sar), i[class*=" sicon-"]:not(.sicon-sar) {
    font-family: 'sallaicons' !important;
    font-style: normal !important;
}

@media (max-width: 767px) {
    i.sicon-sar, .sicon-sar {
        width: 0.78em !important;
        height: 0.78em !important;
        margin: 0 2px !important;
        vertical-align: -0.05em !important;
    }
}

/* ===== أزرار عائمة ===== */
.back-to-top {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    width: 46px !important;
    height: 46px !important;
    background: #050f2c !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(5,15,44,0.25) !important;
    transition: all 0.3s ease !important;
    z-index: 998 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: #B89567 !important;
    transform: translateY(-3px);
}

.whatsapp-button, .whatsapp-float {
    right: auto !important;
    left: 24px !important;
}

/* ===== شريط التمرير ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F8F6F2; }
::-webkit-scrollbar-thumb { background: #050f2c !important; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B89567 !important; }
::selection { background: #B89567 !important; color: #FFFFFF !important; }

/* ===== animation للوصف ===== */
.product__description article#more-content {
    transition: max-height 0.4s ease-in-out !important;
}

/* ===== Container أوسع ===== */
.container, .main-container { max-width: 1400px !important; }

/* ===== أنيميشن دخول ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

salla-product-card, .product-entry, .product-card {
    animation: fadeInUp 0.5s ease both;
}

/* ===== الأقسام ===== */
.section, section { padding: 48px 0 !important; }
@media (min-width: 1024px) { .section, section { padding: 64px 0 !important; } }

/* ===== Breadcrumbs ===== */
.breadcrumb, .breadcrumbs { padding: 16px 0 !important; background: transparent !important; font-size: 14px !important; }
.breadcrumb a { color: #6b7280 !important; }
.breadcrumb a:hover { color: #050f2c !important; }

/* ===== التبويبات ===== */
.tabs-nav, .product-tabs, .home-tabs {
    border-bottom: 1px solid #E5E7EB !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 32px 0 !important;
}

.tabs-nav a, .tabs-nav li, .home-tabs a, .home-tabs li,
.product-tabs a, .product-tabs li {
    font-weight: 600 !important;
    color: #6b7280 !important;
    padding: 14px 24px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    font-size: 15px;
}

.tabs-nav a.active, .home-tabs a.active,
.product-tabs li.active, [class*="tab"][class*="active"] {
    color: #050f2c !important;
    border-bottom-color: #B89567 !important;
}

/* ===== Mobile محاذاة ===== */
@media (max-width: 767px) {
    .section-title, .section-heading, section h2 {
        text-align: center !important;
        margin: 28px auto 24px !important;
        font-size: 22px !important;
        padding: 0 16px 16px !important;
    }

    .product-entry, .product-card, salla-product-card,
    custom-salla-product-card, .s-product-card-entry {
        margin: 0 !important;
        border-radius: 8px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-entry .product-name, .product-card .product-name,
    .product-title, .s-product-card-content-title {
        text-align: center !important;
        font-size: 13px !important;
        padding: 0 6px !important;
        margin: 10px 0 6px !important;
        line-height: 1.4 !important;
        min-height: 36px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price, .price, .s-product-card-price {
        text-align: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        margin: 0 6px 8px !important;
        gap: 4px !important;
    }

    .product-entry .add-to-cart, .product-card .add-to-cart,
    salla-add-product-button, salla-add-product-button button {
        width: calc(100% - 12px) !important;
        margin: 6px 6px 8px !important;
        padding: 8px 4px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        min-height: 36px !important;
    }

    .s-product-card-favorite, button[class*="favorite"] {
        width: 30px !important;
        height: 30px !important;
        top: 8px !important;
        left: 8px !important;
    }
}

/* نهاية الملف */