@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800&display=swap');

.top-navbar {
 background-color: #ffffff;
 border-bottom: 1px solid #f3f4f6;
 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
 font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 position: sticky; /* Sticky to top */
 top: 0;
 z-index: 1001; /* Ensure it stays above content */
}

.top-navbar .container {
 max-width: 1480px;
 margin: 0 auto;
 padding: 0 2rem;
}

.top-navbar .container.flex {
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 64px; /* Slightly taller for a more premium feel */
 flex-wrap: nowrap;
 gap: 2rem;
}

/* ── Global Link Reset inside Navbar ── */
.top-navbar a {
 text-decoration: none;
 color: inherit;
}

/* ── Left: Menu links ── */
.s-menu-topnav-list {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 flex-shrink: 0;
 white-space: nowrap;
}

.s-menu-topnav-item {
 color: #4b5563; /* Gray-600 */
 font-size: 0.75rem; /* Smaller, sharper */
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 padding: 0.25rem 0;
 transition: color 0.2s ease;
 position: relative;
}

.s-menu-topnav-item:hover,
.s-menu-topnav-item:focus {
 color: #000000;
}

/* Remove old underline animation, keep it clean */
.s-menu-topnav-item::after {
 display: none;
}

/* ── Center: Search (Premium Pill) ── */
.header-search {
    flex: 1;
    max-width: 450px; /* Slightly wider for better presence */
    min-width: 250px;
    margin-left: 1rem; /* Separation from menu */
}

.s-search-input-wrapper {
    position: relative;
    width: 100%;
}

/* OVERRIDE for Search Input */
body .header-search .s-search-input {
    width: 100%;
    height: 42px;
    min-height: 42px;
    line-height: normal;
    /* Logical Padding for RTL Support */
    padding-top: 0;
    padding-bottom: 0;
    padding-inline-end: 1rem; /* Start (Right in RTL) gets more padding */
    padding-inline-start: 3rem; /* Icon at Start */
    
    border: 1px solid #e5e7eb; /* Subtle border */
    border-radius: 9999px; /* Full circular pill */
    background-color: #f9fafb; /* Light gray bg */
    font-size: 0.9rem;
    font-family: inherit;
    color: #1f2937;
    transition: all 0.2s ease;
    box-shadow: none;
}

body .header-search .s-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

body .header-search .s-search-input:focus {
    outline: none;
    border-color: #d1d5db !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03) !important; /* Soft focus ring */
}

.s-search-icon-wrap {
    position: absolute;
    inset-inline-start: 14px; /* Left in LTR, Right in RTL */
    left: auto;
    right: auto;
    
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 10;
}

body .header-search .s-search-input:focus + .s-search-icon-wrap,
body .header-search .s-search-input:focus ~ .s-search-icon-wrap {
    color: #1f2937;
}

.s-search-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ── Right: Contacts ── */
.s-contacts-header {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 flex-shrink: 0;
 white-space: nowrap;
 font-size: 0.85rem;
 color: #4b5563;
}

.s-contacts-topnav-link {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 color: #4b5563 !important;
 font-weight: 600;
 transition: color 0.2s ease;
}

.s-contacts-topnav-link:hover,
.s-contacts-topnav-link:focus {
 color: #000000 !important;
}

.s-contacts-topnav-link .unicode svg {
 width: 18px;
 height: 18px;
 fill: currentColor;
 opacity: 1;
}

/* ── Breakpoints ── */

@media (max-width: 1280px) {
 .top-navbar .container {
 padding: 0 1.5rem;
 }
 .s-menu-topnav-list {
 gap: 1.5rem;
 }
 .s-contacts-header {
 gap: 1.5rem;
 }
}

@media (max-width: 1080px) {
 .top-navbar .container.flex {
 gap: 1.5rem;
 }
 .header-search {
 max-width: 320px;
 }
 .s-menu-topnav-item,
 .s-contacts-topnav-link {
 font-size: 0.9rem;
 }
}

@media (max-width: 1023px) {
 /* Hide desktop-specific topbar elements on mobile to prevent clutter */
 .s-menu-topnav-list,
 .s-contacts-header {
 display: none !important;
 }

 /* Center the search bar if it remains, or adjust padding */
 .top-navbar .container.flex {
 justify-content: center;
 height: auto;
 padding: 0.5rem 1rem;
 }

 .header-search {
 width: 100%;
 max-width: 100%;
 margin: 0;
 }
}

@media (max-width: 960px) {
 /* left intentionally blank */
}

/* ................................................................................. */
/* END OF TOP NAVBAR */

/* ── Screen Reader Utility ── */
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0, 0, 0, 0);
 white-space: nowrap;
 border-width: 0;
}

/* ========================================================================== 
   Main Navbar (JS-Driven Customization)
   ========================================================================== */

/* ✅ SAFETY: ensure custom-main-menu is renderable */
custom-main-menu {
  display: block;
}

/* 1. Main Container & Glass Effect */
body #mainnav {
    background: rgba(255, 255, 255, 0.9) !important; /* Premium Glass White */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    height: 80px !important; /* Force override of inline HTML style */
    position: sticky !important;
    top: 64px !important; /* Position below the top navbar */
    z-index: 1000 !important; /* Below top navbar */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

/* Scrolled state (triggered by JS) */
body #mainnav.scrolled-nav {
    background: rgba(255, 255, 255, 0.98);
    height: 65px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* 2. Layout & Reordering (RTL First Strategy) */
#mainnav .container > .relative {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Unwrap wrappers to allow direct reordering of Logo, Menu, Icons */
#mainnav .container > .relative > div {
    display: contents;
}

/* Default Order (Grid-like) */
/* Logo */
.navbar-brand {
    order: 2; /* Center by default on mobile */
    justify-content: flex-start; /* Align to start (Right in RTL) */
    flex: 1;
    display: flex;
}

/* Icons (Cart/User) */
.header-btn, salla-cart-summary {
    order: 3; /* Left side (End in RTL) */
}

/* Hamburger (Mobile) - Override Tailwind's lg:hidden */
.mburger,
.lg\:hidden.mburger,
a.mburger {
    order: 1; /* Right side (Start in RTL) */
    display: flex !important; /* Force show on mobile - override Tailwind */
    align-items: center !important;
    justify-content: center !important;
}

/* DESKTOP override (Min-width 1024px) */
@media (min-width: 1024px) {
    /* Force Hide Hamburger on Desktop */
    .mburger {
        display: none !important;
    }

    #mainnav .container > .relative {
        position: relative;
        justify-content: space-between;
    }

    /* Logo: Start (Right in RTL) */
    .navbar-brand {
        order: 1;
        position: static;
        transform: none;
        left: auto;
        right: auto;
        margin: 0;
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    
    /* Menu: Center */
    custom-main-menu {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Icons: End (Left in RTL) */
    .header-btn, salla-cart-summary {
        order: 3;
    }
    
    .flex.items-center.justify-end {
        justify-content: flex-end;
        flex: 0 0 auto;
    }
}

/* ✅ FIX: لا تخفي قائمة سلة الأصلية دائماً */
/* بدل الإخفاء الدائم، نخفيها فقط إذا تم تفعيل قائمة JS (عبر كلاس على body) */
body.has-rescued-menu #mobile-menu,
body.has-rescued-menu .mm-ocd {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* RTL Specific: Clean up any leftover transforms */
@media (min-width: 1024px) {
    [dir="rtl"] .navbar-brand {
        transform: none;
        left: auto;
        right: auto;
    }
}

/* 3. JS-Injected Desktop Menu Styling */
.js-desktop-menu {
    display: none; /* Hidden on mobile */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .js-desktop-menu { display: flex; }
}

.js-desktop-menu li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
}

.js-desktop-menu li a:hover {
    color: #000;
}

.js-desktop-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

[dir="ltr"] .js-desktop-menu li a::after { left: 0; right: auto; }

.js-desktop-menu li a:hover::after {
    width: 100%;
}

/* 4. Mobile Menu Drawer (JS Injected) */
#rescued-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

#rescued-mobile-menu.active {
    right: 0;
}

/* Mobile Links */
.js-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.js-mobile-menu-list li a {
    display: block;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #f9fafb;
    text-align: right;
}

/* Overlay for Mobile Menu */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 5. Custom Hamburger Icon */
.mburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: -5px;
    margin-inline-end: 1rem;
}

.mburger i {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #1f2937 !important;
    position: relative !important;
    transition: all 0.3s ease;
}

.mburger i::before {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #1f2937 !important;
    position: absolute !important;
    top: -8px !important;
    left: 0 !important;
    transition: all 0.3s ease;
}

.mburger i::after {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #1f2937 !important;
    position: absolute !important;
    top: 8px !important;
    left: 0 !important;
    transition: all 0.3s ease;
}

.mburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Icon Button Styles */
.header-btn, .s-cart-summary-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    border: 1px solid transparent;
}

.header-btn:hover, .s-cart-summary-wrapper:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ========================================================================== 
 Photos Slider Styling (V2)
 ========================================================================== */
.s-block--photos-slider {
 margin: 24px auto;
 max-width: 1480px;
 padding: 0 16px;
 position: relative;
 z-index: 1;
}

.photos-slider {
 border-radius: 16px;
 overflow: hidden;
 box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
 background: #ffffff;
 position: relative;
}

.photos-slider .swiper-slide img {
 width: 100%;
 height: auto;
 object-fit: cover;
 border-radius: 12px;
 display: block;
 max-height: 450px;
}

.photos-slider .s-slider-nav-arrow {
 position: absolute !important;
 top: 50% !important;
 z-index: 20 !important;
 background: rgba(255, 255, 255, 0.95) !important;
 width: 44px !important;
 height: 44px !important;
 border-radius: 50% !important;
 box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
 color: #1f2937 !important;
 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
 opacity: 0;
 transform: translateY(-50%) scale(0.9);
 border: 1px solid rgba(0,0,0,0.05) !important;
 display: flex !important;
 align-items: center;
 justify-content: center;
 margin: 0 !important;
}

.photos-slider .s-slider-block__title {
 position: absolute;
 width: 100%;
 height: 100% !important;
 top: 0;
 left: 0;
 margin: 0;
 padding: 0;
 z-index: 10;
 pointer-events: none;
}

.photos-slider .s-slider-block__title-nav {
 height: 100%;
 width: 100%;
 position: absolute;
}

.photos-slider .s-slider-nav-arrow {
 pointer-events: auto !important;
}

.photos-slider:hover .s-slider-nav-arrow {
 opacity: 1;
 transform: translateY(-50%) scale(1);
}

.photos-slider .s-slider-nav-arrow:hover {
 background: #ffffff !important;
 box-shadow: 0 6px 16px rgba(0,0,0,0.15) !important;
 color: #000 !important;
 transform: translateY(-50%) scale(1.1);
}

.photos-slider .s-slider-prev {
 right: 20px !important;
 left: auto !important;
}

.photos-slider .s-slider-next {
 left: 20px !important;
 right: auto !important;
}

.photos-slider .swiper-pagination-bullet {
 background: #e5e7eb !important;
 opacity: 1 !important;
 width: 8px;
 height: 8px;
 transition: all 0.3s ease;
}

.photos-slider .swiper-pagination-bullet-active {
 background: #1f2937 !important;
 width: 24px;
 border-radius: 4px;
}

@media (max-width: 768px) {
 .s-block--photos-slider {
 margin: 16px auto;
 padding: 0 12px;
 }

 .photos-slider .swiper-slide img {
 max-height: 250px;
 border-radius: 8px;
 }

 .photos-slider .s-slider-nav-arrow {
 width: 36px !important;
 height: 36px !important;
 opacity: 0.9 !important;
 transform: translateY(-50%) scale(1);
 }

 .photos-slider .s-slider-prev {
 right: 10px !important;
 left: auto !important;
 }
 .photos-slider .s-slider-next {
 left: 10px !important;
 right: auto !important;
 }
}

/* ========================================================================== 
 Video Section Styling
 ========================================================================== */
.s-block--video {
 margin: 32px auto;
 max-width: 650px;
 padding: 0 16px;
}

.videoWrapper {
 position: relative;
 padding-bottom: 56.25%;
 padding-top: 25px;
 height: 0;
 width: 100%;
 background: #000;
 border-radius: 16px;
 overflow: hidden;
 box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.videoWrapper lite-youtube,
.videoWrapper iframe {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 16px;
}

@media (max-width: 768px) {
 .s-block--video {
 margin: 24px auto;
 padding: 0 12px;
 }
}

/* ========================================================================== 
 Product Card Styling (Premium Design V2)
 ========================================================================== */

custom-salla-product-card,
.s-product-card-entry {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.s-product-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    margin-bottom: 12px;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.s-product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.s-product-card-entry:hover .s-product-card-image::before {
    opacity: 0;
}

.s-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1);
}

.s-product-card-image salla-button,
.s-product-card-image .s-button-wrap,
salla-add-product-favorite {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 12px !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    opacity: 0 !important;
    transition: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.s-product-card-image salla-button button,
.s-product-card-image salla-button .s-button-element,
salla-add-product-favorite button,
.s-product-card-wishlist-btn.s-button-element,
button[aria-label*="favorite"].s-button-element,
button[aria-label*="wishlist"].s-button-element {
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.s-product-card-entry:hover .s-product-card-image salla-button,
.s-product-card-entry:hover .s-product-card-image .s-button-wrap,
.s-product-card-entry:hover salla-add-product-favorite {
    opacity: 1 !important;
}

.s-product-card-content salla-button:not(.s-product-card-content-footer salla-button),
.s-product-card-footer salla-button[aria-label*="wishlist"],
.s-product-card-footer salla-button[aria-label*="favorite"] {
    display: none !important;
}

.s-product-card-badge,
.s-product-card-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.s-product-card-badge--sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.s-product-card-badge--new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.s-product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.s-product-card-category,
.s-product-card-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.s-product-card-content-title a {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s-product-card-content-title a:hover {
    color: #1f2937;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.s-product-card-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.s-product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.s-product-card-rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.s-product-card-rating-count {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 4px;
}

.s-product-card-sale-price {
    margin: 8px 0;
}

.s-product-card-sale-price h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.s-product-card-sale-price span,
.s-product-card-original-price {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.s-product-card-discount {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

.s-product-card-content-footer {
    margin-top: auto;
    padding-top: 8px;
}

.s-product-card-content-footer salla-button button, 
.s-product-card-content-footer .s-button-element {
    width: 100%;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    color: #1f2937 !important;
    border: 2px solid #e5e7eb !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    cursor: pointer;
}

.s-product-card-entry:hover .s-product-card-content-footer salla-button button,
.s-product-card-entry:hover .s-product-card-content-footer .s-button-element {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #ffffff !important;
    border-color: #1f2937 !important;
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.3) !important;
    transform: translateY(-2px);
}

.s-product-card-content-footer salla-button button:active,
.s-product-card-content-footer .s-button-element:active {
    transform: translateY(0) !important;
}

.s-product-card-quick-view {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.s-product-card-entry:hover .s-product-card-quick-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .s-product-card-entry {
        padding: 12px;
        border-radius: 16px;
    }
    
    .s-product-card-image {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .s-product-card-content-title a {
        font-size: 0.9rem;
    }
    
    .s-product-card-sale-price h4 {
        font-size: 1.1rem;
    }
    
    .s-product-card-content-footer salla-button button,
    .s-product-card-content-footer .s-button-element {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .s-product-card-entry:hover {
        transform: none;
    }
    
    .s-product-card-wishlist-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================================================== 
   ENHANCED INTERACTIVE STYLES & HOVER EFFECTS
   ========================================================================== */

.s-menu-topnav-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-menu-topnav-item:hover {
    color: #1f2937;
    transform: translateY(-1px);
}

.s-menu-topnav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1f2937, #4b5563);
    transition: width 0.3s ease;
}

.s-menu-topnav-item:hover::after {
    width: 100%;
}

.s-contacts-topnav-link {
    transition: all 0.3s ease;
    position: relative;
}

.s-contacts-topnav-link:hover {
    color: #000;
    transform: scale(1.05);
}

.s-search-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
    background: #ffffff;
}

.s-search-input:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.s-search-input:focus + .s-search-icon-wrap .s-search-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.js-desktop-menu li a {
    position: relative;
    overflow: hidden;
}

.js-desktop-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 41, 55, 0.05), transparent);
    transition: left 0.5s ease;
}

.js-desktop-menu li a:hover::before {
    left: 100%;
}

.js-desktop-menu li a.active {
    color: #000;
    font-weight: 700;
}

.js-desktop-menu li a.active::after {
    width: 100%;
    background: linear-gradient(90deg, #1f2937, #000);
}

.js-mobile-menu-list li a {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 10px;
}

.js-mobile-menu-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #1f2937;
    transition: width 0.3s ease;
}

.js-mobile-menu-list li a:hover {
    padding-left: 20px;
    color: #000;
    background: rgba(31, 41, 55, 0.05);
}

.js-mobile-menu-list li a:hover::before {
    width: 8px;
}

.mburger:hover span {
    background: #000;
}

.mburger:hover span:nth-child(1) {
    transform: translateX(-3px);
}

.mburger:hover span:nth-child(3) {
    transform: translateX(3px);
}

.mburger:active span {
    transform: scale(0.9);
}

.header-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.header-btn:hover::before {
    width: 100%;
    height: 100%;
}

.header-btn:hover {
    transform: translateY(-2px);
}

.header-btn:active {
    transform: translateY(0) scale(0.95);
}

.s-cart-summary-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.s-cart-summary-wrapper:hover {
    transform: translateY(-2px);
}

.s-cart-summary-wrapper:active {
    transform: translateY(0) scale(0.95);
}

.s-cart-summary-count {
    transition: all 0.3s ease;
}

.s-cart-summary-wrapper:hover .s-cart-summary-count {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.s-cart-summary-icon {
    transition: transform 0.3s ease;
}

.s-cart-summary-wrapper:hover .s-cart-summary-icon {
    transform: rotate(-5deg) scale(1.1);
}

.photos-slider {
    transition: all 0.4s ease;
}

.photos-slider:hover {
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.photos-slider .swiper-slide {
    overflow: hidden;
    border-radius: 12px;
}

.photos-slider .swiper-slide img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photos-slider:hover .swiper-slide-active img {
    transform: scale(1.03);
}

.photos-slider .s-slider-nav-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.photos-slider .s-slider-nav-arrow:active::after {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.photos-slider .swiper-pagination-bullet {
    cursor: pointer;
    transition: all 0.3s ease;
}

.photos-slider .swiper-pagination-bullet:hover {
    background: #6b7280 !important;
    transform: scale(1.2);
}

.videoWrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.videoWrapper:hover {
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.videoWrapper lite-youtube::before {
    transition: all 0.3s ease;
}

.videoWrapper:hover lite-youtube::before {
    transform: scale(1.1);
}

.s-product-card-entry {
    cursor: pointer;
}

.s-product-card-content-footer salla-button button,
.s-product-card-content-footer .s-button-element {
    position: relative;
    overflow: hidden;
}

.s-product-card-content-footer salla-button button::before,
.s-product-card-content-footer .s-button-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.s-product-card-content-footer salla-button button:hover::before,
.s-product-card-content-footer .s-button-element:hover::before {
    width: 300px;
    height: 300px;
}

.s-product-card-content-footer salla-button button i,
.s-product-card-content-footer .s-button-element i {
    transition: transform 0.3s ease;
}

.s-product-card-content-footer salla-button button:hover i,
.s-product-card-content-footer .s-button-element:hover i {
    transform: translateX(3px);
}

.s-product-card-quick-view {
    cursor: pointer;
}

.s-product-card-quick-view:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%) translateY(-2px) scale(1.05);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

::selection {
    background: #1f2937;
    color: #ffffff;
}

::-moz-selection {
    background: #1f2937;
    color: #ffffff;
}

*:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.85;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bounce {
    animation: bounce 1s ease infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: rotate 2s linear infinite;
}

@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@media (hover: none) and (pointer: coarse) {
    .header-btn:hover { transform: none; }
    .photos-slider:hover { transform: none; }
    .s-product-card-entry:active { transform: scale(0.98); }
    .header-btn:active { transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    /* optional */
}

/* ===== PREMIUM POLICY STYLES (Typography & Visuals) ===== */

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-entry {
    background: #ffffff;
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9fafb;
    margin-top: 3rem;
    margin-bottom: 3rem;

    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', 'Segoe UI', sans-serif !important;
    
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 2.1;
    
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    animation: slideUpFade 0.8s ease-out forwards;
}

.content-entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.content-entry p {
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.01em;
}

.content-entry strong, 
.content-entry b {
    font-weight: 800;
    color: #000;
}

.content-entry a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.content-entry a:hover {
    background: rgba(37, 99, 235, 0.05);
    border-bottom-color: #2563eb;
}

@media (max-width: 768px) {
    .content-entry {
        padding: 1.5rem;
        border-radius: 16px;
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media print {
    .content-entry {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
}