/* ========================================
   sandnoä Custom Theme - CSS
   تم التنظيف والترتيب
   ======================================== */

/* ========================================
   1. المتغيرات العامة (Variables)
   ======================================== */
:root {
    --color-black: #1a1a1a;
    --color-dark-gray: #2d2d2d;
    --color-light-gray: #f5f5f5;
    --color-beige: #d4c4b0;
    --color-white: #ffffff;
}

/* ========================================
   2. إعادة تعيين وأساسيات (Reset & Base)
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

button, .btn {
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* شريط التمرير (Scrollbar) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-light-gray);
}
::-webkit-scrollbar-thumb {
    background: var(--color-dark-gray);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-black);
}

/* ========================================
   3. الهيدر (Header)
   ======================================== */
.store-header {
    background-color: var(--color-black) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-navbar {
    display: none !important;
}

.main-nav-container {
    background-color: var(--color-black) !important;
    padding: 1rem 0;
    box-shadow: none !important;
}

.main-nav-container .inner {
    background-color: var(--color-black) !important;
}

/* الشعار */
.navbar-brand {
    max-width: 120px;
    filter: brightness(0) invert(1);
}
.navbar-brand img {
    width: 100%;
    height: auto;
}

/* القائمة الرئيسية */
custom-main-menu,
.main-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-right: 3rem;
}

custom-main-menu a,
.main-menu a {
    color: var(--color-white) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
}

custom-main-menu a:hover,
.main-menu a:hover {
    color: var(--color-beige) !important;
}

custom-main-menu a::after,
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-beige);
    transition: width 0.3s ease;
}

custom-main-menu a:hover::after,
.main-menu a:hover::after {
    width: 100%;
}

/* أيقونات الهيدر */
.header-icons-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.header-btn {
    background: transparent !important;
    width: 36px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-btn__icon {
    color: var(--color-white) !important;
    font-size: 18px;
}

.header-btn:hover .header-btn__icon {
    color: var(--color-black) !important;
}

.s-user-menu-trigger {
    background: transparent !important;
    background-color: transparent !important;
}

salla-cart-summary .header-btn__icon {
    color: var(--color-white) !important;
}

/* إخفاء سعر/تكلفة عربة التسوق */
salla-cart-summary::part(price),
salla-cart-summary::part(total),
salla-cart-summary::part(amount),
salla-cart-summary::part(cost),
salla-cart-summary .price,
salla-cart-summary .total,
salla-cart-summary .amount,
salla-cart-summary [class*="price"],
salla-cart-summary [class*="total"],
salla-cart-summary [class*="amount"],
salla-cart-summary [class*="cost"],
.header-icons-group salla-cart-summary > *:not(.header-btn):not(button),
.header-icons-group salla-cart-summary button > *:not(.header-btn__icon),
.header-icons-group salla-cart-summary span:not(.header-btn__icon):not([class*="icon"]),
.header-icons-group salla-cart-summary div:not([class*="icon"]):not([class*="btn"]),
.store-header salla-cart-summary::part(price),
.store-header salla-cart-summary::part(total),
.main-nav-container salla-cart-summary::part(price),
.main-nav-container salla-cart-summary::part(total) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* إخفاء أي نص يحتوي على رموز العملة في عربة التسوق */
.header-icons-group salla-cart-summary::before,
.header-icons-group salla-cart-summary::after,
.header-icons-group salla-cart-summary button::before,
.header-icons-group salla-cart-summary button::after {
    display: none !important;
    content: none !important;
}

.mburger, .mburger i {
    color: var(--color-white) !important;
}

/* زر اللغة */
.language-btn {
    background: transparent !important;
    border: 1px solid var(--color-white) !important;
    border-radius: 20px !important;
    height: 36px !important;
    padding: 0 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
    font-size: 12px !important;
    color: var(--color-white) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
    margin-right: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.language-btn:hover {
    background-color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    color: var(--color-black) !important;
}

.language-btn span {
    color: inherit !important;
    display: inline !important;
}

/* نوافذ منبثقة (Modals & Dropdowns) */
salla-localization-modal::part(modal) {
    direction: rtl;
    text-align: right;
}
salla-localization-modal::part(modal-header) {
    background: var(--color-black);
    color: var(--color-white);
}
salla-localization-modal::part(close-button) {
    color: var(--color-white);
}
.dropdown-menu {
    background: var(--color-black) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.dropdown-menu a {
    color: var(--color-white) !important;
}
.dropdown-menu a:hover {
    background: rgba(255,255,255,0.1) !important;
}
salla-login-modal::part(modal-content) {
    direction: rtl;
    text-align: right;
}
salla-cart-summary::part(cart-dropdown) {
    direction: rtl;
}

/* إصلاحات RTL */
.rtl .sicon-user-circle,
.rtl .sicon-shopping-bag {
    transform: scaleX(1);
}
.rtl .language-btn {
    margin-right: 0 !important;
    margin-left: 16px !important;
}
.notification, .toast {
    direction: rtl;
    text-align: right;
}

/* ========================================
   4. البانر الرئيسي (Hero Banner)
   ======================================== */
.s-block--banners {
    margin-top: 0 !important;
    padding: 0 !important;
}

.s-block--banners .grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* تنسيق الصورتين */
.s-block--banners .grid > a:nth-child(1),
.s-block--banners .grid > a:nth-child(2) {
    display: flex !important;
    position: relative;
    height: 500px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    padding: 40px !important;
}

/* إخفاء البانر الثالث */
.s-block--banners .grid > a:nth-child(3) {
    display: none !important;
}

/* تراكب الظل */
.s-block--banners .grid > a:nth-child(1)::before,
.s-block--banners .grid > a:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* نصوص البانر */
.banner-entry__text {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    color: var(--color-white) !important;
    width: 100% !important;
}

.s-block--banners .grid > a:nth-child(1) .banner__title,
.s-block--banners .grid > a:nth-child(2) .banner__title {
    font-size: 42px !important;
    margin-bottom: 10px !important;
    letter-spacing: 1px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--color-white) !important;
    text-transform: none !important;
}

.s-block--banners .grid > a:nth-child(1) .banner__description,
.s-block--banners .grid > a:nth-child(2) .banner__description {
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    color: rgba(255,255,255,0.95) !important;
}

/* ========================================
   5. المنتجات (Products)
   ======================================== */
.s-block__title {
    display: none !important;
}

.s-block.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

salla-products-list {
    width: 100%;
    display: block;
}

/* شبكة المنتجات */
salla-products-list::part(container),
.vertical-products .products-list,
.products-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* بطاقة المنتج */
salla-product-card,
.product-entry,
.product-card,
salla-products-list::part(product-card) {
    background: var(--color-white) !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    height: 100% !important;
}

salla-product-card:hover,
.product-entry:hover,
.product-card:hover,
salla-products-list::part(product-card):hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
    transform: translateY(-8px) !important;
    border-color: #d0d0d0 !important;
}

/* صور المنتج */
salla-product-card .product-entry__image,
.product-entry__image,
.product-card-image,
salla-products-list::part(product-image-container) {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #f9f9f9 !important;
}

salla-product-card img,
.product-entry__image img,
.product-card img,
salla-products-list::part(product-image) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

salla-product-card:hover img,
.product-entry:hover img,
.product-card:hover img {
    transform: scale(1.08) !important;
}

/* محتوى المنتج */
salla-product-card .product-entry__content,
.product-entry__content,
.product-card-info,
salla-products-list::part(product-info) {
    padding: 18px 16px !important;
    background: var(--color-white) !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* العناوين */
salla-product-card h3,
salla-product-card .product-entry__title,
.product-entry__title,
.product-name,
salla-products-list::part(product-name) {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--color-black) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    min-height: 35px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* الأسعار */
salla-product-card .product-entry__price,
.product-entry__price,
.product-price,
salla-products-list::part(product-price) {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--color-black) !important;
    margin: 0 !important;
    padding: 0 !important;
}

salla-product-card .product-entry__old-price,
.product-entry__old-price,
.old-price {
    font-size: 14px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
}

/* شارة الخصم */
salla-product-card .product-entry__discount,
.product-entry__discount,
.discount-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #e74c3c !important;
    color: white !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    z-index: 2 !important;
}

/* زر المفضلة */
salla-product-card .product-entry__favorite,
salla-product-card button[aria-label*="favorite"],
salla-product-card button[aria-label*="المفضلة"],
.favorite-btn,
.wishlist-btn,
salla-products-list::part(wishlist-button) {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e5e5 !important;
    cursor: pointer !important;
    z-index: 3 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

salla-product-card .product-entry__favorite:hover,
.favorite-btn:hover,
.wishlist-btn:hover {
    background: var(--color-black) !important;
    border-color: var(--color-black) !important;
    transform: scale(1.1) !important;
}

salla-product-card .product-entry__favorite:hover i,
.favorite-btn:hover i,
.wishlist-btn:hover i {
    color: var(--color-white) !important;
}

/* زر الإضافة للسلة */
salla-product-card .product-entry__add-to-cart,
.add-to-cart-btn,
.btn-add-to-cart {
    width: 100% !important;
    padding: 12px !important;
    background: var(--color-black) !important;
    color: var(--color-white) !important;
    border: none !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important;
}

salla-product-card .product-entry__add-to-cart:hover,
.add-to-cart-btn:hover,
.btn-add-to-cart:hover {
    background: var(--color-dark-gray) !important;
}

/* التقييم */
salla-product-card .product-entry__rating,
.product-rating,
.rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    color: #ffa500 !important;
    margin-top: 4px !important;
}

/* ========================================
   6. الفوتر (Footer)
   ======================================== */
.store-footer {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
    margin-top: 80px;
    padding: 60px 0 30px;
}

.store-footer__inner {
    background-color: var(--color-black) !important;
}

.store-footer h3 {
    color: var(--color-white) !important;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.store-footer a,
.store-footer span,
.store-footer p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.store-footer a:hover {
    color: var(--color-beige) !important;
}

salla-contacts, salla-social {
    margin-top: 20px;
}

salla-contacts a, salla-social a {
    color: var(--color-white) !important;
    font-size: 13px;
    text-transform: lowercase;
}

.copyright-text,
.copyright-text p,
.copyright-text a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 12px;
}

salla-payments::part(container) {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* ========================================
   7. التجاوب (Responsive Design)
   ======================================== */

/* شاشات كبيرة جدًا (Extra Large) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 30px !important;
    }
}

/* لابتوب كبير (Large Laptop) */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    custom-main-menu,
    .main-menu {
        gap: 2rem;
        margin-right: 2rem;
    }
    custom-main-menu a,
    .main-menu a {
        font-size: 13px;
    }
}

/* لابتوب / تابلت (Laptop/Tablet) */
@media (max-width: 1024px) {
    .navbar-brand {
        max-width: 100px;
    }
    custom-main-menu,
    .main-menu {
        gap: 1.5rem;
        margin-right: 1.5rem;
    }
    custom-main-menu a,
    .main-menu a {
        font-size: 12px;
    }
    .language-btn {
        height: 32px;
        padding: 0 12px !important;
        font-size: 11px !important;
    }
    /* تعديل ارتفاع البانر */
    .s-block--banners .grid .banner-entry:first-child {
        height: 60vh !important;
        min-height: 450px;
    }
    .banner__title {
        font-size: 90px !important;
    }
    .banner__description {
        font-size: 26px !important;
    }
    /* البانرات الثانوية */
    .banner-entry.secondary,
    .s-block--banners .grid > a:not(:first-child) {
        height: 350px !important;
    }
    .banner-entry.secondary .banner__title,
    .s-block--banners .grid > a:not(:first-child) .banner__title {
        font-size: 28px !important;
    }
    /* المنتجات */
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    .s-block.container {
        padding: 50px 20px;
    }
}

/* تابلت صغير (Small Tablet) */
@media (max-width: 900px) {
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
    salla-product-card h3,
    .product-entry__title,
    .product-name {
        font-size: 12px !important;
        min-height: 32px !important;
    }
    salla-product-card .product-entry__price,
    .product-entry__price,
    .product-price {
        font-size: 15px !important;
    }
}

/* موبايل (Mobile) */
@media (max-width: 768px) {
    .main-nav-container {
        padding: 0.8rem 0;
    }
    .navbar-brand {
        max-width: 90px;
    }
    /* إخفاء القائمة وظهور البرجر */
    custom-main-menu,
    .main-menu {
        display: none !important;
    }
    .mburger {
        display: block !important;
    }
    .language-btn {
        height: 30px;
        padding: 0 10px !important;
        font-size: 10px !important;
        gap: 3px;
    }
    .header-btn {
        width: 32px !important;
    }
    /* البانرات */
    .s-block--banners .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .s-block--banners .grid > a:nth-child(1),
    .s-block--banners .grid > a:nth-child(2) {
        height: 350px !important;
        padding: 20px !important;
    }
    .s-block--banners .grid > a:nth-child(1) .banner__title,
    .s-block--banners .grid > a:nth-child(2) .banner__title {
        font-size: 24px !important;
        margin-bottom: 5px !important;
    }
    .s-block--banners .grid > a:nth-child(1) .banner__description,
    .s-block--banners .grid > a:nth-child(2) .banner__description {
        font-size: 14px !important;
    }
    /* المنتجات */
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .s-block.container {
        padding: 40px 15px;
    }
    salla-product-card .product-entry__content,
    .product-entry__content,
    .product-card-info {
        padding: 14px 12px !important;
    }
    salla-product-card h3,
    .product-entry__title,
    .product-name {
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        min-height: 30px !important;
    }
    salla-product-card .product-entry__price,
    .product-entry__price,
    .product-price {
        font-size: 14px !important;
    }
    salla-product-card .product-entry__favorite,
    .favorite-btn,
    .wishlist-btn {
        width: 34px !important;
        height: 34px !important;
        top: 10px !important;
        right: 10px !important;
    }
    /* الفوتر */
    .store-footer__inner .container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .store-footer h3 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    /* زر المقاسات في الموبايل */
    .size-button {
        min-width: 48px;
        height: 42px;
        padding: 0 15px;
        font-size: 13px;
    }
}

/* موبايل صغير (Small Mobile) */
@media (max-width: 480px) {
    .navbar-brand {
        max-width: 80px;
    }
    .header-btn {
        width: 30px !important;
    }
    .header-btn__icon {
        font-size: 16px !important;
    }
    .language-btn {
        height: 28px;
        padding: 0 8px !important;
        font-size: 9px !important;
    }
    /* البانرات تحت بعض */
    .s-block--banners .grid {
        grid-template-columns: 1fr !important;
    }
    .s-block--banners .grid > a:nth-child(1),
    .s-block--banners .grid > a:nth-child(2) {
        height: 300px !important;
        padding: 20px !important;
    }
    .s-block--banners .grid > a:nth-child(1) .banner__title,
    .s-block--banners .grid > a:nth-child(2) .banner__title {
        font-size: 22px !important;
    }
    .s-block--banners .grid > a:nth-child(1) .banner__description,
    .s-block--banners .grid > a:nth-child(2) .banner__description {
        font-size: 13px !important;
    }
    /* المنتجات */
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .s-block.container {
        padding: 30px 12px;
    }
    salla-product-card .product-entry__content,
    .product-entry__content,
    .product-card-info {
        padding: 12px 10px !important;
        gap: 6px !important;
    }
    salla-product-card h3,
    .product-entry__title,
    .product-name {
        font-size: 10px !important;
        letter-spacing: 0.3px !important;
        min-height: 28px !important;
        -webkit-line-clamp: 2 !important;
    }
    salla-product-card .product-entry__price,
    .product-entry__price,
    .product-price {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    /* أيقونات وشارات المنتجات */
    salla-product-card .product-entry__favorite,
    .favorite-btn,
    .wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        top: 8px !important;
        right: 8px !important;
    }
    salla-product-card .product-entry__favorite i,
    .favorite-btn i,
    .wishlist-btn i {
        font-size: 14px !important;
    }
    salla-product-card .product-entry__discount,
    .discount-badge {
        top: 8px !important;
        left: 8px !important;
        padding: 3px 8px !important;
        font-size: 10px !important;
    }
    /* الفوتر */
    .store-footer {
        padding: 40px 0 20px;
    }
    .store-footer h3 {
        font-size: 20px !important;
    }
    .store-footer a,
    .store-footer span,
    .store-footer p {
        font-size: 12px !important;
    }
    /* أزرار المقاسات */
    .size-button {
        min-width: 45px;
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }
    .sizes-buttons-wrapper {
        gap: 6px;
    }
}

/* موبايل صغير جداً */
@media (max-width: 360px) {
    salla-products-list::part(container),
    .vertical-products .products-list,
    .products-list {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .banner__title {
        font-size: 42px !important;
    }
    .banner__description {
        font-size: 16px !important;
    }
    .banner__description::before {
        font-size: 14px !important;
    }
}

/* الوضع الأفقي (Landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-entry {
        height: 85vh !important;
    }
    .banner__title {
        font-size: 60px !important;
    }
    .banner__description {
        font-size: 20px !important;
    }
}

/* ========================================
   8. تنسيق المقاسات كأزرار (Size Buttons)
   ======================================== */

/* إخفاء القوائم المنسدلة */
salla-product-options .form-input,
salla-product-options select,
select[name*="option"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* حاوية الخيارات */
.product-options-container {
    margin: 20px 0;
    opacity: 1 !important;
    visibility: visible !important;
}

/* زر المقاس */
.size-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    height: 45px;
    padding: 0 18px;
    border: 1.5px solid #d1d5db;
    background: white;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 5px;
    text-transform: uppercase;
}

.size-button:hover {
    border-color: #1a1a1a;
    background: #f9f9f9;
}

.size-button.selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: white;
}

/* المقاس غير المتوفر */
.size-button.disabled {
    border-color: #e5e5e5;
    background: #f5f5f5;
    color: #d1d5db;
    cursor: not-allowed;
    position: relative;
    opacity: 0.6;
}

.size-button.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    right: 5px;
    height: 1px;
    background: #d1d5db;
    transform: translateY(-50%) rotate(-15deg);
}

.sizes-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    color: #1a1a1a;
    display: block;
}

.sizes-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* عناصر مخفية وظيفية */
#sizes-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.product-options-container ~ .product-options-container {
    display: none !important;
}

.product-options-container ~ salla-product-options,
.product-options-container + salla-product-options {
    display: none !important;
}

/* ========================================
   9. تنسيق معلومات المقاسات (Size Guide Info)
   ======================================== */

/* إخفاء معلومات المقاسات افتراضياً */
.size-info {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    margin: 0;
}

/* إظهار معلومات المقاس عند التفعيل */
.size-info.visible {
    display: block;
    opacity: 1;
    max-height: 500px;
    margin: 8px 0;
}

/* تنسيق نص معلومات المقاس */
.size-info h3 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* تأثير انتقال سلس */
.size-info {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PRODUCT ACCORDION */
.product-accordion {
    border-top: 1px solid #e5e5e5;
    padding: 14px 0;
    margin-top: 10px;
}

.product-accordion:last-of-type {
    border-bottom: 1px solid #e5e5e5;
}

.product-accordion summary {
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 22px;
}

/* remove default arrow */
.product-accordion summary::-webkit-details-marker {
    display: none;
}

/* custom icon */
.product-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 18px;
    transition: transform 0.2s ease;
}

/* open state */
.product-accordion[open] summary::after {
    content: "−";
}

/* content */
.accordion-content {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
/* =====================================================
1️⃣ ترتيب معلومات المنتج (الجهة اليسار)
===================================================== */

/* العمود الخاص بالمعلومات */
.product-details,
.product-details__content,
.product__info {
    padding-top: 24px !important;
}

/* اسم المنتج */
.product-title,
.product__title,
h1[itemprop="name"] {
    font-size: 22px !important;
    margin-bottom: 8px !important;
}

/* السعر */
.product-price,
.price,
.product__price {
    margin-bottom: 16px !important;
}


/* =====================================================
2️⃣ إزالة كل الـ labels المزعجة (Size – اختر – القياس…)
===================================================== */

/* عناوين الخيارات */
.product-options label,
.product-options__title,
.product-options__label,
.form-label,
label[for*="option"],
label[for*="size"],
label[for*="Size"] {
    display: none !important;
}

/* كلمة اختر */
.product-options__hint,
.product-options__required,
.product-options small {
    display: none !important;
}

/* نص "القياس :" */
.product-options span,
.product-options small {
    display: none !important;
}


/* =====================================================
3️⃣ ترتيب المقاسات بعد إزالة الليبلز
===================================================== */

.product-options {
    margin-top: 10px !important;
}

.product-options .option {
    margin-top: 6px;
}


/* =====================================================
4️⃣ (اختياري) تنعيم الشكل بعد التنظيف
===================================================== */

.product-options .option {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-options .option:hover {
    background-color: #f5f5f5;
}
/* إيقاف تمدد السلايدر */
salla-slider.details-slider {
    max-height: 100vh !important;
    height: auto !important;
}

/* منع السلايدر من أخذ ارتفاع المحتوى */
salla-slider.details-slider .swiper,
salla-slider.details-slider .swiper-wrapper,
salla-slider.details-slider .swiper-slide {
    max-height: 100vh !important;
    height: auto !important;
}

/* الصورة نفسها */
salla-slider.details-slider img {
    max-height: 100vh !important;
    height: auto !important;
    width: 100%;
    object-fit: contain !important;
}
/* حذف كلمة اختر + Size + أي label */
salla-product-options label,
salla-product-options .form-label,
salla-product-options .option-title {
    display: none !important;
}