/* Zilal Theme - Stylesheet */
/* A dark, atmospheric editorial theme built around light and shadow */

/* ===== Zilal View All Button — Cinematic ===== */
.zilal-view-all {
  --va-gold: 212,168,83;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: color-mix(in srgb, var(--btn-secondary-text, #D4A853) 60%, transparent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: color 0.5s, gap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zilal-view-all:hover { color: var(--btn-secondary-text, #D4A853); gap: 1rem; }

/* Text with animated underline reveal */
.zilal-view-all .zilal-va-text {
  position: relative;
  padding-bottom: 4px;
}
.zilal-view-all .zilal-va-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(var(--va-gold), 0.8), rgba(var(--va-gold), 0.1));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[dir="rtl"] .zilal-view-all .zilal-va-text::after {
  background: linear-gradient(to left, rgba(var(--va-gold), 0.8), rgba(var(--va-gold), 0.1));
}
.zilal-view-all:hover .zilal-va-text::after { width: 100%; }

/* Dot — pulsing orb that morphs into the line */
.zilal-view-all .zilal-va-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--va-gold), 0.5);
  flex-shrink: 0;
  position: relative;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(var(--va-gold), 0.3), 0 0 20px rgba(var(--va-gold), 0.1);
  animation: zilalOrbFloat 3s ease-in-out infinite;
}
@keyframes zilalOrbFloat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(var(--va-gold), 0.25), 0 0 16px rgba(var(--va-gold), 0.08); }
  50% { transform: scale(1.3); box-shadow: 0 0 14px rgba(var(--va-gold), 0.4), 0 0 28px rgba(var(--va-gold), 0.15); }
}
.zilal-view-all:hover .zilal-va-dot {
  width: 20px;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(to right, rgba(var(--va-gold), 0.5), transparent);
  box-shadow: none;
  animation: none;
}

/* Arrow circle — expands from nothing */
.zilal-view-all .zilal-va-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--va-gold), 0);
  border: 1px solid transparent;
  opacity: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zilal-view-all:hover .zilal-va-arrow {
  width: 28px;
  opacity: 1;
  background: rgba(var(--va-gold), 0.1);
  border-color: rgba(var(--va-gold), 0.2);
  box-shadow: 0 0 20px rgba(var(--va-gold), 0.1);
}
.zilal-view-all .zilal-va-arrow svg {
  width: 12px;
  height: 12px;
  color: rgba(var(--va-gold), 0.7);
  transition: transform 0.3s, color 0.3s;
}
.zilal-view-all:hover .zilal-va-arrow svg {
  color: rgba(var(--va-gold), 1);
}
.zilal-view-all:hover .zilal-va-arrow:hover {
  background: rgba(var(--va-gold), 0.2);
  transform: scale(1.15);
}
.zilal-view-all:hover .zilal-va-arrow:hover svg {
  transform: translateX(2px);
}
[dir="rtl"] .zilal-view-all:hover .zilal-va-arrow:hover svg {
  transform: translateX(-2px);
}

/* ===== Base Styles ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

[data-qumra-loading="true"] {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s;
}

.active {
  color: var(--color-primary);
}

.removing {
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s ease;
}

/* ===== Line Clamp ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Zilal Shadow System ===== */
.zilal-shadow-sm {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

.zilal-shadow {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(0, 0, 0, 0.2);
}

.zilal-shadow-lg {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(0, 0, 0, 0.2);
}

.zilal-shadow-xl {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(0, 0, 0, 0.2);
}

.zilal-glow {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 168, 83, 0.04);
}

.zilal-glow-primary {
  box-shadow:
    0 4px 20px rgba(212, 168, 83, 0.15),
    0 0 40px rgba(212, 168, 83, 0.06);
}

/* ===== Hero CTA — Shine + Lift ===== */
.zilal-hero-cta {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.zilal-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 70%
  );
  transition: left 0.6s ease;
}

.zilal-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.zilal-hero-cta:hover::before {
  left: 120%;
}

.zilal-hero-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Subtle pulse glow */
.zilal-hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.zilal-hero-cta:hover::after {
  opacity: 1;
}

/* ===== Button Styles ===== */
.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--btn-primary-bg) 25%, transparent);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1.5px solid var(--btn-secondary-border);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-text);
  color: var(--btn-secondary-bg, var(--color-background));
  box-shadow: 0 4px 20px color-mix(in srgb, var(--btn-secondary-text) 20%, transparent);
}

/* ===== Scrollbar ===== */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== Swiper Custom Styles ===== */
.swiper-pagination-bullet {
  background: var(--color-primary) !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-text) !important;
  background: var(--color-surface);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--color-primary);
  color: #141418 !important;
  border-color: var(--color-primary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: bold;
}

.swiper-outside-pagination .swiper-wrapper {
  align-items: stretch;
}
.swiper-outside-pagination .swiper-slide {
  height: auto;
}

.swiper-outside-pagination {
  overflow-x: clip;
  overflow-y: visible;
}

.swiper-outside-pagination > .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 1.5rem;
}

/* ===== Toast Notifications ===== */
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 0.4s ease;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-success { background-color: #10b981; }
.toast-error { background-color: #ef4444; }
.toast-warning { background-color: #f59e0b; }
.toast-info { background-color: var(--color-primary); color: #141418; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 40;
  backdrop-filter: blur(4px);
}

/* ===== Drawer ===== */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  z-index: 50;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-inline-start: 1px solid var(--color-border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

html[dir="rtl"] .drawer-start {
  right: 0;
  transform: translateX(100%);
}

html[dir="ltr"] .drawer-start {
  left: 0;
  transform: translateX(-100%);
}

html[dir="rtl"] .drawer-end {
  left: 0;
  transform: translateX(-100%);
}

html[dir="ltr"] .drawer-end {
  right: 0;
  transform: translateX(100%);
}

.drawer.open {
  transform: translateX(0) !important;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-slide-up { animation: slideUp 0.5s ease; }

/* ===== Product Card — Zilal Cinematic ===== */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 168, 83, 0.06);
}


/* ===== Product Card — Touch Device Support ===== */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .product-card:active {
    transform: translateY(-3px);
  }

  /* Disable image zoom on touch — gets stuck */
  .product-card .card-img img {
    transition: none !important;
  }

  .product-card .card-img img:hover {
    transform: none !important;
  }
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ===== Loading & Success Animations ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-check {
  animation: checkPop 0.4s ease;
}

@keyframes cartItemEnter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item-enter {
  animation: cartItemEnter 0.3s ease-out;
}

/* ===== Rating Stars ===== */
.stars {
  display: inline-flex;
  gap: 2px;
}

.stars .star-filled { color: #D4A853; }
.stars .star-empty { color: var(--color-border); }

/* ===== Price Range Slider ===== */
.price-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.price-slider .slider-track {
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--color-border);
  border-radius: 9999px;
}

.price-slider .slider-range {
  position: absolute;
  height: 5px;
  background: var(--color-primary);
  border-radius: 9999px;
}

.price-slider input[type="range"] {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
  height: 5px;
  outline: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.3);
}

.price-slider input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

/* ===== Zilal Spotlight Effect ===== */
.zilal-spotlight {
  position: relative;
}

.zilal-spotlight::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 168, 83, 0.06) 0%,
    rgba(212, 168, 83, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== Zilal Header — Floating Island ===== */
.zilal-header {
  pointer-events: none;
}
.zilal-header > div {
  pointer-events: auto;
}

.zilal-header-island {
  position: relative;
  background: transparent;
  border: 1px solid var(--hdr-bg, #141418);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.zilal-header-island::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--hdr-bg, #141418);
  opacity: var(--hdr-bg-alpha, 0.85);
  z-index: 0;
  pointer-events: none;
}

.zilal-header-island::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 25%,
    color-mix(in srgb, var(--hdr-glow, #D4A853) 25%, transparent) 30%,
    color-mix(in srgb, var(--hdr-glow, #D4A853) 35%, transparent) 35%,
    color-mix(in srgb, var(--hdr-glow, #D4A853) 25%, transparent) 40%,
    transparent 45%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: headerBorderSpin 8s linear infinite;
}

@keyframes headerBorderSpin {
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.zilal-header-island--scrolled {
  border-color: var(--hdr-bg, #141418);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}


/* ===== Header Logo — Responsive Sizing ===== */
/* Mobile: fills header row height (h-full from template) */
/* Tablet + Desktop: uses the custom height from settings */
@media (min-width: 768px) {
  .zilal-header-logo {
    height: var(--logo-h, 36px) !important;
  }
}

/* ===== Dark Input Styles ===== */
.zilal-input {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.zilal-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.1);
}

.zilal-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* ===== Article Prose Enhancements ===== */
.prose blockquote {
  background: rgba(255, 255, 255, 0.03);
  border-inline-start: 3px solid var(--color-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--color-text);
  position: relative;
}

.prose blockquote p {
  color: var(--color-text) !important;
  opacity: 0.85;
}

/* ===== Article Hero Gradient Overlay ===== */
.article-hero-image {
  position: relative;
}

.article-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--color-background), transparent);
  pointer-events: none;
}

/* ===== Section Depth Layering ===== */
.zilal-section-elevated {
  background-color: var(--color-surface);
  position: relative;
}

.zilal-section-elevated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent
  );
}

/* ===== Cinematic Fade-in on Scroll ===== */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-reveal {
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ===== Card Ambient Light Effect ===== */
.zilal-card-ambient {
  position: relative;
}

.zilal-card-ambient::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 168, 83, 0.08),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.zilal-card-ambient:hover::before {
  opacity: 1;
}

/* ===== Nav Link Glow Underline ===== */
.zilal-nav-link {
  position: relative;
  transition: color 0.4s ease;
}

.zilal-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  inset-inline-start: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-primary),
    transparent
  );
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
}

html[dir="rtl"] .zilal-nav-link::after {
  transform: translateX(50%);
}

.zilal-nav-link:hover::after {
  width: 70%;
  opacity: 1;
}

/* ===== Generous Section Spacing ===== */
.zilal-section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .zilal-section {
    padding-block: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .zilal-section {
    padding-block: 7rem;
  }
}

/* ===== Promo Banner — Zilal Cinematic ===== */

/* Image — slow zoom on hover */
.zpromo-zilal .zpromo-img {
  transition: transform 8s ease-out;
}
.zpromo-zilal:hover .zpromo-img {
  transform: scale(1.04);
}

/* Content elements — stagger entrance */
.zpromo-zilal .zpromo-el {
  opacity: 0;
  transform: translateY(20px);
  animation: zpromoFadeUp 0.7s ease forwards;
}
.zpromo-zilal .zpromo-el:nth-child(1) { animation-delay: 0.15s; }
.zpromo-zilal .zpromo-el:nth-child(2) { animation-delay: 0.3s; }
.zpromo-zilal .zpromo-el:nth-child(3) { animation-delay: 0.45s; }
.zpromo-zilal .zpromo-el:nth-child(4) { animation-delay: 0.6s; }
.zpromo-zilal .zpromo-el:nth-child(5) { animation-delay: 0.75s; }
.zpromo-zilal .zpromo-el:nth-child(6) { animation-delay: 0.9s; }

@keyframes zpromoFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Marquee — infinite scroll ── */
.zpromo-marquee {
  animation: zpromoMarquee 35s linear infinite;
}
html[dir="rtl"] .zpromo-marquee {
  animation: zpromoMarqueeRtl 35s linear infinite;
}
@keyframes zpromoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes zpromoMarqueeRtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ── Floating shapes ── */
.zpromo-float-1 {
  animation: zpromoFloat1 8s ease-in-out infinite;
}
.zpromo-float-2 {
  animation: zpromoFloat2 10s ease-in-out infinite;
}
.zpromo-float-3 {
  animation: zpromoFloat3 12s ease-in-out infinite;
}
@keyframes zpromoFloat1 {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(55deg); }
}
@keyframes zpromoFloat2 {
  0%, 100% { transform: translateX(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateX(10px) rotate(3deg); opacity: 0.3; }
}
@keyframes zpromoFloat3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(90deg); }
  66% { transform: translateY(5px) rotate(180deg); }
}

/* ── Orbit ring ── */
.zpromo-orbit {
  animation: zpromoOrbit 18s linear infinite;
}
@keyframes zpromoOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Pulsing dot ── */
.zpromo-pulse {
  animation: zpromoPulse 2.5s ease-in-out infinite;
}
@keyframes zpromoPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.5); }
}

/* ── Breathing frame — lines expand/contract ── */
.zpromo-frame-h {
  animation: zpromoFrameH 4.5s ease-in-out infinite;
}
.zpromo-frame-v {
  animation: zpromoFrameV 4.5s ease-in-out infinite;
}
@keyframes zpromoFrameH {
  0%, 100% { width: 2rem; }
  50% { width: 3.5rem; }
}
@keyframes zpromoFrameV {
  0%, 100% { height: 2rem; }
  50% { height: 3.5rem; }
}
@media (min-width: 768px) {
  @keyframes zpromoFrameH {
    0%, 100% { width: 3.5rem; }
    50% { width: 5.5rem; }
  }
  @keyframes zpromoFrameV {
    0%, 100% { height: 3.5rem; }
    50% { height: 5.5rem; }
  }
}

/* ── Shimmer sweep on title ── */
.zpromo-shimmer {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(212, 168, 83, 0.12) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: zpromoShimmer 5s ease-in-out infinite;
}
@keyframes zpromoShimmer {
  0% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Label glow ── */
.zpromo-label-glow {
  animation: zpromoLabelGlow 3s ease-in-out infinite;
}
@keyframes zpromoLabelGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Accent line grow pulse ── */
.zpromo-line-grow {
  animation: zpromoLineGrow 3s ease-in-out infinite;
}
@keyframes zpromoLineGrow {
  0%, 100% { width: 2rem; opacity: 1; }
  50% { width: 3rem; opacity: 0.5; }
}
@media (min-width: 768px) {
  @keyframes zpromoLineGrow {
    0%, 100% { width: 3rem; opacity: 1; }
    50% { width: 4.5rem; opacity: 0.5; }
  }
}

/* ── Vertical stripe breathing ── */
.zpromo-vstripe {
  animation: zpromoVstripe 4s ease-in-out infinite;
}
@keyframes zpromoVstripe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ── Countdown seconds pulse bar ── */
.zpromo-cd-pulse {
  animation: zpromoCdPulse 1s ease-in-out infinite;
}
@keyframes zpromoCdPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ── Watermark slow drift ── */
.zpromo-watermark {
  animation: zpromoWatermark 20s ease-in-out infinite;
}
@keyframes zpromoWatermark {
  0%, 100% { transform: translate(-50%, -50%) rotate(-15deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(-15deg) scale(1.05); }
}

/* ── Grain texture — cinematic film noise ── */
.zpromo-grain {
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

/* ── Highlight blocks — slide in ── */
.zpromo-highlight {
  opacity: 0;
  transform: translateX(12px);
  animation: zpromoHighlight 0.5s ease forwards;
}
html[dir="rtl"] .zpromo-highlight {
  transform: translateX(-12px);
}
@keyframes zpromoHighlight {
  to { opacity: 1; transform: translateX(0); }
}
.zpromo-highlight:hover div:first-child {
  border-color: currentColor;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .zpromo-marquee,
  .zpromo-float-1, .zpromo-float-2, .zpromo-float-3,
  .zpromo-orbit, .zpromo-pulse,
  .zpromo-frame-h, .zpromo-frame-v,
  .zpromo-shimmer, .zpromo-label-glow,
  .zpromo-line-grow, .zpromo-vstripe,
  .zpromo-cd-pulse,
  .zpromo-watermark, .zpromo-highlight {
    animation: none !important;
  }
  .zpromo-zilal .zpromo-el {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
