/* ============================================
   GENIX.SITE — Premium Tech Store
   Refined, smooth, no childish elements
   ============================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #0a0a0f;
  --ink-soft: #1a1a24;
  --muted: #6b7280;
  --line: #ececf1;
  --primary: #e63946;
  --primary-dark: #c1121f;
  --accent: #14b8a6;
  --gold: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(10,10,15,.06), 0 1px 2px rgba(10,10,15,.04);
  --shadow-md: 0 4px 20px rgba(10,10,15,.06), 0 2px 6px rgba(10,10,15,.04);
  --shadow-lg: 0 20px 50px rgba(10,10,15,.12), 0 8px 20px rgba(10,10,15,.06);
  --radius: 14px;
  --radius-sm: 8px;
  --t: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}
body.rtl {
  direction: rtl;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }
img { max-width: 100%; display: block; }

/* Icon utilities */
svg { width: 18px; height: 18px; flex-shrink: 0; }
.ico { width: 18px; height: 18px; }
.ico-xs { width: 14px; height: 14px; vertical-align: -2px; }

/* ============ TOP STRIP ============ */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 10px 0;
  letter-spacing: .2px;
}
.topbar-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
}
.nav-flex {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.8px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(230,57,70,.25);
}
.logo-tld {
  color: var(--muted);
  font-weight: 500;
  font-size: 22px;
}

.search-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--line);
  background: #f7f7f9;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .25s var(--t);
}
.search-wrap input:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,15,.06);
}
.search-ico {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}
body.rtl .search-wrap input { padding: 14px 46px 14px 18px; }
body.rtl .search-ico { left: auto; right: 16px; }

.nav-actions { display: flex; gap: 6px; align-items: center; }
.ghost {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s var(--t);
}
.ghost:hover { background: #f3f3f6; }
.cart-pill {
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s var(--t);
}
.cart-pill:hover { background: var(--primary); transform: translateY(-1px); }
.cart-pill #cart-count {
  background: var(--primary);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.cat-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.cat-flex {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-flex::-webkit-scrollbar { display: none; }
.cat-flex a {
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .2s var(--t);
  letter-spacing: .2px;
}
.cat-flex a:hover { color: var(--ink); background: #f3f3f6; }
.cat-flex a.active {
  background: var(--ink);
  color: #fff;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--ink);
}
.slides {
  display: flex;
  height: 100%;
  transition: transform .8s var(--t);
}
.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.slide-1 { background: linear-gradient(120deg, #0a0a0f 0%, #1a1a24 50%, #c1121f 100%); }
.slide-2 { background: linear-gradient(120deg, #0a0a0f 0%, #001a4d 50%, #003c8f 100%); }
.slide-3 { background: linear-gradient(120deg, #0a0a0f 0%, #1a3300 50%, #76b900 100%); }
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 25% 100%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.slide-inner { position: relative; z-index: 2; width: 100%; }
.slide-text { max-width: 620px; color: #fff; }
.badge-tag {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.badge-tag.light { background: rgba(255,255,255,.95); color: var(--ink); border-color: transparent; }
.slide-text h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.slide-text p {
  font-size: 18px;
  line-height: 1.6;
  opacity: .85;
  margin-bottom: 32px;
  max-width: 520px;
  font-weight: 400;
}
.btn-cta {
  background: #fff;
  color: var(--ink);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .3s var(--t);
}
.btn-cta svg { width: 16px; height: 16px; transition: transform .3s var(--t); }
.btn-cta:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(230,57,70,.35);
}
.btn-cta:hover svg { transform: translateX(4px); }
body.rtl .btn-cta:hover svg { transform: translateX(-4px) rotate(180deg); }
body.rtl .btn-cta svg { transform: rotate(180deg); }

.slide-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: all .35s var(--t);
}
.dot.active { background: #fff; width: 36px; border-radius: 5px; }

/* ============ CATEGORY TILES ============ */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 56px auto;
}
.tile {
  background: var(--surface);
  padding: 28px 14px;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all .35s var(--t);
}
.tile:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.tile-icon {
  width: 38px;
  height: 38px;
  color: var(--ink);
  margin: 0 auto 12px;
  transition: all .35s var(--t);
}
.tile:hover .tile-icon { color: var(--primary); transform: scale(1.1); }
.tile h3 { font-size: 14px; font-weight: 700; letter-spacing: .2px; }

/* ============ DEAL ============ */
.deal-section { margin: 56px auto; }
.deal-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1f1f2e 50%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 48px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.deal-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.1) 0%, transparent 50%);
}
.deal-text { position: relative; z-index: 2; max-width: 600px; }
.deal-text h2 {
  font-size: 38px;
  margin: 14px 0 8px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}
.deal-sub { opacity: .75; margin-bottom: 28px; font-size: 15px; }
.countdown { display: flex; gap: 14px; }
.countdown > div {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 18px 22px;
  border-radius: 12px;
  min-width: 84px;
  text-align: center;
}
.countdown span {
  font-size: 32px;
  font-weight: 800;
  display: block;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: 10px;
  letter-spacing: 1.8px;
  opacity: .7;
  font-weight: 600;
}

/* ============ BRANDS ============ */
.brands-strip { margin: 56px auto; }
.brands-strip h3 {
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.brand {
  text-align: center;
  padding: 22px 14px;
  font-weight: 700;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: .3px;
  transition: color .25s var(--t);
  border-right: 1px solid var(--line);
}
.brand:last-child { border-right: 0; }
.brand:hover { color: var(--ink); }
body.rtl .brand { border-right: 0; border-left: 1px solid var(--line); }
body.rtl .brand:last-child { border-left: 0; }

/* ============ PRODUCTS ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 56px 0 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.sort-wrap select {
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding-bottom: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .35s var(--t);
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.card .img {
  height: 220px;
  background: linear-gradient(135deg, #f5f5f7 0%, #ececf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card .img.cat-phones      { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.card .img.cat-laptops     { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); }
.card .img.cat-games       { background: linear-gradient(135deg, #1a0033 0%, #6b21a8 100%); }
.card .img.cat-electronics { background: linear-gradient(135deg, #064e3b 0%, #0d9488 100%); }
.card .img.cat-hardware    { background: linear-gradient(135deg, #18181b 0%, #ca8a04 100%); }
.card .img.cat-covers      { background: linear-gradient(135deg, #831843 0%, #ec4899 100%); }
.card .img.cat-giftcards   { background: linear-gradient(135deg, #7c2d12 0%, #f59e0b 100%); }
.card .img.cat-accessories { background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%); }

.card .img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(0,0,0,.25) 0%, transparent 60%);
  pointer-events: none;
}
.card .img::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.placeholder {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 16px;
}
.ph-icon {
  width: 72px !important; height: 72px !important;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.3));
  transition: transform .5s var(--t);
}
.ph-brand {
  margin-top: 14px;
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
}
.card:hover .ph-icon { transform: scale(1.15) rotate(-3deg); }
.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
body.rtl .card-badges { left: auto; right: 14px; }
.card-badges > span {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-new { background: var(--ink); color: #fff; }
.badge-sale {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  font-size: 12px;
  letter-spacing: 0;
}
.badge-out {
  background: rgba(10,10,15,.85);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Out of stock state */
.card.is-out .img { filter: grayscale(0.7) brightness(0.85); }
.card.is-out:hover { transform: none; border-color: var(--line); box-shadow: none; }
.card.is-out h4, .card.is-out .price { opacity: 0.65; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.price-old {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.stock-low {
  color: #d97706;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card button:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
}
.card button:disabled:hover { background: #e5e7eb !important; }
.card .body { padding: 18px; }
.card .brand-tag {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 10px;
  min-height: 42px;
  line-height: 1.4;
  letter-spacing: -.2px;
}
.card .stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.card .stars svg { width: 13px; height: 13px; color: var(--gold); }
.card .price {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.card .install {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-action { padding: 0 18px 18px; }
.card-action button {
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
  transition: all .25s var(--t);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.card-action button:hover { background: var(--primary); }

/* ============ PRODUCT DETAIL PAGE ============ */
.product-page { padding-top: 32px; padding-bottom: 60px; }
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.product-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px;
  color: var(--muted);
}
.product-image {
  height: 540px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f5f7 0%, #ececf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-image .placeholder {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.product-image .ph-icon {
  width: 160px !important; height: 160px !important;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}
.product-image .ph-brand {
  margin-top: 22px;
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
}
.product-image::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.18) 0%, transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(0,0,0,.25) 0%, transparent 60%);
}
.product-image::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.product-image.cat-phones      { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.product-image.cat-laptops     { background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%); }
.product-image.cat-games       { background: linear-gradient(135deg, #1a0033 0%, #6b21a8 100%); }
.product-image.cat-electronics { background: linear-gradient(135deg, #064e3b 0%, #0d9488 100%); }
.product-image.cat-hardware    { background: linear-gradient(135deg, #18181b 0%, #ca8a04 100%); }
.product-image.cat-covers      { background: linear-gradient(135deg, #831843 0%, #ec4899 100%); }
.product-image.cat-giftcards   { background: linear-gradient(135deg, #7c2d12 0%, #f59e0b 100%); }
.product-image.cat-accessories { background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%); }
.product-badges {
  position: absolute;
  top: 20px; left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3;
}
.product-badges > span {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-info { display: flex; flex-direction: column; }
.product-info .brand-tag {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.product-info h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.rating-row .stars { display: flex; gap: 2px; }
.rating-row .stars svg { width: 16px; height: 16px; color: var(--gold); }
.rating-row .rating-count { color: var(--muted); font-size: 13px; }

.price-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.big-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
}
.old-price {
  font-size: 20px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-weight: 500;
}
.save-tag {
  background: rgba(16,185,129,.12);
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: .5px;
}
.installment {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.stock-row { margin-bottom: 24px; }
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.stock-in    { background: rgba(16,185,129,.12); color: #059669; }
.stock-low   { background: rgba(245,158,11,.12); color: #d97706; }
.stock-out   { background: rgba(239,68,68,.12); color: #dc2626; }

.description, .specs {
  margin-bottom: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.description h3, .specs h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.description p { color: #374151; line-height: 1.7; font-size: 14px; }
.specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.specs td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.specs td:first-child {
  color: var(--muted);
  text-transform: capitalize;
  width: 40%;
  font-weight: 600;
}
.specs td:last-child { color: var(--ink); font-weight: 600; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.qty-row label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.qty-stepper button {
  width: 40px; height: 44px;
  background: #fafafa;
  border: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.qty-stepper button:hover { background: #f3f3f6; }
.qty-stepper input {
  width: 60px; height: 44px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  border-left: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  background: #fff;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
.btn-add-cart, .btn-buy-now {
  padding: 17px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: all .25s var(--t);
}
.btn-add-cart {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-add-cart:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}
.btn-buy-now {
  background: var(--primary);
  color: #fff;
}
.btn-buy-now:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(230,57,70,.35);
}
.btn-add-cart:disabled, .btn-buy-now:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: transparent;
  cursor: not-allowed;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
}
.trust-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.trust-row svg {
  width: 22px; height: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.trust-row strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}
.trust-row small {
  color: var(--muted);
  font-size: 11px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.share-row span { color: var(--muted); font-weight: 600; }
.share-row button {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s var(--t);
}
.share-row button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.related .section-head { margin-top: 0; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-image { height: 320px; border-radius: 14px; }
  .product-image .ph-icon { width: 110px !important; height: 110px !important; }
  .product-info h1 { font-size: 24px; }
  .big-price { font-size: 30px; }
  .action-row { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .product-page { padding-top: 22px; padding-bottom: 40px; }
}

@media (max-width: 640px) {
  .product-image { height: 260px; }
  .product-image .ph-icon { width: 84px !important; height: 84px !important; }
  .product-info h1 { font-size: 20px; line-height: 1.25; }
  .big-price { font-size: 26px; }
  .old-price { font-size: 16px; }
  .save-tag { font-size: 11px; padding: 5px 10px; }
  .stock-pill { padding: 7px 14px; font-size: 12px; }
  .description, .specs { padding-top: 18px; margin-bottom: 18px; }
  .description h3, .specs h3 { font-size: 11px; }
  .description p, .specs td { font-size: 13px; }
  .qty-row { flex-wrap: wrap; gap: 12px; padding-top: 18px; }
  .btn-add-cart, .btn-buy-now { padding: 15px 18px; font-size: 14px; }
  .trust-row { padding: 14px; gap: 10px; }
  .trust-row > div { font-size: 11.5px; gap: 8px; }
  .trust-row svg { width: 18px; height: 18px; }
  .share-row { font-size: 12px; flex-wrap: wrap; }
  .share-row button { padding: 7px 14px; font-size: 11.5px; }
  .product-badges { top: 14px; left: 14px; }
  .product-badges > span { padding: 5px 11px; font-size: 11px; }
}

/* ============ TRUST ============ */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  margin-top: 56px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.trust-grid > div { padding: 12px; }
.trust-icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
  margin-bottom: 14px;
}
.trust-grid strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
  font-weight: 700;
}
.trust-grid small { color: var(--muted); font-size: 13px; }

/* ============ DRAWER ============ */
.drawer {
  position: fixed;
  right: -460px;
  top: 0;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transition: right .45s var(--t);
  z-index: 200;
  padding: 28px;
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.drawer-head button {
  font-size: 28px;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all .2s var(--t);
}
.drawer-head button:hover { background: #f3f3f6; color: var(--ink); }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item strong { font-size: 14px; font-weight: 600; }
.cart-item .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cart-item button {
  background: #fef2f2;
  color: var(--primary-dark);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--t);
}
.cart-item button:hover { background: var(--primary); color: #fff; }
.cart-item button svg { width: 16px; height: 16px; }
/* ============ COUPON ============ */
.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.coupon-row input {
  flex: 1;
  padding: 13px 16px !important;
  margin-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.coupon-row button {
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.coupon-row button:hover { background: var(--primary); }
.coupon-success {
  background: rgba(16,185,129,.1);
  color: #047857;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.coupon-error {
  background: rgba(239,68,68,.1);
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0 60px;
  flex-wrap: wrap;
}
.pagination button {
  padding: 9px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s var(--t);
  min-width: 38px;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--ink);
}
.pagination button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pagination span { color: var(--muted); padding: 0 4px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -100px);
  z-index: 500;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05);
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  max-width: 90vw;
}
.toast svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.toast-success { background: #065f46; }
.toast.toast-success svg { color: #6ee7b7; }
.toast.toast-error { background: #7f1d1d; }
.toast.toast-error svg { color: #fca5a5; }

.empty-cart {
  text-align: center;
  padding: 60px 20px 40px;
  animation: fadein .35s var(--t);
}
.empty-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f5f5f7 0%, #ececf1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.empty-icon svg {
  width: 44px;
  height: 44px;
  color: var(--muted);
}
.empty-cart h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.empty-cart p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.empty-cta {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .25s var(--t);
}
.empty-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(230,57,70,.3);
}

.cart-totals {
  margin: 24px 0;
  padding: 22px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cart-totals div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.cart-totals strong { color: var(--ink); font-weight: 700; }
.cart-totals .total {
  font-size: 20px;
  font-weight: 800;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  color: var(--ink);
}
.cart-totals .total strong { color: var(--ink); font-weight: 800; }
.ship-free { color: #059669; font-weight: 800; letter-spacing: .5px; font-size: 13px; }

.ship-progress { padding: 10px 0 4px; }
.ship-msg {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}
.ship-msg-success {
  color: #059669;
  font-weight: 700;
}
.ship-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
}
.ship-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 100px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.btn-primary {
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: 17px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: all .25s var(--t);
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn-ghost {
  width: 100%;
  background: #f3f3f6;
  color: var(--ink);
  padding: 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

/* ============ MODAL ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,.6);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadein .25s var(--t);
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal.open { display: flex; }
.modal-box {
  background: var(--surface);
  padding: 36px;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideup .4s var(--t);
}
@keyframes slideup { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal-box h3 { margin-bottom: 24px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.modal-box input, .modal-box select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  transition: all .2s var(--t);
}
.modal-box input:focus, .modal-box select:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,15,.06);
}

/* ============ SUCCESS MODAL ============ */
.success-box { text-align: center; max-width: 460px; padding: 44px 36px; }
.success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(16,185,129,.35);
  animation: pop .5s var(--t);
}
.success-icon svg { width: 56px; height: 56px; }
.success-icon svg circle { stroke: #fff; stroke-width: 2; opacity: 0.4; }
.success-icon svg path { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawcheck .5s .25s var(--t) forwards; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes drawcheck { to { stroke-dashoffset: 0; } }
.success-box h3 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 6px; }
.success-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.success-details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  text-align: left;
}
body.rtl .success-details { text-align: right; }
.success-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.success-details > div:last-child { border-bottom: 0; }
.success-details span { color: var(--muted); }
.success-details strong { color: var(--ink); font-weight: 700; }
.success-note {
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ============ CHAT ============ */
#chat-widget { position: fixed; bottom: 100px; right: 24px; z-index: 150; }
#chat-toggle {
  background: var(--ink);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(10,10,15,.35);
  transition: all .3s var(--t);
}
#chat-toggle:hover { background: var(--primary); transform: scale(1.05); }
#chat-toggle svg { width: 22px; height: 22px; }
#chat-box {
  width: 380px;
  height: 520px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 75px;
  right: 0;
  overflow: hidden;
  animation: slideup .35s var(--t);
}
body.rtl #chat-box { right: auto; left: 0; }
#chat-box.hidden { display: none; }
.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head strong { font-size: 15px; font-weight: 700; }
.chat-head small { opacity: .65; font-size: 11.5px; }
.chat-head button { color: #fff; font-size: 24px; }
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #fafafa;
}
.msg {
  margin-bottom: 12px;
  padding: 11px 16px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  animation: slideup .3s var(--t);
}
.msg.user {
  background: var(--ink);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
#chat-form { display: flex; padding: 14px; border-top: 1px solid var(--line); background: #fff; gap: 8px; }
#chat-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
#chat-form input:focus { border-color: var(--ink); }
#chat-form button {
  background: var(--ink);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#chat-form button:hover { background: var(--primary); }

/* ============ WHATSAPP ============ */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  z-index: 150;
  transition: all .3s var(--t);
}
.whatsapp-btn:hover { transform: scale(1.05); }
.whatsapp-btn svg { width: 26px; height: 26px; }
body.rtl .whatsapp-btn { right: auto; left: 24px; }
body.rtl #chat-widget { right: auto; left: 24px; }

/* ============ MOBILE NAV ============ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 8px 0 6px;
}
.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
}
.mobile-nav a svg { width: 22px; height: 22px; }
.mobile-nav a:active { color: var(--ink); }

/* ============ FOOTER ============ */
footer { background: var(--ink); color: #fff; padding: 64px 0 24px; margin-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-light { color: #fff; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover {
  background: var(--primary); border-color: var(--primary);
  transform: translateY(-2px);
}
body.rtl .socials { justify-content: flex-end; }
@media (max-width: 640px) { .socials { justify-content: center; } }
.footer-grid p { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.7; max-width: 380px; }
.footer-grid h4 {
  margin-bottom: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,.55);
  padding: 5px 0;
  font-size: 14px;
  transition: color .2s var(--t);
}
.footer-grid a:hover { color: #fff; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-icons span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
.footer-bottom {
  text-align: center;
  padding: 24px 0 0;
  color: rgba(255,255,255,.4);
  font-size: 12.5px;
  letter-spacing: .2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .slide-text h1 { font-size: 48px; }
  .deal-text h2 { font-size: 30px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .deal-banner { padding: 36px 28px; }
  .deal-text h2 { font-size: 26px; }
  .countdown > div { min-width: 70px; padding: 14px 16px; }
  .countdown span { font-size: 26px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .container { padding: 0 14px; }

  /* Top strip - more compact */
  .topbar { padding: 6px 0; font-size: 10.5px; }
  .topbar-flex { gap: 6px; justify-content: center; }
  .topbar span { white-space: nowrap; }

  /* Navbar - tighter spacing */
  .navbar { box-shadow: 0 1px 8px rgba(0,0,0,.04); }
  .nav-flex { gap: 10px; padding: 12px 14px; }
  .logo-img { width: 40px; height: 40px; border-radius: 9px; }
  .search-wrap { order: 3; min-width: 100%; }
  .search-wrap input { padding: 11px 16px 11px 42px; font-size: 13px; }
  .nav-actions { gap: 4px; }
  .ghost { padding: 8px 10px; font-size: 12.5px; }
  .ghost span { display: none; }
  .cart-pill { padding: 8px 12px; font-size: 13px; }
  .cart-pill #cart-count { font-size: 11px; padding: 1px 6px; }

  /* Category nav - smaller */
  .cat-flex { padding: 8px 14px; gap: 4px; }
  .cat-flex a { padding: 7px 13px; font-size: 12.5px; }

  /* Hero slider - shorter and tighter */
  .hero-slider { height: 320px; }
  .slide-inner { padding: 0 14px; }
  .slide-text { max-width: 100%; }
  .badge-tag { padding: 5px 12px; font-size: 10.5px; margin-bottom: 14px; }
  .slide-text h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.1; margin-bottom: 12px; }
  .slide-text p { font-size: 14px; margin-bottom: 22px; max-width: 100%; }
  .btn-cta { padding: 13px 24px; font-size: 13px; }
  .slide-dots { bottom: 18px; }
  .slide-dots .dot { width: 8px; height: 8px; }
  .slide-dots .dot.active { width: 26px; }

  /* Category tiles - 4 per row, smaller */
  .category-tiles { gap: 8px; margin: 32px auto; grid-template-columns: repeat(4, 1fr); }
  .tile { padding: 16px 6px; border-radius: 12px; }
  .tile-icon { width: 28px; height: 28px; margin-bottom: 8px; }
  .tile h3 { font-size: 11.5px; }

  /* Deal banner */
  .deal-section { margin: 32px auto; }
  .deal-banner { padding: 26px 20px; border-radius: 14px; }
  .deal-text h2 { font-size: 22px; line-height: 1.2; }
  .deal-sub { font-size: 13px; margin-bottom: 22px; }
  .countdown > div { min-width: 60px; padding: 12px 12px; }
  .countdown span { font-size: 22px; }
  .countdown small { font-size: 9px; }

  /* Brands */
  .brands-strip { margin: 32px auto; }
  .brands { padding: 8px; }
  .brand { padding: 14px 8px; font-size: 13px; }

  /* Section headers */
  .section-head { margin: 32px 0 16px; }
  .section-head h2 { font-size: 20px; }
  .sort-wrap select { padding: 9px 12px; font-size: 12px; }

  /* Product grid - 2 cols, slightly smaller */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 12px; }
  .card .img { height: 140px; }
  .card .img svg { width: 50px; height: 50px; }
  .ph-icon { width: 52px !important; height: 52px !important; }
  .ph-brand { font-size: 9px; padding: 4px 9px; margin-top: 10px; letter-spacing: 1.5px; }
  .card .body { padding: 12px; }
  .card .brand-tag { font-size: 10px; }
  .card h4 { font-size: 13px; min-height: 36px; line-height: 1.35; margin: 6px 0 6px; }
  .card .stars svg { width: 11px; height: 11px; }
  .card .stars span { font-size: 10px; }
  .card .price { font-size: 16px; }
  .card .price-old { font-size: 11.5px; }
  .card .install { font-size: 10px; margin-bottom: 10px; }
  .card-action { padding: 0 12px 12px; }
  .card-action button { padding: 10px; font-size: 12px; }
  .card-badges { top: 10px; left: 10px; gap: 4px; }
  .card-badges > span { padding: 4px 9px; font-size: 9.5px; }

  /* Trust section */
  .trust { padding: 36px 0; }
  .trust-grid { gap: 18px; }
  .trust-icon { width: 28px; height: 28px; margin-bottom: 8px; }
  .trust-grid strong { font-size: 13px; }
  .trust-grid small { font-size: 11px; }

  /* Cart drawer */
  .drawer { padding: 20px; }
  .drawer-head h3 { font-size: 18px; }
  .empty-cart { padding: 40px 16px; }
  .empty-icon { width: 76px; height: 76px; margin-bottom: 16px; }
  .empty-icon svg { width: 36px; height: 36px; }
  .empty-cart h4 { font-size: 16px; }
  .empty-cart p { font-size: 12.5px; max-width: 240px; }

  /* Modal */
  .modal-box { padding: 24px; border-radius: 14px; }
  .modal-box h3 { font-size: 18px; margin-bottom: 18px; }
  .modal-box input, .modal-box select { padding: 12px 14px; font-size: 14px; }

  /* Success modal */
  .success-box { padding: 32px 22px; }
  .success-icon { width: 72px; height: 72px; margin-bottom: 16px; }
  .success-icon svg { width: 44px; height: 44px; }
  .success-box h3 { font-size: 22px; }
  .success-sub { font-size: 13px; }
  .success-details { padding: 16px; font-size: 13px; }
  .success-details > div { font-size: 12.5px; padding: 6px 0; }

  /* Floating buttons - move them up to clear mobile nav */
  .mobile-nav { display: flex; padding: 6px 0 4px; }
  .mobile-nav a span, .mobile-nav a svg { width: 20px; height: 20px; }
  .mobile-nav a small { font-size: 10px; }
  .whatsapp-btn { bottom: 80px; width: 48px; height: 48px; }
  .whatsapp-btn svg { width: 22px; height: 22px; }
  #chat-widget { bottom: 138px; }
  #chat-toggle { width: 48px; height: 48px; }
  #chat-toggle svg { width: 20px; height: 20px; }
  #chat-box { width: 94vw; right: -10px; bottom: 60px; height: 460px; }
  body.rtl #chat-box { right: auto; left: -10px; }

  /* Footer */
  footer { padding: 40px 0 18px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; padding-bottom: 28px; }
  .footer-grid p { margin: 10px auto 0; max-width: 320px; font-size: 13px; }
  .footer-grid h4 { margin-bottom: 12px; }
  .pay-icons { justify-content: center; }
  .footer-bottom { font-size: 11.5px; }

  /* Pagination */
  .pagination { padding: 18px 0 40px; gap: 4px; }
  .pagination button { padding: 8px 12px; font-size: 12px; min-width: 34px; }

  /* Coupon row */
  .coupon-row input { padding: 12px 14px !important; font-size: 13px; }
  .coupon-row button { padding: 0 18px; font-size: 12px; }

  /* Toast */
  .toast { padding: 12px 18px; font-size: 13px; }
}

/* Extra small phones (≤380px) — go single column */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .card .img { height: 200px; }
  .card .img svg { width: 70px; height: 70px; }
  .ph-icon { width: 70px !important; height: 70px !important; }
  .category-tiles { grid-template-columns: repeat(3, 1fr); }
  .slide-text h1 { font-size: 24px; }
  .nav-actions { flex-wrap: wrap; }
}

/* ============ RTL ============ */
body.rtl .drawer { right: auto; left: -460px; box-shadow: 20px 0 60px rgba(0,0,0,.18); }
body.rtl .drawer.open { left: 0; }
