.product-single .details-slider .s-slider-thumbs {
    position: relative;
    top: -45px;
}

/* eye button */


style attribute {
    --cart-count-bg: #a46c00; !important;
}
#app .s-cart-summary-count, .header-wishlist-count i.icon-heart::after {
    background-color: #a46c00;
}

.s-button-danger {
    border-color: #b08d57;
    background-color: #b08d57;
}

.pb-8 {
    padding-bottom: 0rem; !important;
}

.showPreviewBtn{
    margin: 5px; !important;
    position: absolute;
    z-index: 8;
    cursor: pointer;
    background: #fff;
    border-radius: 100px;
    width: 28px; !important;
    height: 28px; !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d2b3b3;
}



.s-offer-slide-one-fourth {
    max-width: 175px;
}

.s-slider-nav-arrow {
    box-shadow: none !important;
}
.s-slider-nav-arrow {
    height: 1.8rem;
    width: 1.8rem;
    border-radius: 9999px;
    border-width: 1px;
    --tw-border-opacity: 1;
    font-size: 1.25rem;
    line-height: 1.75rem;

}




  













/* New 16/1 */
body custom-salla-product-card.product-block {
    --p-border-color: #c9970d;
    --brdr-w: 3px;
    --brdr-rad: 19px;
    --atc-x-space: 12px;
    --atc-x-space: 50px;
    --atc-b-space: 10px;
    --atc-b-space: 6px;
    --img-x-space: 6px;
    --img-x-space: 0px;
}






/* 4) Neutralize the theme variable that subtracts space */
custom-salla-product-card{ --atc-x-space: 0px !important; }

body.small-atc.app-body .product-block:not(.s-product-card-horizontal) .product-block__info>div:last-of-type {
    grid-column: span 3;
}



/*wts btn*/

#wa-widget{
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
}

#wa-widget > a#eh-whatsapp-support{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;

  width: auto !important;
  height: auto !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;

  background: #4AA432 !important;
  color: #fff !important;
  text-decoration: none !important;

  font-family: var(--font-main, Cairo, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;

  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

/* theme icon sizing */
#wa-widget > a#eh-whatsapp-support .eh-wa-icon{
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
}
#wa-widget > a#eh-whatsapp-support .eh-wa-label{
  line-height: 1;
}



/* Footer social icons — white background */
footer .s-social-list .s-social-link a{
  background: #ffffff;
  border-color: #a46c00;
}
.s-social-link a svg {
    height: 1rem;
    width: 1rem;
    fill: #a46c00;
}

.footer-is-dark .store-footer__inner {
    color: #fff;
}



/* Contact icons — same style as social icons */
.s-contacts-icon{
  background: #ffffff;
  border-color: #a46c00;
}

.s-contacts-item svg{
  height: 1rem;
  width: 1rem;
  fill: #a46c00;
}


/* ########################################
   ATC & Quick View buttons — FINAL FIX
######################################## */

/* Remove forced full width inside ATC */
custom-salla-product-card .btn--add-to-cart .w-full{
  width: auto !important;
}

custom-salla-product-card .showPreviewBtn .sicon-eye{
  font-size: 1.2rem;
}

body.p-border-on custom-salla-product-card.product-block .btn--add-to-cart, body.p-border-on custom-salla-product-card.product-block .showPreviewBtn.preview-btn-down {
    width: auto;
}





/* shining effext */





.flex.bg-white.lm-bg-sec.p-5.sm:pb-0.rounded-md.rounded-b-none.dm-bg-sec {
    visibility: hidden;
}


/* Remove price from add to cart section */



/* Fix remaining spacing in ATC section */
.product-single .product-form {
    gap: 0 !important;
}

/* Remove the entire price section completely */
section:has(.center-between.w-full) {
    display: none !important;
}




/* Footer */

nav {
    display: none;
    
}




/* --- 1. Delivery Estimate Styles --- */
.delivery-estimate-wrapper {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
    color: var(--main-text-color, #000);
}

.delivery-trigger {
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
    border-bottom: 1px dashed transparent;
}
.delivery-trigger:hover { opacity: 0.8; border-bottom-color: currentColor; }
.delivery-trigger .highlight-city { text-decoration: underline; text-underline-offset: 2px; }
.delivery-date-bold { font-weight: 800; }

/* --- 2. Trust Badges Section --- */
.trust-badges-container {
    display: flex;
    justify-content: space-between; /* Better distribution */
    align-items: stretch; /* Make all boxes equal height */
    gap: 0.4rem; /* Slightly tighter gap to give text more room */
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.trust-item {
    position: relative; /* For the info icon */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex: 1 1 0; /* Forces Safari and Chrome to respect equal thirds */
    min-width: 0; /* Prevents text overflow breaking the flex layout */
    cursor: pointer;
    transition: all 0.2s;
    padding: 10px 4px; /* Optimized padding */
    border-radius: 8px;
    border: 0.85px solid #e5e7eb;
}

.trust-item:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    border-color: #d1d5db;
}

/* --- New: Question Mark Info Icon --- */
.trust-info-icon {
    position: absolute;
    top: 6px;
    left: 6px; /* Top left corner (RTL optimized) */
    width: 14px;
    height: 14px;
    color: #9ca3af;
    opacity: 0.6;
    transition: all 0.2s;
}

.trust-item:hover .trust-info-icon {
    opacity: 1;
    color: #6b7280;
}

.trust-icon-svg {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: #4AA432; 
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-text {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #666;
    font-weight: 600;
    width: 100%;
    word-wrap: break-word; /* Safety for Safari */
}


.trust-icon-svg {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: #16a34a; /* أخضر بسيط */
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-text {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #666;
    font-weight: 600;
}

/* --- 3. Modal Styles --- */
.delivery-modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.delivery-modal.is-open { display: flex; }
.delivery-modal-content {
    background-color: #fff; padding: 25px 20px;
    border-radius: 12px; width: 90%; max-width: 450px;
    position: relative; text-align: right; direction: rtl;
    color: #333; font-size: 0.95rem; line-height: 1.6;
}
.delivery-close {
    position: absolute; top: 10px; left: 15px;
    font-size: 24px; cursor: pointer; color: #999;
    padding: 5px;
}
.delivery-modal-title { 
    font-weight: bold; margin-bottom: 12px; display: block; 
    font-size: 1.1rem; color: var(--color-primary, #a46c00);
    border-bottom: 1px solid #eee; padding-bottom: 10px;
}








/* Option 1: Big & Friendly */
salla-add-product-button .s-button-element {
    height: 56px !important; /* Taller for easier tapping */
    font-size: 1.0rem !important; /* Larger text */
    font-weight: 800 !important;
    border-radius: 12px !important; /* Softer corners */
    box-shadow: 0 4px 15px rgba(164, 108, 0, 0.3) !important; /* Glow effect matching your brand color */
    transition: all 0.2s ease !important;
}

salla-add-product-button .s-button-element:active {
    transform: scale(0.98); /* Satisfying "press" animation */
    box-shadow: 0 2px 8px rgba(164, 108, 0, 0.2) !important;
}

/* 2. Second "Buy Now" Button (Size Match Only) */
salla-mini-checkout-widget {
    height: 56px !important;
    border-radius: 12px !important;
    display: flex !important; /* Keeps text centered */
    align-items: center !important;
    justify-content: center !important;
}

.text-xl {
    font-size: 1.35rem;
    line-height: 2rem;
}

/* Layoutshift */



/* Popup Container */
/* Popup Container */
/* Popup Container */

/* تنسيق النافذة المنبثقة */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(2px); /* إضافة هامة لسفاري */
    backdrop-filter: blur(2px);
}

.exit-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    font-family: 'Cairo', sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.exit-popup-overlay.visible .exit-popup-content {
    transform: translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.exit-popup-title {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.exit-popup-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.coupon-container {
    background: #f8f9fa;
    border: 2px dashed #a46c00;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    direction: ltr; 
}

.coupon-code {
    font-weight: 900;
    font-size: 20px;
    color: #333;
    letter-spacing: 1px;
}

.copy-btn {
    background: #a46c00;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.copy-msg {
    font-size: 13px;
    color: #27ae60;
    display: none;
    font-weight: bold;
    margin-top: 5px;
}

/* تصميم الزر الجانبي (Minimal) */
.reopen-popup-btn {
    position: fixed;
    top: 50%;
    left: 0; 
    transform: translateY(-50%);
    background: #a46c00; 
    color: white;
    border: none;
    width: 32px; 
    height: 40px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 999998;
    display: none; 
    justify-content: center;
    align-items: center;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    opacity: 0.8; 
    transition: all 0.3s ease;
    padding: 0;
}

.reopen-popup-btn:hover {
    opacity: 1;
    width: 38px; 
}

.reopen-popup-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Cart Popup Container */
/* Cart Popup Container */
/* Cart Popup Container */

/* Exit Popup Overlay */
#exit-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* Popup Box */
#exit-popup-content {
  background: #ffffff;
  width: 92%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  animation: popIn 0.3s ease-out;
}

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

/* Highlighted Text */
.ep-title {
  font-size: 20px;
  font-weight: 800;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.5;
}
.ep-highlight {
  color: #a46c00;
}

/* Green Badges Container */
.ep-badges-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

/* Individual Badge */
.ep-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0fdf4; /* Very light green background */
  border: 1px solid #bbf7d0; /* Light green border */
  border-radius: 12px;
  padding: 10px;
  width: 120px;
}
.ep-badge svg {
  width: 28px;
  height: 28px;
  fill: #16a34a; /* Strong green for icon */
  margin-bottom: 6px;
}
.ep-badge span {
  font-size: 13px;
  font-weight: 700;
  color: #166534; /* Dark green text */
}

/* Buttons */
.ep-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}
.ep-btn:hover { opacity: 0.9; }

/* Primary Button (Checkout) */
.ep-btn-primary {
  background-color: #a46c00;
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(164, 108, 0, 0.3);
}

/* Secondary Button (Leave) */
.ep-btn-secondary {
  background-color: transparent;
  color: #888;
  font-size: 15px;
  text-decoration: underline;
  margin-bottom: 20px;
}

/* WhatsApp Link */
.ep-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px; 
  color: #222;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none; /* Removed underline from the whole link */
}
.ep-whatsapp-link svg {
  width: 18px;
  height: 18px;
  fill: #25D366; 
}
/* The minimal underline for specific words */
.ep-underline-text {
  text-decoration: underline;
  text-decoration-color: #a46c00;
  text-underline-offset: 4px;
}
}

/* Cart Timer Container */
/* Cart Timer Container */
/* Cart Timer Container */

#minimal-sticky-timer {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Below the exit popup but above page content */
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Very faint shadow for depth */
}

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

.timer-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

#timer-digits {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    min-width: 45px; /* Prevents text jumping */
    text-align: center;
}

/* Ensure the cart content doesn't jump */
.cart-page, #main-content {
    margin-top: 0 !important;
}

/* Mobile: Even more compact */
@media (max-width: 768px) {
    #minimal-sticky-timer {
        padding: 6px 0;
    }
    .timer-label {
        font-size: 14px;
    }
    #timer-digits {
        font-size: 15.3px;
    }
}