/* Add custom CSS styles below */ 
/* ===================================================== */
/*            OVRSLEPT – SOFT HOME LUXURY               */
/* ===================================================== */

body {
  background: #f6f3ee;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "SF Pro Display", "Helvetica Neue",
               Helvetica, Arial, sans-serif;
  color: #2c2c2c;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

* {
  font-feature-settings: "lnum";
  box-sizing: border-box;
}

/* ================= HEADER ================= */

header {
  background: #ffffff;
  border-bottom: 1px solid #ece7df;
}

/* ================= العناوين ================= */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1f1f1f;
}

/* ================= كروت المنتجات ================= */

.product-item,
.s-product-card {

  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid #ece7df;

  box-shadow: 0 6px 25px rgba(0,0,0,0.04);

  transition: transform 0.35s ease,
              box-shadow 0.35s ease;
}

.product-item:hover,
.s-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.07);
}

/* ================= الصور ================= */

.product-item img,
.s-product-card-image img {
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.product-item:hover img,
.s-product-card:hover img {
  transform: scale(1.02);
}

/* ================= السعر ================= */

.price,
.s-product-card-price {

  font-size: 22px;
  font-weight: 700;
  color: #9c7c4a;

  letter-spacing: -0.2px;
}

.price del,
.s-product-card-price del {
  color: #a8a8a8;
  font-size: 14px;
  opacity: 0.7;
}

/* ================= تحسين النصوص ================= */

p, span {
  line-height: 1.7;
}
/* ===================================
   SALE BADGE – LUXURY STYLE
=================================== */

/* كرت المنتجات */
.s-product-card-promotion-title,
.s-product-discount-badge,

/* صفحة المنتج */
.s-product-promotion,
.s-product-detail .s-product-promotion {

  background: #3e2f2a !important; /* اللون الجديد */
  color: #ffffff !important;
  border-radius: 30px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 1px;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* إزالة أي مثلث أو تأثير قديم */
.s-product-card-promotion-title::before,
.s-product-card-promotion-title::after,
.s-product-promotion::before,
.s-product-promotion::after {
  display: none !important;
}
.typing-subtitle {
  display: inline-block;
  white-space: normal;     /* يسمح بالنزول لسطر جديد */
  overflow-wrap: break-word;
  word-break: break-word;
  min-height: 18px;
  max-width: 100%;
}
#qv-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

#qv-modal.active {
    display: block;
}

.qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.qv-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp .25s ease;
}

.qv-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.qv-close {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 10;
    font-size: 22px;
    cursor: pointer;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.qv-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: 0.2s;
}

.qv-btn:hover {
    background: #f3f3f3;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* ================= تصغير السعر فقط بدون تغيير الألوان ================= */

/* سعر المنتج داخل الكروت */
.s-product-card-sale-price h4,
.s-product-card-price {
  font-size: 20px !important;   /* كان أكبر — صغرناه قليلاً */
  font-weight: 700 !important;
}

/* السعر داخل صفحة المنتج */
.s-product-price {
  font-size: 22px !important;   /* تصغير بسيط */
  font-weight: 700 !important;
}

/* السعر قبل الخصم (نترك لونه الافتراضي) */
.s-product-old-price,
.s-product-card-sale-price span {
  font-size: 14px !important;   /* تصغير بسيط */
  opacity: 0.8;
}

.s-product-card-entry {
  border-radius: 22px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.05) !important;
  transition: all .3s ease !important;
}

.s-product-card-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,.08) !important;
}


/* ===== إزالة الصندوق الفاخر مع الحفاظ على التناسق ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 {
    display: flex !important;
    align-items: baseline !important; /* يحافظ على تساوي الحساب والسلة */
    gap: 20px; /* مسافة متساوية بين الحساب والسلة والمبلغ */
    background: transparent !important; /* إزالة اللون */
    border: none !important; /* إزالة الحدود */
    border-radius: 0 !important; /* إزالة الاستدارة */
    padding: 0 !important; /* إزالة الحشو الداخلي */
}

/* ===== توحيد حجم أيقونات الحساب والسلة ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > button .header-btn__icon,
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > salla-cart-summary .header-btn__icon {
    font-size: 28px !important;
    line-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ترتيب السلة داخليًا ===== */
.s-cart-summary-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    position: relative;
}

/* ===== السعر بجانب السلة ===== */
.s-cart-summary-content {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.s-cart-summary-total {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

/* ===== العداد فوق السلة ===== */
.s-cart-summary-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    background: linear-gradient(135deg,#C6A75E,#E5C98B);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== Hover خفيف للأيقونات ===== */
.header-btn__icon,
.s-cart-summary-wrapper .header-btn__icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-btn:hover .header-btn__icon,
.s-cart-summary-wrapper:hover .header-btn__icon {
    transform: translateY(-2px);
    opacity: 0.8;
}
/* ===== جعل أيقونات الحساب والسلة عمودية مع النص أسفل الأيقونة ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > button.header-btn,
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > salla-cart-summary #s-cart-icon {
    display: flex;
    flex-direction: column; /* أيقونة فوق، النص تحت */
    align-items: center;
    justify-content: center;
    gap: 2px; /* المسافة بين الأيقونة والكلمة */
}

/* ===== أيقونات أصغر قليلاً ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > button.header-btn .header-btn__icon,
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > salla-cart-summary .header-btn__icon {
    font-size: 24px !important; /* تصغير الأيقونة */
}

/* ===== كلمة "حسابي" أسفل أيقونة الحساب ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > button.header-btn::after {
    content: "حسابي";
    font-size: 12px;
    font-weight: 600;
    color: #C6A75E;
    line-height: 1;
}

/* ===== كلمة "سلتي" أسفل أيقونة السلة ===== */
#mainnav > div > div > div > div.flex.items-center.justify-end.my-2\.5 > salla-cart-summary #s-cart-icon::after {
    content: "سلتي";
    font-size: 12px;
    font-weight: 600;
    color: #C6A75E;
    line-height: 1;
}
/* نجعل حاوية صورة المنتج تستقبل التأثير */
.s-product-card-image {
    position: relative;
    overflow: hidden;
}

/* طبقة اللمعة */
.s-product-card-image::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -120%;
    width: 250%;
    height: 250%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 48%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 52%
    );
    transform: rotate(20deg);
    animation: shineMove 9s ease-in-out infinite; /* كل 9 ثواني */
    pointer-events: none;
}

/* حركة اللمعة */
@keyframes shineMove {
    0% {
        top: -120%;
        left: -120%;
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        top: 120%;
        left: 120%;
        opacity: 0;
    }
}

/* استهداف أيقونة الواتساب + زر الجيت بوتوم */
.whatsapp,
.whatsapp-btn,
.salla-whatsapp,
.botom,
a[href*="wa.me"],
a[href*="whatsapp"] {

    position: fixed !important;
    right: 20px !important;     /* الجهة اليمنى */
    left: auto !important;
    top: 78% !important;        /* إنزالها قليلاً للأسفل */
    transform: translateY(-50%);
    z-index: 9998 !important;

    width: 45px !important;     /* حجم مناسب للأيقونة */
    height: 45px !important;
    padding: 0 !important;

    font-size: 0 !important;    /* إخفاء أي نص أو رقم */
    overflow: hidden !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease;
}

/* إظهار الأيقونة الداخلية بحجم مناسب */
.whatsapp i,
.whatsapp svg,
.whatsapp-btn i,
.whatsapp-btn svg,
.salla-whatsapp i,
.salla-whatsapp svg,
a[href*="wa.me"] i,
a[href*="wa.me"] svg {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
}

/* تأثير hover */
.whatsapp:hover,
.whatsapp-btn:hover,
.salla-whatsapp:hover,
.botom:hover {
    transform: translateY(-50%) scale(1.1);
}
/* ================= تغيير لون الفوتر إلى #3e2f29 ================= */

#app footer .store-footer__inner > div {
  background-color: #3e2f29 !important;
  color: #ffffff !important;
}

/* جميع النصوص والروابط داخل هذا القسم */
#app footer .store-footer__inner > div,
#app footer .store-footer__inner > div p,
#app footer .store-footer__inner > div span,
#app footer .store-footer__inner > div a,
#app footer .store-footer__inner > div h1,
#app footer .store-footer__inner > div h2,
#app footer .store-footer__inner > div h3,
#app footer .store-footer__inner > div h4 {
  color: #ffffff !important;
}

/* الأيقونات أيضاً */
#app footer .store-footer__inner > div i,
#app footer .store-footer__inner > div svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.s-product-card-image-contain {
    object-fit: cover !important;
}

.s-product-card,
.s-product-card-image-wrapper {
    background-color: #ffffff !important;
}
@media (max-width: 768px) {
  .s-product-card-promotion-title {
    font-size: 10px !important;
    padding: 4px 10px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
}