/* ============================================================
   home.css – Home Page Specific Styles
   ============================================================ */

/* ── HERO SLIDER ─────────────────────────────────────────────
   Each slide = a dark brand panel (copy) + a light "stage" (product).
   Product photos are packshots on WHITE: mix-blend-mode: multiply
   melts the white into the stage, so no cut-out is ever needed.
   Uses logical properties (inset-inline-*, padding-inline-*) so the
   whole layout mirrors itself automatically in Arabic (dir="rtl").  */

.hero-slider {
  --hero-h: 540px;
  --hero-gutter: max(40px, calc((100vw - 1300px) / 2 + 24px)); /* lines copy up with .container */
  --hero-cut: 90px;                                              /* width of the diagonal edge */
  position: relative;
  height: calc(var(--topbar-height, 104px) + var(--hero-h));
  padding-top: var(--topbar-height, 104px);
  background: #1E1F21;
  overflow: hidden;
}

.hero-slide {
  position: absolute; top: var(--topbar-height, 104px); bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 54% 46%;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  /* Theme keys are stored in the DB (navy / charcoal / indigo). No orange in the hero on purpose:
     cool colours make the orange SmartLife packaging on the right stand out.
     navy = "Graphite" (sky blue), charcoal = "Deep Ocean" (cyan), indigo = "Emerald" (mint) */
  --hero-bg: radial-gradient(circle at 15% 115%, rgba(56,189,248,.28), transparent 55%),
             linear-gradient(135deg, #111214 0%, #1D1F23 55%, #2A2D33 100%);
  --hero-pattern: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px,
                  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 46px 46px;
  --hero-accent: #38BDF8;
  --hero-accent-glow: rgba(56, 189, 248, .40);
  --hero-btn-text: #06202E;
  --hero-stripe: #38BDF8;
  --hero-mark: rgba(255, 255, 255, .05);
  --hero-ink: #fff;
  --hero-muted: rgba(255,255,255,.78);
  --hero-chip-bg: rgba(255,255,255,.07);
  --hero-chip-border: rgba(255,255,255,.14);
  --hero-stage: radial-gradient(circle at 58% 48%, #ffffff 0%, #ffffff 32%, #f0f3f6 62%, #e2e8ee 100%);
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-theme-charcoal { /* "Deep Ocean": blue-teal panel, cyan button */
  --hero-bg: radial-gradient(circle at 85% -10%, rgba(34,211,238,.30), transparent 50%),
             linear-gradient(135deg, #04202E 0%, #08384F 55%, #0B5570 100%);
  --hero-pattern: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 26px);
  --hero-accent: #22D3EE;
  --hero-accent-glow: rgba(34, 211, 238, .40);
  --hero-btn-text: #04202E;
  --hero-stripe: #22D3EE;
  --hero-mark: rgba(255, 255, 255, .07);
  --hero-stage: radial-gradient(circle at 58% 48%, #ffffff 0%, #ffffff 34%, #eef6f9 64%, #dcebf1 100%);
}
.hero-theme-indigo { /* "Emerald": deep green panel, mint button */
  --hero-bg: radial-gradient(circle at 10% 110%, rgba(52,211,153,.28), transparent 52%),
             linear-gradient(135deg, #03211B 0%, #073A30 55%, #0B5444 100%);
  --hero-pattern: radial-gradient(rgba(255,255,255,.09) 1.3px, transparent 1.5px) 0 0 / 22px 22px;
  --hero-accent: #34D399;
  --hero-accent-glow: rgba(52, 211, 153, .40);
  --hero-btn-text: #03211B;
  --hero-stripe: #34D399;
  --hero-mark: rgba(255, 255, 255, .06);
  --hero-stage: radial-gradient(circle at 58% 48%, #ffffff 0%, #ffffff 34%, #eef7f3 64%, #dbefe6 100%);
}

/* ── Copy panel ── */
.hero-slide-content {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  margin-inline-end: calc(var(--hero-cut) * -1);
  padding-inline: var(--hero-gutter) calc(var(--hero-cut) + 40px);
  background: var(--hero-pattern, linear-gradient(transparent, transparent)), var(--hero-bg);
  color: var(--hero-ink, #fff);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--hero-cut)) 100%, 0 100%);
  overflow: hidden;
}
/* accent stripe along the diagonal edge */
.hero-slide-content::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--hero-stripe);
  clip-path: polygon(calc(100% - 7px) 0, 100% 0, calc(100% - var(--hero-cut)) 100%, calc(100% - var(--hero-cut) - 7px) 100%);
}
[dir="rtl"] .hero-slide-content::after { clip-path: polygon(0 0, 7px 0, calc(var(--hero-cut) + 7px) 100%, var(--hero-cut) 100%); }
/* big SmartLife "S" mark behind the copy */
.hero-mark {
  position: absolute; top: 50%; inset-inline-end: calc(var(--hero-cut) + 10px);
  width: 330px; height: 370px; transform: translateY(-50%) rotate(-6deg);
  background: var(--hero-mark);
  -webkit-mask: url('../images/logo-icon.png') center / contain no-repeat;
          mask: url('../images/logo-icon.png') center / contain no-repeat;
  pointer-events: none;
}
/* subtle accent glow in the panel's corner */
.hero-slide-content::before {
  content: ''; position: absolute; inset-inline-start: -120px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-accent-glow) 0%, transparent 65%);
  opacity: .35; pointer-events: none;
}
.hero-content-inner { position: relative; max-width: 560px; padding-bottom: 36px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 50px;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border);
  font-size: .74rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  direction: ltr; /* model numbers read left-to-right even in Arabic */
}
.hero-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hero-accent); box-shadow: 0 0 0 4px var(--hero-accent-glow);
}
.hero-slide-content h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -.5px; margin: 18px 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-subtitle { font-size: 1rem; line-height: 1.7; color: var(--hero-muted); max-width: 470px; margin-bottom: 22px; }

.hero-features { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.hero-features li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 50px;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border);
  font-size: .82rem; font-weight: 500; color: var(--hero-ink);
}
.hero-features li i {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .6rem; background: var(--hero-accent); color: var(--hero-btn-text, #fff);
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px;
  background: var(--hero-accent); color: var(--hero-btn-text, #fff); font-weight: 700; font-size: .95rem;
  box-shadow: 0 12px 28px var(--hero-accent-glow);
  transition: transform .2s, box-shadow .2s;
}
.hero-btn i { font-size: .8rem; transition: transform .2s; }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--hero-accent-glow); }
.hero-btn:hover i { transform: translateX(3px); }
[dir="rtl"] .hero-btn:hover i { transform: translateX(-3px); }
.hero-link {
  color: var(--hero-ink); opacity: .85; font-weight: 600; font-size: .92rem;
  text-decoration: underline; text-decoration-color: var(--hero-chip-border); text-underline-offset: 6px;
}
.hero-link:hover { opacity: 1; text-decoration-color: var(--hero-accent); }

/* ── Product stage ── */
.hero-slide-media { position: relative; overflow: hidden; }
.hero-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 48px;
  padding-inline-start: calc(var(--hero-cut) + 24px);
  background: var(--hero-stage);
}
/* dashed orbit ring behind the product */
.hero-stage::before {
  content: ''; position: absolute; top: 50%; left: 58%;
  width: 430px; height: 430px; border-radius: 50%;
  border: 1.5px dashed var(--hero-accent); opacity: .45;
  transform: translate(-50%, -50%);
}
.hero-watermark {
  position: absolute; top: 18px; inset-inline-end: 24px;
  font-size: clamp(1.8rem, 2.9vw, 2.9rem); font-weight: 900; letter-spacing: -1px;
  color: rgba(43,44,46,.06); white-space: nowrap; direction: ltr; pointer-events: none;
}
.hero-stage img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  mix-blend-mode: multiply; /* white photo background disappears into the stage */
}
.hero-slide-placeholder { position: relative; z-index: 1; font-size: 8rem; }

.hero-badge {
  position: absolute; z-index: 2; bottom: 24px; inset-inline-end: 24px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 14px;
  background: #fff; box-shadow: 0 12px 30px rgba(20,20,22,.14);
}
.hero-badge i {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--hero-accent); color: var(--hero-btn-text, #fff); font-size: .9rem;
}
.hero-badge strong { display: block; font-size: .8rem; color: #2B2C2E; line-height: 1.3; }
.hero-badge span { display: block; font-size: .7rem; color: var(--gray, #6b7280); }

/* ── Slide with a model / lifestyle photo (Admin -> Hero Banners -> "Model photo") ──
   The person fills the stage; the white-background packshot floats on a white card. */
.hero-slide--model .hero-stage { padding: 0; background: #1E1F21; }
.hero-slide--model .hero-stage::before, .hero-slide--model .hero-watermark { display: none; }
.hero-slide--model .hero-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, transparent 45%),
              linear-gradient(90deg, rgba(0,0,0,.30) 0%, transparent 30%);
}
[dir="rtl"] .hero-slide--model .hero-stage::after {
  background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, transparent 45%),
              linear-gradient(270deg, rgba(0,0,0,.30) 0%, transparent 30%);
}
.hero-stage img.hero-model {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: center 35%;
  mix-blend-mode: normal;
  transform: none; /* never smaller than the stage, so no gap shows at the edges */
}
.hero-slide.active .hero-stage img.hero-model { transform: scale(1.03); transition: opacity .7s ease, transform 6s ease-out; }
.hero-product-card {
  position: absolute; z-index: 2; bottom: 26px; inset-inline-start: calc(var(--hero-cut) + 26px);
  width: 190px; aspect-ratio: 1; padding: 12px; border-radius: 18px;
  background: #fff; border-top: 4px solid var(--hero-accent);
  box-shadow: 0 22px 44px rgba(0,0,0,.35);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease .3s, transform .6s ease .3s;
}
.hero-slide.active .hero-product-card { opacity: 1; transform: none; }
.hero-stage .hero-product-card img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-slide--model .hero-badge { bottom: auto; top: 22px; }
@media (prefers-reduced-motion: reduce) {
  .hero-product-card, .hero-slide.active .hero-stage img.hero-model { transition: none; transform: none; }
}

/* ── Entrance animation for the active slide ── */
.hero-content-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hero-slide.active .hero-content-inner > * { opacity: 1; transform: none; }
.hero-slide.active .hero-content-inner > :nth-child(2) { transition-delay: .08s; }
.hero-slide.active .hero-content-inner > :nth-child(3) { transition-delay: .16s; }
.hero-slide.active .hero-content-inner > :nth-child(4) { transition-delay: .24s; }
.hero-slide.active .hero-content-inner > :nth-child(5) { transition-delay: .32s; }
.hero-stage img, .hero-badge { opacity: 0; transform: scale(.94) translateY(12px); transition: opacity .7s ease .1s, transform .7s ease .1s; }
.hero-slide.active .hero-stage img, .hero-slide.active .hero-badge { opacity: 1; transform: none; }
.hero-slide.active .hero-badge { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .hero-content-inner > *, .hero-stage img, .hero-badge { transition: none; transform: none; }
}

/* ── Controls ── */
/* Arrows sit with the dots at the bottom of the copy panel, so they never cover the product */
.hero-arrow {
  position: absolute; z-index: 3; bottom: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); color: #fff;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: var(--hero-accent); color: var(--hero-btn-text); border-color: transparent; }
.hero-arrow-prev { inset-inline-start: calc(var(--hero-gutter) + 140px); }
.hero-arrow-next { inset-inline-start: calc(var(--hero-gutter) + 192px); }

.hero-dots {
  position: absolute; z-index: 3; bottom: 34px; inset-inline-start: var(--hero-gutter);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 10px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: width .3s, background .3s;
}
.hero-dot.active { width: 34px; background: #fff; }
/* dots + arrows live outside the slides: give them the accent of the slide that is showing */
.hero-slider { --hero-accent: #38BDF8; --hero-btn-text: #06202E; }
.hero-slider:has(.hero-theme-charcoal.active) { --hero-accent: #22D3EE; --hero-btn-text: #04202E; }
.hero-slider:has(.hero-theme-indigo.active) { --hero-accent: #34D399; --hero-btn-text: #03211B; }

/* ── Diagonal edge mirrored for Arabic ── */
[dir="rtl"] .hero-slide-content { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--hero-cut) 100%); }
[dir="rtl"] .hero-stage::before { left: 42%; }

/* ── Tablet ── */
@media (max-width: 1024px) {
  .hero-slider { --hero-h: 500px; --hero-cut: 70px; }
  .hero-slide { grid-template-columns: 56% 44%; }
  .hero-stage { padding: 28px 28px; padding-inline-start: calc(var(--hero-cut) + 16px); }
  .hero-stage::before { width: 320px; height: 320px; }
  .hero-subtitle { font-size: .92rem; }
  .hero-badge { display: none; }
}

/* ── Phones + small tablets: one coloured card per slide. The product photo sits INSIDE the
      card on a rounded white stage, together with the words; dots + arrows at the bottom of the card.
      560–768px: words left, photo right. Under 560px: photo on top, words underneath. ── */
@media (max-width: 768px) {
  /* All slides share one grid cell: the slider is as tall as the tallest slide, so the page below
     no longer jumps up/down every 5 seconds when a shorter/taller slide comes in. */
  .hero-slider { height: auto; --hero-gutter: 20px; display: grid; background: #111214; }
  .hero-slide {
    position: relative; top: auto; grid-area: 1 / 1;
    display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 18px;
    padding: 22px 20px 70px;
    background: var(--hero-pattern, linear-gradient(transparent, transparent)), var(--hero-bg);
    overflow: hidden;
  }
  .hero-slide.active { animation: none; }
  /* text is always fully visible on phones (the staggered fade-in made it look half hidden) */
  .hero-content-inner > *, .hero-slide.active .hero-content-inner > * { opacity: 1; transform: none; transition: none; }
  .hero-slide-content { position: static; order: 0; margin: 0; padding: 0; clip-path: none; background: none; overflow: visible; }
  .hero-slide-content::before, .hero-slide-content::after { display: none; }
  [dir="rtl"] .hero-slide-content { clip-path: none; }
  .hero-mark { width: 230px; height: 260px; top: auto; bottom: -40px; inset-inline-end: -40px; transform: rotate(-8deg); }
  .hero-content-inner { padding-bottom: 0; max-width: none; }
  .hero-slide-content h1 { font-size: 1.65rem; margin: 14px 0 10px; }
  .hero-subtitle { margin-bottom: 16px; font-size: .9rem; }
  .hero-features { gap: 8px; margin-bottom: 20px; }
  .hero-features li { font-size: .76rem; padding: 6px 12px 6px 8px; }
  .hero-actions { gap: 16px; }
  .hero-btn { padding: 13px 20px; font-size: .9rem; white-space: nowrap; }

  .hero-slide-media {
    position: relative; z-index: 2; order: 1; align-self: stretch; min-height: 240px;
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  }
  .hero-stage { padding: 18px; padding-inline-start: 18px; }
  .hero-stage::before { width: 78%; height: auto; aspect-ratio: 1; left: 50%; top: 50%; }
  [dir="rtl"] .hero-stage::before { left: 50%; }
  .hero-watermark { display: none; }

  /* controls inside the coloured card */
  .hero-dots { bottom: 30px; inset-inline-start: 20px; }
  .hero-dot { background: rgba(255,255,255,.35); }
  .hero-dot.active { background: var(--hero-accent); }
  .hero-arrow { bottom: 18px; width: 38px; height: 38px; }
  .hero-arrow-prev { inset-inline-start: auto; inset-inline-end: 66px; }
  .hero-arrow-next { inset-inline-start: auto; inset-inline-end: 20px; }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* Phones: the whole hero is the slider — the product photo fills the slide and the words sit
   ON the photo (bottom), over a scrim in the slide's own colour. */
@media (max-width: 600px) {
  .hero-theme-navy, .hero-slide:not(.hero-theme-charcoal):not(.hero-theme-indigo) { --hero-scrim: 17, 18, 20; }
  .hero-theme-charcoal { --hero-scrim: 4, 32, 46; }
  .hero-theme-indigo { --hero-scrim: 3, 33, 27; }
  .hero-slide { grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 500px; align-items: stretch; }
  .hero-slide-media, .hero-slide-content { grid-area: 1 / 1; }
  .hero-slide-media { order: 0; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
  .hero-stage { padding: 22px 34px 230px; }
  .hero-stage::before { width: 62%; top: 30%; }
  .hero-slide-content {
    order: 1; align-self: end; position: relative; z-index: 3;
    padding: 110px 16px 64px;
    background: linear-gradient(to top, rgba(var(--hero-scrim), 1) 0%, rgba(var(--hero-scrim), .96) 52%, rgba(var(--hero-scrim), 0) 100%);
  }
  .hero-mark { display: none; }
  .hero-eyebrow { font-size: .62rem; padding: 5px 11px; }
  .hero-slide-content h1 { font-size: 1.45rem; line-height: 1.2; margin: 10px 0 8px; }
  .hero-subtitle { font-size: .82rem; line-height: 1.55; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-features { display: none; }
  .hero-actions { gap: 16px; }
  .hero-btn { padding: 12px 18px; font-size: .86rem; }
  .hero-link { font-size: .82rem; }
  .hero-dots { bottom: 26px; inset-inline-start: 16px; }
  .hero-arrow { bottom: 14px; width: 34px; height: 34px; font-size: .8rem; }
  .hero-arrow-prev { inset-inline-end: 56px; }
  .hero-arrow-next { inset-inline-end: 16px; }
}
@media (max-width: 380px) {
  .hero-slide { min-height: 470px; }
  .hero-stage { padding-bottom: 220px; }
  .hero-slide-content h1 { font-size: 1.3rem; }
  .hero-btn { padding: 11px 14px; font-size: .82rem; }
}
/* model-photo slides: smaller floating product card on smaller screens */
@media (max-width: 1024px) {
  .hero-product-card { width: 150px; bottom: 18px; inset-inline-start: calc(var(--hero-cut) + 18px); }
}
@media (max-width: 768px) {
  .hero-product-card { width: 44%; max-width: 160px; bottom: 12px; inset-inline-start: 12px; padding: 8px; border-radius: 14px; }
}
@media (max-width: 560px) {
  .hero-product-card { width: 66%; padding: 6px; border-radius: 12px; border-top-width: 3px; bottom: 10px; inset-inline-start: 10px; }
}
/* ── PROMO BANNERS (row of 3 under the slider — Admin -> CMS -> Home Banners) ── */
.promo-banners { padding: 40px 0 8px; }
.promo-banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Theme keys stored in the DB: orange = "Orange", blue = "Charcoal", indigo = "Light" */
.promo-card {
  --promo-bg: radial-gradient(circle at 0% 0%, rgba(255,255,255,.22), transparent 45%),
              linear-gradient(135deg, #FF6300 0%, #FF7F2A 100%);
  --promo-pattern: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px);
  --promo-ink: #fff;
  --promo-muted: rgba(255,255,255,.88);
  --promo-eyebrow-bg: rgba(255,255,255,.2);
  --promo-eyebrow-text: #fff;
  --promo-cta-bg: #fff;
  --promo-cta-text: #E85A00;
  --promo-ring: rgba(255,255,255,.22);
  --promo-shadow: rgba(255, 99, 0, .32);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 40%; align-items: center;
  min-height: 220px; padding-block: 26px; padding-inline: 26px 0;
  border-radius: 22px; background: var(--promo-pattern), var(--promo-bg); color: var(--promo-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px -12px var(--promo-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -14px var(--promo-shadow); }
.promo-card-blue {
  --promo-bg: radial-gradient(circle at 100% 0%, rgba(255,99,0,.22), transparent 50%),
              linear-gradient(135deg, #1E1F21 0%, #2E2F33 100%);
  --promo-pattern: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 30px 30px,
                   linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 30px 30px;
  --promo-muted: rgba(255,255,255,.72);
  --promo-eyebrow-bg: #FF6300;
  --promo-cta-bg: #FF6300;
  --promo-cta-text: #fff;
  --promo-ring: rgba(255,255,255,.08);
  --promo-shadow: rgba(20, 20, 22, .45);
}
.promo-card-indigo {
  --promo-bg: linear-gradient(135deg, #ffffff 0%, #FFF4EC 100%);
  --promo-pattern: radial-gradient(rgba(255,99,0,.14) 1.2px, transparent 1.4px) 0 0 / 18px 18px;
  --promo-ink: #2B2C2E;
  --promo-muted: #5E5F63;
  --promo-eyebrow-bg: #2B2C2E;
  --promo-cta-bg: #2B2C2E;
  --promo-cta-text: #fff;
  --promo-ring: rgba(255,99,0,.14);
  --promo-shadow: rgba(43, 44, 46, .22);
  border: 1px solid #F3E4D8;
}
/* white plate behind the product: keeps the photo clean on every card colour */
.promo-card::after {
  content: ''; position: absolute; z-index: -1; inset-inline-end: -50px; top: 50%;
  width: 210px; height: 210px; border-radius: 50%;
  background: #fff; transform: translateY(-50%);
  box-shadow: 0 0 0 14px var(--promo-ring), 0 18px 40px rgba(0,0,0,.14);
}
.promo-card-text { position: relative; padding-inline-end: 14px; }
.promo-card-eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 5px 11px; border-radius: 50px;
  background: var(--promo-eyebrow-bg); color: var(--promo-eyebrow-text, #fff);
  font-size: .66rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.promo-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.22; margin-bottom: 6px; color: var(--promo-ink); }
.promo-card p { font-size: .84rem; line-height: 1.55; color: var(--promo-muted); margin-bottom: 16px; max-width: 95%; }
.promo-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 50px;
  background: var(--promo-cta-bg); color: var(--promo-cta-text);
  font-size: .82rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.promo-card-cta i { font-size: .72rem; transition: transform .2s; }
.promo-card:hover .promo-card-cta i { transform: translateX(4px); }
[dir="rtl"] .promo-card:hover .promo-card-cta i { transform: translateX(-4px); }
.promo-card-media { height: 100%; display: flex; align-items: center; justify-content: center; padding-inline: 8px 4px; }
.promo-card-media img {
  width: 100%; max-height: 140px; object-fit: contain;
  mix-blend-mode: multiply; /* white photo background melts into the white plate */
  transition: transform .35s ease;
}
.promo-card:hover .promo-card-media img { transform: scale(1.06) rotate(-2deg); }
@media (max-width: 1024px) {
  .promo-banner-grid { grid-template-columns: 1fr 1fr; }
  .promo-card:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 230px; }
}
@media (max-width: 640px) {
  .promo-banners { padding-top: 24px; }
  .promo-banner-grid { grid-template-columns: 1fr; gap: 14px; }
  .promo-card, .promo-card:last-child { min-height: 170px; padding-inline-start: 20px; grid-template-columns: 1fr 140px; }
  .promo-card::after { width: 172px; height: 172px; inset-inline-end: -36px; box-shadow: 0 0 0 10px var(--promo-ring), 0 14px 30px rgba(0,0,0,.14); }
  .promo-card-text { padding-inline-end: 6px; }
  .promo-card h3 { font-size: 1.05rem; }
  .promo-card p { font-size: .78rem; margin-bottom: 12px; }
  .promo-card-media img { max-height: 112px; }
}

/* Phones: no promo banner row under the hero (owner's choice) */
@media (max-width: 600px) {
  .promo-banners { display: none; }
}

/* ── Category product sections on the homepage ── */
.section-alt { background: var(--light, #FFF4EC); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-header-row h2 { margin-bottom: 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand);
}
.section-kicker i {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand, #FF6300); color: #fff; font-size: .72rem;
}
.section-view-all {
  padding: 9px 16px; border-radius: 50px; border: 1.5px solid var(--border);
  background: #fff;
}
.section-view-all:hover { border-color: var(--brand); }
.section-view-all {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--brand);
  transition: var(--transition, 0.2s);
}
.section-view-all:hover { gap: 12px; color: var(--accent2); }

@media (max-width: 600px) {
  .section-header-row { align-items: flex-end; }
  .section-view-all { padding: 7px 12px; font-size: .78rem; }
}

/* ── CATALOG: one row per category = [category card] + 3 product cards ── */
.catalog-section { padding-top: 56px; }
.catalog-heading { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.catalog-heading .section-kicker { justify-content: center; }
.catalog-heading h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; margin: 4px 0 8px; }
.catalog-heading p { color: var(--gray); }

.category-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-bottom: 34px; align-items: stretch;
}
/* Dark showcase card (one per category row): big index number, its own accent colour,
   the category's products cycling on a white stage (script in home.blade.php),
   and a spinning accent border on hover. */
@property --cat-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.category-card {
  --cat-accent: #FF6300; --cat-on-accent: #fff; --cat-glow: rgba(255, 99, 0, .32);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 24px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 100% 0%, var(--cat-glow), transparent 55%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #18191C 0%, #26282C 100%);
  color: #fff; text-decoration: none; min-height: 100%;
  box-shadow: 0 16px 34px -18px rgba(20, 20, 22, .55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -18px var(--cat-glow); }
.category-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--cat-angle), transparent 0 65%, var(--cat-accent) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
  animation: catSpin 3.5s linear infinite;
}
.category-card:hover::before { opacity: 1; }
@keyframes catSpin { to { --cat-angle: 360deg; } }

.category-theme-1 .category-card { --cat-accent: #38BDF8; --cat-on-accent: #06202E; --cat-glow: rgba(56, 189, 248, .28); }
.category-theme-2 .category-card { --cat-accent: #34D399; --cat-on-accent: #03211B; --cat-glow: rgba(52, 211, 153, .26); }
.category-theme-3 .category-card { --cat-accent: #A78BFA; --cat-on-accent: #1E1338; --cat-glow: rgba(167, 139, 250, .28); }
.category-theme-4 .category-card { --cat-accent: #FB7185; --cat-on-accent: #3B0A14; --cat-glow: rgba(251, 113, 133, .26); }

.category-card-index {
  position: absolute; z-index: -1; top: 4px; inset-inline-end: 14px;
  font-size: 5.6rem; font-weight: 900; line-height: 1; letter-spacing: -3px; direction: ltr;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .13);
  transition: -webkit-text-stroke-color .3s;
}
.category-card:hover .category-card-index { -webkit-text-stroke-color: var(--cat-accent); }
.category-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.category-card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--cat-accent); color: var(--cat-on-accent); font-size: 1.05rem;
  box-shadow: 0 8px 20px -6px var(--cat-glow);
}
.category-card-count {
  padding: 5px 11px; border-radius: 50px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.category-card h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin: 0 0 6px; color: #fff; }
.category-card p {
  font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.62); margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* white stage with the rotating product photos */
.category-stage {
  position: relative; display: block; width: 100%; flex: 1; min-height: 180px;
  border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #ffffff 45%, #f1f1f2 75%, #e6e6e8 100%);
}
.category-stage::before {
  content: ''; position: absolute; top: 46%; left: 50%; width: 72%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed var(--cat-accent); opacity: .45; transform: translate(-50%, -50%);
  animation: catSpin2 24s linear infinite;
}
@keyframes catSpin2 { to { transform: translate(-50%, -50%) rotate(360deg); } }
.category-stage img {
  position: absolute; inset: 8% 10% 14%; width: 80%; height: 78%; object-fit: contain;
  mix-blend-mode: multiply; /* white photo background melts into the stage */
  opacity: 0; transform: translateY(10px) scale(.92) rotate(-4deg);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.category-stage img.is-active { opacity: 1; transform: none; }
.category-card:hover .category-stage img.is-active { transform: scale(1.06) rotate(-2deg); }
.category-stage-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.category-stage-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(43,44,46,.2); transition: width .3s, background .3s; }
.category-stage-dots i.is-active { width: 18px; background: var(--cat-accent); }

.category-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 18px; }
.category-card-price { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.15; white-space: nowrap; }
.category-card-price small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.category-card-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto;
  padding: 10px 16px; border-radius: 50px; background: var(--cat-accent); color: var(--cat-on-accent);
  font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.category-card-cta i { font-size: .72rem; transition: transform .2s; }
.category-card:hover .category-card-cta i { transform: translateX(4px); }
[dir="rtl"] .category-card:hover .category-card-cta i { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) {
  .category-card::before, .category-stage::before { animation: none; }
}

/* tablet: the category card takes the whole row, text left + stage right */
@media (max-width: 1100px) {
  .category-row { grid-template-columns: repeat(3, 1fr); }
  .category-row > .category-card {
    grid-column: 1 / -1; display: grid; min-height: 230px;
    grid-template-columns: 1fr minmax(180px, 38%); grid-template-rows: auto auto 1fr auto; column-gap: 26px;
  }
  .category-row > .category-card > * { grid-column: 1; }
  .category-row > .category-card > .category-stage { grid-column: 2; grid-row: 1 / -1; min-height: 200px; }
  .category-card-foot { justify-content: flex-start; gap: 18px; }
  .category-card-cta { margin-inline-start: 0; }
  .category-card-index { inset-inline-end: auto; inset-inline-start: 45%; }
}
@media (max-width: 640px) {
  .category-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
  .category-row > .product-card:nth-child(4) { display: none; } /* keep the row even; "View All" shows the rest */
  .category-row > .category-card { padding: 18px; min-height: 0; grid-template-columns: 1fr 42%; column-gap: 14px; }
  .category-row > .category-card > .category-stage { min-height: 150px; }
  .category-card h3 { font-size: 1.15rem; }
  .category-card p { display: none; }
  .category-card-head { margin-bottom: 12px; }
  .category-card-index { display: none; } /* no room next to the photo on a phone */
  .category-card-head { flex-wrap: wrap; gap: 8px; }
  .category-card-count { white-space: nowrap; font-size: .6rem; padding: 4px 9px; }
  .category-card-foot { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .category-card-cta { padding: 8px 13px; font-size: .78rem; }
  .category-row .product-info { padding: 12px; }
  .category-row .product-card .order-now-btn { padding: 9px 10px; font-size: .8rem; }
}
