/* home-critical.css — generated from the listed sources. Edit the sources, then rebuild this file. */
/* source: home-components.css */
/* Homepage hero, category sections, banners, features, and contact blocks. */
/* ===== HERO SECTION ===== */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  margin-top: var(--header-h); overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a2a4a 70%, #0d1b2a 100%);
}
.hero-particles {
  position: absolute; inset: 0; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
}
[dir="rtl"] .hero-overlay {
  background: linear-gradient(-90deg, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 3; max-width: var(--container); margin: 0 auto;
  padding-inline: var(--container-padding-x); display: flex; align-items: center; gap: 60px; width: 100%;
  box-sizing: border-box;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,216,0.15); border: 1px solid rgba(0,180,216,0.3);
  padding: 8px 16px; border-radius: var(--radius-full);
  color: #00b4d8; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-badge i { font-size: 0.75rem; }
.hero h1 {
  font-size: 3.2rem; font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.15;
}
.hero h1 span { color: #00b4d8; }
.hero p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #00b4d8; font-family: var(--font-heading); }
.hero-stat-label { color: #64748b; font-size: 0.85rem; margin-top: 4px; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img {
  max-width: 550px; width: 100%;
  filter: drop-shadow(0 20px 50px rgba(0,180,216,0.3));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ===== HOME TOP (banner + categories in container) ===== */
.home-top-section {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg-primary);
  max-width: 100%;
  overflow-x: clip;
}

.home-top-container {
  padding-top: 20px;
  padding-bottom: 8px;
}

.home-banners-block {
  margin-bottom: 20px;
}

.home-promo-banners-section {
  padding: 28px 0;
}

.home-promo-banners-section .home-banners-block {
  margin-bottom: 0;
}

.home-banners-block--secondary .home-banners-viewport {
  aspect-ratio: 1680 / 240;
  height: auto;
  max-height: none;
}

.home-banners-block--secondary .home-banners-track,
.home-banners-block--secondary .home-banner-slide,
.home-banners-block--secondary .home-banner-link {
  height: 100%;
}

.home-banners-block--secondary .home-banner-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-banners-block--secondary .home-banner-link img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  margin: 0;
}

@media (max-width: 767px) {
  .home-banners-block--secondary .home-banners-viewport {
    aspect-ratio: 750 / 225;
  }
}


/* Desktop secondary banners follow the artwork's actual proportions, without cropping. */
@media (min-width: 768px) {
  .home-banners-block--secondary .home-banners-viewport {
    aspect-ratio: auto;
  }
  .home-banners-block--secondary .home-banners-track {
    align-items: flex-start;
  }
  .home-banners-block--secondary .home-banners-track,
  .home-banners-block--secondary .home-banner-slide,
  .home-banners-block--secondary .home-banner-link,
  .home-banners-block--secondary .home-banner-link picture {
    height: auto;
  }
  .home-banners-block--secondary .home-banner-link img {
    height: auto;
    object-fit: contain;
  }
}

.home-categories-block {
  padding-bottom: 28px;
}

/* ===== CATEGORIES CAROUSEL ===== */
.categories-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.categories-viewport {
  overflow: hidden;
  margin: 0 44px;
}

.categories-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  direction: ltr;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.categories-carousel .category-card {
  flex: 0 0 auto;
  min-width: 0;
  width: calc((100% - 48px) / 4);
  scroll-snap-align: unset;
}

/* Homepage categories under banner — 6 compact cards per view on desktop */
#homeCategoriesCarousel .categories-track {
  gap: 12px;
}

#homeCategoriesCarousel .category-card {
  width: calc((100% - 60px) / 6);
  padding: 6px 6px 8px;
  gap: 6px;
}

#homeCategoriesCarousel .category-icon {
  padding: 0;
  position: relative;
  aspect-ratio: 4 / 3;
}

#homeCategoriesCarousel .category-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

#homeCategoriesCarousel .category-card h3 {
  font-size: 0.8125rem;
  line-height: 1.25;
  padding: 0 2px 1px;
}

.cat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.cat-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.cat-nav.prev { left: 0; }
.cat-nav.next { right: 0; }

[dir="rtl"] .cat-nav.prev { left: auto; right: 0; }
[dir="rtl"] .cat-nav.next { right: auto; left: 0; }

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 0;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.category-icon {
  width: 100%;
  flex: 1 1 auto;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  background: var(--bg-product-media);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}
.category-icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.categories-carousel .category-icon {
  width: 100%;
  height: auto;
}

/* Brands carousel: design-sized logo box; uploaded assets must fit inside (never enlarge the card) */
#homeBrandsCarousel .brand-card {
  min-height: 0;
}
#homeBrandsCarousel .brand-logo-area,
#homeBrandsCarousel .category-icon {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-product-media);
}
#homeBrandsCarousel .brand-logo-area img,
#homeBrandsCarousel .brand-logo-img,
#homeBrandsCarousel .category-icon img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: none;
  max-height: none;
  margin: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  #homeBrandsCarousel .brand-logo-area img,
  #homeBrandsCarousel .brand-logo-img,
  #homeBrandsCarousel .category-icon img {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }
}

.category-card:hover .category-icon {
  background: var(--bg-secondary);
  transform: scale(1.02);
}
#homeBrandsCarousel .brand-card:hover .brand-logo-area,
#homeBrandsCarousel .brand-card:hover .category-icon {
  transform: none;
}
.category-card h3 {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 4px 2px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.category-card p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ===== HOME CATEGORY SECTIONS (image + products; direction follows page dir) ===== */
:root {
  --home-cat-product-card-width: min(100%, 260px);
}
.home-cat-section {
  padding: 48px 0;
}
.home-cat-section:nth-child(even) {
  background: var(--bg-primary);
}
.home-cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.home-cat-section-header .section-title {
  margin: 0;
}
.home-cat-view-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
[dir="rtl"] .home-cat-view-all .fa-arrow-right {
  transform: scaleX(-1);
}
/* Layout: category at inline-start (LTR: left image / RTL: right image); products fill remainder.
   Desktop split 25% category image / 75% products. Above the tablet breakpoint the image
   stretches to the product-card row. The 2:1 frame remains for the stacked layout and for
   sections that have no product cards. */
.home-cat-section-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  grid-template-areas: "category products";
}
.home-cat-section--img-start .home-cat-section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  grid-template-areas: "category products";
}
.home-cat-section-image-link {
  grid-area: category;
}
.home-cat-section-products {
  grid-area: products;
  min-width: 0;
}
/* Category promo block: 25% of the row, height from the 2:1 image frame. */
.home-cat-section-image-link.home-cat-category-card {
  height: auto;
}
.home-cat-category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  align-self: start;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  box-sizing: border-box;
}
.home-cat-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-product-hover);
  border-color: var(--border-product-hover);
}
/* Section image: 2:1 frame by default (stacked tablet/mobile and empty sections).
   Desktop overrides this so the frame matches the full product card. */
.home-cat-category-card__media,
.category-section-image-wrapper {
  flex: none;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-product-media);
  box-sizing: border-box;
  border-bottom: none;
  position: relative;
}

/* Side-by-side layout (above the 768px stack). The image is taken out of flow and
   pinned to the stretched category cell, so its border box matches the product card
   including the Add to Cart row. Stacked tablet/mobile keeps the 2:1 frame. */
@media (min-width: 769px) {
  .home-cat-section-grid:has(.product-card),
  .home-cat-section--img-start .home-cat-section-grid:has(.product-card) {
    align-items: stretch;
  }

  .home-cat-section-grid:has(.product-card) > .home-cat-section-image-link.home-cat-category-card {
    position: relative;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    border: none;
    background: transparent;
  }

  .home-cat-section-grid:has(.product-card) > .home-cat-section-image-link .home-cat-category-card__media,
  .home-cat-section-grid:has(.product-card) > .home-cat-section-image-link .category-section-image-wrapper {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    flex: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .home-cat-section-grid:has(.product-card) > .home-cat-section-image-link.home-cat-category-card:hover .home-cat-category-card__media,
  .home-cat-section-grid:has(.product-card) > .home-cat-section-image-link.home-cat-category-card:hover .category-section-image-wrapper {
    border-color: var(--border-product-hover);
  }
}
.home-cat-category-card__media picture,
.category-section-image-wrapper picture,
.home-cat-category-card__media > img,
.category-section-image-wrapper > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.home-cat-category-card__media img,
.category-section-image-wrapper img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center;
}
.home-cat-category-card__media i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-tertiary);
}
.home-cat-products-carousel {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}
.home-cat-products-viewport {
  overflow: hidden;
  margin: 0 44px;
}
.home-cat-products-track {
  display: flex;
  gap: 24px;
  direction: ltr;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}
/* RTL, all products visible (no sliding): start from the right, next to the category image. */
html[dir="rtl"] .home-cat-products-track.is-static {
  flex-direction: row-reverse;
}
.home-cat-product-slide {
  flex: 0 0 var(--home-cat-product-card-width);
  width: var(--home-cat-product-card-width);
  min-width: 0;
}
.home-cat-product-slide .product-card.homepage-card {
  height: 100%;
  width: 100%;
}
.home-cat-product-slide .product-image {
  aspect-ratio: 1;
}
.home-cat-prod-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.home-cat-prod-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.home-cat-prod-nav.prev { left: 0; }
.home-cat-prod-nav.next { right: 0; }
[dir="rtl"] .home-cat-prod-nav.prev { left: auto; right: 0; }
[dir="rtl"] .home-cat-prod-nav.next { right: auto; left: 0; }
.home-cat-empty {
  margin: 0;
  text-align: center;
  padding: 40px 16px;
}

/* ===== HOME BANNERS (contained in page layout) ===== */
.home-banners-carousel {
  position: relative;
  width: 100%;
  margin: 0;
}
.home-banners-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}
.home-banners-track {
  display: flex;
  direction: ltr; /* keep slide order; RTL uses swapped nav buttons + icons */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.home-banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.home-banner-link {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.home-banner-link--static {
  cursor: default;
}
.home-banner-link picture {
  display: block;
  width: 100%;
}
.home-banner-link img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  vertical-align: top;
}
.hb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(10, 22, 40, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.hb-nav:hover { background: var(--accent); }
.hb-nav.prev { left: 12px; }
.hb-nav.next { right: 12px; }
[dir="rtl"] .hb-nav.prev { left: auto; right: 12px; }
[dir="rtl"] .hb-nav.next { right: auto; left: 12px; }
.hb-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.45);
  pointer-events: auto;
}
.hb-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.hb-dot.active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.hb-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}

.home-banners-fallback {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-tertiary);
}

/* ===== BANNERS / PROMO (legacy) ===== */
.promo-banner {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0077b6, #00b4d8, #48cae4);
  padding: 60px 48px; display: flex; align-items: center; gap: 40px;
}
.promo-banner h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.promo-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 24px; }
.promo-banner .btn-primary { background: #fff; color: #0077b6; }
.promo-banner .btn-primary:hover { background: #f0f0f0; }

/* ===== FEATURES / VALUE PROPS ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); margin: 0 auto 16px;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== CONTACT SECTION ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; align-items: flex-start; gap: 16px; transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.contact-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius-md);
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
}
.contact-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.contact-card p { font-size: 0.85rem; color: var(--text-secondary); }
/* source: sar-currency.css */
/* Saudi Riyal currency icon — shared display */
.price-with-currency {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: baseline;
}

.price-with-currency__amount {
    font-variant-numeric: tabular-nums;
}

.sar-currency-icon {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    min-width: 14px;
    min-height: 14px;
    object-fit: contain;
    object-position: center;
    vertical-align: -0.12em;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
}

.price-with-currency--sm .sar-currency-icon {
    width: 0.95em;
    height: 0.95em;
    min-width: 12px;
    min-height: 12px;
}

.price-with-currency--lg .sar-currency-icon {
    width: 1.2em;
    height: 1.2em;
    min-width: 18px;
    min-height: 18px;
}

/* Dark theme: invert black icon to light */
[data-theme="dark"] .sar-currency-icon,
html[data-theme="dark"] .sar-currency-icon {
    filter: invert(1) brightness(1.15);
}

/* Product price blocks */
.product-price .price-with-currency,
.pd-price .price-with-currency,
.cart-item-price .price-with-currency,
.cart-row-price .price-with-currency,
.cart-row-total .price-with-currency,
.summary-row .value .price-with-currency,
.checkout-summary-line__price .price-with-currency {
    font-weight: inherit;
}

.product-price .sar-currency-icon,
.pd-price .sar-currency-icon {
    vertical-align: -0.1em;
}

/* Legacy .currency text hidden when upgraded */
span.currency[data-sar-replaced="true"] {
    display: none !important;
}
/* source: drawers.css */
/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 3000; background: var(--bg-overlay);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%;
  background: var(--bg-secondary); z-index: 3001; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--transition), visibility var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  visibility: hidden; pointer-events: none;
}
[dir="rtl"] .cart-drawer { right: auto; left: 0; transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,0.2); }
.cart-overlay.open .cart-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cart-header h3 span { color: var(--accent); }
.cart-close { width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition); }
.cart-close:hover { background: var(--accent-light); color: var(--accent); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 16px; }
.cart-empty p { color: var(--text-secondary); }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-img .product-image-placeholder { font-size: 1.6rem; color: var(--text-tertiary); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.8rem; transition: all var(--transition); background: var(--bg-tertiary);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-qty { font-size: 0.9rem; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove { margin-left: auto; color: var(--text-tertiary); font-size: 0.85rem; padding: 4px; }
[dir="rtl"] .cart-item-remove { margin-left: 0; margin-right: auto; }
.cart-item-remove:hover { color: var(--danger); }
.cart-footer { display: grid; gap: 18px; flex-shrink: 0; padding: 20px 24px; padding-bottom: max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; line-height: 1.5; font-size: 1.05rem; font-weight: 700; }
.cart-total .amount { color: var(--accent); }
.cart-checkout { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 52px; line-height: 1.5; text-align: center; padding: 14px; border-radius: var(--radius-md); background: var(--accent-gradient); color: #fff; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition); }
.cart-checkout:hover { box-shadow: 0 8px 25px rgba(0,180,216,0.4); }

/* ===== WISHLIST DRAWER ===== */
.wishlist-overlay {
  position: fixed; inset: 0; z-index: 3000; background: var(--bg-overlay);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.wishlist-overlay.open { opacity: 1; pointer-events: all; }
.wishlist-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%;
  background: var(--bg-secondary); z-index: 3001; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--transition), visibility var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  visibility: hidden; pointer-events: none;
}
[dir="rtl"] .wishlist-drawer { right: auto; left: 0; transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,0.2); }
.wishlist-overlay.open .wishlist-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.wishlist-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.wishlist-header h3 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wishlist-close { width: 36px; height: 36px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition); }
.wishlist-close:hover { background: var(--accent-light); color: var(--accent); }
.wishlist-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.wishlist-empty { text-align: center; padding: 60px 20px; }
.wishlist-empty i { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 16px; }
.wishlist-item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); align-items: center;
}
.wishlist-item-img { width: 70px; height: 70px; border-radius: var(--radius-sm); background: var(--bg-tertiary); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wishlist-item-img img { width: 100%; height: 100%; object-fit: contain; }
.wishlist-item-info { flex: 1; }
.wishlist-item-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.wishlist-item-price { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.wishlist-item-actions { display: flex; gap: 8px; }
.wishlist-add-cart, .wishlist-remove {
  width: 34px; height: 34px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.85rem; transition: all var(--transition);
}
.wishlist-add-cart:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.wishlist-remove:hover { background: rgba(239,68,68,0.1); color: var(--danger); border-color: var(--danger); }

/* ===== AUTH MODAL ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 4000; background: var(--bg-overlay);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.auth-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal {
  width: 90%; max-width: 440px; background: var(--bg-secondary);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); overflow: hidden;
  transform: scale(0.9); transition: transform var(--transition);
}
.auth-overlay.open .auth-modal { transform: scale(1); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 16px; text-align: center; font-weight: 600; font-size: 0.95rem;
  color: var(--text-tertiary); cursor: pointer; transition: all var(--transition);
  border-bottom: 2px solid transparent;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form { padding: 28px; }
.auth-form.hidden { display: none; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.form-group input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-input);
  color: var(--text-primary); font-size: 0.95rem; transition: border-color var(--transition); outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.auth-submit {
  width: 100%; padding: 14px; border-radius: var(--radius-md);
  background: var(--accent-gradient); color: #fff; font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition);
}
.auth-submit:hover { box-shadow: 0 8px 25px rgba(0,180,216,0.4); }
.auth-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); cursor: pointer; transition: all var(--transition);
}
[dir="rtl"] .auth-close { right: auto; left: 16px; }
.auth-close:hover { background: var(--accent-light); color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-footer); padding: 60px 0 0; color: var(--text-on-footer);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--container-padding-x) 40px;
  box-sizing: border-box;
}
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 4px;
}
.footer-brand-logo .logo-icon,
.footer-brand-logo .brand-logo-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  background: transparent;
}
.footer-brand-logo .brand-logo:not(.brand-logo--ui) {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 72vw);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
[dir="rtl"] .footer-brand-logo .brand-logo:not(.brand-logo--ui) {
  object-position: right center;
}
.footer-desc { color: #64748b; font-size: 0.9rem; line-height: 1.7; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid #1e3a5f; display: flex; align-items: center; justify-content: center;
  color: #64748b; transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-col a {
  display: block;
  padding: 6px 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: #e8f1fa;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom {
  border-top: 1px solid #1e3a5f; padding: 16px var(--container-padding-x);
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  text-align: center;
  box-sizing: border-box;
}
.footer-copy { font-size: 0.85rem; color: #475569; }
.payment-icons { display: flex; gap: 12px; align-items: center; }
.payment-icon {
  height: 28px; padding: 4px 12px; background: #152238; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #64748b;
}

/* ===== FLOATING ACTION STACK (bottom → top: WhatsApp, Support Chat, Scroll-To-Top) ===== */
:root {
  --aw-float-inline-end: 24px;
  --aw-float-gap: 12px;
  --aw-float-base: 24px;
  --aw-float-whatsapp-size: 56px;
  --aw-float-chat-size: 56px;
  --aw-float-scroll-size: 44px;
  --aw-float-whatsapp-bottom: var(--aw-float-base);
  --aw-float-chat-bottom: calc(var(--aw-float-whatsapp-bottom) + var(--aw-float-whatsapp-size) + var(--aw-float-gap));
  --aw-float-scroll-bottom: calc(var(--aw-float-chat-bottom) + var(--aw-float-chat-size) + var(--aw-float-gap));
  --aw-sc-panel-bottom: calc(var(--aw-float-chat-bottom) + var(--aw-float-chat-size) + var(--aw-float-gap));
  --aw-sc-panel-preferred-height: 560px;
  --aw-sc-panel-max-height: min(var(--aw-sc-panel-preferred-height), calc(100dvh - var(--aw-sc-panel-bottom) - 1rem));
}

@media (max-width: 575.98px) {
  :root {
    --aw-float-inline-end: 16px;
    --aw-float-base: 16px;
    --aw-float-gap: 10px;
  }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--aw-float-whatsapp-bottom);
  right: var(--aw-float-inline-end);
  z-index: 900;
  width: var(--aw-float-whatsapp-size);
  height: var(--aw-float-whatsapp-size);
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: whatsappPulse 2s infinite;
}
[dir="rtl"] .whatsapp-float { right: auto; left: var(--aw-float-inline-end); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
@keyframes whatsappPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===== BACK TO TOP (above Support Chat when visible) ===== */
.back-to-top {
  position: fixed;
  bottom: var(--aw-float-scroll-bottom);
  right: var(--aw-float-inline-end);
  z-index: 900;
  width: var(--aw-float-scroll-size);
  height: var(--aw-float-scroll-size);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
[dir="rtl"] .back-to-top { right: auto; left: var(--aw-float-inline-end); }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }

/* ===== SWEETALERT2 ===== */
.alwadi-swal-popup {
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    border-radius: 12px !important;
}

[dir="rtl"] .swal2-popup {
    text-align: right;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  z-index: 9000; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 24px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transition: all var(--transition);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast-msg { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
/* source: footer-connect.css */
/* Footer social + credentials + payment logos (site-wide) */
.footer-connect {
    border-top: 1px solid #1e3a5f;
    padding: 0.85rem var(--container-padding-x) 1rem;
    max-width: var(--container);
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-connect__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-connect__inner--with-credentials {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "social credentials payments";
    align-items: center;
    column-gap: 1.5rem;
}

.footer-connect__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}

.footer-connect__social {
    grid-area: social;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.footer-connect__credentials {
    grid-area: credentials;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    justify-self: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.55rem;
    padding: 0.55rem 0.85rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.footer-credential {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 0 0 auto;
}

.footer-credential + .footer-credential {
    margin-inline-start: 0.85rem;
    padding-inline-start: 0.85rem;
    border-inline-start: 1px solid #e2e8f0;
}

.footer-credential__icon {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    max-width: 4.375rem;
    max-height: 4.375rem;
    display: block;
    object-fit: contain;
}

.footer-credential__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}

.footer-credential__label {
    font-size: 0.72rem;
    line-height: 1.3;
    color: #64748b;
    white-space: nowrap;
}

.footer-credential__value {
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.footer-connect__payments-tray {
    grid-area: payments;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    width: auto;
}

.footer-connect__inner:not(.footer-connect__inner--with-credentials) .footer-connect__social + .footer-connect__payments-tray {
    margin-inline-start: auto;
}

.footer-connect__social-link {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-connect__social-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    object-fit: contain;
}

.footer-connect__social-link:hover,
.footer-connect__social-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 180, 216, 0.45);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.footer-connect__payments {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.footer-connect__pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
    height: 1.65rem;
    padding: 0.15rem 0.35rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.35rem;
}

.footer-connect__pay-icon {
    display: block;
    height: 17px;
    width: auto;
    max-width: 68px;
    object-fit: contain;
}

.footer-connect__pay-item--tabby .footer-connect__pay-icon {
    height: 18px;
}

.footer-connect__pay-item--mada .footer-connect__pay-icon {
    max-width: 58px;
}

[data-theme="dark"] .footer-connect {
    border-top-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .footer-connect__credentials {
    background: #fff;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .footer-connect__social-link {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .footer-connect__social-link:hover,
[data-theme="dark"] .footer-connect__social-link:focus-visible {
    background: rgba(51, 65, 85, 0.9);
}

[data-theme="dark"] .footer-connect__social-link--tiktok .footer-connect__social-icon {
    filter: invert(1);
}

[data-theme="dark"] .footer-connect__pay-item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

@media (min-width: 992px) {
    .footer-connect {
        padding: 1rem var(--container-padding-x) 1.1rem;
    }

    .footer-connect__inner--with-credentials {
        column-gap: 2rem;
    }

    .footer-connect__credentials {
        padding: 0.65rem 1rem;
    }

    .footer-credential__icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .footer-credential + .footer-credential {
        margin-inline-start: 1rem;
        padding-inline-start: 1rem;
    }

    .footer-credential__label {
        font-size: 0.75rem;
    }

    .footer-credential__value {
        font-size: 0.875rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .footer-connect__inner--with-credentials {
        grid-template-columns: 1fr;
        grid-template-areas:
            "social"
            "credentials"
            "payments";
        row-gap: 0.85rem;
    }

    .footer-connect__social,
    .footer-connect__payments-tray {
        justify-self: stretch;
        justify-content: center;
    }

    .footer-connect__payments {
        justify-content: center;
    }

    .footer-connect__credentials {
        justify-self: center;
        width: fit-content;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .footer-connect {
        padding: 0.75rem var(--container-padding-x) 0.85rem;
    }

    .footer-connect__inner,
    .footer-connect__inner--with-credentials {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .footer-connect__social,
    .footer-connect__credentials,
    .footer-connect__payments-tray {
        width: 100%;
        justify-content: center;
        justify-self: center;
    }

    .footer-connect__social {
        flex-wrap: wrap;
    }

    .footer-connect__credentials {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 22rem);
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .footer-credential {
        justify-content: flex-start;
        width: 100%;
    }

    .footer-credential + .footer-credential {
        margin-inline-start: 0;
        padding-inline-start: 0;
        padding-top: 0.75rem;
        border-inline-start: none;
        border-top: 1px solid #e2e8f0;
    }

    .footer-connect__inner:not(.footer-connect__inner--with-credentials) .footer-connect__social + .footer-connect__payments-tray {
        margin-inline-start: 0;
        padding-top: 0.55rem;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .footer-connect__inner--with-credentials .footer-connect__payments-tray {
        padding-top: 0;
        border-top: none;
    }

    .footer-connect__payments {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-connect__row {
        gap: 0.35rem 0.45rem;
    }

    .footer-connect__social-link {
        width: 1.85rem;
        height: 1.85rem;
    }

    .footer-connect__social-icon {
        width: 0.9rem;
        height: 0.9rem;
    }

    .footer-credential__icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .footer-credential__label {
        font-size: 0.68rem;
    }

    .footer-credential__value {
        font-size: 0.78rem;
    }

    .footer-connect__pay-icon {
        height: 15px;
    }

    .footer-connect__pay-item {
        height: 1.55rem;
    }

    .footer-connect__pay-item--tabby .footer-connect__pay-icon {
        height: 17px;
    }

    .footer-connect__pay-item--mada .footer-connect__pay-icon {
        max-width: 52px;
    }
}

@media (min-width: 768px) {
    .footer-connect__credentials {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}
/* source: pages.css */
/* ===== PAGE HEADER / BREADCRUMBS ===== */
.page-header {
  margin-top: 0;
  padding: 40px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0a2a4a 100%);
  color: #fff; text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-header p { color: #94a3b8; font-size: 1rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: 0.85rem; color: #64748b; flex-wrap: wrap;
}
.breadcrumb a { color: #00b4d8; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #475569; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 0;
  flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-full); font-size: 0.85rem;
  font-weight: 600; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ===== CATEGORY LANDING PAGE ===== */
.category-landing-page .category-landing-hero {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-product-media);
  padding: 0;
  position: relative;
  aspect-ratio: 4 / 3;
}
.category-landing-page .category-landing-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.category-landing-actions {
  margin-bottom: 28px;
  text-align: center;
}
.category-landing-content {
  max-width: 900px;
  margin: 0 auto;
}
.category-landing-html {
  line-height: 1.7;
  color: var(--text-primary);
  word-break: break-word;
}
.category-landing-html--ar {
  display: none;
}
[dir="rtl"] .category-landing-html--en {
  display: none;
}
[dir="rtl"] .category-landing-html--ar {
  display: block;
}
.category-landing-html iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-md);
  margin: 16px 0;
  display: block;
  background: var(--bg-tertiary);
}
.category-landing-html .video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.category-landing-html .video-embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}
.category-landing-html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ===== CATEGORY PAGE ===== */
.category-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px;
}
.category-page-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.category-page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.category-page-card .cat-img {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-product-media);
  padding: 0;
  overflow: hidden;
}
.category-page-card .cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.category-page-card .cat-info {
  padding: 14px 16px 16px;
}
.category-page-card .cat-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.category-page-card .cat-info p { font-size: 0.85rem; color: var(--text-tertiary); }
.cat-badge {
  position: absolute; top: 12px; right: 12px; background: var(--accent);
  color: #fff; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}
[dir="rtl"] .cat-badge { right: auto; left: 12px; }
.subcategory-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcategory-chip {
  padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem;
  background: var(--accent-light); color: var(--accent); font-weight: 500;
}
a.subcategory-chip { text-decoration: none; display: inline-block; }
a.subcategory-chip:hover { filter: brightness(0.95); }

/* ===== ABOUT PAGE ===== */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 60px 0; }
.about-hero-text h2 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 16px; }
.about-hero-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.about-stat { text-align: center; }
.about-stat .num { font-size: 2.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); }
.about-stat .lbl { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.value-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: all var(--transition);
}
.value-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.value-card i { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== BLOG PAGE ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.blog-card-img { height: 200px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img i { font-size: 3rem; color: var(--text-tertiary); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 8px; display: flex; gap: 16px; }
.blog-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-top: 12px; }

/* ===== POLICY PAGE ===== */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0; }
.policy-sidebar { position: sticky; top: 24px; height: fit-content; }
.policy-sidebar h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.policy-sidebar a {
  display: block; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem;
  color: var(--text-secondary); transition: all var(--transition); margin-bottom: 4px;
}
.policy-sidebar a:hover, .policy-sidebar a.active { color: var(--accent); background: var(--accent-light); }
.policy-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.policy-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.policy-content h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 12px; color: var(--text-primary); }
.policy-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 0.95rem; }
.policy-content ul { margin-bottom: 16px; padding-inline-start: 24px; }
.policy-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; font-size: 0.95rem; list-style: disc; }

/* Shared payment-page containment (no overflow-x:hidden workaround) */
.service-pay,
.payment-result,
.hyperpay-widget-shell,
.checkout-section,
.order-tracking-section,
.mreq-section,
.si-section,
.pm-section {
  max-width: 100%;
  box-sizing: border-box;
}

.service-pay *,
.payment-result *,
.hyperpay-widget-shell *,
.checkout-payment-option,
.checkout-payment-option * {
  min-width: 0;
}

.checkout-payment-option {
  max-width: 100%;
  box-sizing: border-box;
}

.payment-ref,
.payment-result__details dd,
.service-pay__summary-row strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* source: responsive.css */
/* ===== SITE-WIDE RESPONSIVE ===== */

/* Prevent horizontal scroll */
html {
  -webkit-text-size-adjust: 100%;
}
body,
main {
  max-width: 100%;
  overflow-x: clip;
}

/* Fluid media & grids */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* Unified search page: columns sized for sidebar + RTL */
.catalog-products-grid.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.category-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination-nav .page-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.empty-state-msg {
  text-align: center;
  margin: 0;
}

/* ----- Large laptop / small desktop (≤1200px) ----- */
@media (max-width: 1200px) {
  .nav a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .header-inner {
    padding-inline: var(--container-padding-x);
  }

  .footer-grid {
    gap: 28px;
  }
}

/* ----- Tablet landscape (≤1024px) ----- */
@media (max-width: 1024px) {
  :root {
    --container-padding-x: 20px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
    justify-content: center;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-page,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .order-summary {
    position: static;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }

  .policy-sidebar h4 {
    width: 100%;
    margin-bottom: 8px;
  }

  .policy-sidebar a {
    display: inline-block;
    margin-bottom: 0;
  }

  #homeCategoriesCarousel .category-card {
    width: calc((100% - 36px) / 4);
  }
}

/* ----- Tablet portrait / large phone (≤768px) ----- */
@media (max-width: 768px) {
  :root {
    --container-padding-x: 16px;
  }

  .home-banner-link img {
    max-height: min(50vh, 420px);
    width: 100%;
    height: auto;
  }
  .hb-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .hb-nav.prev { left: 6px; }
  .hb-nav.next { right: 6px; }
  :root {
    --header-h: 76px;
    --logo-max-h: 58px;
    --logo-max-w: 200px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 32px;
    font-size: 0.95rem;
  }

  /* Header */
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .header-inner {
    padding-inline: var(--container-padding-x);
    gap: 4px;
  }

  .header-actions {
    gap: 0;
    flex-shrink: 0;
  }

  .header-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lang-toggle {
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .logo {
    padding: 4px 8px 4px 0;
    min-width: 0;
    max-width: 42%;
  }

  [dir="rtl"] .logo {
    padding: 4px 0 4px 8px;
  }

  /* Page header */
  .page-header {
    padding: 28px 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header p,
  .page-header .section-subtitle {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 40px 0 48px;
  }

  .hero-content {
    gap: 32px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .hero-stat {
    flex: 1;
    min-width: 90px;
  }

  .hero-stat-num {
    font-size: 1.6rem;
  }

  /* Home category sections — stack: category image, then product carousel */
  .home-cat-section {
    padding: 32px 0;
  }
  .home-cat-section-grid,
  .home-cat-section--img-start .home-cat-section-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "category"
      "products";
    gap: 20px;
  }
  /* Product cards stay narrow; section image uses full container content width. */
  .home-cat-category-card {
    width: min(var(--home-cat-product-card-width), calc(100vw - 7.5rem));
    max-width: 100%;
    margin-inline: auto;
    align-self: auto;
  }
  .home-cat-section-image-link.home-cat-category-card {
    height: auto;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    align-self: start;
  }
  .home-cat-section-image-link .home-cat-category-card__media,
  .home-cat-section-image-link .category-section-image-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    flex: none;
    overflow: hidden;
    padding: 0;
  }
  .home-cat-products-viewport {
    margin: 0 36px;
  }
  .home-cat-product-slide {
    flex-basis: min(var(--home-cat-product-card-width), calc(100vw - 7.5rem));
    width: min(var(--home-cat-product-card-width), calc(100vw - 7.5rem));
  }
  .home-cat-prod-nav {
    width: 34px;
    height: 34px;
  }

  /* Home categories carousel */
  .home-top-container {
    padding-top: 14px;
  }

  .home-promo-banners-section {
    padding: 24px 0;
  }

  .home-banners-block {
    margin-bottom: 14px;
  }

  .categories-viewport {
    margin: 0 36px;
  }

  .cat-nav {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .categories-carousel .category-card {
    padding: 8px 6px 10px;
    gap: 6px;
  }

  #homeCategoriesCarousel .category-card {
    width: calc((100% - 24px) / 3);
    padding: 6px 5px 8px;
  }

  #homeCategoriesCarousel .category-card h3 {
    font-size: 0.78125rem;
  }

  .categories-carousel .category-icon {
    padding: 3px;
  }

  #homeCategoriesCarousel .category-icon {
    padding: 0;
  }

  .category-card h3 {
    font-size: 0.8125rem;
  }

  /* Product cards */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .product-card-actions {
    gap: 6px;
  }

  .product-wishlist-btn {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
  }

  /* Banners & promos */
  .promo-banner {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  .promo-banner p {
    font-size: 0.95rem;
  }

  /* Category listing page */
  .category-page-grid {
    gap: 16px;
  }

  .category-page-card .cat-img {
    padding: 0;
  }

  .category-page-card .cat-info {
    padding: 12px 14px 14px;
  }

  /* Product detail (legacy layout only — v2 uses product-detail.css) */
  .product-detail:not(.product-detail--v2) {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .product-detail:not(.product-detail--v2) .product-detail-info .pd-name {
    font-size: 1.4rem;
  }

  .product-detail:not(.product-detail--v2) .pd-price {
    font-size: 1.65rem;
  }

  .product-detail:not(.product-detail--v2) .pd-actions {
    flex-direction: column;
  }

  .product-detail:not(.product-detail--v2) .pd-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .product-detail:not(.product-detail--v2) .pd-price-block {
    flex-wrap: wrap;
  }

  .specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pd-file-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Cart */
  .cart-page {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .cart-table-header {
    display: none;
  }

  .cart-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
  }

  .cart-row-product {
    flex-direction: row;
    text-align: start;
    align-items: center;
  }

  .cart-row-price,
  .cart-row-total {
    font-size: 0.9rem;
  }

  .cart-row .qty-control {
    width: fit-content;
  }

  .cart-row {
    position: relative;
    padding-top: 8px;
  }

  .cart-row-remove {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  [dir="rtl"] .cart-row-remove {
    right: auto;
    left: 12px;
  }

  .cart-row-product {
    padding-right: 44px;
  }

  [dir="rtl"] .cart-row-product {
    padding-right: 0;
    padding-left: 44px;
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-page {
    padding: 32px 0;
  }

  .checkout-form {
    padding: 20px;
  }

  .checkout-form h2 {
    font-size: 1.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-stepper {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
  }

  .step-label {
    display: none;
  }

  .step-line {
    width: 24px;
    margin: 0 4px;
  }

  .checkout-btns {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .checkout-btns .btn {
    min-width: 0;
    width: 100%;
  }

  /* Checkout maps / saved address — see pages.css for full mobile rules */

  .home-about-section {
    padding: 32px 0;
  }

  .home-about-card {
    padding: 1.25rem 1rem;
  }

  .home-about-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-about-read-more {
    width: 100%;
    justify-content: center;
  }

  /* About / blog / policy */
  .about-hero {
    padding: 40px 0;
  }

  .about-hero-text h2 {
    font-size: 1.6rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 32px 0;
  }

  .about-stat .num {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    padding: 32px 0;
  }

  .policy-content {
    padding: 24px 20px;
  }

  .policy-content h2 {
    font-size: 1.25rem;
  }

  /* Filter bar */
  .filter-bar {
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    padding-top: 48px;
  }

  .footer-brand-logo .brand-logo {
    max-width: min(200px, 80vw);
    max-height: 52px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-block: 14px;
  }

  /* Drawers & overlays */
  .cart-drawer,
  .wishlist-drawer {
    width: 100%;
  }

  .search-overlay {
    padding-top: 24px;
    align-items: flex-start;
  }

  .search-box {
    width: calc(100% - 32px);
    max-width: none;
  }

  .auth-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }

  /* Floating UI */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    bottom: 16px;
    right: 16px;
  }

  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 16px;
  }

  .back-to-top {
    bottom: 76px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  [dir="rtl"] .back-to-top {
    right: auto;
    left: 16px;
  }

  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    max-width: none;
  }

  .toast.show {
    transform: translateX(0) translateY(0);
  }

  /* Confirmation */
  .confirmation-page {
    padding: 48px 0;
  }

  .confirmation-page h1 {
    font-size: 1.5rem;
  }

  .confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .coupon-input {
    flex-direction: column;
  }

  .coupon-input button {
    width: 100%;
  }
}

/* ----- Home categories carousel breakpoints (homepage banner block only) ----- */
@media (max-width: 639.98px) {
  #homeCategoriesCarousel .category-card {
    width: calc((100% - 12px) / 2);
  }
}

/* ----- Small phone (≤576px) ----- */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .add-to-cart-btn {
    font-size: 0.8rem;
    padding: 10px 9px;
    min-height: 44px;
  }

  .product-wishlist-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .pd-thumb {
    width: 56px;
    height: 56px;
  }
}

/* ----- Extra small (≤480px) ----- */
@media (max-width: 480px) {
  :root {
    --header-h: 72px;
    --logo-max-h: 52px;
    --logo-max-w: 168px;
    --container-padding-x: 12px;
  }

  .header-inner {
    padding-inline: var(--container-padding-x);
  }

  .header-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .logo {
    max-width: 46%;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .category-card {
    min-width: 130px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .page-header h1 {
    font-size: 1.35rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }
}

/* Very narrow phones: single column product grid */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Touch: ensure bottom actions meet minimum tap size */
@media (hover: none) and (pointer: coarse) {
  .product-card-actions .add-to-cart-btn {
    min-height: 44px;
  }

  .product-wishlist-btn {
    min-height: 44px;
  }
}
/* source: required-label.css */
/* Required field indicator — red asterisk beside labels */
.required-label::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}
/* source: theme-dark.css */
/* ===== DARK THEME — surface harmonization ===== */

[data-theme="dark"] body,
[data-theme="dark"] main {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ===== HEADER / NAVBAR (reference + legacy) — premium dark surfaces ===== */
[data-theme="dark"] .header,
[data-theme="dark"] .header--reference {
  background: rgba(15, 26, 44, 0.96);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header-top,
[data-theme="dark"] .header-main {
  background: #121f34;
}

[data-theme="dark"] .header--reference .href-top {
  background: #121f34;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .header--reference .href-top-link {
  color: #94a3b8;
}

[data-theme="dark"] .header--reference .href-top-link:hover {
  color: var(--accent);
}

[data-theme="dark"] .header--reference .href-top-sep {
  color: rgba(148, 163, 184, 0.35);
}

[data-theme="dark"] .store-short-address__label {
  color: #94a3b8;
}

[data-theme="dark"] .store-short-address__box {
  background: #0f1a2e;
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

[data-theme="dark"] .header--reference .href-main {
  background: #0f1a2e;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="dark"] .header--reference .href-nav {
  background: linear-gradient(180deg, #132238 0%, #101c32 100%);
  border-bottom-color: rgba(0, 180, 216, 0.18);
}

[data-theme="dark"] .header--reference .href-nav-links a {
  color: #c5d0de;
}

[data-theme="dark"] .header--reference .href-nav-links a:hover,
[data-theme="dark"] .header--reference .href-nav-links a.active {
  color: #e8eef5;
  background: rgba(0, 180, 216, 0.14);
}

[data-theme="dark"] .header--reference .href-categories-btn {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .header--reference .href-categories-btn:hover {
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.28);
}

[data-theme="dark"] .header--reference .href-search {
  background: var(--bg-input);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .header--reference .href-search:focus-within {
  border-color: rgba(0, 180, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.14);
}

[data-theme="dark"] .header--reference .href-search-input {
  background: transparent;
  background-color: transparent;
  color: var(--text-primary);
}

[data-theme="dark"] .header--reference .href-search-input::placeholder {
  color: var(--text-tertiary);
}

[data-theme="dark"] .header--reference .href-lang-btn {
  background: #1a2a42;
  border-color: rgba(148, 163, 184, 0.16);
  color: #d4dde8;
}

[data-theme="dark"] .header--reference .href-lang-btn:hover {
  border-color: rgba(0, 180, 216, 0.4);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.1);
}

[data-theme="dark"] .header--reference .href-lang-menu {
  background: #152238;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .header--reference .href-lang-menu button {
  color: #b8c5d6;
}

[data-theme="dark"] .header--reference .href-lang-menu button:hover,
[data-theme="dark"] .header--reference .href-lang-menu button.active {
  background: rgba(0, 180, 216, 0.14);
  color: #7dd3ea;
}

[data-theme="dark"] .header--reference .href-icon-btn,
[data-theme="dark"] .header--reference .href-cart-box {
  background: #1a2a42;
  border-color: rgba(148, 163, 184, 0.16);
  color: #c5d0de;
}

[data-theme="dark"] .header--reference .href-icon-btn:hover,
[data-theme="dark"] .header--reference .href-cart-box:hover {
  border-color: rgba(0, 180, 216, 0.4);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.1);
}

[data-theme="dark"] .header--reference .href-cart-label {
  color: #7b8fa8;
}

[data-theme="dark"] .header--reference .href-cart-amount {
  color: #e8eef5;
}

[data-theme="dark"] .header--reference .href-mobile-toggle span {
  background: #c5d0de;
}

[data-theme="dark"] .nav-dropdown-panel,
[data-theme="dark"] .search-autocomplete {
  background: #152238;
  border-color: rgba(148, 163, 184, 0.14);
  color: #e8eef5;
  box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .header--reference .href-lang-menu {
  background: #152238;
  border-color: rgba(148, 163, 184, 0.14);
  color: #e8eef5;
}

[data-theme="dark"] .nav-dropdown-panel-head {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .nav-dropdown-title {
  color: #e8eef5;
}

[data-theme="dark"] .nav-dropdown-view-all {
  color: #5ec8e6;
}

[data-theme="dark"] .nav-dropdown-menu-parent {
  color: #dce4ee;
}

[data-theme="dark"] .nav-dropdown-menu-parent:hover,
[data-theme="dark"] .nav-dropdown-menu-item.is-submenu-open > .nav-dropdown-menu-parent,
[data-theme="dark"] .nav-dropdown-menu-item:focus-within > .nav-dropdown-menu-parent {
  color: #7dd3ea;
  background: rgba(0, 180, 216, 0.12);
}

[data-theme="dark"] .nav-dropdown-flyout-slot {
  background: #121f34;
}

[data-theme="dark"] .nav-dropdown-flyout-slot .nav-dropdown-submenu {
  background: #121f34;
  border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .nav-dropdown-submenu-list a {
  color: #b8c5d6;
}

[data-theme="dark"] .nav-dropdown-submenu-list a:hover,
[data-theme="dark"] .nav-dropdown-submenu-list a:focus-visible {
  color: #7dd3ea;
  background: rgba(0, 180, 216, 0.12);
}

[data-theme="dark"] .nav-dropdown-cat:hover,
[data-theme="dark"] .nav-dropdown-sublist a:hover {
  background: rgba(0, 180, 216, 0.12);
}

[data-theme="dark"] .search-autocomplete-item:hover,
[data-theme="dark"] .search-autocomplete-item:focus-visible {
  background: rgba(0, 180, 216, 0.1);
}

[data-theme="dark"] .search-autocomplete-name {
  color: #e8eef5;
}

[data-theme="dark"] .search-autocomplete-meta,
[data-theme="dark"] .search-autocomplete-cat {
  color: #94a3b8;
}

[data-theme="dark"] .category-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .category-card:hover .category-icon {
  background: var(--bg-card-hover);
}

[data-theme="dark"] .home-top-section,
[data-theme="dark"] .home-cat-section,
[data-theme="dark"] .home-cat-section:nth-child(even),
[data-theme="dark"] .section {
  background: var(--bg-primary);
}

[data-theme="dark"] .cart-drawer,
[data-theme="dark"] .wishlist-drawer,
[data-theme="dark"] .search-panel,
[data-theme="dark"] .auth-panel {
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .cart-item,
[data-theme="dark"] .wishlist-item {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .cart-item-img,
[data-theme="dark"] .wishlist-item-img {
  background: var(--bg-card);
}

[data-theme="dark"] .product-wishlist-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

[data-theme="dark"] .product-wishlist-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .product-wishlist-btn.wishlisted,
[data-theme="dark"] .product-wishlist-btn.wishlisted:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #f87171;
}

[data-theme="dark"] .catalog-search-page {
  --cat-surface: var(--bg-card);
  --cat-surface-soft: var(--bg-tertiary);
  background: var(--bg-primary);
}

[data-theme="dark"] .catalog-filters-panel-card,
[data-theme="dark"] .catalog-filters-panel-titlebar,
[data-theme="dark"] .catalog-filters-panel-body,
[data-theme="dark"] .catalog-results-toolbar {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .catalog-field-control-wrap {
  background: var(--bg-input);
  border-color: var(--border);
}

[data-theme="dark"] .catalog-field-control-wrap input,
[data-theme="dark"] .catalog-field-control-wrap select {
  color: var(--text-primary);
}

[data-theme="dark"] .catalog-search-page .form-control,
[data-theme="dark"] .catalog-search-page select,
[data-theme="dark"] .catalog-search-page input[type="search"],
[data-theme="dark"] .catalog-search-page input[type="text"],
[data-theme="dark"] .catalog-search-page input[type="number"] {
  background-color: var(--bg-input);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .catalog-field-control-wrap > input[type="search"],
[data-theme="dark"] .catalog-field-control-wrap > input[type="text"],
[data-theme="dark"] .catalog-field-control-wrap > input[type="number"],
[data-theme="dark"] .catalog-field-control-wrap > select {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .checkout-form,
[data-theme="dark"] .checkout-address-preview,
[data-theme="dark"] .address-card,
[data-theme="dark"] .account-panel {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .account-subnav {
  background: var(--bg-tertiary);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .checkout-address-preview {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not(.href-search-input),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  /* background-color only — `background` shorthand clears select arrow images */
  background-color: var(--bg-input);
  border-color: var(--border);
  color: var(--text-primary);
  color-scheme: dark;
}

[data-theme="dark"] select option {
  background-color: var(--bg-input);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-tertiary);
}

[data-theme="dark"] .search-field,
[data-theme="dark"] .header-search-trigger {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-secondary);
}

[data-theme="dark"] .mobile-nav {
  background: var(--bg-secondary);
}

[data-theme="dark"] .home-banners-viewport {
  border-color: var(--border);
}

[data-theme="dark"] .product-detail--v2,
[data-theme="dark"] .pd-gallery-stage,
[data-theme="dark"] .pd-info-v2 {
  background: transparent;
}

[data-theme="dark"] .pd-magnifier-wrap,
[data-theme="dark"] .product-gallery-main {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .pd-split-pay__row {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .pd-pickup-benefit {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.22);
}

[data-theme="dark"] .pd-pickup-benefit__icon {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

[data-theme="dark"] .pd-info-v2 .pd-sku {
  background: var(--bg-card);
  border-color: var(--border);
}
