/* ===== JARIR-STYLE DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e0e0e0;
  --primary: #1a7e3b;
  --primary-dark: #145f2c;
  --primary-light: #e8f5ec;
  --primary-mid: #2a9d52;
  --red: #e53935;
  --orange: #f57c00;
  --navy: #1a237e;
  --gold: #f9a825;
  --accent: #e8f5ec;
  --success: #2e7d32;
  --danger: #c62828;
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Cairo', Tahoma, Arial, sans-serif; font-size: 15px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1320px, calc(100% - 24px)); margin: 0 auto; }

/* HEADER */
.retail-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* TOP BAR */
.topbar { background: var(--primary); color: #fff; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-size: 12.5px; padding: 4px 0; }
.topbar-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-links span { color: rgba(255,255,255,.9); font-weight: 600; }
.topbar-links .dot { opacity: .5; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 4px; padding: 4px 12px; font-weight: 700; cursor: pointer; font-size: 12px; transition: background .2s; }
.lang-btn:hover { background: rgba(255,255,255,.15); }
.topbar-note { font-size: 12px; opacity: .85; }

/* MAIN BAR */
.mainbar { padding: 10px 0; background: #fff; border-bottom: 1px solid var(--line); }
.mainbar-row { display: flex; align-items: center; gap: 16px; }
.retail-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.retail-logo { width: 64px; height: 64px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(26,126,59,.3); overflow: hidden; }
.retail-logo-text { color: #fff; font-weight: 900; font-size: 20px; letter-spacing: -1px; }
.retail-brand h1 { margin: 0; font-size: 22px; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.retail-brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

/* SEARCH */
.retail-search { flex: 1; position: relative; min-width: 280px; }
.search-input-wrap { display: flex; align-items: center; border: 2px solid var(--primary); border-radius: 6px; overflow: hidden; background: #fff; }
.search-input-wrap input { flex: 1; height: 46px; border: 0; outline: none; padding: 0 16px; font-size: 14px; background: transparent; }
.search-select { height: 46px; border: 0; border-inline-start: 1px solid var(--line); padding: 0 10px; background: #f9f9f9; color: var(--text); font-size: 13px; min-width: 110px; cursor: pointer; outline: none; }
.search-btn { width: 50px; height: 46px; background: var(--primary); border: 0; color: #fff; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.search-btn:hover { background: var(--primary-dark); }

/* ACTION CHIPS */
.retail-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.action-chip, .cart-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  font-size: 11px; font-weight: 700; color: var(--text);
  transition: border-color .2s, color .2s; position: relative; min-width: 58px;
  text-decoration: none;
}
.action-chip:hover, .cart-chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-icon { font-size: 22px; line-height: 1; }
.chip-label { font-size: 11px; white-space: nowrap; }
.cart-badge { position: absolute; top: 2px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.user-chip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.count { display: none; }

/* NAV BAND */
.navband { background: #fff; border-top: 1px solid var(--line); }
.navband-row { display: flex; align-items: stretch; gap: 0; min-height: 46px; }
.departments-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 0 22px; font-weight: 800; font-size: 14px; white-space: nowrap; cursor: pointer; border: 0; transition: background .2s; flex-shrink: 0; }
.departments-btn:hover { background: var(--primary-dark); }
.retail-nav { display: flex; align-items: center; gap: 0; flex: 1; overflow: hidden; }
.retail-link { color: var(--text); font-weight: 700; font-size: 13.5px; padding: 0 16px; white-space: nowrap; position: relative; display: flex; align-items: center; height: 46px; transition: color .2s; }
.retail-link:hover, .retail-link.active { color: var(--primary); }
.retail-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 2px 2px 0 0; }
.nav-offer-link { color: var(--red) !important; font-weight: 800; }

/* BUTTONS */
.primary-pill, .ghost-pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 6px; font-weight: 800; border: 0; cursor: pointer; text-decoration: none; font-size: 14px; transition: .2s; }
.primary-pill { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(26,126,59,.25); }
.primary-pill:hover { background: var(--primary-dark); }
.primary-pill.large { height: 48px; padding: 0 28px; font-size: 15px; }
.ghost-pill { background: #fff; border: 1.5px solid var(--line); color: var(--text); }
.ghost-pill:hover { border-color: var(--primary); color: var(--primary); }
.btn { border: 0; border-radius: 6px; padding: 10px 20px; cursor: pointer; font-weight: 800; transition: .2s; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); }
.ghost-btn { border: 1.5px solid var(--line); border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: 700; background: #fff; color: var(--text); transition: .2s; }
.ghost-btn:hover { border-color: var(--primary); color: var(--primary); }
.danger-btn { border: 1.5px solid #fecdd3; border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: 700; background: #fff1f2; color: var(--danger); transition: .2s; }

/* HERO SLIDER */
.retail-hero-section { background: var(--bg); padding: 14px 0 12px; }
.retail-hero-grid { display: grid; grid-template-columns: 1fr 290px; gap: 14px; }
.retail-hero-card { position: relative; overflow: hidden; border-radius: 10px; min-height: 370px; background: linear-gradient(135deg, #e8f5ec 0%, #ffffff 60%); box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; align-items: center; }
.retail-hero-card.slide-1 { background: linear-gradient(135deg, #e8f5ec 0%, #f0fff4 100%); }
.retail-hero-card.slide-2 { background: linear-gradient(135deg, #e3f2fd 0%, #f8fbff 100%); }
.retail-hero-card.slide-3 { background: linear-gradient(135deg, #fff8e1 0%, #fffff0 100%); }
.slider-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 36px 52px; }
.hero-copy { flex: 1; max-width: 55%; }
.hero-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.slide-2 .hero-badge { background: #1565c0; }
.slide-3 .hero-badge { background: var(--orange); }
.hero-copy h2 { font-size: clamp(24px, 3.2vw, 46px); line-height: 1.1; margin: 0 0 12px; color: #1a1a1a; font-weight: 900; }
.hero-copy p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.hero-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-offer-strip { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border-radius: 6px; background: rgba(255,255,255,.82); border: 1px solid var(--line); font-size: 13px; }
.hero-offer-strip strong { color: var(--primary); font-weight: 800; }
.slide-2 .hero-offer-strip strong { color: #1565c0; }
.slide-3 .hero-offer-strip strong { color: var(--orange); }
.hero-visual { flex-shrink: 0; position: relative; width: 40%; max-width: 360px; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.hero-product-img { width: 100%; max-height: 290px; object-fit: contain; filter: drop-shadow(0 16px 40px rgba(0,0,0,.18)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-price-tag { position: absolute; bottom: 16px; inset-inline-start: 0; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 900; font-size: 17px; box-shadow: var(--shadow); }
.hero-price-tag small { font-size: 11px; opacity: .85; display: block; }

/* Slider controls */
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); cursor: pointer; padding: 0; transition: .2s; }
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow); cursor: pointer; font-size: 22px; color: var(--text); display: flex; align-items: center; justify-content: center; transition: .2s; z-index: 5; }
.slide-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.slide-btn.prev { inset-inline-start: 14px; }
.slide-btn.next { inset-inline-end: 14px; }

/* SIDE STACK */
.retail-side-stack { display: grid; gap: 12px; }
.track-box, .mini-panel { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.track-box h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--primary); }
.track-box p { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.hero-track-row { display: grid; gap: 8px; }
.hero-track-row input { height: 42px; border-radius: 6px; border: 1.5px solid var(--line); padding: 0 14px; font-size: 13px; width: 100%; }
.hero-track-row input:focus { outline: none; border-color: var(--primary); }
.hero-track-row .btn { width: 100%; justify-content: center; height: 42px; font-size: 13.5px; }
.mini-panel h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.mini-dept-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-dept { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: #fafafa; cursor: pointer; font-weight: 700; font-size: 12.5px; transition: .2s; text-align: start; }
.mini-dept:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.mini-dept-icon { font-size: 20px; flex-shrink: 0; }

/* SECTION HEADERS */
.section { padding: 18px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title-wrap h3 { margin: 0; font-size: 20px; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 10px; }
.section-title-wrap h3::before { content: ''; display: inline-block; width: 4px; height: 24px; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.section-title-wrap p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.see-all-link { color: var(--primary); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--primary); padding: 7px 16px; border-radius: 6px; transition: .2s; }
.see-all-link:hover { background: var(--primary); color: #fff; }

/* DEPARTMENTS */
.departments-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.department-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s; text-align: center; }
.department-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.dept-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); font-size: 24px; transition: .2s; }
.department-card:hover .dept-icon { background: var(--primary); }
.dept-name { font-weight: 800; color: var(--text); font-size: 12px; line-height: 1.3; }
.department-card:hover .dept-name { color: var(--primary); }

/* PROMO BANNERS */
.promo-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.promo-card { min-height: 106px; border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s; position: relative; overflow: hidden; }
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-card.green { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); }
.promo-card.red { background: linear-gradient(135deg, #c62828, #e53935); }
.promo-card.blue { background: linear-gradient(135deg, #1565c0, #1976d2); }
.promo-card.navy { background: linear-gradient(135deg, #1a237e, #283593); }
.promo-card.soft { background: linear-gradient(135deg, #f5f5f5, #eeeeee); color: #333; }
.promo-card strong { font-size: 20px; font-weight: 900; }
.promo-card span { font-size: 13px; opacity: .9; }

/* SHELF TABS */
.shelf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.shelf-tab { height: 38px; padding: 0 18px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; font-size: 13px; color: #555; transition: .2s; }
.shelf-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.shelf-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* PRODUCT CARDS */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.07); transition: .2s; cursor: pointer; position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-2px); }
.product-image { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #f8f8f8; position: relative; display: block; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-wishlist { position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; z-index: 2; transition: .2s; }
.product-wishlist:hover { border-color: var(--red); color: var(--red); }
.product-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; z-index: 2; }
.product-badge.new-badge { background: var(--primary); }
.product-card h4 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; }
.product-brand { font-size: 12px; color: var(--muted); margin: 0; }
.product-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; }
.price-wrap { display: flex; flex-direction: column; gap: 2px; }
.price-main { font-size: 18px; font-weight: 900; color: var(--primary); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price-discount { font-size: 11px; color: var(--red); font-weight: 800; }
.add-cart-btn { width: 38px; height: 38px; border-radius: 8px; border: 0; background: var(--primary); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: .2s; }
.add-cart-btn:hover { background: var(--primary-dark); transform: scale(1.08); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #f59e0b; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { background: var(--primary-light); color: var(--primary); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 800; }

/* CARDS */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card { padding: 20px; }

/* BADGES */
.badge { padding: 4px 10px; border-radius: 4px; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.badge.pending { background: #fff7ed; color: #c2410c; }
.badge.confirmed, .badge.preparing, .badge.shipped, .badge.out-for-delivery { background: #eff6ff; color: #1d4ed8; }
.badge.delivered, .badge.paid, .badge.active { background: #ecfdf5; color: var(--success); }
.badge.cancelled, .badge.inactive, .badge.unpaid { background: #fef2f2; color: var(--danger); }

/* FORMS */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: #444; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 14px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { min-height: 100px; resize: vertical; }

/* ORDER / TRACK */
.track-layout, .checkout-layout, .profile-layout, .detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status-list { display: grid; gap: 8px; }
.status-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; gap: 12px; }
.status-item.active { border-color: rgba(26,126,59,.4); background: var(--primary-light); }
.progress { width: 100%; height: 8px; background: #e8e8e8; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2a9d52, var(--primary)); border-radius: 999px; transition: width .4s; }
.order-progress { background: #f8fff9; border: 1px solid #c8e6c9; padding: 12px 14px; border-radius: 8px; display: grid; gap: 8px; }
.order-progress.compact { margin-top: 8px; }
.order-progress-big { height: 12px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.progress-status { font-size: 13px; font-weight: 700; }
.progress-label strong { color: var(--primary); font-size: 14px; }
.orders-stack { display: grid; gap: 14px; }
.order-card { display: grid; gap: 10px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.order-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-order-card { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-order-card:last-child { border-bottom: 0; }

/* METRICS */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { padding: 18px; }
.metric b { font-size: 28px; display: block; margin-top: 8px; color: var(--primary); }

/* TABLE */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table th { color: var(--muted); font-size: 12.5px; font-weight: 700; background: #fafafa; }
.table tr:hover td { background: #f9fffe; }

/* FOOTER */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 16px; margin-top: 24px; }
.footer .card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }

/* TOAST */
.toast-wrap { position: fixed; inset-inline-end: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 200; }
.toast { min-width: 260px; max-width: 420px; padding: 14px 18px; border-radius: 8px; color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; }
.toast.info { background: #334155; }
.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }

/* UTILITIES */
.muted { color: var(--muted); }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.align-start { align-items: flex-start; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: #fff; border: 2px dashed var(--line); border-radius: 10px; font-size: 15px; }
.hidden { display: none !important; }
.map-box { min-height: 280px; border-radius: 10px; overflow: hidden; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.retail-section-tight { padding-top: 8px; padding-bottom: 8px; }
.retail-headline h3 { font-size: 20px; }
.hero-stats { display: none; }
.home-track { display: none; }

/* RESPONSIVE */
@media (max-width: 1200px) { .departments-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) {
  .retail-hero-grid { grid-template-columns: 1fr; }
  .track-layout, .checkout-layout, .profile-layout, .detail-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-row { grid-template-columns: 1fr 1fr; }
  .departments-grid { grid-template-columns: repeat(4, 1fr); }
  .retail-side-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 720px) {
  .topbar-row { flex-wrap: wrap; gap: 6px; }
  .mainbar-row { flex-wrap: wrap; gap: 8px; }
  .retail-search { min-width: 0; order: 3; width: 100%; }
  .retail-actions { justify-content: flex-end; }
  .navband-row { flex-wrap: wrap; }
  .retail-nav { overflow-x: auto; padding-bottom: 2px; gap: 0; white-space: nowrap; width: 100%; }
  .departments-grid { grid-template-columns: repeat(4, 1fr); }
  .promo-row { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .retail-side-stack { grid-template-columns: 1fr; }
  .retail-hero-card { min-height: 260px; }
  .slider-inner { padding: 22px 20px; }
  .slide-btn { display: none; }
}

/* Footer grid responsive */
.footer-main-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 28px 0 20px; }
@media (max-width: 900px) { .footer-main-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main-grid { grid-template-columns: 1fr; } }

/* Smooth slide transition */
.retail-hero-card { transition: background 0.6s ease; }
.hero-product-img { transition: opacity 0.4s ease; }
.hero-copy h2, .hero-copy p, .hero-badge { transition: opacity 0.3s ease; }

/* Search icon fix */
.search-icon { display: none; }

/* Nav scrollbar hide */
.retail-nav::-webkit-scrollbar { display: none; }
.retail-nav { scrollbar-width: none; }
