/* Add custom CSS styles below */

/* قسم "اطلب مرة ثانية" — تصميم عصري ومتجاوب */
.custom-reorder-section {
    --reorder-card-w: clamp(152px, 42vw, 196px);
    --reorder-img-box: clamp(104px, 28vw, 142px);
    --reorder-gap: clamp(10px, 2vw, 16px);
    --reorder-radius: 14px;

    padding: clamp(16px, 3vw, 28px) 0 clamp(20px, 3.5vw, 36px) !important;
    background: #f4f5f7 !important;
}

.custom-reorder-header {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
}

.custom-reorder-title {
    margin: 0 0 clamp(10px, 2vw, 16px);
    padding: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #111;
    text-align: right;
}

.custom-reorder-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

.custom-reorder-section .s-slider-block__title {
    margin-bottom: 4px;
}

.custom-reorder-section .s-slider-nav-arrow {
    width: 36px;
    height: 36px;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .custom-reorder-section .s-slider-nav-arrow:hover:not(:disabled) {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
}

.custom-reorder-section .s-products-slider-card {
    width: var(--reorder-card-w) !important;
    max-width: var(--reorder-card-w) !important;
    height: auto !important;
    box-sizing: border-box;
}

.custom-reorder-section .s-product-card-entry {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--reorder-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    padding-top: 0;
    box-sizing: border-box;
}

@media (hover: hover) {
    .custom-reorder-section .s-product-card-entry:hover {
        transform: translateY(-3px);
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    }
}

.custom-reorder-section .s-product-card-image {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: unset;
    max-height: unset;
    height: var(--reorder-img-box);
    background: #fff;
    border-radius: 10px;
    display: block;
    overflow: visible;
    position: relative;
}

.custom-reorder-section .s-product-card-image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: var(--reorder-img-box);
    padding: 8px 10px 4px;
    box-sizing: border-box;
    z-index: 1;
}

.custom-reorder-section .s-product-card-image img,
.custom-reorder-section .s-product-card-image-cover {
    display: block !important;
    max-width: 92% !important;
    max-height: calc(var(--reorder-img-box) - 16px) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
    float: none !important;
}

.custom-reorder-section .s-product-card-wishlist-btn,
.custom-reorder-section salla-button.s-product-card-wishlist-btn {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
    bottom: auto !important;
    inset-inline-start: 6px !important;
    inset-inline-end: auto !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    line-height: 0;
}

.custom-reorder-section .s-product-card-wishlist-btn .s-button-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.custom-reorder-section .s-product-card-wishlist-btn .s-button-element,
.custom-reorder-section .s-product-card-wishlist-btn button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-reorder-section .s-product-card-wishlist-btn .sicon-heart {
    font-size: 17px !important;
}

.custom-reorder-section .s-product-card-content {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-reorder-section .s-product-card-content-main {
    min-height: 2.6em;
}

.custom-reorder-section .s-product-card-content-title,
.custom-reorder-section .s-product-card-content-title a {
    font-size: clamp(0.72rem, 1.8vw, 0.84rem) !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-reorder-section .s-product-card-price {
    font-size: clamp(0.78rem, 1.9vw, 0.9rem) !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 !important;
}

.custom-reorder-section .s-product-card-content-footer {
    margin-top: 4px;
}

.custom-reorder-section .s-product-card-content-footer .s-button-element {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: clamp(0.68rem, 1.6vw, 0.76rem) !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    border-width: 1.5px !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .custom-reorder-section .s-product-card-content-footer .s-button-element:hover {
        transform: translateY(-1px);
    }
}

.custom-reorder-section .s-product-card-content-footer .sicon-shopping-bag {
    font-size: 0.85em;
}

@media (min-width: 640px) {
    .custom-reorder-section {
        --reorder-card-w: clamp(168px, 24vw, 188px);
        --reorder-img-box: clamp(112px, 17vw, 132px);
    }
}

@media (min-width: 1024px) {
    .custom-reorder-section {
        --reorder-card-w: 188px;
        --reorder-img-box: 138px;
        --reorder-gap: 16px;
    }

    .custom-reorder-section .s-product-card-content {
        padding: 10px 14px 14px;
    }
}

@media (min-width: 1280px) {
    .custom-reorder-section {
        --reorder-card-w: 196px;
        --reorder-img-box: 142px;
    }
}

/* 1. تغيير خلفية الشريط العلوي للون الأبيض */
.top-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important; /* لمسة جمالية فاصلة */
}

/* 2. تغيير لون النصوص والروابط للأسود */
.top-navbar .topnav-link-item, 
.top-navbar .s-contacts-topnav-link {
    color: #000000 !important;
}

/* 3. تغيير لون خلفية السيرش لرمادي فاتح جداً */
.top-navbar .s-search-input {
    background-color: #f0f0f0 !important; /* رمادي فاتح */
    color: #333 !important; /* لون النص داخل السيرش */
}

/* 4. تغيير لون أيقونة السيرش والكلمة الاسترشادية */
.top-navbar .s-search-input::placeholder {
    color: #888 !important;
}

/* 5. ضبط أيقونة السيرش (الـ SVG) */
.top-navbar .s-search-icon path {
    fill: #666666 !important;
}
/**************************/