:root {
  /* ===== ألوان الهوية — 3 ألوان ===== */
  --primary:      #927FBB;   /* بنفسجي متوسط — الزر والروابط */
  --primary-dark: #49396D;   /* بنفسجي غامق — hover والنصوص */
  --bg:           #FDE2DA;   /* وردي فاتح — الخلفية */
  --text:         #49396D;
  --muted:        #927FBB;
  --card-bg:      #ffffff;
  --border:       rgba(146, 127, 187, 0.3);
  --radius-lg:    18px;
  --radius-md:    12px;
  --shadow-soft:  0 12px 30px rgba(73, 57, 109, 0.15);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #FDE2DA 0%, rgba(146, 127, 187, 0.12) 50%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(146, 127, 187, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #FDE2DA 0, #927FBB 38%, #927FBB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(146, 127, 187, 0.3);
}

.logo-text-main {
  font-weight: 700;
  font-size: 20px;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.nav a:hover {
  background: rgba(146, 127, 187, 0.08);
  transform: translateY(-1px);
}

.nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(146, 127, 187, 0.35);
}

.search-box {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 38px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(146, 127, 187, 0.4);
  outline: none;
  font-size: 13px;
  background: #fff;
}

.search-box span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
}

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

.header-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(146, 127, 187, 0.4);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.icon-btn:hover {
  background: #ffe8f1;
  box-shadow: 0 6px 14px rgba(146, 127, 187, 0.25);
  transform: translateY(-1px);
}

/* Cart badge */
.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(146, 127, 187, 0.4);
  pointer-events: none;
  transition: transform 0.2s, background 0.2s;
}

.cart-badge[data-count="0"] {
  background: #94a3b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 22px rgba(146, 127, 187, 0.35);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(146, 127, 187, 0.4);
}

.btn-outline {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.15s;
}

.btn-outline:hover {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(157, 106, 124, 0.15);
  transform: translateY(-1px);
}

/* QUANTITY PICKER (shared) */
.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(242, 216, 226, 0.95);
  overflow: hidden;
  background: #fff;
}

.qty input {
  width: 50px;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  padding: 8px 0;
  font-size: 13px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.qty-btn {
  width: 40px;
  height: 38px;
  border: none;
  background: rgba(146, 127, 187, 0.08);
  cursor: pointer;
  font-size: 18px;
  color: #111827;
}

.qty-btn:hover {
  background: rgba(146, 127, 187, 0.14);
}

/* PROMO STRIP (under nav) */
.promo-strip {
  border-top: 1px solid rgba(146, 127, 187, 0.35);
  background: rgba(255, 247, 250, 0.8);
}

.promo-strip-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.promo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8a2f4c;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(146, 127, 187, 0.22);
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(146, 127, 187, 0.14);
}

.promo-marquee {
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  direction: ltr;
}

.promo-marquee::before,
.promo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  pointer-events: none;
  z-index: 2;
}

.promo-marquee::before {
  right: 0;
  background: linear-gradient(to left, rgba(255, 247, 250, 1), rgba(255, 247, 250, 0));
}

.promo-marquee::after {
  left: 0;
  background: linear-gradient(to right, rgba(255, 247, 250, 1), rgba(255, 247, 250, 0));
}

.promo-track {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 2px 0;
  width: max-content;
  justify-content: flex-start;
  animation: promo-scroll 40s linear infinite;
}

.promo-marquee:hover .promo-track {
  animation-play-state: paused;
}

@keyframes promo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.promo-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(242, 216, 226, 0.95);
  box-shadow: 0 10px 18px rgba(146, 127, 187, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.promo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(146, 127, 187, 0.14);
}

.promo-img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffeef5, #ffd2e4);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  /* عند استخدام <img> داخل promo-img كـ class مباشرة */
  object-fit: cover;
  display: block;
}

/* Fallback placeholder عندما لا تتوفر صورة للمنتج */
.promo-img-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffeef5, #ffd2e4);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #927FBB;
}


.promo-card-text {
  min-width: 0;
}

.promo-title {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.promo-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .promo-track {
    animation: none;
  }
  .promo-img::after {
    animation: none;
  }
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(242, 216, 226, 0.9);
  box-shadow: 0 6px 18px rgba(146, 127, 187, 0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  direction: rtl;
  text-align: right;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(146, 127, 187, 0.16);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffeef5, #ffd2e4);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.product-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--primary-dark);
}

.product-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.product-colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.product-colors-label {
  font-size: 11px;
  color: #4b5563;
}

.color-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: var(--swatch, #e5e7eb);
}

.color-more {
  font-size: 11px;
  color: #6b7280;
}

.product-price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 14px;
  white-space: nowrap;
}

.product-price-wrap {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.product-price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-add-cart {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(146, 127, 187, 0.4);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  flex: 0 0 auto;
}

.btn-add-cart:hover {
 background: #ffe8f1;
  box-shadow: 0 8px 16px rgba(146, 127, 187, 0.25);
  transform: translateY(-1px);
}

.btn-fav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(146, 127, 187, 0.4);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  flex: 0 0 auto;
}

.btn-fav:hover {
  background: #ffe8f1;
  box-shadow: 0 8px 16px rgba(146, 127, 187, 0.25);
  transform: translateY(-1px);
}

/* BOTTOM NAV (hidden by default, shown on mobile) */
.bottom-nav {
  display: none;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(146, 127, 187, 0.5);
  padding: 24px 0 30px;
  background: #fff;
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 28px;
  align-items: start;
  font-size: 14px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-text {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.9;
}

.footer-links a {
  display: block;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(146, 127, 187, 0.35);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-overlay {
    margin-right: 14px;
    padding: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .nav {
    display: none;
  }

  .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  /* Mobile header actions (after removing top cart/favorites) */
  .header-actions {
    width: auto;
    justify-content: flex-start;
    flex-direction: row-reverse;
    padding-inline: 0;
    direction: rtl;
    margin-inline-start: auto;
  }

  .header-icons {
    display: none;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .promo-strip-inner {
    flex-direction: column;
    align-items: stretch;
  }

  /* Hide top moving promo strip on small screens */
  .promo-strip {
    display: none;
  }

  .hero-slides {
    min-height: 240px;
  }

  .hero-overlay {
    width: 100%;
    margin-right: 0;
    padding: 16px;
  }

  .hero-headline {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .product-points {
    grid-template-columns: minmax(0, 1fr);
  }



  /* Bottom navbar (mobile only) */
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(146, 127, 187, 0.45);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #111827;
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  }

  .bottom-nav-item:active {
    transform: translateY(1px);
  }

  .bottom-nav-item.is-active {
    border-color: rgba(146, 127, 187, 0.28);
    background: rgba(146, 127, 187, 0.06);
  }

  .bottom-nav-icon-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(242, 216, 226, 0.95);
    background: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s, background 0.12s;
  }

  .bottom-nav-item.is-active .bottom-nav-icon-wrap {
    border-color: rgba(146, 127, 187, 0.55);
    background: rgba(146, 127, 187, 0.08);
    box-shadow: 0 14px 26px rgba(146, 127, 187, 0.16);
    transform: translateY(-1px);
  }

  .bottom-nav-icon {
    font-size: 24px;
    line-height: 1;
  }

  .bottom-nav-icon-home {
    font-size: 26px;
    transform: translateY(-1px);
  }

  /* Badge counter on bottom-nav icons */

  .bottom-nav-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #927FBB, #927FBB);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(146, 127, 187,0.45);
    border: 1.5px solid #fff;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
    transform-origin: center;
  }

  .bottom-nav-badge[data-count="0"] {
    display: none !important;
  }

  /* Label under each icon */
  .bottom-nav-label {
    font-size: 10px;
    color: #927FBB;
    margin-top: 3px;
    display: block;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: color 0.15s;
  }

  .bottom-nav-item.is-active .bottom-nav-label {
    color: #927FBB;
    font-weight: 600;
  }

  /* Add space so bottom bar doesn't overlap content */
  body {
    padding-bottom: 74px;
  }
  /* ALL PRODUCTS: horizontal row, 2 cards visible, LTR scroll */
  #all-products .product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    direction: ltr;
  }

  #all-products .product-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
  }

  #all-products .product-grid::-webkit-scrollbar {
    height: 8px;
  }

  #all-products .product-grid::-webkit-scrollbar-thumb {
    background: rgba(146, 127, 187, 0.25);
    border-radius: 999px;
  }

  /* BESTSELLERS + DISCOUNTS: same horizontal behavior */
  #bestsellers .product-grid,
  #discounts .product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    direction: ltr;
  }

  #bestsellers .product-card,
  #discounts .product-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
  }

  #bestsellers .product-grid::-webkit-scrollbar,
  #discounts .product-grid::-webkit-scrollbar {
    height: 8px;
  }

  #bestsellers .product-grid::-webkit-scrollbar-thumb,
  #discounts .product-grid::-webkit-scrollbar-thumb {
    background: rgba(146, 127, 187, 0.25);
    border-radius: 999px;
  }
}

/* ORDER SUCCESS MODAL */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.order-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.order-modal {
  background: #fff;
  border: 1px solid rgba(242, 216, 226, 0.95);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(17, 24, 39, 0.18);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.order-modal-overlay.is-visible .order-modal {
  transform: translateY(0) scale(1);
}

.order-modal-check {
  margin-bottom: 14px;
  animation: modalPulse 1.6s ease-in-out infinite;
}

@keyframes modalPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.order-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.order-modal-id {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  direction: ltr;
}

.order-modal-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
}

.order-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-modal-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
}

/* FORM VALIDATION */
.checkout-input.is-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.field-error {
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
  padding-right: 2px;
  animation: fieldErrorIn 0.3s ease;
}

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

/* =====================================================
   ENHANCED FOOTER
   ===================================================== */

/* Wave Divider */
.footer-wave {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* Footer Wrapper */
.footer-inner {
  background: linear-gradient(160deg, #2e2255 0%, #49396D 50%, #3a2c5a 100%);
  padding: 48px 0 0;
  color: rgba(255,255,255,0.85);
  position: relative;    /* ضروري لـ pseudo-elements */
  overflow: hidden;      /* يخفي الجزء الخارج من الدوائر */
}

/* دائرة زخرفية — يمين-أعلى */
.footer-inner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  /* الدائرة الداخلية (أصغر) */
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  /* الحلقة الخارجية (أكبر) عبر box-shadow */
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025);
  pointer-events: none;
  z-index: 0;
}

/* دائرة زخرفية — يسار-أسفل */
.footer-inner::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -90px;
  /* الدائرة الداخلية (أصغر) */
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  /* الحلقة الخارجية (أكبر) عبر box-shadow */
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.025);
  pointer-events: none;
  z-index: 0;
}

/* تأكد أن محتوى الـ footer فوق الدوائر */
.footer-inner > * {
  position: relative;
  z-index: 1;
}

/* Footer Grid */
.footer-grid-new {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.8fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(135deg, #927FBB, #FDE2DA);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(253, 226, 218, 0.25);
}

.footer-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-logo-sub {
  font-size: 13px;
  color: rgba(146, 127, 187,0.85);
  font-weight: 500;
  margin-top: 1px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin: 0 0 20px 0;
  max-width: 300px;
}

/* Trust Badges */
.footer-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s;
}

.footer-trust-item:hover {
  background: rgba(146, 127, 187,0.18);
  border-color: rgba(146, 127, 187,0.35);
}

.footer-trust-icon {
  font-size: 14px;
}

.footer-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary, #927FBB);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(146, 127, 187,0.2);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.footer-nav-link:hover {
  background: rgba(146, 127, 187,0.12);
  color: rgba(146, 127, 187,0.95);
  transform: translateX(-4px);
}

.footer-nav-link span {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Social Grid */
.footer-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.footer-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.footer-social-icon {
  font-size: 20px;
  line-height: 1;
}

.footer-social-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.footer-social-instagram:hover {
  background: rgba(225, 48, 108, 0.2);
  border-color: rgba(225, 48, 108, 0.4);
  color: #e1306c;
}

.footer-social-snapchat:hover {
  background: rgba(255, 252, 0, 0.15);
  border-color: rgba(255, 252, 0, 0.35);
  color: #fffc00;
}

.footer-social-email:hover {
  background: rgba(146, 127, 187, 0.2);
  border-color: rgba(146, 127, 187, 0.4);
  color: #927FBB;
}

.footer-social-tiktok:hover {
  background: rgba(105, 201, 208, 0.2);
  border-color: rgba(105, 201, 208, 0.4);
  color: #69c9d0;
}

.footer-social-twitter:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.footer-social-facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
}

/* Newsletter */
.footer-newsletter {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}

.footer-newsletter-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-newsletter-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 12px 0;
}

.footer-newsletter-form {
  display: flex;
  gap: 6px;
}

.footer-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.footer-newsletter-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-newsletter-input:focus {
  border-color: rgba(146, 127, 187,0.55);
  background: rgba(255,255,255,0.11);
}

.footer-newsletter-btn {
  background: linear-gradient(135deg, #927FBB, #FDE2DA);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #49396D;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(253, 226, 218, 0.35);
}

.footer-newsletter-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Payment Methods */
.footer-payments {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-payments-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.footer-payments-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.footer-payment-badge:hover {
  background: rgba(255,255,255,0.13);
}

/* Footer Bottom */
.footer-bottom-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(146, 127, 187,0.9);
}

.footer-bottom-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

.footer-made-with {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── Footer Responsive ── */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .footer-grid-new {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 24px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-trust {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Small screens / Mobile (≤ 640px) */
@media (max-width: 640px) {

  /* Wave */
  .footer-wave svg {
    height: 32px;
  }

  /* Inner padding */
  .footer-inner {
    padding: 32px 0 0;
  }

  /* تصغير الدوائر على الجوال */
  .footer-inner::before {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -40px;
    box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.025);
  }
  .footer-inner::after {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -50px;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025);
  }

  /* Single column layout */
  .footer-grid-new {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Brand */
  .footer-brand-col {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 20px;
    margin-bottom: 0;
  }

  .footer-logo-icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .footer-logo-name {
    font-size: 18px;
  }

  .footer-logo-sub {
    font-size: 12px;
  }

  .footer-desc {
    font-size: 12px;
    line-height: 1.7;
  }

  /* Trust: horizontal scroll row on very small */
  .footer-trust {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 8px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .footer-trust::-webkit-scrollbar {
    display: none;
  }

  .footer-trust-item {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Collapsible sections: Links & Contact */
  .footer-links-col,
  .footer-contact-col {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  /* Section title becomes a toggle button */
  .footer-section-title {
    cursor: pointer;
    padding: 16px 0;
    margin-bottom: 0;
    user-select: none;
    justify-content: space-between;
    position: relative;
  }

  .footer-section-title::after {
    content: '›';
    font-size: 18px;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s;
    position: absolute;
    left: 0;
  }

  .footer-section-title.is-open::after {
    transform: rotate(90deg);
    color: rgba(146, 127, 187,0.8);
  }

  /* Collapsible body */
  .footer-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
  }

  .footer-collapsible.is-open {
    max-height: 600px;
    opacity: 1;
    padding-bottom: 16px;
  }

  /* Nav links */
  .footer-nav-list {
    gap: 2px;
  }

  .footer-nav-link {
    font-size: 13px;
    padding: 8px 10px;
  }

  /* Social grid: 3 columns compact */
  .footer-social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 16px;
  }

  .footer-social-btn {
    padding: 10px 4px;
    border-radius: 10px;
    font-size: 10px;
  }

  .footer-social-icon {
    font-size: 20px;
  }

  /* Newsletter compact */
  .footer-newsletter {
    border-radius: 12px;
    padding: 14px;
  }

  .footer-newsletter-form {
    flex-direction: column;
    gap: 8px;
  }

  .footer-newsletter-input {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .footer-newsletter-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Payments: horizontal scroll */
  .footer-payments {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 0;
  }

  .footer-payments-icons {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 7px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .footer-payments-icons::-webkit-scrollbar {
    display: none;
  }

  .footer-payment-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Footer bottom: stack vertically */
  .footer-bottom-new {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 0 18px;
  }

  .footer-copyright {
    font-size: 11px;
    order: 3;
  }

  .footer-bottom-links {
    order: 1;
    gap: 6px;
  }

  .footer-bottom-links a {
    font-size: 11px;
  }

  .footer-made-with {
    order: 2;
    font-size: 13px;
  }
}

/* Extra small (≤ 380px) */
@media (max-width: 380px) {
  .footer-social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .footer-social-btn {
    font-size: 9px;
    padding: 8px 3px;
  }

  .footer-social-icon {
    font-size: 18px;
  }

  .footer-trust-item {
    font-size: 10px;
    padding: 4px 8px;
  }

  .footer-logo-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
    border-radius: 12px;
  }

  .footer-logo-name {
    font-size: 16px;
  }
}

/* 
   ═══════════════════════════════════════════════
   تعطيل تحديد النصوص والنسخ بالماوس (CSS)
   ═══════════════════════════════════════════════ 
*/
body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10 and Edge */
  user-select: none;         /* Standard syntax */
}

/* استثناء حقول الإدخال والبحث لكي يتمكن الزائر من كتابة بياناته والبحث بحرية */
input, 
textarea, 
[contenteditable="true"] {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ══════════════════════════════════════
   قسم عروض اليوم والبطاقات — Daily Offers (Global)
   ══════════════════════════════════════ */
#offers {
  padding: 32px 0 40px;
}

.offers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.offers-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offers-fire {
  font-size: 28px;
  line-height: 1;
  animation: pulse-fire 1.6s ease-in-out infinite;
}

@keyframes pulse-fire {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18) rotate(-4deg); }
}

.offers-title-text h2 {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.1;
  margin: 0;
}

.offers-title-text p {
  font-size: 12px;
  color: #927FBB;
  font-weight: 600;
  margin: 2px 0 0;
  letter-spacing: 0.02em;
}

.offers-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff4d6d, #e91e8c);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(233, 30, 140, 0.3);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.offers-badge::before {
  content: "⏱";
  font-size: 13px;
}

/* شبكة بطاقات العروض */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.offer-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 16px 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.offer-card:hover {
  transform: translateY(-4px);
}

/* ألوان التدرج والتناوب للبطاقات */
.offer-card:nth-child(2n+1) {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #fce4ec 100%);
  border: 1.5px solid rgba(233, 30, 140, 0.18);
  box-shadow: 0 10px 28px rgba(233, 30, 140, 0.12);
}
.offer-card:nth-child(2n+1):hover {
  box-shadow: 0 16px 36px rgba(233, 30, 140, 0.22);
}

.offer-card:nth-child(2n) {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 50%, #e8eaf6 100%);
  border: 1.5px solid rgba(63, 81, 181, 0.15);
  box-shadow: 0 10px 28px rgba(63, 81, 181, 0.1);
}
.offer-card:nth-child(2n):hover {
  box-shadow: 0 16px 36px rgba(63, 81, 181, 0.2);
}

/* الأيقونة الكبيرة في خلفية البطاقة */
.offer-card-icon {
  position: absolute;
  left: -8px;
  bottom: -10px;
  font-size: 64px;
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* وسم العرض (chip) */
.offer-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.offer-card:nth-child(2n+1) .offer-chip {
  background: rgba(233, 30, 140, 0.12);
  color: #c2185b;
}
.offer-card:nth-child(2n) .offer-chip {
  background: rgba(63, 81, 181, 0.12);
  color: #283593;
}

.offer-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.offer-card-desc {
  font-size: 11.5px;
  color: #4b5563;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* الاستجابة للهواتف */
@media (max-width: 768px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .offer-card {
    padding: 16px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .offer-card-icon {
    position: static;
    font-size: 36px;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .offer-card-body {
    flex: 1;
  }

  .offer-card-title { font-size: 14px; }
  .offer-card-desc  { font-size: 11px; }

  .offers-title-text h2 { font-size: 18px; }
}


