/* =================================================================
   🧩 components.css - المكونات الإضافية
   -----------------------------------------------------------------
   • Theme toggle (دارك مود) + Language toggle (AR/EN)
   • Footer + Floating cart + Scroll to top
   • Hero glassmorphism animations
   • Category cards (بطاقات الفئات)
   • Promo modal (العروض الترويجية)
   • Info modals (من نحن، الخصوصية، تواصل)
   • Wedding form modal (تخصيص هدية الزواج)
   ================================================================= */

/* =================================== */
/* ---  THEME & LANGUAGE TOGGLES --- */
/* =================================== */

.theme-switch-wrapper, .language-switch-wrapper {
    display: flex;
    align-items: center;
    margin-inline-end: 15px;
}

.theme-switch, .language-switch {
    position: relative;
    display: inline-block;
    height: 34px;
    cursor: pointer;
}

.theme-switch { width: 60px; }
.language-switch { width: 70px; }

.theme-switch input, .language-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* --- THEME TOGGLE (DARK/LIGHT) - المُصلح --- */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
}

.slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    bottom: 4px;
    background-color: rgba(255, 255, 255, 0.273);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider i {
    font-size: 20px;
    z-index: 1;
    transition: opacity 0.4s, color 0.4s;
}

/* الوضع الافتراضي: فاتح (Light Mode) - الدائرة على الشمس */
.slider {
    background: linear-gradient(135deg, #164c03 0%, #164c03 100%);
}

.slider::before {
    left: 4px; /* الدائرة على اليسار (فوق الشمس) */
}

.slider .fa-sun {
    opacity: 1;

    color: #FFD700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

.slider .fa-moon {
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.5);
}

/* الوضع الداكن: (Dark Mode) - الدائرة على القمر */
input:checked + .slider {
    background: linear-gradient(135deg, #164c03 0%, #164c03 100%);
}

input:checked + .slider::before {
    transform: translateX(26px); /* الدائرة تتحرك لليمين (فوق القمر) */
}

input:checked + .slider .fa-moon {
    opacity: 1;
    transform: translateX(-2px);
    color: #f1c40f;
    filter: drop-shadow(0 0 3px rgba(241, 196, 15, 0.8));
}

input:checked + .slider .fa-sun {
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.3);
}

/* لمسة جمالية */
.slider:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- LANGUAGE TOGGLE (AR/EN) --- */
.lang-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 34px;
    transition: .4s;
}

.lang-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 32px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 26px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.lang-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    transition: color 0.4s;
    pointer-events: none;
}
.lang-ar { left: 11px; }
.lang-en { right: 11px; }

/* الحالة الافتراضية (العربية مفعلة) */
input:not(:checked) + .lang-slider .lang-ar { color: #333; }
input:not(:checked) + .lang-slider .lang-en { color: #fff; }

/* عند تفعيل الإنجليزية */
input:checked + .lang-slider .lang-ar { color: #fff; }
input:checked + .lang-slider .lang-en { color: #333; }
input:checked + .lang-slider:before { transform: translateX(33px); }

/* =================================== */
/* --- MEDIA QUERIES (Responsive) --- */
/* =================================== */
@media (max-width: 1024px) {
    .product-card {
        min-width: calc((100% - 40px) / 3);
        max-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    /* 🟢 Header مدمج على الموبايل */
    header {
        padding: 0.5rem 0.75rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 🟢 اللوغو أصغر على الموبايل */
    .logo img {
        height: 38px;
        max-width: 110px;
    }

    /* 🟢 search bar في الصف التاني — أنحف وأصغر */
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .search-input {
        padding: 0.5rem 2.6rem 0.5rem 0.85rem;
        font-size: 0.88rem;
        border-radius: 7px;
    }

    [dir="rtl"] .search-input {
        padding: 0.5rem 0.85rem 0.5rem 2.6rem;
    }

    .search-btn {
        padding: 0.4rem 0.75rem;
    }

    .search-btn i {
        font-size: 0.9rem;
    }

    /* 🟢 إخفاء زر الواتساب على الموبايل لتوفير مساحة 
       (المستخدم يقدر يوصل واتساب من زر الـ checkout والـ floating-cart) */
    .whatsapp-contact {
        display: none;
    }

    /* 🟢 nav icons مدمجة أكثر */
    .nav-icons {
        gap: 10px;
    }

    .cart-icon {
        font-size: 1.4rem;
        width: 36px;
        height: 36px;
    }

    /* 🟢 Hero responsive */
    .hero-inner h2 {
        font-size: 1.7rem;
        min-height: 38px;
    }
    
    .hero-inner p {
        font-size: 0.95rem;
    }
    
    /* 🟢 Category cards responsive */
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        height: 130px;
    }
    
    .category-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .category-card-title {
        font-size: 1rem;
    }
    
    .category-card-count {
        font-size: 0.7rem;
    }

    .carousel-wrapper {
        padding: 0 50px;
    }
    
    .product-card {
        min-width: calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .detail-layout {
        flex-direction: column; 
    }
    .detail-image-column, .detail-info-column {
        min-width: 100%;
    }
    .detail-image-column {
        height: 350px; 
    }
    #detailImageContainer {
        height: 350px !important;
    }

    .detail-price-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-price-row button {
        width: 100% !important;
        margin-top: 15px;
    }

    .floating-cart-widget {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
    }
    
    [dir="rtl"] .floating-cart-widget {
        right: auto;
        left: 20px;
    }
    
    .floating-cart-icon {
        font-size: 1.5rem;
    }
    
    .floating-cart-items {
        font-size: 0.75rem;
    }
    
    .floating-cart-price {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    /* 🟢 تضييق أكثر على الشاشات الصغيرة جداً */
    header {
        padding: 0.45rem 0.6rem;
    }

    .header-container {
        gap: 6px;
    }

    .logo img {
        height: 34px;
        max-width: 95px;
    }

    .nav-icons {
        gap: 6px;
    }

    .cart-icon {
        font-size: 1.3rem;
        width: 34px;
        height: 34px;
    }

    /* 🟢 تصغير سويتشات اللغة/الدارك مود على الشاشات الضيقة */
    .theme-switch,
    .language-switch {
        transform: scale(0.85);
        transform-origin: center;
    }

    .carousel-wrapper {
        padding: 0 50px;
    }
    
    .product-card {
        min-width: 90%;
        max-width: 90%;
    }
    
    .footer-container {
        grid-template-columns: 1fr; 
    }

    .floating-cart-widget {
        bottom: 15px;
        right: 15px;
        padding: 0.7rem 1rem;
    }
    
    [dir="rtl"] .floating-cart-widget {
        right: auto;
        left: 15px;
    }
    
    .floating-cart-content {
        gap: 10px;
    }
    
    .size-options-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
#cartModal .item-name { cursor: pointer; transition: color 0.2s ease-in-out; }
#cartModal .item-name:hover { color: var(--secondary); }

/* ====== GLASSMORPHISM + ANIMATIONS ====== */
.hero {
  margin: 0 0 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* خلفية متحركة بتدرجات + فقاعات ضوء */
.hero-glass.hero-anim{
  --g1: #0b3a28;            /* أخضر داكن متوافق مع ثيمك */
  --g2: #135a3f;
  --g3: #1b6a4a;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  padding: 36px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* طبقة فقاعات 1 */
.hero-glass.hero-anim::before,
.hero-glass.hero-anim::after{
  content:"";
  position:absolute; inset:-35%;
  pointer-events:none;
}

/* فقاعات كبيرة تتحرّك ببطء */
.hero-glass.hero-anim::before{
  background:
    radial-gradient(200px 200px at 15% 25%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(260px 260px at 85% 70%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(180px 180px at 60% 10%, rgba(255,255,255,.12), transparent 60%);
  filter: blur(8px);
  animation: blobs 22s ease-in-out infinite;
}
/* فقاعات أدق وأسرع قليلاً */
.hero-glass.hero-anim::after{
  background:
    radial-gradient(140px 140px at 30% 80%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(120px 120px at 75% 35%, rgba(255,255,255,.12), transparent 60%);
  filter: blur(10px);
  animation: blobs2 16s ease-in-out infinite;
}

/* البطاقة الزجاجية */
.hero-inner{
  max-width: 1000px; margin: 0 auto;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  isolation: isolate; /* عشان الوميض يمر فوق النص فقط */
}

/* وميض مائل يمر كل فترة */
.hero-inner::after{
  content:"";
  position:absolute; inset:-40% -60%;
  background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.35) 50%, transparent 55%);
  transform: translateX(-60%) rotate(0.001deg);
  animation: shine 8s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* نص */
.hero-inner h2{ color:#fff; font-size:2rem; margin:0 0 .25rem; letter-spacing:.5px }
.hero-inner p{ color:#f3f3f3; opacity:.95; margin:0; font-size:1rem }

/* تحريك البطاقة طفو ناعم */
.anim-float{ animation: floatY 6s ease-in-out infinite }

/* مفاتيح التحريك */
@keyframes floatY{
  0%,100%{ transform: translateY(0) }
  50%{ transform: translateY(-6px) }
}
@keyframes shine{
  0%{ transform: translateX(-70%) rotate(0.001deg); opacity: .0 }
  8%{ opacity: .85 }
  20%{ transform: translateX(70%) rotate(0.001deg); opacity: .0 }
  100%{ transform: translateX(70%) rotate(0.001deg); opacity: .0 }
}
@keyframes blobs{
  0%   { transform: translate3d(0,0,0) scale(1) }
  50%  { transform: translate3d(2%, -1%, 0) scale(1.02) }
  100% { transform: translate3d(0,0,0) scale(1) }
}
@keyframes blobs2{
  0%   { transform: translate3d(0,0,0) scale(1) }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.03) }
  100% { transform: translate3d(0,0,0) scale(1) }
}

/* تباين جميل في الوضع الداكن */
html[data-theme='dark'] .hero-inner{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
html[data-theme='dark'] .hero-inner p{ color:#eaeaea; opacity:.9 }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  .anim-float,
  .hero-glass.hero-anim::before,
  .hero-glass.hero-anim::after,
  .hero-inner::after{
    animation: none !important;
  }
}
/* ====== GLASS + SHIMMER + FADE-UP + HOVER ====== */
.hero{margin:0 0 2rem; border-radius:16px; position:relative; overflow:hidden; display:block; min-height:120px}
.hero-glass.hero-anim{
  --g1:#001f12; --g2:#003a24; --g3:#0b3a28;
  background:linear-gradient(135deg,var(--g1) 0%,var(--g2) 55%,var(--g3) 100%);
  padding:36px 24px; box-shadow:0 10px 26px rgba(0,0,0,.18)
}

/* 🟢 نمط هندسي إسلامي بالخلفية */
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, transparent 18px, rgba(212, 175, 55, 0.6) 19px, rgba(212, 175, 55, 0.6) 20px, transparent 21px),
    radial-gradient(circle at 80% 70%, transparent 18px, rgba(212, 175, 55, 0.6) 19px, rgba(212, 175, 55, 0.6) 20px, transparent 21px),
    radial-gradient(circle at 50% 50%, transparent 25px, rgba(212, 175, 55, 0.5) 26px, rgba(212, 175, 55, 0.5) 27px, transparent 28px),
    radial-gradient(circle at 10% 80%, transparent 12px, rgba(212, 175, 55, 0.6) 13px, rgba(212, 175, 55, 0.6) 14px, transparent 15px),
    radial-gradient(circle at 90% 20%, transparent 12px, rgba(212, 175, 55, 0.6) 13px, rgba(212, 175, 55, 0.6) 14px, transparent 15px);
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* 🟢 شعاع ضوئي ذهبي يدور ببطء */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(212, 175, 55, 0.12) 30deg,
      transparent 60deg,
      transparent 180deg,
      rgba(212, 175, 55, 0.08) 210deg,
      transparent 240deg,
      transparent 360deg
    );
  animation: heroGlowSpin 25s linear infinite;
  mix-blend-mode: screen;
}

@keyframes heroGlowSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* فقاعات ضوء كبيرة (موجودة مسبقاً إذا استخدمتِ نسختي السابقة) */
.hero-glass.hero-anim::before,
.hero-glass.hero-anim::after{content:"";position:absolute;inset:-35%;pointer-events:none}
.hero-glass.hero-anim::before{
  background:
    radial-gradient(200px 200px at 15% 25%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(260px 260px at 85% 70%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(180px 180px at 60% 10%, rgba(255,255,255,.12), transparent 60%);
  filter:blur(8px); animation:blobs 22s ease-in-out infinite
}
.hero-glass.hero-anim::after{
  background:
    radial-gradient(140px 140px at 30% 80%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(120px 120px at 75% 35%, rgba(255,255,255,.12), transparent 60%);
  filter:blur(10px); animation:blobs2 16s ease-in-out infinite
}

/* --- 1) SHIMMER WAVES الخلفية --- */
.bg-shimmer{
  position:absolute; inset:-40% -20%; pointer-events:none; z-index:0;
  background:
    repeating-linear-gradient( 115deg,
      rgba(255,255,255,.06) 0%, rgba(255,255,255,.06) 6%,
      transparent 7%, transparent 14%
    );
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: .35;
  animation: shimmerMove 60s linear infinite alternate;
}
@keyframes shimmerMove{
  0%  { transform: translate3d(-4%, -2%, 0) rotate(.001deg) }
  50% { transform: translate3d( 3%,  2%, 0) rotate(.001deg) }
  100%{ transform: translate3d(-4%, -2%, 0) rotate(.001deg) }
}

/* --- البطاقة الزجاجية --- */
.hero-inner{
  max-width:1000px; margin:0 auto; backdrop-filter:blur(10px);
  background:rgba(255,255,255,.08); border:1px solid rgba(212, 175, 55, 0.35);
  border-radius:14px; padding:36px 28px 28px; text-align:center; position:relative; isolation:isolate;
  transform: translateZ(0); will-change: transform, box-shadow, filter, opacity;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.15);
}

/* زخرفة عربية فوق البطاقة */
.hero-ornament {
  position: absolute;
  font-size: 1.4rem;
  color: #d4af37;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  z-index: 2;
  animation: ornamentPulse 3s ease-in-out infinite;
}

.hero-ornament-top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes ornamentPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.hero-inner::after{
  content:""; position:absolute; inset:-40% -60%;
  background:linear-gradient(115deg,transparent 45%, rgba(212, 175, 55, 0.25) 50%, transparent 55%);
  transform:translateX(-60%) rotate(.001deg); animation:shine 8s ease-in-out infinite; mix-blend-mode:screen
}

/* ============ 🟢 العنوان بتدرج ذهبي 🟢 ============ */
.hero-inner h2{
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(12px);
  min-height: 48px;
  background: linear-gradient(135deg, #f4d97a 0%, #d4af37 50%, #f4d97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 2;
}

/* خط ذهبي فاصل تحت العنوان */
.hero-divider {
  width: 0;
  height: 1px;
  margin: 8px auto 14px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d4af37 30%,
    #f4d97a 50%,
    #d4af37 70%,
    transparent 100%
  );
  position: relative;
  z-index: 2;
  animation: dividerExpand 1s cubic-bezier(0.22, 0.75, 0.18, 1) 0.6s forwards;
}

.hero-divider::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d4af37;
  font-size: 0.6rem;
  background: var(--g2, #003a24);
  padding: 0 8px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

@keyframes dividerExpand {
  to { width: 60%; }
}

.hero-inner p{
  color: #f0ebe0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(14px);
  position: relative;
  z-index: 2;
  letter-spacing: 0.3px;
}

/* ============ 🟢 بطاقات فئات المنتجات ============ */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.category-card {
  position: relative;
  height: 155px;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  padding: 0;
  background-color: #002617;
  background-image: var(--cat-bg), linear-gradient(135deg, #003a24 0%, #002617 50%, #001a10 100%);
  background-size: cover, cover;
  background-position: center, center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

/* الطبقة الذهبية الشفافة فوق الصورة */
.category-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 38, 23, 0.85) 0%,
      rgba(0, 58, 36, 0.7) 50%,
      rgba(0, 31, 18, 0.85) 100%
    );
  transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}

/* خط زخرفي ذهبي بأطراف البطاقة */
.category-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 11px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.4s ease;
}

/* المحتوى */
.category-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem;
}

.category-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  color: #d4af37;
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(4px);
}

.category-card-title {
  display: block;
  color: #f4d97a;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #f4d97a 0%, #d4af37 50%, #f4d97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.4s ease;
  line-height: 1.25;
  padding: 0 6px;
  white-space: normal;
}

.category-card-count {
  display: block;
  color: rgba(240, 235, 224, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

/* ===== Hover ===== */
.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 18px 40px rgba(0, 38, 23, 0.35),
    0 0 25px rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}

/* الطبقة الذهبية تنحف عند الـ hover عشان الصورة تبين أوضح */
.category-card:hover .category-card-overlay {
  background:
    linear-gradient(
      135deg,
      rgba(0, 38, 23, 0.55) 0%,
      rgba(0, 58, 36, 0.4) 50%,
      rgba(0, 31, 18, 0.6) 100%
    );
}

.category-card:hover::before {
  border-color: rgba(212, 175, 55, 0.7);
  inset: 6px;
}

.category-card:hover .category-card-icon {
  background: rgba(212, 175, 55, 0.3);
  border-color: #f4d97a;
  color: #f4d97a;
  transform: rotate(-8deg) scale(1.1);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.category-card:hover .category-card-title {
  transform: scale(1.05);
}

.category-card:hover .category-card-count {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Active (لما تكون عند ذلك القسم) ===== */
.category-card.active {
  border-color: #d4af37;
  box-shadow:
    0 8px 28px rgba(0, 38, 23, 0.3),
    0 0 0 3px rgba(212, 175, 55, 0.25),
    0 0 30px rgba(212, 175, 55, 0.25);
}

.category-card.active::before {
  border-color: rgba(212, 175, 55, 0.7);
}

.category-card.active .category-card-icon {
  background: rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
}

/* ===== Active state: pulse animation ===== */
.category-card.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 2px solid #d4af37;
  pointer-events: none;
  z-index: 4;
  animation: cardActivePulse 2s ease-in-out infinite;
}

@keyframes cardActivePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.02); }
}

/* ===== Press ===== */
.category-card:active {
  transform: translateY(-2px) scale(0.99);
}

/* شاشة وسط: 4 بطاقات بصف (الخامسة تنزل تحت) */
@media (max-width: 1200px) {
  .category-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* تابلت: 3 بطاقات بصف */
@media (max-width: 900px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* موبايل كبير: بطاقتين بصف */
@media (max-width: 700px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* البطاقة الـ 5 (الأخيرة الفردية) تتوسط */
  .category-cards .category-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 6px);
    margin: 0 auto;
  }
}

/* موبايل صغير: نفس الإشي بس مع spacing أصغر */
@media (max-width: 380px) {
  .category-cards {
    gap: 8px;
  }
  
  .category-cards .category-card:nth-child(5):last-child {
    max-width: calc(50% - 4px);
  }
}

/* ============ نهاية بطاقات الفئات ============ */

/* ============ 🟢 أنيميشن الإضافة للسلة والمفضلة 🟢 ============ */

/* الصورة الطائرة من الزر للأيقونة */
.fly-clone {
    position: fixed;
    z-index: 9999;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    border: 2px solid #d4af37;
    transition:
        transform 0.85s cubic-bezier(0.55, -0.05, 0.45, 0.95),
        opacity 0.85s ease,
        width 0.85s cubic-bezier(0.55, -0.05, 0.45, 0.95),
        height 0.85s cubic-bezier(0.55, -0.05, 0.45, 0.95),
        border-radius 0.85s ease;
}

.fly-clone.flying {
    transform: rotate(360deg);
    width: 30px;
    height: 30px;
    opacity: 0.7;
    border-radius: 50%;
}

/* قلب طائر (للمفضلة) */
.fly-heart {
    position: fixed;
    z-index: 9999;
    font-size: 2rem;
    color: #ff4d6d;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(255, 77, 109, 0.5);
    transition:
        transform 0.85s cubic-bezier(0.55, -0.05, 0.45, 0.95),
        opacity 0.85s ease,
        font-size 0.85s ease;
}

.fly-heart.flying {
    transform: rotate(360deg) scale(0.5);
    opacity: 0.6;
    font-size: 1rem;
}

/* نبض أيقونة السلة عند الاستلام */
.cart-icon.receiving i {
    animation: cartReceive 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartReceive {
    0%   { transform: scale(1) rotate(0deg); }
    25%  { transform: scale(1.4) rotate(-12deg); filter: drop-shadow(0 0 12px #d4af37); }
    50%  { transform: scale(0.9) rotate(8deg); }
    75%  { transform: scale(1.2) rotate(-4deg); filter: drop-shadow(0 0 8px #d4af37); }
    100% { transform: scale(1) rotate(0deg); }
}

/* هالة ذهبية حول السلة عند الاستلام */
.cart-icon.receiving::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    pointer-events: none;
    animation: cartHalo 0.8s ease-out;
    z-index: -1;
}

@keyframes cartHalo {
    0%   { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.8); }
}

/* نبض المفضلة عند الاستلام (نبضة قلب) */
.cart-icon.receiving-fav i {
    animation: heartReceive 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ff4d6d !important;
}

@keyframes heartReceive {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.5); filter: drop-shadow(0 0 12px #ff4d6d); }
    40%  { transform: scale(0.9); }
    60%  { transform: scale(1.4); filter: drop-shadow(0 0 8px #ff4d6d); }
    80%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* هالة وردية حول المفضلة */
.cart-icon.receiving-fav::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #ff4d6d;
    pointer-events: none;
    animation: heartHalo 0.9s ease-out;
    z-index: -1;
}

@keyframes heartHalo {
    0%   { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(2); }
}

/* العداد ينطّ لما يزيد */
.cart-count.bumping {
    animation: countBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countBump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); background-color: #d4af37; }
    100% { transform: scale(1); }
}

/* تقليل الحركة - تعطيل الأنيميشن للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    .fly-clone, .fly-heart,
    .cart-icon.receiving i, .cart-icon.receiving-fav i,
    .cart-icon.receiving::after, .cart-icon.receiving-fav::after,
    .cart-count.bumping {
        animation: none !important;
        transition: none !important;
    }
}
/* ============ نهاية أنيميشن الإضافة ============ */

/* ============ 🟢 أنيميشن دخول الكروت 🟢 ============ */
.product-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.22, 0.75, 0.18, 1) backwards;
}

.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.12s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.19s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.26s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.33s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.40s; }

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

/* أنيميشن دخول عناصر السلة */
.cart-item {
    animation: cartItemSlideIn 0.4s cubic-bezier(0.22, 0.75, 0.18, 1);
}

@keyframes cartItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .cart-item {
    animation: cartItemSlideInRTL 0.4s cubic-bezier(0.22, 0.75, 0.18, 1);
}

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

/* أنيميشن أزرار الكمية في السلة */
.quantity-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.quantity-btn:hover {
    transform: scale(1.15);
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.quantity-btn:active {
    transform: scale(0.92);
}

/* 🟢 أزرار الكمية في الدارك مود — خلفية أوضح + بوردر ذهبي خفيف */
html[data-theme='dark'] .quantity-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 215, 110, 0.35);
    color: #f0f0f0;
}

html[data-theme='dark'] .quantity-btn:hover {
    background: #f5d76e !important;
    color: #002617 !important;
    border-color: #f5d76e !important;
}

/* 🟢 منع علوق حالة hover على شاشات اللمس */
@media (hover: none) {
    .quantity-btn:hover {
        transform: none;
        background: var(--light-gray) !important;
        color: inherit !important;
        border-color: var(--border) !important;
    }
    html[data-theme='dark'] .quantity-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #f0f0f0 !important;
        border-color: rgba(245, 215, 110, 0.35) !important;
    }
}

/* زر حذف من السلة */
.remove-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: rgba(212, 59, 26, 0.1);
    transform: rotate(15deg) scale(1.15);
    color: var(--secondary);
}

.remove-item:active {
    transform: rotate(15deg) scale(0.95);
}

/* رسالة "السلة فارغة" مع أنيميشن نبض خفيف */
.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
    animation: emptyCartPulse 3s ease-in-out infinite;
}

@keyframes emptyCartPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.08); opacity: 0.7; }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .cart-item,
    [dir="rtl"] .cart-item,
    .empty-cart i,
    .floating-cart-widget,
    .floating-cart-widget.active,
    .section-title::after {
        animation: none !important;
    }
}
/* ============ نهاية أنيميشن دخول الكروت ============ */

/* ============ 🟢 أنيميشن الحذف من السلة والمفضلة 🟢 ============ */

/* حذف عنصر السلة - يطير للجانب ويتقلص ارتفاعه */
.cart-item.removing {
    animation: cartItemRemove 0.5s cubic-bezier(0.55, 0, 0.6, 0.4) forwards;
    overflow: hidden;
    pointer-events: none;
}

@keyframes cartItemRemove {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: inherit;
        padding-bottom: inherit;
    }
    50% {
        opacity: 0;
        transform: translateX(120%);
        max-height: 200px;
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: 0;
    }
}

/* بالعربي يطير لليسار */
[dir="rtl"] .cart-item.removing {
    animation-name: cartItemRemoveRTL;
}

@keyframes cartItemRemoveRTL {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
    }
    50% {
        opacity: 0;
        transform: translateX(-120%);
        max-height: 200px;
    }
    100% {
        opacity: 0;
        transform: translateX(-120%);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: 0;
    }
}

/* حذف من المفضلة - يتقلص + يتلاشى + قلب مكسور صغير يطلع منه */
.cart-item.removing-fav {
    animation: favItemRemove 0.55s cubic-bezier(0.55, 0, 0.6, 0.4) forwards;
    overflow: hidden;
    pointer-events: none;
    position: relative;
}

@keyframes favItemRemove {
    0% {
        opacity: 1;
        transform: scale(1);
        max-height: 200px;
    }
    40% {
        opacity: 0.5;
        transform: scale(0.85) rotate(-3deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(-5deg);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: 0;
    }
}

/* قلب مكسور يطلع من العنصر المحذوف من المفضلة */
.cart-item.removing-fav::before {
    content: '💔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    z-index: 5;
    animation: brokenHeartPop 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes brokenHeartPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    40%  { transform: translate(-50%, -80%) scale(1.4); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(0.6); opacity: 0; }
}

/* العداد ينقص بنبضة حمراء */
.cart-count.bumping-down {
    animation: countBumpDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countBumpDown {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.7); background-color: #aaa; }
    100% { transform: scale(1); }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .cart-item.removing,
    .cart-item.removing-fav,
    .cart-item.removing-fav::before,
    .cart-count.bumping-down {
        animation: none !important;
    }
    .cart-item.removing,
    .cart-item.removing-fav {
        opacity: 0;
    }
}
/* ============ نهاية أنيميشن الحذف ============ */

/* ============ 🟢 أنيميشن إزالة من المفضلة على الكرت 🟢 ============ */
/* لما تضغط على القلب وهو نشط، يطلع منه قلب صغير ويختفي */
.favorite-btn.unfaving .fa-heart {
    animation: heartBreak 0.55s cubic-bezier(0.55, 0, 0.6, 0.4);
}

@keyframes heartBreak {
    0%   { transform: scale(1); color: #e23d28; }
    25%  { transform: scale(1.4) rotate(-8deg); color: #e23d28; }
    50%  { transform: scale(0.6) rotate(8deg); opacity: 0.5; }
    75%  { transform: scale(0.9); opacity: 1; color: #ccc; }
    100% { transform: scale(1); color: #ccc; }
}

/* قلب مكسور صغير يطلع من الزر للأعلى ويختفي */
.favorite-btn.unfaving::after {
    content: '💔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.2rem;
    pointer-events: none;
    animation: heartBreakFly 0.7s ease-out forwards;
    z-index: 11;
}

@keyframes heartBreakFly {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30%  { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    100% { transform: translate(-50%, -200%) scale(0.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .favorite-btn.unfaving .fa-heart,
    .favorite-btn.unfaving::after {
        animation: none !important;
    }
}
/* ============ نهاية أنيميشن الإزالة من الكرت ============ */


/* --- 2) FADE-IN-UP عند تحميل الصفحة --- */
.hero-inner.enter h2{ animation:fadeUp .8s cubic-bezier(.22,.75,.18,1) .05s forwards }
.hero-inner.enter p { animation:fadeUp .8s cubic-bezier(.22,.75,.18,1) .15s forwards }
@keyframes fadeUp{
  to{ opacity:1; transform:translateY(0) }
}

/* طفو خفيف افتراضي */
.anim-float{ animation:floatY 6s ease-in-out infinite }
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* وميض مائل دوري */
@keyframes shine{0%{transform:translateX(-70%) rotate(.001deg);opacity:0}8%{opacity:.85}20%,100%{transform:translateX(70%) rotate(.001deg);opacity:0}}
@keyframes blobs{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(2%,-1%,0) scale(1.02)}}
@keyframes blobs2{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-2%,1%,0) scale(1.03)}}

/* --- 3) HOVER INTERACTION --- */
.hero-inner:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.hero-inner.hover-tilt{ transition: transform .12s ease-out }
.hero-inner.hover-tilt.leave{ transition: transform .28s ease; transform: translateY(-2px) scale(1.005) rotateX(0deg) rotateY(0deg) }

/* وضع داكن */
html[data-theme='dark'] .hero-inner{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14)}
html[data-theme='dark'] .hero-inner p{color:#eaeaea; opacity:.9}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  .anim-float, .hero-glass.hero-anim::before, .hero-glass.hero-anim::after, .hero-inner::after, .bg-shimmer,
  .hero-glow, .hero-ornament, .hero-divider,
  .hero-inner.enter h2, .hero-inner.enter p{ animation:none!important; transform:none!important; opacity:1!important }
  .hero-divider { width: 60%; }
}

.clear-all-btn {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 1rem auto;
  display: block;
  transition: background 0.3s;
}
.clear-all-btn:hover {
  background: #d33;
}


/* --- 🟢 Typewriter Effect (الكود الجديد المضاف) 🟢 --- */
.typewriter-container {
    /* يضمن أن h2 له ارتفاع حتى لو كان فارغاً */
    min-height: 1.2em; /* 1.2 * 1.8rem */
    position: relative;
}

#typewriter-text::after {
    content: '|';
    display: inline-block;
    margin-inline-start: 4px; /* ليعمل مع RTL و LTR */
    color: #f1c40f; /* لون ذهبي للمؤشر */
    animation: blink-caret 0.75s infinite;
}

@keyframes blink-caret {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

/* --- 🟢 السهم الجديد للصعود للأعلى 🟢 --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--secondary) 0%, #b83216 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212, 59, 26, 0.35);

    visibility: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 998;
}

[dir="rtl"] .scroll-to-top {
    left: auto;
    right: 30px;
}

.scroll-to-top.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #b83216 0%, var(--secondary) 100%);
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 12px 28px rgba(212, 59, 26, 0.55);
}

.scroll-to-top:hover i {
    animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}
/* --- 🟢 إصلاح اتجاه رقم الهاتف والإيميل في الفوتر 🟢 --- */
[dir="rtl"] .footer-col:nth-child(1) ul li a {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}
/* --- Black Friday Promo Modal — Turfa Theme (Deep Green + Gold) --- */

#promoModal .cart-content {
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(212, 59, 26, 0.06) 0%, transparent 50%),
        linear-gradient(145deg, #002617 0%, #003a24 50%, #001f12 100%);
    border: 2px solid #d4af37;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.2),
        inset 0 0 40px rgba(212, 175, 55, 0.04);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    animation: promoBoxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* لمعان ذهبي خفيف يمر فوق الصندوق */
#promoModal .cart-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%
    );
    animation: goldShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes goldShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* زخرفة عربية بسيطة بزوايا الصندوق */
#promoModal .cart-content::after {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

#promoModal .cart-header {
    background: linear-gradient(90deg, #001f12 0%, #003a24 50%, #001f12 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding: 1.3rem 1.5rem;
    position: relative;
    z-index: 2;
}

#promoModal .cart-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #d4af37 20%,
        #f4d97a 50%,
        #d4af37 80%,
        transparent 100%
    );
}

#promoModal .close-cart {
    color: #d4af37 !important;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
    background: transparent !important;
}

#promoModal .close-cart:hover {
    color: #f4d97a !important;
    transform: rotate(90deg);
}

#promoTitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f4d97a;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
    margin: 0;
}

#promoModal .detail-container {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

#promoContent h3 {
    color: #d4af37;
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f4d97a 0%, #d4af37 50%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.2); }
}

#promoContent p {
    color: #f0ebe0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}

#promoCountdown {
    color: #d4af37 !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    padding: 15px;
    border-top: 1px dashed rgba(212, 175, 55, 0.35);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.35);
    margin: 15px 0 25px 0;
}

#closePromoBtn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d97a 50%, #d4af37 100%) !important;
    background-size: 200% 200% !important;
    color: #002617 !important;
    border: none !important;
    transition: all 0.4s ease;
    padding: 1.1rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 50px !important;
    box-shadow:
        0 8px 25px rgba(212, 175, 55, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    animation: btnGoldShift 3s ease infinite;
}

@keyframes btnGoldShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

#closePromoBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(212, 175, 55, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.1);
}

/* --- Countdown Timer Styles --- */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.countdown-timer > div {
    background: linear-gradient(145deg, #003a24 0%, #002617 100%);
    color: #d4af37;
    padding: 12px 18px;
    border-radius: 10px;
    min-width: 70px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.countdown-timer span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #ffd700; /* لون ذهبي للوقت */
}

.countdown-timer small {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
    opacity: 0.9;
}
/* --- Color Selector --- */
.product-color-select {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-color-select label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.color-options-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.color-option-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-option-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-option-circle.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 4px 10px rgba(0,0,0,0.25);
    transform: scale(1.1);
}

.selected-color-name {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}


/* ============================= */
/* ====================================================== */
/* 🟢 قسم العروض (Auto-Scrolling Offers Section) 🟢      */
/* ====================================================== */

/* --- عنوان قسم العروض المميّز --- */
.offers-title {
    /* نلغي display: inline-block المتوارث من .section-title */
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 2rem;
    /* نلغي الـ width: 100% من .section-title عشان الخط تحت يطلع بقد العنوان بس */
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
}

/* نخفي الـ ::after الافتراضي من section-title لأنه بيطلع بشكل غريب مع flex/RTL،
   وبدلو رح نحط خط أنيق تحت العنوان كله */
.offers-title::after {
    display: none !important;
}

/* الخط الذهبي المتحرك تحت العنوان كله */
.offers-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    width: 100%;
}

.offers-title-wrap .offers-title {
    margin-bottom: 0 !important;
}

.offers-title .offers-title-text {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #d4af37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: offersTextShine 3s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.offers-title-underline {
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 0.5rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary) 30%,
        #d4af37 50%,
        var(--primary) 70%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: 2px;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes offersTextShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* شارة النار النابضة بجانب العنوان */
.offers-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff3d3d 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
    animation: offersBadgePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
    /* نخلي الأيقونة تتمركز كويس */
    line-height: 1;
}

.offers-badge i {
    /* تأكيد ظهور أيقونة Font Awesome */
    display: inline-block;
    line-height: 1;
}

@keyframes offersBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(255, 107, 53, 0.45);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 22px rgba(255, 107, 53, 0.65);
    }
}

/* --- الكاروسيل ذاتي السكرول --- */
.offers-wrapper {
    /* ما نحتاج padding للأزرار لأنه ما في أزرار للتحكم */
    padding: 0 !important;
    position: relative;
    /* قص ناعم على الأطراف */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
}

.offers-grid {
    /* تعطيل scroll-snap لأن السكرول مستمر تلقائي */
    scroll-snap-type: none !important;
    /* سكرول ناعم لما المستخدم يسحب يدوياً */
    scroll-behavior: auto;
    cursor: grab;
}

.offers-grid:active {
    cursor: grabbing;
}

/* البطاقات داخل العروض: نلغي الـ animation-delay للظهور المتدرج
   لأنه مع المضاعفة بصير في تأخير غريب على النسخ المستنسخة */
.offers-grid .product-card {
    animation: none !important;
    opacity: 1;
}

/* تحريك خفيف لما يمر السكرول على البطاقة (إحساس "حياة") */
.offers-grid .product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offers-grid .product-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* --- شريط "خصم" متحرك على بطاقات العروض --- */
.offers-grid .product-card::after {
    content: '50%';
    position: absolute;
    top: 12px;
    /* في RTL يكون لليمين، في LTR لليسار */
    inset-inline-start: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff3d3d 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255, 61, 61, 0.35);
    z-index: 5;
    pointer-events: none;
    animation: offerTagFloat 2.5s ease-in-out infinite;
}

@keyframes offerTagFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-3px) rotate(3deg); }
}

/* --- استجابة الموبايل --- */
@media (max-width: 768px) {
    .offers-title {
        font-size: 1.6rem;
        gap: 10px;
    }
    .offers-badge {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .offers-wrapper {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 30px,
            #000 calc(100% - 30px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 30px,
            #000 calc(100% - 30px),
            transparent 100%
        );
    }
    .offers-grid .product-card::after {
        font-size: 0.75rem;
        padding: 4px 9px;
    }
}

/* --- احترام تفضيل تقليل الحركة --- */
@media (prefers-reduced-motion: reduce) {
    .offers-badge,
    .offers-title .offers-title-text,
    .offers-grid .product-card::after {
        animation: none !important;
    }
}

/* ====================================================== */
/* 🟢 موديلات من نحن وسياسة الخصوصية (Info Modals) 🟢      */
/* ====================================================== */

/* الخلفية المعتمة خلف الموديل (overlay) - تأكيد إنها معتمة */
.info-modal {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* الحاوية الرئيسية - بنفس بنية cart-modal لكن بدزاين أنيق */
.info-modal .info-content {
    max-width: 720px;
    width: 92%;
    height: auto;
    max-height: 88vh;
    margin: 4vh auto;
    border-radius: 18px;
    overflow: hidden;
    /* ✅ خلفية معتمة كاملة */
    background: var(--card-bg, #ffffff) !important;
    box-shadow:
        0 30px 80px rgba(0, 38, 23, 0.45),
        0 0 0 1px rgba(212, 175, 55, 0.18);
    display: flex;
    flex-direction: column;
}

/* رأس الموديل بدزاين كلاسيكي */
.info-header {
    background: linear-gradient(135deg, #002617 0%, #003d24 50%, #002617 100%) !important;
    color: #fff !important;
    padding: 1.5rem 2rem !important;
    position: relative;
    border-bottom: 3px solid #d4af37;
    flex-shrink: 0;
}

.info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.info-header h2 {
    color: #d4af37 !important;
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-header .close-cart {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.4rem !important;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.info-header .close-cart:hover {
    background: #d4af37 !important;
    color: #002617 !important;
    transform: rotate(90deg) scale(1.05);
    border-color: #d4af37;
}

/* جسم الموديل القابل للسكرول */
.info-body {
    padding: 2rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex: 1;
    /* ✅ خلفية معتمة */
    background: var(--card-bg, #ffffff);
    position: relative;
}

/* شريط السكرول داخل الموديل */
.info-body::-webkit-scrollbar {
    width: 8px;
}
.info-body::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.08);
    border-radius: 4px;
}
.info-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8860b);
    border-radius: 4px;
}

/* الزخرفة العلوية */
.info-decor-top {
    text-align: center;
    margin-bottom: 1rem;
}

.info-ornament {
    color: #d4af37;
    font-size: 1.6rem;
    display: inline-block;
    animation: ornamentFloat 3s ease-in-out infinite;
}

@keyframes ornamentFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50%      { transform: translateY(-4px) rotate(8deg); opacity: 1; }
}

/* نص المقدمة */
.info-intro {
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 580px;
    margin: 0 auto 1.5rem;
    padding: 0.5rem 1rem;
    position: relative;
}

.info-intro::before,
.info-intro::after {
    content: '"';
    color: #d4af37;
    font-size: 2.5rem;
    font-family: Georgia, serif;
    position: absolute;
    opacity: 0.4;
    line-height: 1;
}

.info-intro::before {
    top: -8px;
    inset-inline-start: -4px;
}

.info-intro::after {
    bottom: -22px;
    inset-inline-end: -4px;
}

/* الفاصل الزخرفي */
.info-divider {
    width: 100%;
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.4) 30%,
        var(--primary) 50%,
        rgba(212, 175, 55, 0.4) 70%,
        transparent 100%
    );
    position: relative;
}

.info-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg, #ffffff);
    padding: 0 12px;
    color: #d4af37;
    font-size: 0.9rem;
}

/* الأقسام */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin: 1.5rem 0;
}

.info-section {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* أنيميشن الظهور المتدرج */
    opacity: 0;
    transform: translateY(20px);
    animation: infoSectionFadeIn 0.6s ease forwards;
    animation-delay: var(--info-delay, 0ms);
}

@keyframes infoSectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-section:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 38, 23, 0.08);
}

.info-section-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002617 0%, #003d24 100%);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0, 38, 23, 0.25);
    border: 2px solid #d4af37;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-section:hover .info-section-icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.info-section-text {
    flex: 1;
    min-width: 0;
}

.info-section-text h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.info-section-text h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    inset-inline-start: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
    border-radius: 2px;
}

.info-section-text p {
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
    opacity: 0.9;
}

/* النص الختامي */
.info-closing {
    text-align: center;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 1rem auto 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(0, 38, 23, 0.05) 100%
    );
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

/* --- استجابة الموبايل --- */
@media (max-width: 768px) {
    .info-modal .info-content {
        width: 96%;
        max-height: 92vh;
        margin: 2vh auto;
        border-radius: 14px;
    }
    .info-header {
        padding: 1.2rem 1.4rem !important;
    }
    .info-header h2 {
        font-size: 1.35rem !important;
    }
    .info-body {
        padding: 1.5rem 1.2rem 1.8rem;
    }
    .info-intro {
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
    }
    .info-section {
        padding: 1rem;
        gap: 0.9rem;
    }
    .info-section-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .info-section-text h3 {
        font-size: 1.05rem;
    }
    .info-section-text p {
        font-size: 0.92rem;
    }
}

/* --- وضع الليل (Dark Mode) --- */
html[data-theme='dark'] .info-modal .info-content {
    background: var(--card-bg);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.25);
}

html[data-theme='dark'] .info-section {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.18);
}

html[data-theme='dark'] .info-section:hover {
    background: rgba(212, 175, 55, 0.1);
}

html[data-theme='dark'] .info-divider::after {
    background: var(--card-bg);
}

html[data-theme='dark'] .info-section-text h3 {
    color: #d4af37;
}

/* 🟢 النص الختامي في موديل "من نحن" — ذهبي فاتح للقراءة على الخلفية الداكنة */
html[data-theme='dark'] .info-closing {
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.45);
}

/* --- احترام تفضيل تقليل الحركة --- */
@media (prefers-reduced-motion: reduce) {
    .info-section,
    .info-ornament {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =================================================================
   🟢 COMING SOON MODAL — تنسيقات مودال "قريباً" لمجموعات الفوتر
   ================================================================= */

/* أيقونة كبيرة في وسط المودال مع حلقة دائرية متحركة */
.coming-soon-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 1.5rem;
    position: relative;
    width: 110px;
    height: 110px;
}

.coming-soon-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(212, 175, 55, 0.05) 60%,
        transparent 100%
    );
    animation: comingSoonPulse 2.6s ease-in-out infinite;
}

.coming-soon-icon-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.55);
    animation: comingSoonRotate 14s linear infinite;
}

.coming-soon-icon {
    font-size: 2.6rem;
    color: #c9a84c;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(201, 168, 76, 0.35));
    animation: comingSoonFloat 3.2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

@keyframes comingSoonRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes comingSoonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* محتوى الرسالة */
.coming-soon-body {
    text-align: center;
    padding: 0 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.coming-soon-message {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin: 0 0 1rem;
}

.coming-soon-sub {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    opacity: 0.75;
    margin: 0 0 1.5rem;
    font-style: italic;
}

/* الشارة السفلية: متى رح يتوفر */
.coming-soon-eta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    font-weight: 600;
    color: #b58f30;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.coming-soon-eta i {
    font-size: 1rem;
    animation: comingSoonHourglass 2.5s ease-in-out infinite;
}

@keyframes comingSoonHourglass {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* رابط واتساب في الأسفل */
.coming-soon-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.7rem;
    padding: 0.55rem 1.2rem;
    background: #25D366;
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.coming-soon-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* --- الوضع الداكن --- */
html[data-theme='dark'] .coming-soon-icon {
    color: #e8c878;
    filter: drop-shadow(0 2px 8px rgba(232, 200, 120, 0.4));
}

html[data-theme='dark'] .coming-soon-icon-ring {
    background: radial-gradient(
        circle at center,
        rgba(232, 200, 120, 0.22) 0%,
        rgba(232, 200, 120, 0.06) 60%,
        transparent 100%
    );
}

html[data-theme='dark'] .coming-soon-icon-ring::before {
    border-color: rgba(232, 200, 120, 0.6);
}

html[data-theme='dark'] .coming-soon-eta {
    background: linear-gradient(135deg,
        rgba(232, 200, 120, 0.15) 0%,
        rgba(232, 200, 120, 0.05) 100%);
    border-color: rgba(232, 200, 120, 0.45);
    color: #e8c878;
}

/* --- موبايل --- */
@media (max-width: 768px) {
    .coming-soon-icon-wrap {
        width: 90px;
        height: 90px;
    }
    .coming-soon-icon {
        font-size: 2.2rem;
    }
    .coming-soon-message {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .coming-soon-icon-ring,
    .coming-soon-icon-ring::before,
    .coming-soon-icon,
    .coming-soon-eta i {
        animation: none !important;
    }
}

/* =================================================================
   🟢 CONTACT US MODAL — كروت قنوات التواصل
   ================================================================= */

.contact-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0.5rem 0;
    max-width: 620px;
    margin: 0 auto;
}

/* الكرت الأساسي */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1rem 1.2rem;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 14px;
    text-decoration: none !important;
    color: var(--text) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: contactCardEnter 0.5s ease forwards;
    animation-delay: var(--contact-delay, 0ms);
}

@keyframes contactCardEnter {
    to { opacity: 1; transform: translateY(0); }
}

/* خط لوني جانبي خاص بكل قناة */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--contact-color, #c9a84c);
    transition: width 0.3s ease;
}

/* الموقع الجانبي حسب اتجاه اللغة */
html[dir="rtl"] .contact-card::before { right: 0; }
html[dir="ltr"] .contact-card::before { left: 0; }

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--contact-color, #c9a84c);
}

.contact-card:hover::before {
    width: 6px;
}

/* أيقونة في دائرة ملونة */
.contact-card-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--contact-bg, rgba(201, 168, 76, 0.12));
    color: var(--contact-color, #c9a84c);
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* النص */
.contact-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.contact-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--contact-color, #c9a84c);
    font-weight: 600;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

html[dir="rtl"] .contact-card-value {
    text-align: right;
}

.contact-card-desc {
    font-size: 0.82rem;
    color: var(--text);
    opacity: 0.65;
    margin-top: 2px;
}

/* السهم */
.contact-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    color: var(--contact-color, #c9a84c);
    transform: translateX(var(--arrow-shift, 4px));
}

html[dir="rtl"] .contact-card:hover .contact-card-arrow {
    transform: translateX(-4px);
}

/* --- ألوان كل قناة --- */
.contact-whatsapp {
    --contact-color: #25D366;
    --contact-bg: rgba(37, 211, 102, 0.12);
}

.contact-phone {
    --contact-color: #4a90e2;
    --contact-bg: rgba(74, 144, 226, 0.12);
}

.contact-email {
    --contact-color: #ea4335;
    --contact-bg: rgba(234, 67, 53, 0.12);
}

.contact-instagram {
    --contact-color: #e1306c;
    --contact-bg: rgba(225, 48, 108, 0.12);
}

.contact-facebook {
    --contact-color: #1877f2;
    --contact-bg: rgba(24, 119, 242, 0.12);
}

/* --- الوضع الداكن --- */
html[data-theme='dark'] .contact-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .contact-card-icon {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .contact-whatsapp .contact-card-icon {
    background: rgba(37, 211, 102, 0.18);
}
html[data-theme='dark'] .contact-phone .contact-card-icon {
    background: rgba(74, 144, 226, 0.18);
}
html[data-theme='dark'] .contact-email .contact-card-icon {
    background: rgba(234, 67, 53, 0.18);
    --contact-color: #ff6b5c;
}
html[data-theme='dark'] .contact-instagram .contact-card-icon {
    background: rgba(225, 48, 108, 0.18);
}
html[data-theme='dark'] .contact-facebook .contact-card-icon {
    background: rgba(24, 119, 242, 0.18);
    --contact-color: #4a9eff;
}

/* --- موبايل --- */
@media (max-width: 768px) {
    .contact-card {
        padding: 0.85rem 1rem;
        gap: 12px;
    }
    .contact-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    .contact-card-title {
        font-size: 1rem;
    }
    .contact-card-value {
        font-size: 0.88rem;
    }
    .contact-card-desc {
        font-size: 0.78rem;
    }
    .contact-card-arrow {
        display: none;
    }
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .contact-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .contact-card:hover {
        transform: none !important;
    }
    .contact-card:hover .contact-card-icon {
        transform: none !important;
    }
}
/* =================================================================
   🟢 WEDDING ANNIVERSARY CUSTOMIZATION FORM (موديل عيد الزواج)
   ================================================================= */

.wedding-form-modal .wedding-form-content {
    max-width: 540px;
    width: 92%;
    height: auto;
    max-height: 92vh;
    margin: auto;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 30px 80px rgba(212, 59, 26, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header gradient أنيق ورومانسي */
.wedding-form-header {
    background: linear-gradient(135deg, #d43b1a 0%, #b8331a 50%, #8a1d1d 100%);
    color: #fff;
    padding: 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.wedding-form-header::before {
    content: "";
    position: absolute;
    top: -40%;
    inset-inline-end: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.wedding-form-header::after {
    content: "❤";
    position: absolute;
    bottom: -20px;
    inset-inline-start: -10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    transform: rotate(-15deg);
}

.wedding-form-header-text {
    flex: 1;
    z-index: 1;
    position: relative;
}

.wedding-form-header h2 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
}

.wedding-form-header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
}

.wedding-form-header .close-cart {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
}

.wedding-form-header .close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body */
.wedding-form-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* معاينة المنتج */
.wedding-form-product-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.06) 0%, rgba(212, 59, 26, 0.02) 100%);
    border: 1px solid rgba(212, 59, 26, 0.12);
    border-radius: 14px;
    padding: 0.7rem;
    margin-bottom: 1.1rem;
}

.wedding-form-product-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.wedding-form-product-info h3 {
    margin: 0 0 3px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.wedding-form-product-info span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--secondary);
}

/* الحقول */
.wedding-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wedding-form-row {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}

.wedding-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.wedding-form-field.full-width {
    width: 100%;
}

.wedding-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wedding-form-field label .required-star {
    color: var(--secondary);
    font-weight: 700;
}

/* حقول الحرف الأول/الثاني — تصميم خاص أكبر ووسط */
.wedding-form-row .wedding-form-field input {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    height: 64px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    transition: all 0.25s;
    font-family: inherit;
    width: 100%;
}

.wedding-form-row .wedding-form-field input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 59, 26, 0.12);
    transform: translateY(-1px);
}

/* قلب يفصل بين الحرفين */
.wedding-form-heart {
    width: 36px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary);
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.18); }
    40% { transform: scale(0.95); }
    60% { transform: scale(1.12); }
}

/* حقل النص الكبير (textarea) */
.wedding-form-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: all 0.25s;
    box-sizing: border-box;
}

.wedding-form-field textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 59, 26, 0.10);
}

.wedding-form-field textarea {
    resize: vertical;
    min-height: 56px;
    line-height: 1.5;
}

/* حالة الخطأ */
.wedding-form-field input.field-error,
.wedding-form-field textarea.field-error,
.wedding-date-trigger.field-error {
    border-color: #d9534f !important;
    background: rgba(217, 83, 79, 0.05);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.wedding-form-hint {
    font-size: 0.78rem;
    color: #888;
    margin: 0.3rem 0 0;
    font-style: italic;
}

.wedding-form-error {
    font-size: 0.88rem;
    color: #d9534f;
    margin: 0.4rem 0 0;
    font-weight: 600;
    display: none;
    background: rgba(217, 83, 79, 0.08);
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    border-inline-start: 3px solid #d9534f;
}

.wedding-form-error.show {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.wedding-form-footer {
    display: flex;
    gap: 0.7rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    flex-shrink: 0;
}

.wedding-form-cancel {
    padding: 0.85rem 1.4rem;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    flex-shrink: 0;
}

.wedding-form-cancel:hover {
    background: var(--light-gray);
    border-color: #aaa;
}

.wedding-form-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0, 38, 23, 0.25);
}

.wedding-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 38, 23, 0.35);
}

.wedding-form-submit:active {
    transform: translateY(0);
}

/* تفاصيل التخصيص بسلعة السلة */
.wedding-cart-details {
    margin-top: 6px;
    padding: 7px 10px;
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.07) 0%, rgba(212, 59, 26, 0.03) 100%);
    border-inline-start: 3px solid var(--secondary);
    border-radius: 7px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.wedding-cart-line {
    color: #555;
    margin: 1px 0;
}

.wedding-cart-line strong {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wedding-custom-text-line {
    color: #555;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed rgba(212, 59, 26, 0.2);
    font-style: italic;
}

/* Dark mode */
html[data-theme='dark'] .wedding-form-modal .wedding-form-content {
    background: #1a1a1a;
}

html[data-theme='dark'] .wedding-form-row .wedding-form-field input,
html[data-theme='dark'] .wedding-form-field input[type="date"],
html[data-theme='dark'] .wedding-form-field textarea {
    background: #2a2a2a;
    color: #f0f0f0;
    border-color: #3a3a3a;
}

html[data-theme='dark'] .wedding-form-row .wedding-form-field input {
    color: #ffd9c8;
}

html[data-theme='dark'] .wedding-form-product-preview {
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.12) 0%, rgba(212, 59, 26, 0.05) 100%);
    border-color: rgba(212, 59, 26, 0.25);
}

html[data-theme='dark'] .wedding-form-cancel {
    color: #e0e0e0;
    border-color: #3a3a3a;
}

html[data-theme='dark'] .wedding-form-cancel:hover {
    background: #2a2a2a;
}

html[data-theme='dark'] .wedding-form-footer {
    background: #1a1a1a;
    border-top-color: #2a2a2a;
}

html[data-theme='dark'] .wedding-cart-details {
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.13) 0%, rgba(212, 59, 26, 0.05) 100%);
}

html[data-theme='dark'] .wedding-cart-line,
html[data-theme='dark'] .wedding-custom-text-line {
    color: #c8c8c8;
}

html[data-theme='dark'] .wedding-cart-line strong {
    color: #ffd9c8;
}

/* Responsive — موبايل */
@media (max-width: 480px) {
    .wedding-form-modal .wedding-form-content {
        width: 96%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .wedding-form-header {
        padding: 1.2rem 1rem;
    }

    .wedding-form-header h2 {
        font-size: 1.25rem;
    }

    .wedding-form-header p {
        font-size: 0.78rem;
    }

    .wedding-form-body {
        padding: 1rem;
    }

    .wedding-form-row .wedding-form-field input {
        font-size: 1.4rem;
        height: 56px;
    }

    .wedding-form-heart {
        width: 28px;
        height: 56px;
        font-size: 1.25rem;
    }

    .wedding-form-footer {
        padding: 0.85rem 1rem;
        flex-direction: column-reverse;
    }

    .wedding-form-cancel,
    .wedding-form-submit {
        width: 100%;
    }
}

/* =================================================================
   🟢 WEDDING DATE PICKER - مودرن، 3 wheels
   ================================================================= */

.wedding-date-picker {
    position: relative;
    width: 100%;
}

/* الزر الرئيسي (trigger) */
.wedding-date-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--text);
    transition: all 0.25s;
    text-align: start;
}

.wedding-date-trigger:hover {
    border-color: rgba(212, 59, 26, 0.4);
    background: rgba(212, 59, 26, 0.02);
}

.wedding-date-trigger.open {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(212, 59, 26, 0.10);
}

.wedding-date-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, #b8331a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(212, 59, 26, 0.3);
}
.wedding-date-icon i.fa-calendar-heart::before {
    content: "\f274"; /* fallback لـ fa-calendar-alt */
}

.wedding-date-display {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.wedding-date-display.placeholder {
    color: #999;
    font-weight: 400;
}

.wedding-date-chevron {
    color: #999;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.wedding-date-trigger.open .wedding-date-chevron {
    transform: rotate(180deg);
    color: var(--secondary);
}

/* Dropdown */
.wedding-date-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15), 0 4px 14px rgba(212, 59, 26, 0.12);
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

.wedding-date-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Cols */
.wedding-date-cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 0;
    padding: 0.6rem 0.6rem 0.4rem;
    background: linear-gradient(180deg, rgba(212, 59, 26, 0.04) 0%, transparent 60%);
    position: relative;
}

/* خط أفقي يمر بالنص اللي بحدد العنصر المختار (decoration) */
.wedding-date-cols::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: 8px;
    height: 38px;
    transform: translateY(-50%);
    margin-top: 14px; /* تعويض labels */
    background: linear-gradient(90deg,
        rgba(212, 59, 26, 0.08) 0%,
        rgba(212, 59, 26, 0.14) 50%,
        rgba(212, 59, 26, 0.08) 100%);
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
}

.wedding-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wedding-date-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    padding: 3px 10px;
    background: rgba(212, 59, 26, 0.08);
    border-radius: 50px;
}

/* الـ wheel — قائمة قابلة للتمرير */
.wedding-date-wheel {
    width: 100%;
    height: 175px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 65px 4px;  /* padding كبير عشان يعطي إحساس "wheel" */
    box-sizing: border-box;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    mask-image: linear-gradient(180deg,
        transparent 0%,
        #000 25%,
        #000 75%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0%,
        #000 25%,
        #000 75%,
        transparent 100%);
}

.wedding-date-wheel::-webkit-scrollbar {
    display: none;
}

.wedding-date-item {
    display: block;
    width: 100%;
    padding: 8px 4px;
    text-align: center;
    border: none;
    background: transparent;
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    border-radius: 8px;
    position: relative;
}

.wedding-date-item:hover {
    color: var(--text);
    background: rgba(212, 59, 26, 0.06);
}

.wedding-date-item.selected {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.12) 0%, rgba(212, 59, 26, 0.05) 100%);
    transform: scale(1.05);
}

.wedding-date-item.selected::before {
    content: "";
    position: absolute;
    inset-inline-start: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(212, 59, 26, 0.2);
}

/* أزرار تحت */
.wedding-date-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.015));
}

.wedding-date-clear,
.wedding-date-confirm {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    border: none;
}

.wedding-date-clear {
    background: transparent;
    color: #888;
    border: 1.5px solid var(--border);
}

.wedding-date-clear:hover {
    background: var(--light-gray);
    color: var(--text);
}

.wedding-date-confirm {
    background: linear-gradient(135deg, var(--secondary) 0%, #b8331a 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(212, 59, 26, 0.25);
}

.wedding-date-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(212, 59, 26, 0.35);
}

.wedding-date-confirm:active {
    transform: translateY(0);
}

/* Dark mode */
html[data-theme='dark'] .wedding-date-trigger {
    background: #2a2a2a;
    color: #f0f0f0;
    border-color: #3a3a3a;
}

html[data-theme='dark'] .wedding-date-trigger:hover {
    background: #303030;
}

html[data-theme='dark'] .wedding-date-display {
    color: #f0f0f0;
}

html[data-theme='dark'] .wedding-date-display.placeholder {
    color: #777;
}

html[data-theme='dark'] .wedding-date-dropdown {
    background: #1f1f1f;
    border-color: #333;
}

html[data-theme='dark'] .wedding-date-item {
    color: #888;
}

html[data-theme='dark'] .wedding-date-item:hover {
    color: #f0f0f0;
    background: rgba(212, 59, 26, 0.12);
}

html[data-theme='dark'] .wedding-date-item.selected {
    color: #ffb19b;
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.22) 0%, rgba(212, 59, 26, 0.08) 100%);
}

html[data-theme='dark'] .wedding-date-clear {
    color: #aaa;
    border-color: #3a3a3a;
}

html[data-theme='dark'] .wedding-date-clear:hover {
    background: #2a2a2a;
    color: #f0f0f0;
}

html[data-theme='dark'] .wedding-date-actions {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
    .wedding-date-wheel {
        height: 150px;
        padding: 55px 2px;
    }

    .wedding-date-item {
        font-size: 0.88rem;
        padding: 7px 2px;
    }

    .wedding-date-item.selected {
        font-size: 1rem;
    }

    .wedding-date-col-label {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}
/* =================================================================
   🟢 قسم دعوة الفنانين (Artist CTA) في الفوتر
   ================================================================= */
.artist-cta-section {
    background: linear-gradient(135deg, rgba(212, 59, 26, 0.08), rgba(212, 175, 55, 0.05));
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 28px 24px;
    margin-top: 30px;
}

.artist-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.artist-cta-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #b53116);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(212, 59, 26, 0.35);
}

.artist-cta-text {
    flex: 1;
    min-width: 200px;
}

.artist-cta-text h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--footer-link, #fff);
    font-weight: 700;
}

.artist-cta-text p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--footer-text, #ccc);
    line-height: 1.6;
}

.artist-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.artist-cta-btn i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.artist-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e6c34a, #d4af37);
}

.artist-cta-btn:hover i {
    transform: translateX(-4px) rotate(-15deg);
}

[dir="ltr"] .artist-cta-btn:hover i {
    transform: translateX(4px) rotate(15deg);
}

.artist-cta-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .artist-cta-section {
        padding: 22px 16px;
    }

    .artist-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .artist-cta-text h3 {
        font-size: 1.1rem;
    }

    .artist-cta-text p {
        font-size: 0.88rem;
    }
}

/* =================================================================
   🟢 موديل تقديم الفنان (Artist Form Modal)
   ================================================================= */
.artist-form-content {
    max-width: 580px;
    width: 95%;
    height: auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.artist-form-header {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #fff;
    align-items: center !important;
    padding: 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: auto;
    flex-shrink: 0;
}

.artist-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.artist-form-header-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.artist-form-header-text h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.artist-form-header-text p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.95;
    color: #fff;
    line-height: 1.4;
}

.artist-form-header .close-cart {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.artist-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* 🟢 شريط استفسار قبل التسجيل */
.artist-inquiry-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.04));
    border: 1.5px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.artist-inquiry-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #128c7e;
    font-size: 0.92rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.artist-inquiry-text i {
    font-size: 1.2rem;
    color: #25d366;
    flex-shrink: 0;
}

.artist-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
}

.artist-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.artist-inquiry-btn:active {
    transform: translateY(0);
}

html[data-theme='dark'] .artist-inquiry-banner {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.06));
    border-color: rgba(37, 211, 102, 0.4);
}

html[data-theme='dark'] .artist-inquiry-text {
    color: #4ade80;
}

@media (max-width: 480px) {
    .artist-inquiry-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .artist-inquiry-btn {
        width: 100%;
        justify-content: center;
    }
}

/* بطاقة معلومات الشراكة */
.artist-info-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fff5d6 100%);
    border: 1.5px solid #f5d76e;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.artist-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.artist-info-row i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary), #b53116);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.artist-info-row strong {
    display: block;
    color: #6b4f00;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.artist-info-row span {
    color: #8b6914;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* الحقول */
.artist-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.artist-form-fields .checkout-form-field input,
.artist-form-fields .checkout-form-field select,
.artist-form-fields .checkout-form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.artist-form-fields .checkout-form-field input:focus,
.artist-form-fields .checkout-form-field select:focus,
.artist-form-fields .checkout-form-field textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.artist-form-fields .checkout-form-field.error input,
.artist-form-fields .checkout-form-field.error select,
.artist-form-fields .checkout-form-field.error textarea {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 59, 26, 0.1);
}

/* ملاحظة الصور */
.artist-photos-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #128c7e;
    line-height: 1.5;
}

.artist-photos-note i {
    color: #25d366;
    font-size: 1rem;
    flex-shrink: 0;
}

/* الفوتر */
.artist-form-footer {
    display: flex;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.artist-form-submit {
    flex: 1;
}

/* Dark mode */
html[data-theme='dark'] .artist-info-card {
    background: linear-gradient(135deg, rgba(245, 215, 110, 0.15), rgba(245, 215, 110, 0.08));
    border-color: rgba(245, 215, 110, 0.4);
}

html[data-theme='dark'] .artist-info-row strong {
    color: #f5d76e;
}

html[data-theme='dark'] .artist-info-row span {
    color: rgba(245, 215, 110, 0.8);
}

html[data-theme='dark'] .artist-form-fields .checkout-form-field input,
html[data-theme='dark'] .artist-form-fields .checkout-form-field select,
html[data-theme='dark'] .artist-form-fields .checkout-form-field textarea {
    background: rgba(255, 255, 255, 0.04);
    color: #f0f0f0;
}

/* Responsive */
@media (max-width: 600px) {
    .artist-form-content {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .artist-form-fields {
        grid-template-columns: 1fr;
    }

    .artist-form-header-text h2 {
        font-size: 1.2rem;
    }

    .artist-info-row strong {
        font-size: 0.88rem;
    }

    
    .artist-info-row span {
        font-size: 0.78rem;
    }
}
/* =================================================================
   🟢 IMAGE LIGHTBOX - تكبير صور المنتجات
   ================================================================= */

/* --- مؤشر "قابلة للتكبير" على صورة التفاصيل --- */
.detail-image-container.is-zoomable {
    cursor: zoom-in;
    position: relative;
    transition: transform 0.25s ease;
}

.detail-image-container.is-zoomable:hover {
    transform: scale(1.01);
}

@media (hover: none) {
    .detail-image-container.is-zoomable:hover {
        transform: none;
    }
}

/* شارة الزوم — أيقونة صغيرة فوق الصورة */
.zoom-hint-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 2;
}

[dir="rtl"] .zoom-hint-badge {
    left: auto;
    right: 12px;
}

.detail-image-container.is-zoomable:hover .zoom-hint-badge {
    opacity: 1;
    transform: scale(1.08);
}

html[data-theme='dark'] .zoom-hint-badge {
    background: rgba(245, 215, 110, 0.85);
    color: #002617;
}

/* --- الـ Lightbox نفسه --- */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    /* لتجنب bugs الـ scroll في iOS */
    overscroll-behavior: contain;
    -webkit-tap-highlight-color: transparent;
}

.image-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* زر الإغلاق */
.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[dir="rtl"] .image-lightbox-close {
    right: auto;
    left: 18px;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.image-lightbox-close:active {
    transform: scale(0.95);
}

/* المنطقة اللي فيها الصورة */
.image-lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    /* مهم: نسمح بسلوك pinch-zoom طبيعي من المتصفح */
    touch-action: pinch-zoom;
    overflow: hidden;
}

.image-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: zoom-in;
    will-change: transform;
}

/* الحالة المكبّرة (بعد double-tap أو click) */
.image-lightbox-img.zoomed {
    transform: scale(2.2);
    cursor: grab;
}

.image-lightbox-img.zoomed:active {
    cursor: grabbing;
}

/* تلميح للمستخدم في الأسفل */
.image-lightbox-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.image-lightbox.active .image-lightbox-hint {
    opacity: 0.9;
}

/* بعد ما المستخدم يتفاعل، نخفي التلميح */
.image-lightbox.user-interacted .image-lightbox-hint {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Animation للصورة لما تفتح */
.image-lightbox.active .image-lightbox-img {
    animation: lightboxImageIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxImageIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .image-lightbox,
    .image-lightbox-img,
    .image-lightbox-close,
    .image-lightbox-hint {
        transition: none;
        animation: none;
    }
}

/* منع scroll الـ body لما الـ lightbox مفتوح */
body.lightbox-open {
    overflow: hidden;
    /* يحافظ على مكان السكرول */
    position: fixed;
    width: 100%;
}

/* تعديلات للموبايل */
@media (max-width: 600px) {
    .image-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    
    [dir="rtl"] .image-lightbox-close {
        right: auto;
        left: 12px;
    }
    
    .image-lightbox-stage {
        padding: 50px 10px;
    }
    
    .image-lightbox-hint {
        font-size: 0.75rem;
        padding: 7px 14px;
        bottom: 18px;
    }
    
    .image-lightbox-img.zoomed {
        transform: scale(2);
    }
    
    .zoom-hint-badge {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        top: 8px;
        left: 8px;
    }
    
    [dir="rtl"] .zoom-hint-badge {
        left: auto;
        right: 8px;
    }
}