/* 1. Unstick mobile announcement bar & header so it never floats while scrolling */
@media (max-width: 767px) {
  body > div.sticky.top-0,
  div.sticky.top-0:has([data-announcement-bar]),
  div.sticky.top-0:has(header),
  [data-announcement-bar] {
    position: relative !important;
    top: auto !important;
  }
}

/* 2. Enlarge header cart icon & 44x44 touch target */
header a[href*="/cart"] {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

header a[href*="/cart"]:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

header a[href*="/cart"] svg {
  width: 26px !important;
  height: 26px !important;
}

header a[href*="/cart"] [data-cart-badge] {
  top: 1px !important;
  right: 1px !important;
  min-width: 20px;
  height: 20px;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 3. Polish product cards (title clamp, price hierarchy, discount badge, CTA button) */
[data-product-card] h3 {
  margin: 0;
}

[data-product-card] h3 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.4 !important;
  min-height: 2.8em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

[data-product-card] .flex.flex-col.gap-1 > p {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

[data-product-card] .line-through {
  font-size: 12.5px !important;
  color: #a89f96 !important;
  opacity: 0.85 !important;
}

[data-product-card] [class*="bg-success"] {
  background-color: rgba(34, 197, 94, 0.18) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

[data-product-card] .mt-auto > button.btn,
[data-product-card] .mt-auto > a.btn {
  background-color: var(--primary, #a46233) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary, #a46233) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  min-height: 42px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: filter 0.2s ease;
}

[data-product-card] .mt-auto > button.btn:hover,
[data-product-card] .mt-auto > a.btn:hover {
  filter: brightness(1.1);
}

/* 4. Luxury Animated Hero Banner (#raha-luxury-hero) */
section.section-carousel.raha-hero-upgraded {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

section.section-carousel.raha-hero-upgraded > :not(#raha-luxury-hero) {
  display: none !important;
}

#raha-luxury-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  direction: rtl;
  overflow: hidden;
  background: radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.14), transparent 48%),
              radial-gradient(circle at 82% 75%, rgba(178, 154, 116, 0.12), transparent 52%),
              linear-gradient(135deg, #120e0c 0%, #1e1713 52%, #0e0b09 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  color: #f8f3eb;
  isolation: isolate;
}

#raha-luxury-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 45%, rgba(212, 175, 55, 0.16), transparent 42%),
              radial-gradient(circle at 75% 55%, rgba(178, 154, 116, 0.11), transparent 45%);
  animation: rahaGoldGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.raha-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 36px;
}

.raha-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  gap: 16px;
}

.raha-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.48);
  color: #e6c667;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.raha-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.9);
}

.raha-hero-title {
  margin: 0;
  font-size: clamp(38px, 3.1vw, 44px);
  line-height: 1.22;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.raha-hero-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  color: #d7cec2;
}

.raha-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.raha-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4af37 0%, #b29a74 55%, #e4c76b 100%);
  color: #120e0c !important;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid rgba(255, 240, 195, 0.55);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.raha-hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: rahaShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

.raha-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.34);
  filter: brightness(1.05);
}

.raha-hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.raha-hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #e6c667;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.raha-hero-arrow:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.7);
}

.raha-hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.raha-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.raha-hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, #d4af37, #e6c667);
}

.raha-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.raha-hero-frame {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(212, 175, 55, 0.16);
  background: #140f0c;
  animation: rahaFloatFrame 6s ease-in-out infinite;
}

.raha-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(14, 11, 9, 0.35);
  pointer-events: none;
  z-index: 2;
}

.raha-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;
  animation: rahaKenBurns 9s ease-in-out infinite alternate;
}

.raha-hero-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(14, 11, 9, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #f3e5c0;
  font-size: 12px;
  font-weight: 600;
}

.raha-hero-anim-in .raha-hero-badge,
.raha-hero-anim-in .raha-hero-title,
.raha-hero-anim-in .raha-hero-subtitle,
.raha-hero-anim-in .raha-hero-actions {
  animation: rahaFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.raha-hero-anim-in .raha-hero-title { animation-delay: 0.06s; }
.raha-hero-anim-in .raha-hero-subtitle { animation-delay: 0.12s; }
.raha-hero-anim-in .raha-hero-actions { animation-delay: 0.18s; }

@keyframes rahaGoldGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.08); opacity: 1; }
}

@keyframes rahaKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1%, -1%, 0); }
}

@keyframes rahaFloatFrame {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes rahaFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rahaShimmer {
  0%, 55% { left: -120%; }
  100% { left: 150%; }
}

@media (max-width: 767px) {
  .raha-hero-inner {
    grid-template-columns: 1fr;
    padding: 16px;
    min-height: 0;
    gap: 14px;
  }

  .raha-hero-media {
    order: -1;
  }

  .raha-hero-frame {
    max-width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    animation: none;
  }

  .raha-hero-content {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .raha-hero-badge {
    font-size: 11.5px;
    padding: 4px 12px;
  }

  .raha-hero-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .raha-hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .raha-hero-actions {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }

  .raha-hero-cta {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14.5px;
  }

  .raha-hero-controls {
    justify-content: center;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #raha-luxury-hero::before,
  .raha-hero-frame,
  .raha-hero-img,
  .raha-hero-cta::after,
  .raha-hero-anim-in .raha-hero-badge,
  .raha-hero-anim-in .raha-hero-title,
  .raha-hero-anim-in .raha-hero-subtitle,
  .raha-hero-anim-in .raha-hero-actions {
    animation: none !important;
  }
  .raha-hero-cta,
  .raha-hero-dot,
  .raha-hero-arrow {
    transition: none !important;
  }
}