/*
 * ************************************************************
 * الستايلات العامة للحاوية
 * ************************************************************
 */
.products-slider-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    /*border-bottom: 1px solid #e5e7eb;*/
    flex-wrap: nowrap;
    gap: 16px;
}

/* الجانب الأيسر: العنوان + الأزرار معاً */
.slider-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.slider-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    margin: 0;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

/* ************************************************************
 * أزرار التصفية
 * ************************************************************
 */
.filter-buttons-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-buttons-wrapper::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 6px 18px;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: transparent;
    cursor: pointer;
    color: #374151;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
}

.category-btn:hover {
    border-color: #9ca3af;
    color: #111;
}

.category-btn.active {
    border-color: #2563eb;
    color: #2563eb;
    background: transparent;
    font-weight: 700;
}

/* إزالة الخط السفلي القديم */
.category-btn.active::after {
    display: none;
}

/* رابط عرض الكل */
.view-all-link {
    margin-right: auto;
    margin-left: 0;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding-right: 16px;
    transition: opacity 0.2s ease;
}

.view-all-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ************************************************************
 * موبايل
 * ************************************************************
 */
@media (max-width: 768px) {
    .slider-header {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
        padding-bottom: 12px;
    }

    /* في الموبايل: slider-header-left يأخذ سطراً كاملاً */
    .slider-header-left {
        order: 1;
        flex-wrap: wrap;
        gap: 0;
        flex: 1 1 100%;
        align-items: flex-start;
    }

    .slider-title {
        order: 1;
        font-size: 1.1rem;
        font-weight: 800;
        color: #111;
        /* في الموبايل: العنوان يشاركه سطره مع view-all */
        flex: 1;
    }

    .view-all-link {
        order: 1;
        margin-right: 0;
        padding-right: 0;
        color: #374151;
        font-size: 0.85rem;
        font-weight: 600;
        /* view-all يجلس بجانب العنوان في الموبايل */
        align-self: center;
    }

    /* نجعل slider-header يعيد ترتيب العناصر في الموبايل */
    .slider-header {
        display: flex;
        flex-wrap: wrap;
    }

    /* سطر أول: العنوان + view-all */
    .slider-title { order: 1; }
    .view-all-link { order: 2; }

    /* سطر ثاني: الـ pills - نخرجها من slider-header-left لتأخذ عرض كامل */
    .filter-buttons-wrapper {
        order: 3;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        margin-top: 14px;
        gap: 8px;
    }

    /* نخرج filter-buttons-wrapper من تأثير slider-header-left */
    .slider-header-left {
        display: contents; /* يجعل أبناءه يتصرفون كأنهم أبناء مباشرة لـ slider-header */
    }

    .filter-buttons-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 6px 16px;
        border: 1.5px solid #d1d5db;
        background: transparent;
        color: #374151;
        font-size: 0.85rem;
        font-weight: 600;
        flex-shrink: 0;
        border-radius: 999px;
    }

    .category-btn.active {
        background: #111;
        color: #fff;
        border-color: #111;
    }
}

/* ************************************************************
 * شريط التمرير
 * ************************************************************
 */
.slider-controls-wrapper {
    position: relative;
}

.products-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 0 10px;
}

.products-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.slider-wrapper {
    width: 100%;
    display: flex;
    transition: transform 0.3s ease-out;
}

.product-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 10px;
}
.product-slide .product {
    margin: 0 10px;
    display: block;
}
.product-slide .product img {
    max-width: 100%;
    height: auto;
}

/* ************************************************************
 * أزرار التنقل (Prev/Next)
 * ************************************************************
 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background-color 0.3s;
    padding: 0;
}

.carousel-btn:hover {
    background-color: #f0f0f0;
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* ************************************************************
 * مؤشر التحميل
 * ************************************************************
 */
.slider-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    pointer-events: none;
}

.slider-loader i {
    font-size: 2rem;
    color: #2563eb;
    opacity: 0.85;
}

.no-products {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #888;
}

/* -------------------------------------- */
/* 3. Quick Options & Checkout Modals Styles */
/* -------------------------------------- */

.quick-checkout-modal, .quick-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.quick-checkout-modal.is-active, .quick-options-modal.is-active {
    display: flex;
}

.quick-checkout-modal-content, .quick-options-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInScale 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

h3.modal-title {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.checkout-form .form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.primary-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #005177;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #0073aa;
}

.success-message {
    padding: 15px;
    background-color: #e6ffe6;
    border: 1px solid #00cc00;
    color: #00cc00;
    border-radius: 4px;
    margin-top: 15px;
}

.error-message {
    padding: 15px;
    background-color: #ffe6e6;
    border: 1px solid #cc0000;
    color: #cc0000;
    border-radius: 4px;
    margin-top: 15px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* -------------------------------------- */
/* 4. Quick Options Modal Enhancements */
/* -------------------------------------- */
.quick-options-modal-content {
    max-width: 650px;
}

.product-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-media-slider {
    flex-basis: 40%;
    max-width: 40%;
}

.product-media-slider img {
    border-radius: 4px;
}

.product-description-wrapper {
    flex-basis: 55%;
    max-width: 55%;
}

.product-description-wrapper p {
    margin-top: 0;
    line-height: 1.6;
}

.collapsed-description {
    max-height: 80px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-in-out;
}

.collapsed-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
}

#more-info-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
}

.option-price-display {
    text-align: right;
    font-size: 1.2em;
    padding-top: 10px;
}
.option-price-display .price {
    color: #b33d3d;
    font-weight: bold;
}

/* -------------------------------------- */
/* 5. Quick Cart Modal (السلة) */
/* -------------------------------------- */

.quick-cart-modal-content {
    max-width: 400px;
}

.cart-items-list {
    list-style: none;
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-left: 10px;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-title {
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 0.95em;
}

.item-qty-price {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #555;
}

.item-quantity-input {
    width: 50px;
    padding: 2px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 1.5em;
    cursor: pointer;
    margin-right: 10px;
}

.cart-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.cart-total-display {
    font-size: 1.3em;
    font-weight: bold;
}

.cart-total-display .price {
    color: #b33d3d;
}

/* -------------------------------------- */
/* 6. Final Checkout Modal */
/* -------------------------------------- */
#final-order-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.price-large {
    font-size: 1.2em;
    color: #b33d3d;
}


/*
 * ============================================================
 * MODERN MODAL STYLES - Professional E-commerce Design
 * ============================================================
 */

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

.quick-checkout-modal,
.quick-options-modal,
.quick-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-checkout-modal.is-active,
.quick-options-modal.is-active,
.quick-cart-modal.is-active {
    display: flex;
    opacity: 1;
}

.quick-options-modal-content,
.quick-cart-modal-content,
.quick-checkout-modal-content {
    background: #ffffff;
    border-radius: 40px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.modal-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title-new {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.modal-back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-back-btn:hover {
    background-color: #f5f5f5;
}

.modal-icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
}

.modal-spacer {
    width: 36px;
}

.product-media-section {
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
}

.product-images-slider {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-images-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-content {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.description-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.desc-full {
    display: none;
}

.description-text.show-full .desc-short {
    display: none;
}

.description-text.show-full .desc-full {
    display: inline;
}

.read-more-btn {
    background: none;
    border: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.product-options-section {
    margin-top: 20px;
}

.option-title-new {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.size-options-new {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn-new {
    padding: 10px 18px;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    background-color: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Poppins', sans-serif;
}

.size-btn-new:hover {
    border-color: #000;
    background-color: #fafafa;
}

.size-btn-new.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.price-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.quantity-control-new {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
}

.qty-btn-new {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-new:hover {
    background-color: #e8e8e8;
}

.qty-value-new {
    padding: 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

.current-price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.modal-actions-new {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.add-to-cart-btn-new {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px 0;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn-new:hover {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 25px;
    margin-top: 10px;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
}

.cart-item-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item-left {
    display: flex;
    gap: 15px;
    flex: 1;
}

.cart-item-image-new {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 15px;
    background-color: #f5f5f5;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.cart-item-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
}

.remove-item-btn-new {
    position: absolute;
    top: 18px;
    right: 0;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 1;
    transition: color 0.2s;
    font-weight: 300;
}

.remove-item-btn-new:hover {
    color: #ff4d4d;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
}

.cart-qty-btn {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 0.9rem;
    font-weight: 500;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-value {
    padding: 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.promo-section-new {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
}

.promo-input-new {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 15px;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.promo-input-new:focus {
    border-color: #000;
}

.apply-promo-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s;
}

.apply-promo-btn:hover {
    background-color: #222;
}

.cart-summary-new {
    padding: 20px 25px 15px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-label-new {
    font-size: 1rem;
    color: #777;
    font-weight: 500;
}

.summary-value-new {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.summary-value-new.shipping-cost {
    color: #777;
}

.summary-row.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.summary-row.total-row .summary-label-new {
    font-size: 1.4rem;
    color: #000;
    font-weight: 700;
}

.summary-row.total-row .summary-value-new {
    font-size: 1.6rem;
    font-weight: 700;
}

.summary-details-new {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    margin: 0 auto 0 8px;
}

.checkout-btn-new {
    width: calc(100% - 50px);
    background-color: #000;
    color: #fff;
    border: none;
    padding: 18px 0;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 25px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.checkout-btn-new:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.checkout-content-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0 25px 20px;
}

.checkout-section {
    margin-top: 20px;
}

.section-title-new {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.section-box-new {
    background-color: #f9f9f9;
    padding: 18px;
    border-radius: 18px;
}

.input-group-new {
    margin-bottom: 15px;
}

.input-group-new label {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input-new,
.form-textarea-new {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
    background-color: #fff;
}

.form-input-new:focus,
.form-textarea-new:focus {
    border-color: #000;
}

.form-textarea-new {
    resize: vertical;
    min-height: 80px;
}

.info-line-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.info-label {
    font-size: 0.9rem;
    color: #777;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

.payment-methods-new {
    padding: 0;
    background: transparent;
}

.payment-option-new {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.payment-option-new:hover {
    background: #f5f5f5;
}

.payment-option-new.selected {
    background: #fff;
    border-color: #000;
}

.payment-icon {
    font-size: 1.6rem;
    color: #000;
    width: 35px;
    text-align: center;
}

.payment-details {
    flex-grow: 1;
    margin-left: 12px;
}

.payment-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 3px 0;
}

.payment-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.payment-option-new.selected .payment-radio {
    border-color: #000;
    background-color: #000;
}

.payment-option-new.selected .payment-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.final-summary-new {
    background: #f9f9f9;
    padding: 18px;
    border-radius: 15px;
}

.final-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.final-summary-label {
    color: #777;
}

.final-summary-value {
    font-weight: 600;
    color: #000;
}

.final-total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Confirm Button */


/* ============================================================
 * تخصيص العربية فقط
 * يُطبَّق عند إضافة class="arabic-slider-product" على الـ container
 * من إعدادات الـ block في WordPress
 * ============================================================ */

/* ديسكتوب: العنوان أقصى اليمين، ثم الأزرار، ثم view-all أقصى اليسار */
.arabic-slider-product .slider-header {
    direction: rtl;
    justify-content: flex-start; /* نبدأ من اليمين بسبب direction: rtl */
}

.arabic-slider-product .slider-header-left {
    flex-direction: row;         /* العنوان ثم الأزرار من اليمين لليسار */
    margin-left: 0;
    margin-right: 0;
    flex: 1;
}

.arabic-slider-product .view-all-link {
    margin-right: auto; /* يدفع view-all لأقصى اليسار */
    margin-left: 0;
    padding-right: 0;
    padding-left: 16px;
}

/* موبايل: يبقى نفس تصميم الموبايل الحالي لكن بـ RTL */
@media (max-width: 768px) {
    .arabic-slider-product .slider-header {
        direction: rtl;
    }

    .arabic-slider-product .view-all-link {
        padding-left: 0;
        margin-right: 0;
        margin-left: 0;
    }
}
