/* Add custom CSS styles below */ 
.advanced-slider__caption__inner__content__heading {
    font-size: 1.5rem;
    color: #FFFFFF;
}
.advanced-slider__caption__inner__content__text {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #ffffff;
    padding-left: 80px;
}

.inventory-content>#variant-inventory {
    color: #236964;
    position: relative;
}

.text-red-400 {
    --tw-text-opacity: 1;
    color: #f11e1e;
}

.s-button-primary {
    color: #ffffff;
}

.sticky-product-bar__btn .s-add-product-button-main {
    flex-direction: column !important;
    align-items: stretch !important; /* Forces the items to stretch full width */
    gap: 12px !important;
}

/* Target the Salla components directly to ensure they don't shrink */
.sticky-product-bar__btn .s-add-product-button-main > salla-button,
.sticky-product-bar__btn .s-add-product-button-main > salla-mini-checkout-widget,
.sticky-product-bar__btn .s-add-product-button-main salla-button .s-button-element {
    width: 100% !important;
}

.s-button-btn {
    font-size: 1.1rem;
    font-weight: 700;
    justify-content: center;

}




/* =========================================
   1. الواجهة الرئيسية (Boost Trust Section)
   ========================================= */
.boost-trust-container {
    display: flex;
    flex-direction: column;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 0; 
    border-bottom: 1px solid rgba(124, 128, 130, 0.15); 
    transition: opacity 0.2s ease-in-out;
}

.trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trust-item:first-child {
    padding-top: 0;
}

.trust-item:hover {
    opacity: 0.7;
}

.trust-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--main-text-color, #231f1e); 
}

.trust-icon svg { width: 100%; height: 100%; fill: currentColor; }

.trust-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-size: 14px; 
    font-weight: bold;
    line-height: 1.4;
}

.trust-subtitle {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}

.trust-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--color-text, #7c8082); 
}

.trust-arrow svg { width: 100%; height: 100%; fill: currentColor; }


/* =========================================
   2. النافذة المنبثقة (Modal Sheet)
   ========================================= */
.trust-modal-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
    direction: rtl;
}

.trust-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.trust-modal-content {
    /* Using Salla theme background variable to support Dark/Light mode */
    background: var(--bg-color, #ffffff); 
    width: 100%;
    max-width: 500px;
    max-height: 85vh; /* To enable scrolling on small screens */
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    padding: 32px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

.trust-modal-overlay.active .trust-modal-content {
    transform: translateY(0);
}

.trust-modal-close {
    position: absolute;
    top: 16px;
    left: 16px; /* Positioned left for RTL */
    background: rgba(124, 128, 130, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    transition: background 0.2s;
}

.trust-modal-close:hover { background: rgba(124, 128, 130, 0.2); }

/* تنسيقات النصوص داخل النافذة */
.trust-sheet-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(124, 128, 130, 0.15);
}

.trust-sheet-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trust-sheet-title {
    color: #10B981; /* درجة لون أخضر مريحة وعصرية (Emerald-500) */
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.trust-sheet-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--main-text-color, #231f1e);
}

.trust-sheet-list {
    list-style-type: disc;
    margin-right: 20px;
    margin-bottom: 12px;
}

.trust-sheet-list li { margin-bottom: 6px; }

/* تنسيق أيقونات الدفع لتظهر بشكل مرتب */
.s-payments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin-top: 12px;
}

.s-payments-list-item {
    width: 45px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 2px;
}

.s-payments-list-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/*
#########
Cart Timer
#########
*/
#marvella-sticky-timer {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Stays above cart elements but below Salla's mobile menu */
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5; /* Ultra-thin separator */
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* Very faint shadow for slight depth */
}

.timer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.timer-label {
    font-size: 13px;
    color: #666; /* Neutral, non-distracting grey */
    font-weight: 400;
}

#timer-digits {
    font-size: 15px;
    font-weight: 700;
    /* Uses Marvella's exact brand color */
    color: #000000; 
    font-family: 'system-ui', -apple-system, sans-serif;
    min-width: 45px; /* Prevents text jumping when digits change */
    text-align: center;
    letter-spacing: 0.5px;
}

/* Mobile: Ensure it remains ultra-compact so it doesn't take up valuable screen real estate */
@media (max-width: 768px) {
    #marvella-sticky-timer {
        padding: 6px 0;
    }
    .timer-label {
        font-size: 12px;
    }
    #timer-digits {
        font-size: 14px;
    }
}