/* MH Mobile — Frontend theme (atoz-inspired, navy+yellow)
   Mobile-first, RTL, professional.
   ============================================================ */
:root {
  --navy:        #0d3b66;
  --navy-dark:   #0a2e52;
  --navy-darker: #062041;
  --yellow:      #ffc107;
  --yellow-dark: #e0a800;
  --red:         #e63946;
  --green:       #16a34a;
  --bg:          #f4f6f9;
  --surface:     #ffffff;
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 14px rgba(13,59,102,.08);
  --shadow-lg:   0 10px 30px rgba(13,59,102,.12);
  --radius:      14px;
  --radius-sm:   8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', system-ui, -apple-system, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--yellow-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy-darker);
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar i { color: var(--yellow); margin-left: 5px; }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.header-main {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
  position: relative;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo img { height: 60px; width: auto; object-fit: contain; }
.brand-logo .brand-text { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: .5px; }

.search-box {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 13px 16px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  min-width: 0;
}
.search-box button {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 700;
  transition: background .2s;
}
.search-box button:hover { background: var(--yellow-dark); }

.header-actions { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 12px;
  position: relative;
  padding: 4px 6px;
  min-width: 56px;
}
.header-action i { font-size: 22px; margin-bottom: 4px; }
.header-action:hover { color: var(--yellow); }
.header-action .badge-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  padding: 4px 8px;
}

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav .container { display: flex; align-items: stretch; gap: 0; }
.cats-btn {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.cats-btn:hover { background: var(--yellow-dark); }
.cats-btn i { font-size: 18px; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-menu > li > a:hover { color: var(--yellow); background: rgba(255,255,255,.04); }
.nav-menu .badge-tag {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 4px;
}
.nav-menu .badge-tag.hot { background: var(--red); }
.nav-menu .badge-tag.new { background: var(--yellow); color: var(--navy); }

.nav-menu li.has-submenu > a::after {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 4px;
  font-size: 11px;
}
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  z-index: 200;
}
.nav-menu li.has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 14px;
}
.submenu li a:hover { background: var(--bg); color: var(--navy); padding-right: 22px; }

/* ============================================================
   HERO / SLIDER + CATEGORIES SIDEBAR (homepage)
   ============================================================ */
.hero-section {
  padding: 22px 0;
  background: linear-gradient(180deg, #eef2f7 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
.hero-slider {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 360px;
}
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active { display: block; animation: fadeIn .5s; }
.hero-slide img { width: 100%; height: 430px; object-fit: cover; }
.hero-slide .hero-media-wrap { display: block; position: relative; }
.hero-slide .hero-video { width: 100%; height: 430px; object-fit: cover; display: block; background: #000; }
.hero-video-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(220,38,38,.92); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 3; letter-spacing: .3px;
}
.hero-video-badge i { font-size: 10px; }
.hero-slide .slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(90deg, rgba(13,59,102,.55) 0%, rgba(13,59,102,0) 70%);
  color: #fff;
}
.hero-slide h2 { font-size: 2.2rem; font-weight: 800; margin: 0 0 12px; }
.hero-slide p { font-size: 1.1rem; margin: 0 0 18px; max-width: 480px; }
.hero-slide .btn { align-self: flex-start; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.55);
  cursor: pointer; padding: 0;
}
.slider-dots button.active { background: var(--yellow); width: 24px; border-radius: 6px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); color: var(--navy);
  border: none; width: 42px; height: 42px; border-radius: 50%;
  font-size: 16px; cursor: pointer; z-index: 5; transition: all .2s;
}
.slider-arrow:hover { background: var(--yellow); }
.slider-arrow.prev { right: 14px; }
.slider-arrow.next { left: 14px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.hero-cats {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  max-height: 430px;
  overflow-y: auto;
}
.hero-cats-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-cats-tabs button,
.hero-cats-tabs a {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.hero-cats-tabs button:hover,
.hero-cats-tabs a:hover,
.hero-cats-tabs button.active,
.hero-cats-tabs a.active { background: var(--yellow); color: var(--navy); transform: translateY(-1px); }
.hero-cats h3 { font-size: 1.05rem; margin: 6px 0 8px; color: var(--navy); font-weight: 800; }
.hero-cats-list { list-style: none; margin: 0 0 14px; padding: 0; }
.hero-cats-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 4px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px dashed transparent;
}
.hero-cats-list li a:hover { color: var(--navy); border-bottom-color: var(--border); }
.hero-cats-list li a i { color: var(--yellow-dark); font-size: 11px; }

/* ============================================================
   CATEGORIES CIRCLES STRIP (atoz-style)
   ============================================================ */
.cats-strip {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 14px;
  margin-top: 18px;
}
.cats-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
}
.cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform .25s;
}
.cat-circle:hover { transform: translateY(-4px); }
.cat-circle .circle {
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: all .25s;
}
.cat-circle:hover .circle { border-color: var(--yellow); box-shadow: 0 8px 18px rgba(13,59,102,.12); }
.cat-circle .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle .circle i { font-size: 32px; color: var(--navy); }
.cat-circle span { font-size: 13px; font-weight: 600; color: var(--text); }

/* ============================================================
   PROMO BANNERS (homepage strip)
   ============================================================ */
.banners-section { padding: 14px 0 6px; }
.banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.banner-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 600 / 260;
  background: #fafafa;
  transition: transform .3s, box-shadow .3s;
}
.banner-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner-card:hover img { transform: scale(1.04); }

/* ============================================================
   FLASH SALE + COUNTDOWN TIMER
   ============================================================ */
.flash-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fef3c7 100%);
  border-radius: var(--radius);
  padding: 26px 0;
  position: relative;
  overflow: hidden;
}
.flash-section .container { position: relative; z-index: 2; }
.flash-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(239,68,68,.12), transparent 55%),
              radial-gradient(circle at 0% 100%, rgba(245,158,11,.12), transparent 55%);
  pointer-events: none;
}
.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.flash-title-wrap { flex: 1; min-width: 240px; }
.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
}
.flash-badge i { animation: bolt 1.4s infinite; }
@keyframes bolt { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25);filter:drop-shadow(0 0 6px #fbbf24)} }
.flash-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}
.flash-sub { color: var(--text-muted); font-size: 13.5px; margin: 0; }

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(13,59,102,.08);
  border: 1px solid var(--border);
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.cd-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #0a2e52);
  padding: 6px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  min-width: 52px;
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.cd-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.cd-sep { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-top: -16px; }
.countdown.ended .cd-num { background: linear-gradient(135deg,#6b7280,#374151); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 30px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 5px; height: 26px;
  background: var(--yellow);
  border-radius: 3px;
}
.section-link { color: var(--navy); font-weight: 600; font-size: 13.5px; }
.section-link:hover { color: var(--yellow-dark); }
.section-link i { margin-right: 4px; font-size: 11px; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fafafa;
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s;
  padding: 8px;
}
.product-card:hover .img-wrap img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
}
.product-badge {
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
}
.product-badge.new { background: var(--red); }
.product-badge.sale { background: var(--green); }
.product-badge.featured { background: var(--yellow); color: var(--navy); }

.product-actions {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(-8px);
  transition: all .25s;
  z-index: 3;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions button {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  color: var(--navy); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.product-actions button:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.product-actions button.active { background: var(--red); color: #fff; border-color: var(--red); }

.product-card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .brand { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: .5px; }
.product-card .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card .title:hover { color: var(--navy); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-card .price { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.product-card .old-price { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }
.product-card .add-cart-btn {
  margin-top: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.product-card .add-cart-btn:hover { background: var(--yellow); color: var(--navy); }
.product-card .add-cart-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ============================================================
   BANNERS
   ============================================================ */
.banner {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  margin: 18px 0;
}
.banner img { width: 100%; height: auto; display: block; }
.banner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 18px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); color: var(--yellow); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--surface);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { color: var(--text-muted); }
.breadcrumb li a { color: var(--navy); font-weight: 600; }
.breadcrumb li + li::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin: 0 6px; color: var(--text-muted); font-size: 11px; }
.breadcrumb li:last-child { color: var(--text); font-weight: 700; }

/* ============================================================
   PRODUCT LISTING (category page)
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 24px 0; }
.shop-sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 80px;
}
.filter-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group h4 { font-size: 14px; margin: 0 0 12px; color: var(--navy); font-weight: 800; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; cursor: pointer; color: var(--text); }
.filter-group label:hover { color: var(--navy); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--navy); width: 16px; height: 16px; }

.shop-toolbar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.shop-toolbar select { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; font-family: inherit; }

.pagination {
  display: flex; justify-content: center; gap: 6px; padding: 28px 0 8px;
  list-style: none; margin: 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .active { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.pagination .disabled { opacity: .5; pointer-events: none; }

/* ============================================================
   PRODUCT DETAILS
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 24px 0; }
.pd-gallery { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pd-main-img {
  aspect-ratio: 1;
  background: #fafafa;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.pd-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pd-thumbs img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: #fafafa; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; padding: 4px;
}
.pd-thumbs img.active, .pd-thumbs img:hover { border-color: var(--yellow); }

.pd-info { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pd-brand { font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.pd-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 0 0 12px; line-height: 1.3; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pd-rating .stars { color: var(--yellow); }
.pd-rating span { color: var(--text-muted); font-size: 13px; }
.pd-price-block { padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.pd-old-price { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-right: 12px; }
.pd-save { display: inline-block; background: var(--red); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-right: 8px; }
.pd-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 20px; font-size: 13.5px; }
.pd-meta .label { color: var(--text-muted); }
.pd-meta .value { color: var(--text); font-weight: 600; }

.qty-box {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-box button { background: #f8fafc; border: none; width: 38px; height: 42px; font-size: 18px; font-weight: 700; color: var(--navy); }
.qty-box button:hover { background: var(--yellow); }
.qty-box input { width: 50px; border: none; text-align: center; height: 42px; font-weight: 700; font-size: 15px; outline: none; }

.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.page-layout-2 { display: grid; grid-template-columns: 1fr 360px; gap: 22px; padding: 24px 0; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 16px; color: var(--navy); font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card h3 i { color: var(--yellow-dark); }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: middle; }
.cart-table th { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.cart-table .ci-img { width: 70px; height: 70px; object-fit: contain; background: #fafafa; border-radius: var(--radius-sm); padding: 4px; }
.cart-table .ci-name { font-weight: 600; color: var(--text); }
.cart-table .ci-remove { background: transparent; border: none; color: var(--red); font-size: 18px; }
.cart-table .ci-remove:hover { color: #b91c1c; }

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--navy); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: all .2s;
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,59,102,.1); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border-right: 4px solid;
  font-size: 14px;
}
.alert-success { background: #d1fae5; border-color: var(--green); color: #065f46; }
.alert-danger  { background: #fee2e2; border-color: var(--red);   color: #991b1b; }
.alert-info    { background: #dbeafe; border-color: var(--navy);  color: #1e3a8a; }
.alert-warning { background: #fef3c7; border-color: var(--yellow-dark); color: #92400e; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin: 0 0 8px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border-right: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 12px 18px;
  box-shadow: var(--shadow-lg); min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .3s;
}
.toast.error { border-right-color: var(--red); }
.toast i.icon { color: var(--green); font-size: 18px; }
.toast.error i.icon { color: var(--red); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-darker);
  color: #cbd5e1;
  padding: 50px 0 0;
  margin-top: 50px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.footer p { color: #94a3b8; line-height: 1.9; font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a { color: #cbd5e1; transition: all .2s; }
.footer ul li a:hover { color: var(--yellow); padding-right: 6px; }
.footer ul li a i { color: var(--yellow); margin-left: 6px; font-size: 11px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo-row img { height: 60px; }
.footer-brand .logo-row h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; color: #cbd5e1; font-size: 14px; }
.footer-contact-item i {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,193,7,.1); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
  font-size: 16px;
}
.social-links a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-3px); }

.newsletter-form { display: flex; margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; }
.newsletter-form input { flex: 1; border: none; padding: 11px 14px; font-family: inherit; outline: none; }
.newsletter-form button { background: var(--yellow); color: var(--navy); border: none; padding: 0 18px; font-weight: 700; }
.newsletter-form button:hover { background: var(--yellow-dark); }

.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #94a3b8;
}
.payment-icons { display: flex; gap: 10px; font-size: 26px; color: #94a3b8; }

/* ============================================================
   FLOATING ACTIONS (WhatsApp + back to top)
   ============================================================ */
.float-actions { position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: all .25s;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-4px); color: #fff; }
.float-btn.whatsapp { background: #25d366; }
.float-btn.whatsapp:hover { background: #1ebe57; }
.float-btn.up { display: none; }
.float-btn.up.show { display: flex; }

/* ============================================================
   MOBILE SIDE PANEL (menu/cats)
   ============================================================ */
.side-panel {
  position: fixed; top: 0; right: -340px;
  width: 320px; max-width: 86vw; height: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: -10px 0 30px rgba(0,0,0,.25);
  transition: right .3s;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.side-panel.open { right: 0; }
.side-panel-header {
  background: var(--navy);
  color: #fff;
  padding: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.side-panel-header h4 { margin: 0; font-size: 1.05rem; }
.side-panel-header button { background: transparent; border: none; color: #fff; font-size: 22px; }
.side-panel .panel-content { flex: 1; padding: 12px 0; }
.side-panel .panel-content a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.side-panel .panel-content a:hover, .side-panel .panel-content a.active { background: var(--bg); color: var(--navy); }
.side-panel .panel-content a i { color: var(--yellow-dark); width: 22px; }

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: all .25s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cats { max-height: none; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-main { padding: 10px 0; }
  .header-main .container { gap: 10px; }
  .brand-logo img { height: 44px; }
  .topbar-left, .topbar-right { gap: 10px; font-size: 11.5px; }
  .header-actions .header-action span { display: none; }
  .header-action { min-width: 36px; }
  .header-action i { font-size: 20px; margin-bottom: 0; }
  .mobile-menu-btn { display: block; }
  .main-nav { display: none; }
  .main-nav .nav-menu { display: none; }
  .cats-btn { flex: 1; justify-content: center; padding: 12px; }
  .product-detail { grid-template-columns: 1fr; }
  .page-layout-2 { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .banners-grid { grid-template-columns: 1fr; gap: 12px; }
  .flash-header { flex-direction: column; align-items: stretch; }
  .countdown { justify-content: center; }
  .cd-num { font-size: 1.35rem; min-width: 44px; padding: 5px 8px; }
  .cd-unit { min-width: 46px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-slide img { height: 280px; }
  .hero-slide .hero-video { height: 280px; }
  .hero-slide h2 { font-size: 1.4rem; }
  .hero-slide p { font-size: .95rem; }
  .hero-slide .slide-caption { padding: 20px; }
  .cats-strip-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
  .cat-circle .circle { width: 72px; height: 72px; }
}

@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .info { padding: 10px; }
  .product-card .title { font-size: 13px; }
  .product-card .price { font-size: 1rem; }
  .product-card .add-cart-btn { font-size: 12px; padding: 8px; }
  .section-title { font-size: 1.1rem; }
  .topbar-left .hide-sm, .topbar-right .hide-sm { display: none; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  .pd-title { font-size: 1.25rem; }
  .pd-price { font-size: 1.6rem; }
}

/* Wide red accessories strip */
.hero-accessories-strip {
  display: block; margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(160,31,18,.28);
  aspect-ratio: 1400 / 220;
  transition: transform .3s, box-shadow .3s;
}
.hero-accessories-strip:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(160,31,18,.36); }
.hero-accessories-strip img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 820px) {
  .hero-accessories-strip { aspect-ratio: 16 / 9; margin-top: 16px; }
}
