/* MADA Store - Global CSS */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Outfit:wght@400;600;700&display=swap');

:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2338;
  --gold: #D4AF37;
  --gold-light: #F5D073;
  --gold-grad: linear-gradient(135deg, #D4AF37, #F5D073, #D4AF37);
  /* Phase 0.5: لون ذهبي أغمق لاستخدامه كنص فوق خلفيات فاتحة لضمان تباين كافٍ (Accessibility) */
  --gold-deep: #8B6914;
  --off-white: #FAFAF8;
  --gray-light: #f0f0ed;
  /* Phase 0.5: تم تغميق اللون الرمادي لرفع التباين فوق الخلفيات الفاتحة */
  --gray: #6b7280;
  --text: #1a1a2e;
  --text-mid: #4a4a6a;
  /* Phase 5.2: خلفية البطاقات البيضاء — تتغير في الوضع الداكن */
  --card-bg: #fff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.10);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--off-white);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden
}

body.ltr {
  direction: ltr;
  font-family: 'Outfit', sans-serif
}

img {
  max-width: 100%;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

input,
select,
button {
  font-family: inherit
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-grad);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans);
  box-shadow: var(--shadow-gold)
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08)
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-dark);
  color: var(--gold-light);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans)
}

.btn-navy:hover {
  background: var(--navy);
  transform: translateY(-2px)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans)
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark)
}

/* تأثير ضغط ثلاثي الأبعاد للأزرار (Phase 5.3) */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-effects3d="off"]) .btn-gold:active,
  body:not([data-effects3d="off"]) .btn-navy:active,
  body:not([data-effects3d="off"]) .btn-outline:active,
  body:not([data-effects3d="off"]) .add-cart-btn:active {
    transform: perspective(600px) rotateX(10deg) scale(.97)
  }
}

.btn-gold-sm {
  background: var(--gold-grad);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--trans)
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

/* Promo Bar */
.promo-bar {
  background: var(--gold-grad);
  color: var(--navy-dark);
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap
}

.marquee-wrap {
  overflow: hidden
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 25s linear infinite
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* Header */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer
}

/* شعار دائري — يقص الشارة الدائرية من أسفل صورة اللوغو ويضيف إطاراً ذهبياً */
.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center bottom;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(212, 175, 55, .35);
  transition: var(--trans)
}

.logo:hover .logo-circle {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(212, 175, 55, .5)
}

.logo-en {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px
}

.logo-ar {
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 2px
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--trans);
  position: relative;
  padding-bottom: 4px
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-grad);
  transition: var(--trans)
}

.main-nav a:hover {
  color: var(--gold-light)
}

.main-nav a:hover::after {
  width: 100%
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

/* أيقونات اللغة/الوضع الداكن/العملة — تُنقل إلى القائمة الجانبية في وضع الموبايل */
.header-extra-icons {
  display: contents
}

.hdr-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  transition: var(--trans);
  position: relative;
  display: flex;
  align-items: center
}

.hdr-icon:hover {
  color: var(--gold-light);
  transform: scale(1.1)
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--trans)
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold)
}

/* زر تبديل الوضع الداكن (Phase 5.2) */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--trans)
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer
}

/* Search Bar */
.search-bar {
  display: none;
  background: var(--navy);
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1)
}

.search-bar.open {
  display: block
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto
}

.search-inner input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  outline: none
}

.search-inner input::placeholder {
  color: rgba(255, 255, 255, 0.5)
}

.search-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--navy-dark);
  z-index: 2000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateX(280px);
  transition: transform 0.3s ease
}

.mobile-nav.open {
  transform: translateX(0)
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08)
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  align-self: flex-end
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999
}

.mobile-overlay.open {
  display: block
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 48px
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px
}

.section-title h2 span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.section-title p {
  color: var(--text-mid);
  font-size: 1rem
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-grad);
  margin: 12px auto 0;
  border-radius: 2px
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a7a 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden
}

.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.12);
  pointer-events: none
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 0
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px
}

.hero h1 span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  line-height: 1.8
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block
}

.stat-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6)
}

.hero-visual {
  position: relative
}

.hero-img-box {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15)
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark)
}

/* طفو ثلاثي الأبعاد خفيف لعناصر الواجهة (Phase 5.3) */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-effects3d="off"]) .hero-img-box {
    animation: heroFloat3d 6s ease-in-out infinite
  }

  body:not([data-effects3d="off"]) .float-card {
    animation: cardFloat3d 4s ease-in-out infinite
  }

  body:not([data-effects3d="off"]) .float-card:last-of-type {
    animation-delay: -2s
  }
}

@keyframes heroFloat3d {
  0%, 100% { transform: perspective(1000px) rotateY(0deg) translateY(0) }
  50%      { transform: perspective(1000px) rotateY(-3deg) translateY(-10px) }
}

@keyframes cardFloat3d {
  0%, 100% { transform: translateY(0) rotateZ(0deg) }
  50%      { transform: translateY(-8px) rotateZ(1deg) }
}

/* Features Strip */
.features-strip {
  background: white;
  border-bottom: 1px solid var(--gray-light);
  padding: 18px 0
}

.features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-dark);
  font-size: 0.88rem;
  font-weight: 600
}

.feature-item i {
  color: var(--gold);
  font-size: 1rem
}

/* Categories */
.categories {
  padding: 80px 0;
  background: white
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px
}

.cat-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 26px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent
}

.cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold)
}

@media (prefers-reduced-motion: no-preference) {
  body:not([data-effects3d="off"]) .cat-card:hover {
    transform: perspective(800px) rotateX(6deg) translateY(-4px)
  }
}

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 10px
}

.cat-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark)
}

/* Products Grid */
.products-section {
  padding: 80px 0
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
  cursor: pointer
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.15)
}

/* إمالة ثلاثية الأبعاد تتبع المؤشر (Phase 5.3) */
@media (prefers-reduced-motion: no-preference) {
  body:not([data-effects3d="off"]) .product-card:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 58, 92, 0.15)
  }
}

.product-img {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease
}

.product-card:hover .product-img img {
  transform: scale(1.06)
}

.p-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-grad);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px
}

.wish-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans)
}

.wish-btn:hover {
  background: var(--gold)
}

.wish-btn.wished {
  background: #fef2f2;
  color: #ef4444;
}

.product-info {
  padding: 14px
}

.p-cat {
  font-size: 0.75rem;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px
}

.p-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.4
}

.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.p-price {
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.add-cart-btn {
  background: var(--navy-dark);
  color: var(--gold);
  border: none;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans)
}

.add-cart-btn:hover {
  background: var(--gold);
  color: var(--navy-dark)
}

/* Promo Boxes */
.promo-boxes {
  padding: 60px 0;
  background: white
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.promo-box {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.promo-box.navy {
  background: var(--navy-dark);
  color: white
}

.promo-box.gold {
  background: var(--gold-grad);
  color: var(--navy-dark)
}

.promo-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px
}

.promo-box p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 18px
}

/* Testimonials */
.testimonials {
  padding: 80px 0
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px
}

.testi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  border-right: 4px solid var(--gold)
}

.stars {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 10px
}

.testi-text {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
  font-style: italic;
  font-size: 0.95rem
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px
}

.author-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 0.85rem
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem
}

.author-loc {
  font-size: 0.77rem;
  color: var(--gray)
}

/* Footer */
.site-footer {
  background: var(--navy-dark)
}

.footer-top {
  padding: 56px 0 36px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 14px 0 20px;
  color: rgba(255, 255, 255, 0.6)
}

.social-links {
  display: flex;
  gap: 10px
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.88rem;
  transition: var(--trans)
}

.social-link:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold)
}

.footer-title {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 8px
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-right: 6px
}

.currency-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px
}

.footer-bottom-inner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5)
}

.payment-icons {
  display: flex;
  gap: 8px
}

.payment-icons span {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6)
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: -380px;
  width: 380px;
  height: 100vh;
  background: white;
  z-index: 3000;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column
}

.cart-sidebar.open {
  left: 0
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: var(--gold-light);
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap
}

.toast-msg.show {
  opacity: 1
}

/* Forms */
.form-group {
  margin-bottom: 18px
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 6px
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  background: white
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold)
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 50px 0;
  color: white;
  text-align: center
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  justify-content: center;
  margin-top: 12px
}

.breadcrumb a {
  color: var(--gold-light)
}

.breadcrumb span {
  opacity: 0.4
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

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

.fade-up {
  animation: fadeUp 0.6s ease forwards
}

/* ══════════════════════════════
   Responsive - شامل
══════════════════════════════ */

/* تابلت كبير (< 1200px) */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }
}

/* تابلت (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* موبايل (< 768px) */
@media (max-width: 768px) {

  /* الهيدر */
  .main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .header-inner {
    padding: 12px 16px;
  }

  /* أيقونات اللغة/الوضع الداكن/العملة بعد نقلها للقائمة الجانبية */
  .header-extra-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .hero-grid {
    padding: 40px 0;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .hero p {
    font-size: .95rem;
  }

  .hero-stats {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Features */
  .features-list {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-img {
    height: 180px;
    font-size: 3.5rem;
  }

  .product-info {
    padding: 10px;
  }

  .p-name {
    font-size: .88rem;
  }

  .p-price {
    font-size: .95rem;
  }

  .add-cart-btn {
    padding: 6px 12px;
    font-size: .75rem;
  }

  /* Categories */
  .categories {
    padding: 50px 0;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .cat-card {
    padding: 18px 10px;
  }

  .cat-icon {
    font-size: 1.8rem;
  }

  .cat-name {
    font-size: .82rem;
  }

  /* Promo */
  .promo-boxes {
    padding: 40px 0;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .promo-box {
    padding: 28px 20px;
    min-height: 150px;
  }

  .promo-box h3 {
    font-size: 1.2rem;
  }

  /* Testimonials */
  .testimonials {
    padding: 50px 0;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    padding: 36px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Cart Sidebar */
  .cart-sidebar {
    width: 100%;
    left: -100%;
  }

  .cart-sidebar.open {
    left: 0;
  }

  /* Section Titles */
  .section-title {
    margin-bottom: 32px;
  }

  .section-title h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  /* Page Header */
  .page-header {
    padding: 30px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  /* Container padding */
  .container {
    padding: 0 16px;
  }

  /* Phase 0.6: حد أدنى 44px لمساحة الأزرار القابلة للضغط على الموبايل (Accessibility) */
  .hdr-icon,
  .hamburger,
  .search-close,
  .lang-btn,
  .theme-toggle,
  .cur-btn,
  .wish-btn,
  .mobile-nav-close {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .header-actions {
    gap: 2px;
  }

  .add-cart-btn,
  .btn-gold,
  .btn-outline,
  .btn-gold-sm {
    min-height: 44px;
  }
}

/* موبايل صغير (< 480px) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-img {
    height: 150px;
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .features-list {
    gap: 12px;
  }

  .promo-box {
    padding: 22px 16px;
  }

  .logo-en {
    font-size: 1.4rem;
  }
}

/* ══════════════════════════════
   Cart Page
══════════════════════════════ */
.cart-page-section {
  padding: 40px 0 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.cart-items-col {
  min-width: 0;
}

.cart-summary-col {
  position: sticky;
  top: 100px;
}

.cart-summary-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.cart-summary-title {
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 18px;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--gray);
}

.cart-discount-row {
  color: #10b981;
}

.cart-grand-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.cart-total-amount {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cart-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
}

.cart-coupon {
  margin-bottom: 16px;
}

.coupon-row-cart {
  display: flex;
  gap: 8px;
}

.coupon-input-cart {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 9px 14px;
  font-size: .86rem;
  outline: none;
  font-family: 'Tajawal', sans-serif;
  transition: border-color .2s;
}

.coupon-input-cart:focus {
  border-color: var(--gold);
}

.coupon-btn-cart {
  padding: 9px 16px;
  background: var(--navy-dark);
  color: var(--gold);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--trans);
}

.coupon-btn-cart:hover {
  background: var(--navy);
}

.free-ship-note {
  font-size: .78rem;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.free-ship-progress {
  height: 6px;
  background: #d1fae5;
  border-radius: 50px;
  margin-top: 8px;
  overflow: hidden;
}

.free-ship-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 50px;
  transition: width .4s ease;
}

.free-ship-done {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
}

.cart-continue-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--gray);
  font-size: .85rem;
  transition: color .2s;
}

.cart-continue-link:hover {
  color: var(--navy-dark);
}

/* Cart Responsive */
@media (max-width: 768px) {
  .cart-page-section {
    padding: 24px 0 50px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-summary-col {
    position: static;
    order: -1;
    /* ملخص الطلب فوق المنتجات على الموبايل */
  }

  .cart-summary-box {
    padding: 20px 16px;
  }

  .coupon-row-cart {
    flex-wrap: wrap;
  }

  .coupon-input-cart {
    width: 100%;
    border-radius: 10px;
  }

  .coupon-btn-cart {
    width: 100%;
    border-radius: 10px;
  }
}

/* ══════════════════════════════════════
   Currency Switcher — مبدّل العملات
══════════════════════════════════════ */
.cur-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cur-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 50px;
  color: white;
  font-family: var(--font-ar);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.cur-btn:hover {
  background: rgba(212, 175, 55, .2);
  border-color: var(--gold);
}

.cur-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 9999;
}

.cur-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cur-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: .85rem;
  color: var(--navy);
  text-align: right;
  transition: background .15s;
}

.cur-opt:hover {
  background: #f9f9f6;
}

.cur-opt.cur-opt-active {
  background: #fffbeb;
  font-weight: 700;
}

.cur-opt-symbol {
  font-weight: 800;
  color: var(--gold-dark, #B8960C);
  min-width: 28px;
  font-size: .9rem;
}

.cur-opt-name {
  flex: 1;
}

/* Footer currency select */
.currency-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: white;
  font-family: var(--font-ar);
  font-size: .85rem;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}

.currency-select:hover,
.currency-select:focus {
  border-color: var(--gold);
}

.currency-select option {
  background: #1a3a5c;
  color: white;
}

/* تأثير انتقالي عند تغيير السعر */
[data-price-usd] {
  transition: color .25s, opacity .25s;
}

/* ══════════════════════════════════════
   الوضع الداكن (Dark Mode) — Phase 5.2
══════════════════════════════════════ */

/* متغيرات بديلة كحلي داكن — تُطبَّق تلقائياً على كل عنصر
   يستخدم هذه المتغيرات في كل صفحات المتجر */
:root[data-theme="dark"] {
  --off-white: #0c1c2e;
  --gray-light: #1c3552;
  --gray: #9db4cc;
  --text: #e8eef5;
  --text-mid: #b8c8da;
  --card-bg: #14283f;
}

[data-theme="dark"] body {
  background: var(--off-white);
  color: var(--text)
}

/* أقسام وبطاقات بخلفية بيضاء في الصفحة الرئيسية وسلة المشتريات */
[data-theme="dark"] .features-strip,
[data-theme="dark"] .categories,
[data-theme="dark"] .promo-boxes,
[data-theme="dark"] .product-card,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .cart-summary-box,
[data-theme="dark"] .cart-sidebar,
[data-theme="dark"] .cur-dropdown {
  background: #14283f
}

[data-theme="dark"] .cat-card {
  background: var(--gray-light)
}

/* عناوين وأسماء كانت كحلية على خلفية بيضاء */
[data-theme="dark"] .section-title h2,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .cat-name,
[data-theme="dark"] .p-name,
[data-theme="dark"] .cart-summary-title,
[data-theme="dark"] .cart-grand-total,
[data-theme="dark"] .form-group label {
  color: var(--text)
}

[data-theme="dark"] .cart-continue-link:hover {
  color: var(--gold-light)
}

/* حقول الإدخال */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .coupon-input-cart {
  background: #14283f;
  border-color: var(--gray-light);
  color: var(--text)
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--gray)
}

/* قائمة العملات المنسدلة */
[data-theme="dark"] .cur-dropdown {
  border-color: var(--gray-light)
}

[data-theme="dark"] .cur-opt {
  color: var(--text)
}

[data-theme="dark"] .cur-opt:hover {
  background: var(--gray-light)
}

[data-theme="dark"] .cur-opt.cur-opt-active {
  background: rgba(212, 175, 55, .15)
}

[data-theme="dark"] .currency-select option {
  background: #14283f
}

/* عناصر متفرقة */
[data-theme="dark"] .cart-divider {
  border-top-color: var(--gray-light)
}

[data-theme="dark"] .free-ship-note {
  background: rgba(16, 185, 129, .12)
}

[data-theme="dark"] .free-ship-progress {
  background: rgba(16, 185, 129, .18)
}

[data-theme="dark"] .wish-btn {
  background: rgba(255, 255, 255, .12);
  color: var(--text)
}

[data-theme="dark"] .wish-btn.wished {
  background: rgba(239, 68, 68, .18)
}

[data-theme="dark"] .float-card {
  background: rgba(20, 40, 63, .92);
  color: var(--text)
}

/* ═══ صفحة التواصل (Contact) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .breadcrumb-bar {
  background: var(--gray-light);
  border-bottom-color: var(--off-white)
}
[data-theme="dark"] .contact-info-section,
[data-theme="dark"] .faq-section {
  background: var(--off-white)
}
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .side-card {
  background: #14283f
}
[data-theme="dark"] .breadcrumb-bar a,
[data-theme="dark"] .contact-card h4,
[data-theme="dark"] .contact-card a,
[data-theme="dark"] .contact-form-card h2,
[data-theme="dark"] .side-card h3,
[data-theme="dark"] .faq-q {
  color: var(--text)
}
[data-theme="dark"] .side-card h3 {
  border-bottom-color: var(--gray-light)
}
[data-theme="dark"] .cc-icon {
  background: linear-gradient(135deg, #1c3552, #2a4a6e);
  border: 1px solid rgba(212, 175, 55, .25)
}
[data-theme="dark"] .cf-group label {
  color: var(--text)
}
[data-theme="dark"] .cf-group input,
[data-theme="dark"] .cf-group textarea,
[data-theme="dark"] .cf-group select,
[data-theme="dark"] .cf-group input:focus,
[data-theme="dark"] .cf-group textarea:focus,
[data-theme="dark"] .cf-group select:focus {
  background: #0c1c2e;
  border-color: var(--gray-light);
  color: var(--text)
}
[data-theme="dark"] .faq-item {
  border-color: var(--gray-light)
}
[data-theme="dark"] .sc-btn.wa { background: rgba(22, 163, 74, .18); color: #4ade80 }
[data-theme="dark"] .sc-btn.ig { background: rgba(219, 39, 119, .18); color: #f9a8d4 }
[data-theme="dark"] .sc-btn.fb { background: rgba(37, 99, 235, .18); color: #93c5fd }
[data-theme="dark"] .sc-btn.tg { background: rgba(2, 132, 199, .18); color: #7dd3fc }
[data-theme="dark"] .sc-btn.tt { background: rgba(255, 255, 255, .08); color: var(--text) }

/* ═══ صفحة من نحن (About) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .about-stats,
[data-theme="dark"] .mvv-section,
[data-theme="dark"] .why-section,
[data-theme="dark"] .extra-section {
  background: var(--off-white)
}
[data-theme="dark"] .about-stats {
  border-bottom-color: var(--gray-light)
}
[data-theme="dark"] .stat-box,
[data-theme="dark"] .mvv-card,
[data-theme="dark"] .why-item,
[data-theme="dark"] .extra-box {
  background: #14283f;
  border-color: var(--gray-light)
}
[data-theme="dark"] .stat-box .s-num,
[data-theme="dark"] .mvv-card h3,
[data-theme="dark"] .why-item h4,
[data-theme="dark"] .extra-box h2 {
  color: var(--text)
}

/* ═══ صفحة الدفع (Checkout) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .checkout-empty h2,
[data-theme="dark"] .checkout-card-title,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .summary-item-price,
[data-theme="dark"] .summary-total-row,
[data-theme="dark"] .map-info-address {
  color: var(--text)
}
[data-theme="dark"] .checkout-card {
  background: #14283f
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .map-search-input {
  background: #0c1c2e;
  border-color: var(--gray-light);
  color: var(--text)
}
[data-theme="dark"] .payment-method-item,
[data-theme="dark"] .coupon-input {
  border-color: var(--gray-light)
}
[data-theme="dark"] .summary-item {
  border-bottom-color: var(--gray-light)
}
[data-theme="dark"] .summary-total-row {
  border-top-color: var(--gray-light)
}
[data-theme="dark"] .checkout-error-bar {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .25)
}
[data-theme="dark"] .payment-method-item.selected {
  background: rgba(212, 175, 55, .1)
}
[data-theme="dark"] .pm-instructions {
  background: rgba(16, 185, 129, .12);
  color: #34d399
}
[data-theme="dark"] .free-shipping-hint {
  background: rgba(16, 185, 129, .12)
}
[data-theme="dark"] .map-container {
  background: #14283f;
  border-color: var(--gray-light)
}
[data-theme="dark"] .map-info-box {
  background: rgba(16, 185, 129, .1);
  border-color: rgba(16, 185, 129, .3)
}
[data-theme="dark"] .map-clear-btn:hover {
  background: rgba(239, 68, 68, .15)
}
[data-theme="dark"] .map-required-badge {
  background: rgba(239, 68, 68, .15)
}
[data-theme="dark"] .map-optional-badge {
  background: rgba(16, 185, 129, .15)
}

/* ═══ لوحة تحكم العميل (Dashboard) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .db-sidebar,
[data-theme="dark"] .db-tabbar,
[data-theme="dark"] .db-stat,
[data-theme="dark"] .db-card {
  background: #14283f
}
[data-theme="dark"] .db-avatar-wrap,
[data-theme="dark"] .db-nav hr {
  border-color: var(--gray-light)
}
[data-theme="dark"] .db-name,
[data-theme="dark"] .db-card-title,
[data-theme="dark"] .db-order-num {
  color: var(--text)
}
[data-theme="dark"] .db-nav-link {
  color: var(--text-mid)
}
[data-theme="dark"] .db-nav-link:hover {
  background: var(--gray-light);
  color: var(--text)
}
[data-theme="dark"] .db-logout:hover {
  background: rgba(239, 68, 68, .12)
}
[data-theme="dark"] .db-tabbar a {
  color: var(--text-mid)
}
[data-theme="dark"] .db-order-row {
  border-bottom-color: var(--gray-light)
}
[data-theme="dark"] .db-ord-card {
  border-color: var(--gray-light)
}
[data-theme="dark"] .db-fg input,
[data-theme="dark"] .db-fg select {
  background: #0c1c2e;
  border-color: var(--gray-light);
  color: var(--text)
}
[data-theme="dark"] .db-email-note {
  background: var(--gray-light)
}

/* ═══ صفحة المنتج (Product) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .related-section,
[data-theme="dark"] .reviews-section {
  background: var(--off-white)
}
[data-theme="dark"] .gallery-main,
[data-theme="dark"] .guarantee-item,
[data-theme="dark"] .review-card,
[data-theme="dark"] .review-form-box {
  background: #14283f;
  border-color: var(--gray-light)
}
[data-theme="dark"] .product-title,
[data-theme="dark"] .review-form-box h3 {
  color: var(--text)
}
[data-theme="dark"] .low-stock-badge,
[data-theme="dark"] .product-discount-badge {
  background: rgba(239, 68, 68, .15)
}
[data-theme="dark"] .qty-control,
[data-theme="dark"] .review-img,
[data-theme="dark"] .review-form-box .form-group input,
[data-theme="dark"] .review-form-box .form-group textarea {
  border-color: var(--gray-light)
}
[data-theme="dark"] .review-form-box .form-group input,
[data-theme="dark"] .review-form-box .form-group textarea {
  background: #0c1c2e;
  color: var(--text)
}
[data-theme="dark"] .wish-heart-btn {
  background: #14283f;
  border-color: var(--gray-light);
  color: var(--gray)
}
[data-theme="dark"] .wish-heart-btn.wished {
  background: rgba(239, 68, 68, .18)
}

/* ═══ صفحة المنتجات (Products) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .products-toolbar,
[data-theme="dark"] .products-sidebar,
[data-theme="dark"] .products-empty {
  background: #14283f
}
[data-theme="dark"] .search-input-wrap input,
[data-theme="dark"] .sort-select,
[data-theme="dark"] .price-range-inputs input,
[data-theme="dark"] .pg-btn {
  background: #0c1c2e;
  border-color: var(--gray-light);
  color: var(--text)
}
[data-theme="dark"] .sort-select option {
  background: #14283f
}
[data-theme="dark"] .sidebar-header h3,
[data-theme="dark"] .price-filter h3,
[data-theme="dark"] .products-empty h3,
[data-theme="dark"] .cat-link:hover,
[data-theme="dark"] .pg-btn:hover {
  color: var(--text)
}
[data-theme="dark"] .cat-link {
  color: var(--text-mid)
}
[data-theme="dark"] .price-filter {
  border-top-color: var(--gray-light)
}
[data-theme="dark"] .clear-filters-btn {
  border-color: rgba(239, 68, 68, .25)
}
[data-theme="dark"] .clear-filters-btn:hover {
  background: rgba(239, 68, 68, .12)
}

/* ═══ صفحة الشكر (Thank You) ═══ */
.ty-card { background: #fff; }
.ty-card-head { border-bottom: 1.5px solid #f0f0f0; }
.ty-item-row { border-bottom: 1px solid #f8f8f8; }
.ty-stat-box { background: #f9fafb; }
.ty-note-box { background: #f0fdf4; color: #16a34a; }

[data-theme="dark"] .ty-card,
[data-theme="dark"] .ty-stat-box {
  background: #14283f
}
[data-theme="dark"] .ty-card-head,
[data-theme="dark"] .ty-item-row {
  border-bottom-color: var(--gray-light)
}
[data-theme="dark"] .ty-note-box {
  background: rgba(16, 185, 129, .12);
  color: #34d399
}

/* ═══ صفحة المفضلة (Wishlist) — دعم الوضع الداكن ═══ */
[data-theme="dark"] .wishlist-section {
  background: var(--off-white)
}
[data-theme="dark"] .wish-card,
[data-theme="dark"] .empty-wish {
  background: #14283f
}
[data-theme="dark"] .wish-img {
  background: linear-gradient(135deg, var(--gray-light), #14283f)
}
[data-theme="dark"] .wishlist-header h2,
[data-theme="dark"] .wish-name,
[data-theme="dark"] .wish-price,
[data-theme="dark"] .empty-wish h3 {
  color: var(--text)
}
[data-theme="dark"] .wish-remove:hover {
  background: rgba(239, 68, 68, .15)
}

/* ═══ شريط تنبيه خطأ عام (مستخدم في تسجيل الدخول وغيره) ═══ */
.alert-error {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  font-weight: 600;
}
[data-theme="dark"] .alert-error {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .25)
}

/* ═══ ملاحظة العملة في السلة ═══ */
.cur-note-box {
  margin-top: 10px;
  background: linear-gradient(135deg, #fff7e6, #fffbf0);
  border: 1.5px solid #f5d073;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .82rem;
  color: #92400e;
  line-height: 1.7;
}
.cur-note-box i { color: #d97706; }
[data-theme="dark"] .cur-note-box {
  background: rgba(212, 175, 55, .12);
  border-color: rgba(212, 175, 55, .35);
  color: var(--gold-light)
}
[data-theme="dark"] .cur-note-box i {
  color: var(--gold)
}