/* ============================================
   Category Landing Page — Premium E-commerce
   Noon/Amazon/Trendyol-inspired (RTL / Arabic)
   Prefix: cl-
   ============================================ */

/* ========== 1. PAGE LAYOUT ========== */
.cl-page {
  max-width: 100%;
  width: 100%;
  background: var(--hm-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cl-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cl-hero-section {
  width: 100%;
}

.cl-main {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ========== 2. BREADCRUMB ========== */
.cl-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--noon-border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cl-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cl-breadcrumb a {
  color: var(--noon-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cl-breadcrumb a:hover {
  color: var(--noon-blue);
}

.cl-breadcrumb-sep {
  color: var(--noon-border);
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.cl-breadcrumb-current {
  color: var(--noon-text);
  font-weight: 700;
  font-size: 0.82rem;
  background: var(--noon-bg);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ========== 3. HERO SLIDER ========== */
.cl-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #eef2f6;
  user-select: none;
  touch-action: pan-y;
}

.cl-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  direction: ltr;
}

.cl-hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cl-hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cl-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.cl-hero-content {
  position: absolute;
  bottom: 40px;
  right: 40px;
  left: 40px;
  z-index: 2;
  color: #fff;
  max-width: 560px;
}

.cl-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cl-hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 8px 0 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cl-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  background: #fff;
  color: #0f2445;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  margin-top: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cl-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f8f8f8;
}

.cl-hero-btn:active {
  transform: translateY(0);
}

.cl-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  direction: ltr;
}

.cl-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
}

.cl-hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.cl-hero-dot.active {
  width: 28px;
  border-radius: 5px;
  background: #fff;
}

.cl-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 3;
  opacity: 0;
  color: #1a2530;
}

.cl-hero:hover .cl-hero-arrow {
  opacity: 1;
}

.cl-hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cl-hero-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.cl-hero-arrow.prev {
  right: 16px;
}

.cl-hero-arrow.next {
  left: 16px;
}

.cl-hero-arrow .material-icons-outlined {
  font-size: 24px;
}

/* ========== 4. PRODUCT SHOWCASE SECTIONS ========== */
.cl-section {
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-section-header-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--noon-text);
  margin: 0;
  line-height: 1.2;
}

.cl-section-subtitle {
  font-size: 0.85rem;
  color: var(--noon-muted);
  margin: 0;
  font-weight: 500;
}

.cl-section-link {
  color: var(--noon-blue);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cl-section-link:hover {
  color: var(--noon-blue-strong);
  gap: 6px;
}

.cl-section-link .material-icons-outlined {
  font-size: 18px;
}

.cl-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.cl-view-all {
  color: var(--noon-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.cl-view-all:hover {
  color: var(--noon-blue-strong);
}

.cl-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.cl-section-grid .noon-product-card {
  min-width: 0;
  border-radius: 12px;
}

.cl-section-grid .noon-product-media img {
  height: 138px;
}

.cl-section-grid .noon-product-body {
  gap: 5px;
  padding: 8px;
}

.cl-section-grid .noon-rating-pill {
  padding: 2px 6px;
  font-size: 0.72rem;
}

.cl-section-grid .noon-title {
  min-height: 2.7em;
  font-size: 0.84rem;
  line-height: 1.35;
}

.cl-section-grid .noon-price {
  font-size: 1rem;
}

.cl-section-grid .noon-old-price {
  font-size: 0.75rem;
}

.cl-section-grid .noon-discount-pill {
  font-size: 0.7rem;
  padding: 2px 6px;
}

.cl-section-grid .noon-add-square {
  min-width: 34px;
  height: 34px;
  font-size: 1.1rem;
}

/* ========== 5. PRODUCT CARD (matching noon-components.css) ========== */
.cl-product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: var(--noon-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cl-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #cdd9ea;
}

.cl-product-media {
  position: relative;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cl-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.cl-product-card:hover .cl-product-media img {
  transform: scale(1.03);
}

.cl-product-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid #e8edf4;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cl-product-wishlist:hover {
  transform: scale(1.1);
  color: #e11d48;
  border-color: #fecaca;
  background: #fff1f2;
}

.cl-product-wishlist.is-active {
  color: #e11d48;
  border-color: #fecaca;
  background: #fff1f2;
}

.cl-product-wishlist .material-icons-outlined {
  font-size: 18px;
}

.cl-product-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e74c3c;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.5;
}

.cl-product-add {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cl-product-add:hover {
  background: var(--noon-blue);
  color: #fff;
  border-color: var(--noon-blue);
  transform: scale(1.08);
}

.cl-product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.cl-product-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--noon-text);
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.cl-product-stars {
  color: #22c55e;
  font-size: 0.75rem;
  line-height: 1;
}

.cl-product-reviews {
  color: #94a3b8;
  font-size: 0.65rem;
}

.cl-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.cl-product-price {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.cl-product-old-price {
  margin: 0;
  color: #94a3b8;
  font-size: 0.72rem;
  text-decoration: line-through;
}

.cl-product-cta {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #166534;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: auto;
}

.cl-product-cta:hover {
  background: #dcfce7;
}

/* ========== 6. BRANDS SECTION ========== */
.cl-brands-section {
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cl-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cl-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--noon-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.cl-brand-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #cdd9ea;
}

.cl-brand-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.cl-brand-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.cl-brand-card:hover img {
  transform: scale(1.08);
}

/* ========== 7. COLLECTIONS SECTION ========== */
.cl-collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

.cl-collection-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #eef2f6;
  display: block;
  text-decoration: none;
}

.cl-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cl-collection-card:hover img {
  transform: scale(1.05);
}

.cl-collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.cl-collection-card:hover .cl-collection-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.cl-collection-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cl-collection-arrow {
  color: #fff;
  font-size: 1.1rem !important;
  margin-top: 6px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.cl-collection-card:hover .cl-collection-arrow {
  opacity: 1;
  transform: translateX(0);
}

.cl-collection-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.cl-collection-link:hover {
  opacity: 1;
}

.cl-collection-link .material-icons-outlined {
  font-size: 18px;
}

/* ========== 8. SKELETON LOADING ========== */
.cl-skeleton {
  display: none;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

body.cl-loading .cl-skeleton {
  display: flex;
}

body.cl-loading .cl-page-content {
  display: none;
}

body.cl-loaded .cl-skeleton {
  display: none;
}

body.cl-loaded .cl-page-content {
  display: flex;
  animation: cl-fade-in 0.4s ease both;
}

.cl-sk-shimmer {
  background-color: var(--hm-sk-base);
  background-image: linear-gradient(90deg, var(--hm-sk-base) 0%, var(--hm-sk-base) 42%, var(--hm-sk-highlight) 50%, var(--hm-sk-base) 58%, var(--hm-sk-base) 100%);
  background-size: 220% 100%;
  animation: cl-sk-shimmer-rtl 1.35s linear infinite;
  border-radius: 8px;
  overflow: hidden;
}

@keyframes cl-sk-shimmer-rtl {
  from { background-position: -120% 0; }
  to { background-position: 120% 0; }
}

.cl-sk-hero {
  height: 420px;
  border-radius: 0;
  width: 100%;
}

.cl-sk-section {
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cl-sk-head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-sk-head-title {
  width: 180px;
  height: 18px;
  border-radius: 999px;
}

.cl-sk-head-link {
  width: 60px;
  height: 12px;
  border-radius: 999px;
  margin-right: auto;
}

.cl-sk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cl-sk-card {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.cl-sk-brands-section {
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cl-sk-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cl-sk-brand {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.cl-sk-collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cl-sk-collection {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

/* ========== 9. ANIMATIONS ========== */
@keyframes cl-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cl-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cl-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cl-visible {
  opacity: 1;
  transform: translateY(0);
}

.cl-stagger-1 { transition-delay: 0.1s; }
.cl-stagger-2 { transition-delay: 0.15s; }
.cl-stagger-3 { transition-delay: 0.2s; }
.cl-stagger-4 { transition-delay: 0.25s; }
.cl-stagger-5 { transition-delay: 0.3s; }
.cl-stagger-6 { transition-delay: 0.35s; }
.cl-stagger-7 { transition-delay: 0.4s; }
.cl-stagger-8 { transition-delay: 0.45s; }

/* ========== 10. RESPONSIVE ========== */

/* Tablet (768-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .cl-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cl-brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .cl-section-title {
    font-size: 1.15rem;
  }

  .cl-collections {
    gap: 14px;
  }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  .cl-hero {
    height: 260px;
  }

  .cl-hero-content {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  .cl-hero-title {
    font-size: 1.3rem;
  }

  .cl-hero-subtitle {
    font-size: 0.85rem;
    margin-top: 4px;
  }

  .cl-hero-btn {
    padding: 10px 24px;
    font-size: 0.82rem;
    margin-top: 12px;
  }

  .cl-hero-dots {
    bottom: 10px;
    gap: 6px;
  }

  .cl-hero-dot {
    width: 8px;
    height: 8px;
  }

  .cl-hero-dot.active {
    width: 22px;
  }

  .cl-hero-arrow {
    width: 36px;
    height: 36px;
  }

  .cl-hero-arrow .material-icons-outlined {
    font-size: 20px;
  }

  .cl-hero-arrow.prev {
    right: 10px;
  }

  .cl-hero-arrow.next {
    left: 10px;
  }

  .cl-section {
    padding: 16px 12px;
  }

  .cl-section-title {
    font-size: 1.1rem;
  }

  .cl-section-subtitle {
    display: none;
  }

  .cl-products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cl-brands-section {
    padding: 16px 12px;
  }

  .cl-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cl-collections {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 12px;
  }

  .cl-collection-overlay {
    padding: 16px;
  }

  .cl-collection-title {
    font-size: 1.1rem;
  }

  .cl-product-title {
    font-size: 0.78rem;
  }

  .cl-product-price {
    font-size: 0.88rem;
  }

  .cl-product-add {
    width: 30px;
    height: 30px;
    font-size: 1.15rem;
  }

  .cl-product-wishlist {
    width: 30px;
    height: 30px;
  }

  .cl-breadcrumb {
    padding: 8px 12px;
  }

  .cl-breadcrumb-inner {
    gap: 6px;
  }

  .cl-breadcrumb a {
    font-size: 0.75rem;
  }

  .cl-breadcrumb-current {
    font-size: 0.78rem;
  }

  .cl-sk-hero {
    height: 260px;
  }

  .cl-sk-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cl-sk-brands {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cl-sk-collections {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 12px;
  }

  .cl-sk-section {
    padding: 16px 12px;
  }

  .cl-sk-brands-section {
    padding: 16px 12px;
  }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
  .cl-hero {
    height: 220px;
  }

  .cl-hero-title {
    font-size: 1.1rem;
  }

  .cl-hero-subtitle {
    font-size: 0.78rem;
  }

  .cl-hero-btn {
    padding: 8px 20px;
    font-size: 0.78rem;
    margin-top: 10px;
  }

  .cl-hero-content {
    bottom: 14px;
    right: 14px;
    left: 14px;
  }

  .cl-products-grid {
    gap: 10px;
  }

  .cl-brands-grid {
    gap: 10px;
  }

  .cl-collections {
    gap: 10px;
  }

  .cl-section {
    padding: 12px 10px;
  }

  .cl-section-title {
    font-size: 1rem;
  }

  .cl-product-title {
    font-size: 0.72rem;
  }

  .cl-product-price {
    font-size: 0.82rem;
  }

  .cl-product-old-price {
    font-size: 0.65rem;
  }

  .cl-product-rating {
    font-size: 0.65rem;
  }

}

/* Desktop (>=1025px) */
@media (min-width: 1025px) {
  .cl-section-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 20px;
  }

  .cl-section-grid .noon-product-media img {
    height: 160px;
  }
}

/* ========== 11. LOADING STATES ========== */
body.cl-loading {
  background: var(--hm-bg);
}

body.cl-loading .cl-content > *:not(.cl-skeleton) {
  display: none;
}

body.cl-loading .cl-skeleton {
  display: flex;
}

body.cl-loaded .cl-skeleton {
  display: none;
}

body.cl-loaded .cl-content > *:not(.cl-skeleton) {
  display: block;
}

body.cl-loaded .cl-page-content {
  animation: cl-fade-in 0.5s ease both;
}

/* ========== 12. SMOOTH SCROLL ========== */
html {
  scroll-behavior: smooth;
}

/* ========== 13. MISCELLANEOUS ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.cl-page img {
  max-width: 100%;
  display: block;
}

.cl-products-grid .cl-product-card:nth-child(n+7) {
  display: none;
}

.cl-section-view-all {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

.cl-section-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 1px solid var(--noon-border);
  border-radius: 999px;
  background: #fff;
  color: var(--noon-text);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cl-section-view-all a:hover {
  border-color: var(--noon-blue);
  color: var(--noon-blue);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.12);
  transform: translateY(-1px);
}

/* Featured badge on hero slides */
.cl-hero-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: var(--noon-yellow);
  color: #1a2530;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Brand count badge */
.cl-brand-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 6px;
}

/* Section divider */
.cl-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--noon-border), transparent);
  border: none;
  margin: 0;
}

/* Empty state */
.cl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.cl-empty .material-icons-outlined {
  font-size: 56px;
  color: #d1d9e8;
  margin-bottom: 12px;
}

.cl-empty h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--noon-text);
  font-weight: 700;
}

.cl-empty p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--noon-muted);
}

/* Error state */
.cl-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.cl-error .material-icons-outlined {
  font-size: 56px;
  color: var(--noon-danger);
  margin-bottom: 12px;
}

.cl-error h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--noon-text);
  font-weight: 700;
}

.cl-error p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--noon-muted);
}

.cl-error button {
  padding: 10px 28px;
  border: none;
  border-radius: 999px;
  background: var(--noon-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cl-error button:hover {
  background: var(--noon-blue-strong);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cl-sk-shimmer {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
