/* استيراد الخط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* تطبيق الخط على كل حاجة في المتجر */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, button,
.product-card,
.product-title,
.product-price {
    font-family: 'Tajawal', sans-serif !important;
}


/* تكبير الكارد وتحديد عرضه */
.product-card {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
    background: var(--product-bg) !important;
    border: 1px solid #eee !important;
}

/* تحسين صورة المنتج */
.product-card .product-image {
    padding: 1rem !important;
    background: #f5f5f5 !important;
    margin: 0.5rem !important;
    border-radius: 16px !important;
}

.product-card .product-image img {
    transition: transform 0.3s ease !important;
}

.product-card:hover .product-image img {
    transform: scale(1.03) !important;
}

/* اسم المنتج */
.product-card .product-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0.5rem 0 !important;
    padding: 0 0.5rem !important;
    line-height: 1.4 !important;
    color: var(--store-text-primary) !important;
}

/* السعر */
.product-card .product-price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin: 0.3rem 0 !important;
}

/* زر الإضافة */
.product-card .add-to-cart-btn {
    background: var(--color-primary) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    margin: 0.5rem auto !important;
    width: 90% !important;
    display: block !important;
    text-align: center !important;
}

.product-card .add-to-cart-btn:hover {
    opacity: 0.9 !important;
    transform: scale(0.98) !important;
}
/* كود الكلاس في سله  */








#single-product-details #details_table strong{
  color:#cf9f73;
  font-weight:700;
}

.sticky-product-bar__btn{

  background:#cf9f73;
  border:none;
  color:#fff;
  font-weight:600;
  transition:0.3s;

}

.sticky-product-bar__btn:hover{

  background:#b9895f;

}

#single-product-details #details_table ul{
  padding-right:18px;
  margin-top:10px;
}

#single-product-details #details_table li{
  margin-bottom:6px;
}

#single-product-details .tab-trigger.is-active{

  color:#cf9f73;
  border-color:#cf9f73;

}

/* خلفية وصف المنتج */

#single-product-details #details_table{

  /* background:#edccae; */
  border:1px solid #cf9f73;
  padding:25px;
  border-radius:10px;

}












/* 1. استهداف  البانر في سلة بشكل مباشر */
.s-block-banner-item, 
[class*="s-block-banner"] a, 
.s-block-banner-item img {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    backface-visibility: hidden;
}

/* 2. تأثير الـ Hover (زوم خفيف + تنوير) */
.s-block-banner-item:hover img, 
[class*="s-block-banner"] a:hover img {
    transform: scale(1.03) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* 3. تأثير اللمعان (Elegant Shine) */
.s-block-banner-item, 
[class*="s-block-banner"] a {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.s-block-banner-item::after, 
[class*="s-block-banner"] a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
}

.s-block-banner-item:hover::after, 
[class*="s-block-banner"] a:hover::after {
    left: 150%;
    transition: all 0.8s ease;
}


/* --- تأثير الحاوية الرئيسية للبانر --- */
.banner-tab {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    cursor: pointer !important;
    z-index: 1;
    margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* --- لمعة الحرير (Silk Shine) - النسخة الناعمة --- */
.banner-tab::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 40% !important; /* قللت العرض عشان متبقاش مساحة بيضاء كبيرة */
    height: 100% !important;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.12), /* خفضت الشفافية من 0.25 لـ 0.12 */
        transparent
    ) !important;
    transform: skewX(-25deg) !important;
    transition: none !important;
}

.banner-tab:hover::after {
    left: 150% !important;
    transition: all 0.9s ease-in-out !important; /* خليتها أبطأ شوية (0.9s) عشان تبان أنعم */
}

/* الحاوية */
.banner-tab{
    position: relative !important;
    overflow: hidden !important;
  
}

/* الكونفيتي */
.banner-tab::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: gold;
    border-radius: 50%;
    opacity: 0;
    z-index: 5;
}

/* عند الهوفر */
.banner-tab:hover::before{
    animation: confetti 1.2s ease-out forwards;
}

/* الانيميشن */
@keyframes confetti{
    0%{
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        box-shadow:
        0 0 gold,
        0 0 gold,
        0 0 gold,
        0 0 gold,
        0 0 gold,
        0 0 gold;
    }

    30%{
        box-shadow:
        -40px -20px gold,
        40px -30px gold,
        -30px 10px gold,
        30px 20px gold,
        -20px 30px gold,
        20px 35px gold;
    }

    100%{
        transform: translate(-50%, 120px);
        opacity: 0;
    }
}


/*  */
window.addEventListener('DOMContentLoaded', () => {
    const banner = document.querySelector('.main-banner');
    const button = banner.querySelector('.shop-button');

    // إضافة حركة للبنر
    banner.classList.add('animate-banner');

    // إضافة شعاع الضوء للزر
    button.classList.add('glow');

    // إزالة حركة البنر بعد الانتهاء حتى لا تبقى ثابتة
    setTimeout(() => {
        banner.classList.remove('animate-banner');
    }, 2000); // 2 ثانية
});


/*  */
/*  */



.s-block-banner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.s-block-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent
    );
    transform: skewX(-20deg);
    z-index: 2;
    pointer-events: none;
}

.s-block-banner:hover::after {
    left: 150%;
    transition: left 0.7s ease-in-out;
}

.s-block-banner:hover {
    filter: brightness(1.05);
    transition: filter 0.3s ease;
}




/*  */
/*  */
/*  */
/* الحاوية الأساسية - بدون أي حركات رفع */
.banner-three a {
    position: relative;
    overflow: hidden; 
    display: block;
    /* مفيش transform هنا عشان الصورة متتحركش من مكانها */
}

/* تأثير تكبير الصورة الداخلي فقط (بدون رفع العنصر) */
.banner-three a img {
    transition: transform 0.5s ease;
}

.banner-three a:hover img {
    transform: scale(1.05); /* تكبير بسيط للداخل بيدي إيحاء بالحركة من غير ما الصورة تترفع */
}

/* طبقة اللمعة الاحترافية */
.banner-three a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.7s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

/* تشغيل اللمعة عند الهوفر */
.banner-three a:hover::after {
    left: 150%;
}



/*  */

/* تنسيق الكلمة */
.natural-serum {
    position: relative;
    display: inline-block; /* لضمان أن الخط السفلي يأخذ عرض الكلمة فقط */
    font-size: 60px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    /* ظل ناعم جداً للكلمة */
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
  
}


/* ===== بانر العروض ===== */
.sale {
  position: relative;
}

/* ===== عنصر الخصم (تعديل اللابتوب  ) ===== */
.sale::after {
  content: "20%";
  position: absolute;
  top: 73%;  
  left: 77%;  
  font-size: 7vw;
  font-weight: 750;
  color: #fff;
  opacity: 0;
  z-index: 5;
}

/* ===== تشغيل الأنيميشن والألوان (ثابت للكل) ===== */
.sale.show::after {
  animation: dropDiscount 1.2s ease-out forwards,
             bounceDiscount 3s 1.2s ease-in-out infinite,
             luxuryColorShift 6s ease-in-out infinite;
}

/* ===== أنيميشن الألوان (أبيض -> الهويه -> أسود) ===== */
@keyframes luxuryColorShift {
  0%, 100% { color: #ffffff; }
  33% { color: #cf9f73; }
  66% { color: #000000; }
}

/* ========================= */
/* ===== DESKTOP KEYFRAMES ===== */
/* ========================= */

@keyframes dropDiscount {
  0% { transform: translate(-50%, -450%) scale(0.6); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

@keyframes bounceDiscount {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -15px) scale(1.05); }
}

/* ========================= */
/* ===== MOBILE ADJUSTMENTS===== */
/* ========================= */

@media screen and (max-width: 768px) {
  .sale::after {
    top: 60%;  
    left: 77%; 
    font-size: 7vw;
  }

  .sale.show::after {
    animation: dropDiscountMobile 1.2s ease-out forwards,
               bounceDiscountMobile 3s 1.2s ease-in-out infinite,
               luxuryColorShift 6s ease-in-out infinite;
  }

  @keyframes dropDiscountMobile {
    0% { transform: translate(-60%, -450%) scale(0.6); opacity: 0; }
    100% { transform: translate(-60%, 100%) scale(1); opacity: 1; }
  }

  @keyframes bounceDiscountMobile {
    0%, 100% { transform: translate(-60%, 100%) scale(1); }
    50% { transform: translate(-60%, 90%) scale(1.05); }
  }
}

/* ---------- الأزرار الافتراضية ---------- */
/* ---------- الأزرار الأساسية ---------- */
button,
.btn,
a.btn {
    background: #fff; /* أبيض افتراضي */
    color: #cf9f73;
    border-radius: 8px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ---------- أزرار التبويبات + زر أضف للسلة ---------- */
.product-tab,
.btn-tab-primary,
.salla-add-product-button {
    background: #edccae; 
    color: #cf9f73;
    border-radius: 8px;
    border: none;
    position: relative;
    overflow: hidden;
}

/* ---------- الطبقة الذهبية التدريجية ---------- */
button::before,
.btn::before,
a.btn::before,
.product-tab::before,
.btn-tab-primary::before,
.salla-add-product-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #cf9f73; 
    transition: width 0.9s ease;
    z-index: 0;
    border-radius: inherit;
}

/* ---------- نص فوق الطبقة ---------- */
button span,
.btn span,
.product-tab span,
.btn-tab-primary span,
.salla-add-product-button span {
    position: relative;
    z-index: 2;
}

/* ---------- عند hover ---------- */
button:hover::before,
.btn:hover::before,
a.btn:hover::before,
.product-tab:hover::before,
.btn-tab-primary:hover::before,
.salla-add-product-button:hover::before {
    width: 100%;
}

button:hover,
.btn:hover,
a.btn:hover {
    color: #000;
}

.product-tab:hover,
.btn-tab-primary:hover,
.salla-add-product-button:hover {
    color: #000;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ---------- زر إغلاق القائمة ---------- */
.btn--closebtn--close-sm {
    background: none !important;
    color: #cf9f73 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ---------- حركة و Animation للكروت ---------- */
.salla-products-slider .salla-product-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.salla-products-slider .salla-product-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Hover على الكروت */
.salla-products-slider .salla-product-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* ---------- الهيدر ---------- */
header nav a {
    position: relative;
    transition: color 0.3s;
}

header nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #cf9f73; /* نفس لون الأزرار */
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

/* ---------- القائمة في الموبايل ---------- */
.mobile-menu a {
    transition: color 0.3s, background 0.3s;
    position: relative;
}

.mobile-menu a:hover {
    color: #cf9f73 !important;
}

/* Hover تأثير ذهبي خفيف للخلفية */
.mobile-menu a:hover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(191, 164, 48, 0.08); /* ذهبي خفيف */
    border-radius: 5px;
    z-index: -1;
}



/*icon المميزات */
/* إزالة المسافة فوق الكاردات */
.icon{
margin-top:0 !important;
padding-top:0 !important;
}

/* الكارد */
.icon .s-block{
transition: all .4s ease;
border-radius:12px;
overflow:hidden;
position:relative;
}

/* حركة عند الهوفر */
.icon .s-block:hover{
transform: translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

/* تأثير خط ذهبي يظهر */
.icon .s-block::after{
content:"";
position:absolute;
bottom:0;
left:0;
width:0;
height:3px;
background:#edccae;
transition:.4s;
}

.icon .s-block:hover::after{
width:100%;
}

/* أنيميشن ظهور الكارد */
.icon .s-block{
animation: cardsFade .8s ease;
}

@keyframes cardsFade{
from{
opacity:0;
transform: translateY(20px);
}
to{
opacity:1;
transform: translateY(0);
}
}





/* كود html للكلمه */
  /* الحاوية الرئيسية */
.niche-divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* المسافة بين الخط والكلمة */
  
  /* المسافة (فوق وتحت) */
  padding: 15px 0; 
  margin: 0;
  
  background-color: transparent;
}

/* تنسيق الكلمة */
.niche-title-inline {
  font-family: 'Amiri', serif;
  font-size: 32px; /* حجم أنيق ومتوسط */
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1; /* لضمان عدم وجود مسافات إضافية من الخط نفسه */
}

/* الخطوط المتحركة بجانب الكلمة */
.niche-divider-row .moving-line {
  display: block;
  width: 70px; /* طول الخط */
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(181, 148, 16, 0.1) 0%, 
    rgba(181, 148, 16, 1) 50%, 
    rgba(181, 148, 16, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer-gold 2s infinite linear;
}

/* حركة التوهج الذهبي المستمرة */
@keyframes shimmer-gold {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* للموبايل: اً */
@media (max-width: 480px) {
  .niche-title-inline { font-size: 22px; }
  .niche-divider-row { gap: 10px; padding: 10px 0; }
  .moving-line { width: 30px; }
}