/* ============================================================
   MHD HUB — Category / Listing Hero (shared, mobile-first)
   ============================================================ */
.cat-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  padding: 22px 0 18px;
  background: linear-gradient(135deg, #1a1612 0%, #2b241c 40%, #C9A227 100%);
}
.cat-hero--shop { background: linear-gradient(135deg, #1a1612 0%, #3a2f22 45%, #C9A227 100%); }
.cat-hero--search { background: linear-gradient(135deg, #1a1612 0%, #2b241c 50%, #8a6d1f 100%); }
.cat-hero--arabic { background: linear-gradient(135deg, #1a1612 0%, #3b2a1a 40%, #D4AF37 100%); }
.cat-hero--daily { background: linear-gradient(135deg, #1f1f1f 0%, #3a3428 45%, #B8962E 100%); }
.cat-hero--fashion { background: linear-gradient(135deg, #1a1612 0%, #2e2430 45%, #C9A227 100%); }
.cat-hero--default { background: linear-gradient(135deg, #1a1612 0%, #2b241c 45%, #C9A227 100%); }

.cat-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cat-hero__glow {
  position: absolute;
  width: clamp(140px, 40vw, 360px);
  height: clamp(140px, 40vw, 360px);
  border-radius: 50%;
  filter: blur(50px);
  opacity: .3;
  animation: cat-hero-float 12s ease-in-out infinite alternate;
}
.cat-hero__glow--a { top: -10%; left: -8%; background: radial-gradient(circle, #F2D98C, transparent 70%); }
.cat-hero__glow--b { bottom: -15%; right: -8%; background: radial-gradient(circle, #C9A227, transparent 70%); animation-delay: -6s; }

.cat-hero__pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .25;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.cat-hero__curve {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.06));
  clip-path: ellipse(60% 100% at 50% 100%);
}

@keyframes cat-hero-float {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(0,-12px,0) scale(1.05); }
}

.cat-hero__grid {
  position: relative; z-index: 1;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.cat-hero__content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cat-hero__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 6px;
  min-width: 0; max-width: 100%;
}
.cat-hero__crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.cat-hero__crumbs a:hover { color: #F2D98C; }
.cat-hero__crumb-sep { color: rgba(242,217,140,.7); }

.cat-hero__eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: #F2D98C; margin-bottom: 4px;
}

.cat-hero__title {
  font-family: 'Fraunces', 'Jost', serif;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.1; margin: 0 0 6px;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25);
  animation: cat-hero-fadeup .7s ease both;
  overflow-wrap: anywhere;
}
.cat-hero__tagline {
  font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 100%;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: cat-hero-fadeup .85s ease both;
}

.cat-hero__subcats {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin-top: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; padding-right: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: 100%;
  mask-image: linear-gradient(to right, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
}
.cat-hero__subcats::-webkit-scrollbar { display: none; }
.cat-hero__pill {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.10); border: 1px solid rgba(242,217,140,.35);
  padding: 8px 14px; border-radius: 999px; font-size: 13px;
  scroll-snap-align: start; flex: 0 0 auto;
  transition: background .2s, transform .2s;
}
.cat-hero__pill:hover { background: rgba(242,217,140,.18); transform: translateY(-1px); }
.cat-hero__pill span { background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 999px; font-size: 11px; min-width: 20px; text-align: center; }

.cat-hero__art { display: none; }

@keyframes cat-hero-fadeup {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* tablet & up */
@media (min-width: 768px) {
  .cat-hero { padding: 28px 0 22px; }
  .cat-hero__title { font-size: clamp(30px, 4vw, 40px); }
  .cat-hero__tagline { font-size: 15px; max-width: 60ch; }
  .cat-hero__subcats { flex-wrap: wrap; overflow-x: visible; mask-image: none; -webkit-mask-image: none; padding-right: 0; }
}
/* desktop */
@media (min-width: 1200px) {
  .cat-hero { padding: 48px 0 40px; }
  .cat-hero__grid { grid-template-columns: 1.25fr 0.75fr; gap: 32px; }
  .cat-hero__content { max-width: 760px; }
  .cat-hero__title { font-size: clamp(34px, 3.2vw, 48px); }
  .cat-hero__tagline { font-size: 16px; }
  .cat-hero__art { display: flex; align-items: center; justify-content: center; }
  .cat-hero__illustration { width: 180px; height: 180px; opacity: .85; animation: cat-hero-float 10s ease-in-out infinite alternate; }
  .cat-hero__glow { opacity: .35; filter: blur(60px); }
  .cat-hero__pattern { opacity: .35; background-size: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-hero__glow, .cat-hero__illustration, .cat-hero__title, .cat-hero__tagline { animation: none !important; }
}
