:root {
  --bg: #ffffff;
  --ink: #1e2f6b; /* Granzia navy */
  --ink-2: #16224f;
  --muted: #6b7280;
  --line: #e3e8f3;
  --accent: #f5a623; /* gold */
  --sky: #2f6bed;
  --soft: #f4f6fb;
  --sale: #d61f4b;
  --max: 1240px;
  --radius: 10px;
  --font: "Cairo", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  color: #24324f;
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 48px 0;
}
.muted {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-2);
}
.btn-primary:disabled {
  background: #9aa6c2;
  cursor: not-allowed;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}
.btn-add {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.btn-add:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 47, 107, 0.28);
}
.btn-add:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-add:disabled {
  background: #9aa6c2;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* WhatsApp */
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  margin-top: 10px;
}
.btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
}
.btn-whatsapp .wa-ico {
  margin-inline-end: 4px;
}
.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  color: #fff;
}
.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* Order tracking */
.track-form {
  margin: 18px 0 26px;
}
.track-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.track-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.track-fields input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 200px;
  font-family: inherit;
}
.track-result {
  max-width: 720px;
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.track-head h2 {
  margin: 0 0 4px;
}
.track-timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.track-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.track-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  color: var(--muted);
}
.track-step .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  font-size: 20px;
}
.track-step .step-label {
  font-size: 13px;
  font-weight: 600;
}
.track-step.done {
  color: #166534;
}
.track-step.done .step-icon {
  border-color: #25d366;
  background: #dcfce7;
}
.track-step.current {
  color: var(--ink);
}
.track-step.current .step-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}

/* Coupons */
.summary-row.discount {
  color: #166534;
  font-weight: 600;
}
.coupon-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.coupon-input {
  display: flex;
  gap: 8px;
}
.coupon-input input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
}
.coupon-applied {
  color: #166534;
  font-size: 14px;
  margin-bottom: 6px;
}
.coupon-error {
  color: var(--sale);
  font-size: 13px;
  margin: 8px 0 0;
}
.field-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Customer accounts */
.account-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-inline-end: 14px;
}
.account-link:hover {
  color: var(--accent);
}
.btn-linklike {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.logout-inline {
  display: inline;
}
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.auth-form .field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-form label {
  font-weight: 600;
  font-size: 14px;
}
.auth-form input {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
}
.auth-form .checkbox label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.auth-alt {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
}
.auth-alt a {
  color: var(--sky);
  font-weight: 700;
}
.verify-steps {
  padding-inline-start: 20px;
  line-height: 2.1;
  margin-bottom: 20px;
}
.verify-steps .btn {
  margin: 8px 0;
}
.code-reveal {
  margin-top: 10px;
  padding: 14px;
  background: #dcfce7;
  border-radius: var(--radius);
  font-weight: 700;
}
.code-reveal .the-code {
  font-size: 24px;
  letter-spacing: 4px;
  color: #166534;
}

.orders-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.my-orders {
  display: grid;
  gap: 18px;
}
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.order-card-items .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}
.order-card-items .summary-row.total {
  font-weight: 700;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 8px;
}
.order-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-0 {
  background: #fef3c7;
  color: #92400e;
}
.status-1 {
  background: #ffedd5;
  color: #9a3412;
}
.status-2 {
  background: #dcfce7;
  color: #166534;
}
.status-3 {
  background: #fee2e2;
  color: #991b1b;
}
.status-4 {
  background: #e0e7ff;
  color: #3730a3;
}
.status-5 {
  background: #cffafe;
  color: #155e75;
}
.status-6 {
  background: #bbf7d0;
  color: #14532d;
}

/* Topbar */
.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 9px 12px;
  font-weight: 500;
}

/* Header */
/* الشريط العلوي (إعلان + هيدر) يثبتوا مع بعض عند التمرير */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.brand-text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.search {
  display: flex;
  flex: 1;
  max-width: 520px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.search input {
  border: 0;
  padding: 11px 18px;
  outline: none;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  text-align: right;
}
.search button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.cart-count {
  background: var(--sale);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

/* Main nav */
.main-nav {
  border-top: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}
.nav-inner {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-inner a {
  font-size: 14.5px;
  font-weight: 600;
  color: #24324f;
}
.nav-inner a:hover {
  color: var(--sky);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
/* خلفية صور المطبخ التجاري مع تبديل تدريجي */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.05);
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
.hero-bg-slide.is-active {
  opacity: 1;
}
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 20, 45, 0.82), rgba(15, 20, 45, 0.5) 60%, rgba(15, 20, 45, 0.35));
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding: 130px 20px;
  width: 100%;
}
.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 auto 28px;
  max-width: 660px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
/* Hero slider (auto-rotating banner) */
.hero-slider {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 47, 107, 0.12);
}
.hero-track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: #fff;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 16px 22px;
  background: linear-gradient(transparent, rgba(22, 34, 79, 0.85));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-align: right;
}
.hero-dots {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 3;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.hero-dot.active {
  background: var(--accent);
  width: 26px;
  border-radius: 6px;
}

/* Features strip */
.features-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 20px;
  text-align: center;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature strong {
  font-size: 17px;
  color: var(--ink);
}
.feature span {
  color: var(--muted);
  font-size: 13px;
}

/* Section head */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.faq-section .section-title,
.banners + .section .section-title {
  text-align: right;
}
.see-all {
  color: var(--sky);
  font-weight: 700;
  font-size: 14px;
}
.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}
.category-card {
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.category-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card:hover .category-thumb {
  box-shadow: 0 12px 28px rgba(30, 47, 107, 0.14);
  transform: translateY(-4px);
  border-color: var(--sky);
}
.category-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* Promo banners */
.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px auto 0;
}
.promo-banner {
  background: linear-gradient(120deg, var(--ink), #2a3f8f);
  color: #fff;
  border-radius: 16px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.promo-banner.alt {
  background: linear-gradient(120deg, var(--ink), #2a3f8f);
}
.promo-banner h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}
.promo-banner p {
  margin: 0;
  opacity: 0.9;
}
.promo-badge {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

/* Entrance reveal (staggered) */
.reveal {
  animation: cardReveal 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .badge-sale,
  .media-shine::before {
    animation: none;
  }
  .product-card,
  .media-img,
  .btn-add,
  .media-dots,
  .media-dot {
    transition: none;
  }
  .product-card:hover .media-img--primary {
    opacity: 0;
    transform: none;
  }
  .product-card:hover .media-img--secondary {
    opacity: 1;
    transform: none;
  }
}

/* Product grid + cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plp-main .product-grid {
  grid-template-columns: repeat(3, 1fr);
}
.product-card-wrap {
  display: flex;
}
.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 47, 107, 0.16);
  border-color: var(--sky);
}
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  background: var(--soft);
  overflow: hidden;
}
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.45s ease;
  backface-visibility: hidden;
}
.media-img--primary {
  position: relative;
  z-index: 1;
}
.media-img--secondary {
  z-index: 2;
  opacity: 0;
  transform: scale(1.08);
}
/* hover: crossfade to the 2nd image with a gentle zoom */
.product-card:hover .media-img--primary {
  opacity: 0;
  transform: scale(1.08) rotate(-1deg);
}
.product-card:hover .media-img--secondary {
  opacity: 1;
  transform: scale(1);
}
/* single-image cards: just zoom + tilt the one image */
.product-media:not(.has-swap):hover .media-img--primary,
.product-card:hover .product-media:not(.has-swap) .media-img--primary {
  opacity: 1;
  transform: scale(1.09) rotate(-1deg);
}

/* Shine sweep across the image on hover */
.media-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.media-shine::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-start: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
}
.product-card:hover .media-shine::before {
  animation: shineSweep 0.85s ease 0.05s 1;
}
@keyframes shineSweep {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateX(0);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: skewX(-18deg) translateX(320%);
  }
}

/* Gallery dots */
.media-dots {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  display: flex;
  gap: 5px;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.product-card:hover .media-dots {
  opacity: 1;
  transform: none;
}
.media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(30, 47, 107, 0.28);
  transition:
    background 0.3s ease,
    width 0.3s ease;
}
.product-card:hover .media-dot.is-active {
  background: var(--sky);
  width: 16px;
  border-radius: 999px;
}
.badge-sale {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}
.badge-out {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: #6b7280;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  z-index: 2;
}
@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 31, 75, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(214, 31, 75, 0);
  }
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-cat {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.product-name {
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}
.product-name a:hover {
  color: var(--sky);
}
.rating {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}
.product-price {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 4px 0 8px;
}
.price-now {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.price-now small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.price-was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
}
.product-body form {
  margin-top: auto;
}

/* FAQ */
.faq-section {
  background: var(--soft);
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "＋";
  color: var(--sky);
  margin-inline-start: 10px;
  font-weight: 800;
}
.faq-item[open] summary::before {
  content: "－";
}
.faq-item p {
  margin: 0 0 16px;
  color: #4a5875;
}

/* ===== Shop / PLP ===== */
/* Hero */
.plp-hero {
  background: linear-gradient(120deg, var(--ink), #2a3f8f);
  color: #fff;
  padding: 46px 0 40px;
}
.plp-hero__inner {
  animation: heroFade 0.6s ease both;
}
.plp-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 10px;
}
.plp-breadcrumb {
  font-size: 14px;
  color: #cdd6ef;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plp-breadcrumb a:hover {
  color: #fff;
}
.plp-sep {
  opacity: 0.7;
}
.plp-current {
  color: var(--accent);
  font-weight: 700;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Category strip */
.plp-category-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
/* Hide the scrollbar — the strip auto-scrolls and is mouse/touch controllable. */
.plp-category-strip::-webkit-scrollbar {
  display: none;
}
.plp-category-strip.is-dragging {
  cursor: grabbing;
}
.plp-category-strip.is-dragging a {
  pointer-events: none;
}
/* Block native image/link drag so custom drag-scroll owns the gesture. */
.plp-category-strip img,
.plp-category-strip a {
  -webkit-user-drag: none;
  user-select: none;
}
.plp-category {
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: cardReveal 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
.plp-category__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  border: 2px solid var(--line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.plp-category__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.plp-category:hover .plp-category__thumb {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(30, 47, 107, 0.16);
  border-color: var(--sky);
}
.plp-category:hover .plp-category__thumb img {
  transform: scale(1.08);
}
.plp-category.is-active .plp-category__thumb {
  border-color: var(--accent);
}
.plp-category__name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}
.plp-category__count {
  font-size: 11px;
  color: var(--muted);
}

/* Category dropdown */
.plp-device {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.plp-device__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.plp-dd {
  position: relative;
  min-width: 260px;
}
.plp-dd__toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.plp-dd__toggle::-webkit-details-marker {
  display: none;
}
.plp-dd[open] .plp-dd__toggle {
  border-color: var(--sky);
  box-shadow: 0 6px 18px rgba(30, 47, 107, 0.1);
}
.plp-dd__chev {
  transition: transform 0.2s ease;
  color: var(--sky);
}
.plp-dd[open] .plp-dd__chev {
  transform: rotate(180deg);
}
.plp-dd__panel {
  position: absolute;
  z-index: 20;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 47, 107, 0.16);
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  animation: ddDrop 0.2s ease both;
}
@keyframes ddDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.plp-dd__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plp-dd__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s ease;
}
.plp-dd__item:hover {
  background: var(--soft);
}
.plp-dd__item.is-active {
  background: var(--ink);
  color: #fff;
}
.plp-dd__count {
  font-size: 12px;
  color: var(--muted);
}
.plp-dd__item.is-active .plp-dd__count {
  color: #cdd6ef;
}

/* Layout */
.plp-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: start;
}

/* Filter panel */
.plp-filter {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Toggle switches */
.plp-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.plp-toggle b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.plp-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.plp-switch {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d5dbe8;
  position: relative;
  transition: background 0.25s ease;
}
.plp-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.plp-toggle input:checked + .plp-switch {
  background: var(--sky);
}
.plp-toggle input:checked + .plp-switch::after {
  transform: translateX(-20px);
}
.plp-toggle input:focus-visible + .plp-switch {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Filter groups */
.plp-filter__group {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.plp-filter__group h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}
.plp-filter__group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3a4a72;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.plp-filter__group label:hover {
  background: var(--soft);
}
.plp-filter__group input[type="radio"],
.plp-filter__group input[type="checkbox"] {
  accent-color: var(--sky);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Category radios (look like a checkbox list) */
.plp-cat span {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
}
.plp-cat input:checked ~ span {
  color: var(--sky);
}
.plp-cat input:checked {
}
.plp-cat:has(input:checked) {
  color: var(--ink);
  font-weight: 700;
}

/* Ratings */
.plp-rating-opt .stars {
  color: var(--accent);
  letter-spacing: 1px;
}
.plp-rating-opt .stars i {
  color: #d5dbe8;
  font-style: normal;
}

/* Price */
.plp-price-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.plp-price-inputs label {
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.plp-price-inputs label:hover {
  background: none;
}
.plp-price-inputs input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  text-align: center;
}
.plp-price-inputs input:focus {
  outline: none;
  border-color: var(--sky);
}
/* Hide number spinners so the boxes stay compact */
.plp-price-inputs input::-webkit-outer-spin-button,
.plp-price-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.plp-price-inputs input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.plp-price-apply {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 11px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.plp-price-apply:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 47, 107, 0.28);
}
.plp-price-apply:active {
  transform: none;
  box-shadow: none;
}

/* Reset */
.plp-filter__reset {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--sky);
  font-weight: 700;
}
.plp-filter__reset:hover {
  text-decoration: underline;
}

/* Toolbar */
.plp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.result-count {
  color: var(--muted);
  margin: 0;
}
.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-form label {
  font-size: 14px;
  color: var(--muted);
}
.sort-form select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.sort-form select:focus {
  outline: none;
  border-color: var(--sky);
}
.empty {
  color: var(--muted);
  padding: 40px 0;
}

/* Pagination */
.plp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  transition: all 0.18s ease;
}
.page-link:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(47, 107, 237, 0.28);
}
.page-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.page-link.is-active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.page-nav {
  font-size: 18px;
  color: var(--sky);
}
.page-nav:hover {
  color: #fff;
}
.page-gap {
  color: var(--muted);
  padding: 0 4px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover {
  color: var(--sky);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
.detail-media {
  position: relative;
  background: var(--soft);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
}
.detail-info h1 {
  font-size: 30px;
  margin: 6px 0 12px;
  font-weight: 800;
  color: var(--ink);
}
.detail-price {
  font-size: 24px;
  margin: 12px 0;
}
.detail-desc {
  color: #4a5875;
  margin: 18px 0;
}
.stock {
  font-size: 15px;
  font-weight: 700;
}
.stock.in {
  color: #1a8a3f;
}
.stock.out {
  color: var(--sale);
}
.add-form {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.add-form label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-form input[type="number"] {
  width: 68px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: start;
}
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--soft);
  padding: 6px;
}
.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-line-info a {
  font-weight: 700;
  color: var(--ink);
}
.qty-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-form input {
  width: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.btn-link {
  background: none;
  border: none;
  color: var(--sky);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
}
.line-total {
  font-weight: 800;
  color: var(--ink);
}
.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}
.btn-remove:hover {
  color: var(--sale);
}
.cart-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.cart-summary h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--ink);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.cart-summary .btn {
  margin-top: 16px;
}
.continue {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.empty-cart {
  text-align: center;
  padding: 60px 0;
}
.empty-cart p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 17px;
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: start;
}
.checkout-form h3,
.cart-summary h3 {
  margin-top: 0;
}
.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  text-align: right;
}
.field-error {
  color: var(--sale);
  font-size: 13px;
}

/* Confirmation */
.confirmation {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.confirmation .check {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #1a8a3f;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirmation h1 {
  font-size: 30px;
  color: var(--ink);
}
.order-recap {
  text-align: right;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
}
.order-recap h3 {
  margin-top: 0;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cdd6ef;
  margin-top: 40px;
  padding-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 30px;
  padding-bottom: 36px;
}
.footer-logo {
  width: 90px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 0 #fff);
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}
.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 14px;
}
.site-footer a {
  display: block;
  color: #cdd6ef;
  font-size: 14px;
  padding: 4px 0;
}
.site-footer a:hover {
  color: #fff;
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.newsletter input {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  text-align: right;
}
.newsletter button {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  padding: 0 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .plp-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-logo img {
    max-width: 220px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .banners {
    grid-template-columns: 1fr;
  }
  .plp-layout,
  .cart-layout,
  .checkout-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .plp-filter {
    position: static;
  }
  .plp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid,
  .category-grid,
  .plp-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
  }
  .brand img {
    width: 60px;
    height: 60px;
  }
  .header-actions {
    gap: 12px;
  }
  .search {
    order: 3;
    max-width: 100%;
  }

  /* Collapse the main nav into a hamburger menu */
  .nav-bar {
    padding: 10px 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-inner {
    display: none;
    flex-direction: column;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 10px;
  }
  .nav-inner.open {
    display: flex;
  }
  .nav-inner a {
    padding: 13px 4px;
    font-size: 15.5px;
    border-bottom: 1px solid var(--line);
  }
  .nav-inner a:last-child {
    border-bottom: 0;
  }

  /* Product detail: quantity + add button stack full width */
  .add-form {
    flex-wrap: wrap;
    gap: 12px;
  }
  .add-form .btn-add,
  .add-form .btn {
    flex: 1 1 100%;
  }
  .perks {
    gap: 14px 22px;
  }
  .detail-media img {
    padding: 20px;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .page-title {
    font-size: 26px;
  }
  .plp-hero h1 {
    font-size: 26px;
  }
  .section-title {
    font-size: 22px;
  }

  /* Section padding a touch tighter on phones */
  .section {
    padding: 32px 0;
  }
}
@media (max-width: 520px) {
  .product-grid,
  .category-grid,
  .stats-inner,
  .plp-main .product-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-inner {
    padding: 40px 16px;
  }

  /* Cart line: image + info on top row, controls on a second row */
  .cart-line {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty  total";
    row-gap: 10px;
  }
  .cart-line img {
    grid-area: img;
    width: 64px;
    height: 64px;
  }
  .cart-line-info {
    grid-area: info;
  }
  .qty-form {
    grid-area: qty;
  }
  .line-total {
    grid-area: total;
    text-align: start;
  }
  .btn-remove {
    grid-area: remove;
    justify-self: end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .track-timeline {
    flex-wrap: wrap;
    gap: 16px;
  }
  .track-timeline::before {
    display: none;
  }
  .track-step {
    flex: 0 0 40%;
  }
}

/* ===== Checkout: payment method + Vodafone Cash ===== */
.payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.payment-option {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.payment-option:hover {
  border-color: var(--sky);
}
.payment-option input {
  accent-color: var(--ink);
}
.vodafone-box {
  background: #fff8ec;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.vodafone-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin: 8px 0;
  direction: ltr;
}
.status-note-box {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  text-align: right;
}
.status-note-box.awaiting {
  background: #fff8ec;
  border: 1px solid var(--accent);
}

/* ===== Maintenance / Repair section ===== */
.section-sub {
  color: var(--muted);
  margin-top: 4px;
}

/* Homepage CTA banner */
.maint-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 55%, #101a3d 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(30, 47, 107, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.maint-cta-banner::after {
  content: "🔧";
  position: absolute;
  inset-inline-start: -10px;
  bottom: -26px;
  font-size: 130px;
  opacity: 0.08;
  transform: rotate(-18deg);
  pointer-events: none;
}
.maint-cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(30, 47, 107, 0.38);
}
.maint-cta-eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.maint-cta-text h3 {
  font-size: 24px;
  margin: 2px 0 6px;
}
.maint-cta-text p {
  color: #cdd6ee;
  font-size: 15px;
  margin: 0;
  max-width: 640px;
}
.maint-cta-arrow {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--ink-2);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Maintenance hero */
.maint-hero {
  background: linear-gradient(120deg, #f4f6fb 0%, #eaf0ff 100%);
  padding: 56px 0;
}
.maint-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.maint-hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  margin: 8px 0 14px;
}
.maint-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.maint-hero-cta .btn-whatsapp {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.maint-tel {
  display: inline-flex;
  align-items: center;
}
.maint-hero-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(30, 47, 107, 0.22);
}

/* Maintenance steps */
.maint-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.maint-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 22px 22px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.maint-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(30, 47, 107, 0.14);
}
.maint-step-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e08e12);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.4);
}
.maint-step h3 {
  color: var(--ink);
  font-size: 18px;
  margin: 0 0 8px;
}
.maint-step p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* Maintenance gallery */
.maint-gallery-section {
  background: var(--soft);
  padding: 48px 0;
}
.maint-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.maint-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(30, 47, 107, 0.1);
}
.maint-shot img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.maint-shot:hover img {
  transform: scale(1.05);
}
.maint-shot figcaption {
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* Maintenance contact band */
.maint-contact {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 46px 0;
}
.maint-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.maint-contact-copy h2 {
  font-size: 26px;
  margin: 0 0 6px;
}
.maint-contact-copy p {
  color: #cdd6ee;
  margin: 0;
}
.maint-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.maint-contact-actions .btn-whatsapp {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.maint-tel-lg {
  background: var(--accent);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
}
.maint-tel-lg:hover {
  background: #e08e12;
}

@media (max-width: 860px) {
  .maint-hero-inner {
    grid-template-columns: 1fr;
  }
  .maint-hero-media {
    order: -1;
  }
  .maint-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .maint-steps,
  .maint-gallery {
    grid-template-columns: 1fr;
  }
  .maint-cta-banner {
    padding: 22px;
  }
}

/* ===================================================================
   إضافات: شريط متحرك، لوجو الهيرو، الإحصائيات، آراء العملاء،
   فلاجات المخزون، إخفاء السعر، لوحة المواصفات
   =================================================================== */

/* ---- الشريط المتحرك أسفل الهيدر (marquee) ---- */
.topbar-marquee {
  background: var(--soft);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline-start: 26px;
  will-change: transform;
  animation: marquee-scroll 32s linear infinite;
}
.topbar-marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.marquee-sep {
  color: var(--accent);
  font-weight: 700;
}
/* RTL: النص يجري من اليسار لليمين بصريًا عبر translateX موجب */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ---- لوجو الهيرو (بديل السلايدر) ---- */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  /* دمج الخلفية البيضاء للّوجو مع خلفية الهيرو الفاتحة */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 40px rgba(30, 47, 107, 0.18));
  animation: hero-logo-float 5s ease-in-out infinite;
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---- قسم الإحصائيات ---- */
.stats-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}
.stat + .stat {
  border-inline-start: 1px solid var(--line);
}
.stat-icon {
  font-size: 30px;
  line-height: 1;
}
.stat strong {
  font-size: 17px;
  color: var(--ink);
  font-weight: 800;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* ---- آراء العملاء المتحركة ---- */
.reviews-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #eef2fb, #e8edf9);
  overflow: hidden;
}
.reviews-title {
  text-align: center;
  margin-bottom: 30px;
}
.reviews-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.reviews-row {
  overflow: hidden;
  width: 100%;
  /* الحاوية LTR عشان الشريط العريض يتحاذى لليسار وتفضل الحركة
     مالية العرض من غير فراغ أبيض في صفحة RTL. */
  direction: ltr;
}
/* الاتجاه LTR على الشريط عشان الحركة تفضل مستمرة من غير فراغ،
   والنص جوه الكروت يفضل RTL. لا يوجد gap بين المجموعتين — بدلاً منه
   مسافة نهائية داخل كل مجموعة عشان التكرار يبقى seamless بالظبط عند 50%. */
.reviews-track {
  display: flex;
  gap: 0;
  width: max-content;
  direction: ltr;
  will-change: transform;
}
.reviews-group {
  display: flex;
  gap: 18px;
  padding-inline-end: 18px;
  flex: 0 0 auto;
}
.reviews-track--forward {
  animation: reviews-forward 55s linear infinite;
}
.reviews-track--reverse {
  animation: reviews-reverse 55s linear infinite;
}
.reviews-row:hover .reviews-track {
  animation-play-state: paused;
}
@keyframes reviews-forward {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes reviews-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.review-card {
  flex: 0 0 360px;
  width: 360px;
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #cdd6ea;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(30, 47, 107, 0.05);
}
.review-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.review-product {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}
.review-stars {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 2px;
}
.review-text {
  margin: 2px 0;
  font-size: 12.5px;
  color: #4a5875;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sky);
  margin: 0;
}
.review-verified {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22a06b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.review-media {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 12px;
  padding: 6px;
}

/* ---- فلاجات المخزون + عرض العدد ---- */
.badge-last {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(214, 31, 75, 0.35);
}
.last-flag {
  display: inline-block;
  background: linear-gradient(90deg, #d61f4b, #f5a623);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 2px 0 6px;
  animation: flag-pulse 1.4s ease-in-out infinite;
}
.last-flag-lg {
  font-size: 15px;
  padding: 9px 18px;
  margin: 10px 0;
}
@keyframes flag-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.stock-line {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0 6px;
}
.stock-line.in {
  color: #0f9d58;
}
.stock-line.out {
  color: var(--sale);
}

/* ---- إخفاء السعر عن العميل ---- */
.price-hidden {
  color: var(--sky);
  font-weight: 700;
  font-size: 14px;
}
.detail-price.price-hidden {
  font-size: 16px;
  background: var(--soft);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px dashed var(--sky);
  display: inline-block;
}
.price-hidden-note {
  background: var(--soft);
  border: 1px dashed var(--sky);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #4a5875;
  margin: 8px 0;
}

/* ---- لوحة أهم المواصفات (تفاصيل المنتج) ---- */
.specs-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  margin: 40px 0;
  position: relative;
}
.specs-badge {
  position: absolute;
  top: 26px;
  inset-inline-start: 30px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  padding: 10px 26px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.specs-body {
  padding: 84px 34px 40px;
  color: #fff;
}
.specs-title {
  color: #57c0ff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 20px;
}
.specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
.specs-check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f05a5a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}
.specs-media {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.specs-media img {
  max-height: 420px;
  object-fit: contain;
}

/* ---- تلميح حقل الأدمن ---- */
.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2n) {
    border-inline-start: 0;
  }
  .specs-panel {
    grid-template-columns: 1fr;
  }
  .specs-media {
    order: -1;
  }
  .hero-logo img {
    max-width: 240px;
  }
}
@media (max-width: 520px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .review-card {
    flex: 0 0 300px;
    width: 300px;
  }
}


/* ===== شريط الصور والفيديوهات (Reels) ===== */
.reels-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #fff, #f4f6fb);
}
.reels-title {
  text-align: center;
  margin-bottom: 28px;
}
.reels-viewport {
  position: relative;
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 0 20px;
}
.reels-viewport:last-child {
  margin-bottom: 0;
}
.reels-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px;
  /* LTR عشان التمرير التلقائي يشتغل صح في صفحة RTL */
  direction: ltr;
}
.reels-track::-webkit-scrollbar {
  display: none;
}
.reels-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reels-arrow:hover {
  background: var(--soft);
}
.reels-arrow--left {
  left: 4px;
}
.reels-arrow--right {
  right: 4px;
}
@media (max-width: 620px) {
  .reels-arrow {
    display: none;
  }
}
.reel-card {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
}
.reel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1020;
  box-shadow: 0 12px 30px rgba(30, 47, 107, 0.14);
}
.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.reel-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}
.reel-play:hover {
  transform: scale(1.08);
  background: #fff;
}
.reel-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 620px) {
  .reel-card {
    width: 180px;
  }
}

.reel-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 12px 12px;
  background: linear-gradient(transparent, rgba(11, 16, 32, 0.85));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  direction: rtl;
  pointer-events: none;
}

/* كروت الصور داخل الشريط: تعرض المنتج كامل على خلفية بيضاء */
.reel-media--img {
  display: block;
  background: #fff;
}
.reel-media--img .reel-thumb {
  object-fit: contain;
  padding: 12px;
}

/* ===== صفحة من نحن ===== */
.about-intro {
  max-width: 820px;
  font-size: 16px;
  color: #4a5875;
  line-height: 1.9;
  margin-bottom: 34px;
}
.about-intro strong { color: var(--ink); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(30, 47, 107, 0.06);
}
.about-ico { font-size: 32px; margin-bottom: 8px; }
.about-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.about-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* لوجو صغير داخل بانر الترويج (بدل الشارة) */
.promo-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ===== لوحة حجز منتج نافد الكمية (العربون) ===== */
.deposit-panel {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--soft);
  margin: 6px 0 14px;
}
.deposit-title { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.deposit-note { margin: 0 0 14px; font-size: 14px; color: #4a5875; }
.deposit-note strong { color: var(--ink); }
.deposit-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.deposit-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.deposit-form input[type="text"],
.deposit-form input[type="tel"],
.deposit-form input[type="number"] {
  padding: .6rem .7rem; border: 1px solid #d5dbe9; border-radius: 8px; font-family: inherit; font-size: 14px;
}
.deposit-form input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(47,107,237,.14); }
.deposit-pay { font-size: 13.5px; color: #4a5875; margin: 14px 0 10px; }
.deposit-file { margin: 6px 0 14px; }
.deposit-alert { padding: 12px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.deposit-alert.ok { background: #e3f5ea; color: #1f6f54; }
.deposit-alert.err { background: #fdecea; color: #b3261e; }
@media (max-width: 560px) {
  .deposit-grid { grid-template-columns: 1fr; }
}

/* ===== بانرات المقارنة (الرئيسية) ===== */
.cmp-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px auto;
}
.cmp-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 34px 40px;
  overflow: hidden;
  color: #fff;
  background-color: #1e3fa8;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(30, 47, 107, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cmp-banner.alt { background-color: #1e2f6b; }
/* تدرّج افتراضي لو مفيش صورة مرفوعة */
.cmp-banner:not(.has-img) { background-image: linear-gradient(120deg, #2f6bed, #1e3fa8); }
.cmp-banner.alt:not(.has-img) { background-image: linear-gradient(120deg, #1e2f6b, #3a56c5); }
/* تعتيم فوق الصورة لوضوح النص (النص على اليمين) */
.cmp-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-90deg, rgba(18, 26, 64, 0.12) 0%, rgba(18, 26, 64, 0.5) 45%, rgba(18, 26, 64, 0.85) 100%);
}
.cmp-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(30, 47, 107, 0.24);
}
.cmp-banner-copy {
  position: relative;
  z-index: 2;
  max-width: 58%;
  text-align: right;
}
.cmp-banner h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
}
.cmp-banner p {
  margin: 0 0 18px;
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.7;
}
.cmp-banner-btn {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 999px;
}
@media (max-width: 760px) {
  .cmp-banners { grid-template-columns: 1fr; }
  .cmp-banner-copy { max-width: 100%; }
}

/* ===== الفوتر: أيقونات سوشيال + تنسيق موبايل ===== */
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .site-footer { padding-top: 36px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { max-width: 320px; margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-news .newsletter { max-width: 360px; margin-inline: auto; }
  .footer-col h4 { margin-bottom: 10px; }
}

/* ===== فلاج العرض/التخفيض (Sale) ===== */
.badge-offer {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  background: linear-gradient(90deg, #d61f4b, #f5a623);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(214, 31, 75, 0.4);
  animation: offer-pulse 1.5s ease-in-out infinite;
}
@keyframes offer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.badge-offer-lg {
  font-size: 15px;
  padding: 8px 18px;
  top: 16px;
  inset-inline-end: 16px;
}
/* الكارت اللي عليه عرض: إطار وتوهّج مميّز */
.product-card--sale {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.28);
}
.product-card--sale .product-media {
  background: linear-gradient(180deg, #fff7ea, #fff);
}
.detail-media--sale {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.22);
}

/* ===== شريط الإعلانات العلوي (ماركيّه متحرك مستمر في سطر واحد) ===== */
.announcement {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}
.ann-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  gap: 36px;
  padding: 10px 0;
  padding-inline-start: 36px;
  will-change: transform;
  animation: ann-scroll 40s linear infinite;
}
.ann-item {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ann-sep {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 10px;
}
@keyframes ann-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

/* ===== إشعارات المبيعات (Sales Popup) ===== */
.salespop {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 950;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(30, 47, 107, 0.22);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.45s ease;
  pointer-events: none;
}
.salespop.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.salespop-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
}
.salespop-media {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.salespop-img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.salespop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.salespop-tag {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #d61f4b, #f5a623);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.salespop-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.salespop-price { font-weight: 800; font-size: 15px; color: var(--sale); }
.salespop-price small { font-weight: 600; font-size: 11px; color: var(--muted); }
.salespop-cta { font-size: 12px; font-weight: 700; color: var(--sky); margin-top: 2px; }
.salespop-close {
  position: absolute;
  top: 6px;
  inset-inline-start: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.salespop-close:hover { color: var(--sale); }
@media (max-width: 520px) {
  .salespop { right: 12px; bottom: 84px; width: 280px; }
}

/* ===== معرض صور المنتج (صفحة التفاصيل) ===== */
.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.detail-thumb {
  width: 74px;
  height: 74px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumb:hover { border-color: var(--sky); transform: translateY(-2px); }
.detail-thumb.active { border-color: var(--sky); }
#detailMainImg { transition: opacity 0.2s ease; }

/* فواصل مجموعات صفحة الإعدادات */
.settings-sep { border: none; border-top: 1px solid var(--line); margin: 22px 0 6px; }
.settings-group-title { font-size: 15px; color: var(--ink); margin: 0 0 10px; font-weight: 800; }

/* روابط الفروع في الفوتر */
.footer-locations { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.footer-locations a { color: #cdd6ef; font-size: 13.5px; }
.footer-locations a:hover { color: #fff; }

/* خانة تسجيل التاجر */
.merchant-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.merchant-check small { font-weight: 500; color: var(--muted); }

/* ===== قسم / تصنيفات التجار ===== */
.nav-merchant { color: #a86a00 !important; font-weight: 800; }
.nav-merchant:hover { color: var(--accent) !important; }
.merchant-tag {
  display: inline-block;
  background: linear-gradient(90deg, #1e2f6b, #3a56c5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.plp-hero--merchant { background: linear-gradient(120deg, #1e2f6b, #3a56c5); color: #fff; }
.plp-hero--merchant h1, .plp-hero--merchant .plp-current { color: #fff; }
.plp-hero--merchant .plp-breadcrumb a { color: rgba(255,255,255,.85); }
.merchant-eyebrow {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px;
}
.merchant-sub { color: rgba(255,255,255,.92); font-size: 15px; margin: 6px 0 0; }
