/* ============================================================
   THE NEXT STORE - Premium CSS
   2nd Hand Phone Marketplace
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2E86C1;
  --primary-dark: #1a6fa3;
  --primary-light: #EBF5FB;
  --secondary: #1A1A2E;
  --accent: #16213E;
  --dark: #0f0f0f;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: all 0.25s ease;
  /* Typography scale */
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ─── HEADER ─── */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  padding: 7px 0;
}
.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: var(--primary); }

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.logo-text {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
}
.logo-text span { color: var(--primary); }
.logo-sub { font-size: 10px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.5px; }

/* Search Bar */
.search-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}
.search-input {
  flex: 1;
  padding: 11px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
}
.search-btn {
  background: var(--primary);
  border: none;
  padding: 0 22px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}
.search-btn:hover { background: var(--primary-dark); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 999;
  display: none;
  overflow: hidden;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-item:hover { background: var(--bg); }
.suggestion-img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; background: #f0f0f0; }
.suggestion-name { font-size: 13px; font-weight: 500; }
.suggestion-price { font-size: 12px; color: var(--primary); font-weight: 600; }

/* Header Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
}
.header-icon-btn:hover { background: var(--bg); color: var(--primary); }
.header-icon-btn i { font-size: 20px; }
.header-icon-btn .label { font-size: 11px; font-weight: 500; }
.icon-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ─── NAVBAR ─── */
.navbar {
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.navbar-inner {
  display: flex;
  align-items: stretch;
}
.nav-categories-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: 'Open Sans', sans-serif;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0 10px;
  gap: 2px;
}
.nav-links > li > a {
  display: block;
  padding: 13px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 4px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: 4px;
  font-weight: 700;
}

/* Mega Menu */
.mega-menu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
  padding: 8px 0;
}
.mega-menu-wrap.active { display: block; }
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}
.mega-menu-item:hover { background: var(--bg); color: var(--primary); }
.mega-menu-item i { width: 20px; color: var(--primary); }
.mega-menu-item .count { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* ─── HERO SLIDER — Single authoritative block (see full rules near end of file) ─── */
/* All hero-section / hero-slider rules are consolidated at the bottom of this file  */
/* to avoid specificity conflicts. Do not add hero rules here.                        */

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-dark {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-dark:hover { background: var(--dark); }
.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading { position: relative; }
.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* ─── SECTIONS ─── */
.section-pad { padding: 50px 0; }
.section-pad-sm { padding: 30px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title-wrap {}
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.section-title { font-size: 26px; color: var(--secondary); }
.section-title span { color: var(--primary); }

/* ─── CATEGORY PILLS ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media(min-width:768px){ .category-grid { grid-template-columns: repeat(8,1fr); } }

.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover, .category-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  color: var(--primary);
  transition: var(--transition);
}
.category-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text); }

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media(min-width: 576px) { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media(min-width: 992px) { .products-grid { grid-template-columns: repeat(4,1fr); } }
@media(min-width: 1200px) { .products-grid.cols-5 { grid-template-columns: repeat(5,1fr); } }

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: transparent;
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f5f5f7;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.product-action-btn:hover, .product-action-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-danger { background: #FEE2E2; color: var(--danger); }
.badge-success { background: #D1FAE5; color: var(--success); }
.badge-primary { background: #DBEAFE; color: var(--info); }
.badge-warning { background: #FEF3C7; color: var(--warning); }
.badge-secondary { background: #F3F4F6; color: var(--text-muted); }
.badge-orange { background: var(--primary); color: #fff; }

.product-body { padding: 14px; }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--primary); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.stars-row { display: flex; gap: 1px; }
.stars-row i { font-size: 11px; color: var(--warning); }
.rating-count { font-size: 12px; color: var(--text-muted); }

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); font-family: 'Roboto', sans-serif; }
.product-price-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-discount { font-size: 12px; font-weight: 700; color: var(--success); }

.btn-add-cart {
  width: 100%;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Open Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-add-cart:hover { background: var(--primary); }
.btn-add-cart.out-of-stock { background: #e5e7eb; color: var(--text-muted); cursor: not-allowed; }

/* ─── TRUST BADGES ─── */
.trust-bar {
  background: var(--secondary);
  padding: 24px 0;
  margin: 10px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media(min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.trust-icon {
  width: 46px; height: 46px;
  background: rgba(255,107,0,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.trust-sub { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ─── PROMO BANNERS ─── */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:768px) { .promo-grid { grid-template-columns: 1fr 1fr; } }

.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}
.promo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.promo-card:hover img { transform: scale(1.04); }
.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,15,15,0.75) 0%, transparent 70%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-label { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.promo-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.promo-link:hover { color: var(--primary); }

/* ─── DEALS SECTION ─── */
.deals-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.countdown-block {
  background: var(--secondary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  min-width: 42px;
  text-align: center;
}
.countdown-sep { font-size: 16px; font-weight: 700; color: var(--secondary); }

/* ─── SHOP PAGE ─── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 30px 0;
}
@media(max-width:992px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filter-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { margin: 0; padding: 0; border: 0; }
.filter-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--secondary); }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.filter-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option label { cursor: pointer; flex: 1; }
.filter-count { font-size: 12px; color: var(--text-muted); }

.price-range-wrap { padding: 8px 0; }
.price-inputs { display: flex; gap: 10px; margin-top: 12px; }
.price-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}
.price-input:focus { border-color: var(--primary); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count strong { color: var(--text); }
.sort-select {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
}

/* ─── PRODUCT DETAIL PAGE ─── */
.product-detail-section { padding: 30px 0; }
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f7;
  margin-bottom: 12px;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: #f5f5f7;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-wrap { padding: 0 20px; }
.product-detail-category { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.product-detail-title { font-size: 28px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.product-detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-detail-price-wrap { margin-bottom: 20px; }
.product-detail-price { font-size: 36px; font-weight: 800; color: var(--primary); font-family: 'Roboto', sans-serif; }
.product-detail-original { font-size: 20px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.product-detail-discount { font-size: 14px; font-weight: 700; color: var(--success); }

.product-specs {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-row:last-child { border: 0; }
.spec-label { color: var(--text-muted); font-weight: 500; }
.spec-value { font-weight: 600; }

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 38px; height: 38px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.product-action-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.warranty-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.warranty-badge i { color: var(--primary); font-size: 16px; }

/* ─── CART PAGE ─── */
.cart-table { width: 100%; }
.cart-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product-info { display: flex; align-items: center; gap: 14px; }
.cart-product-img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: #f5f5f7; }
.cart-product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-product-meta { font-size: 12px; color: var(--text-muted); }
.cart-qty { width: 80px; }
.remove-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; padding: 4px; }
.remove-btn:hover { opacity: 0.7; }

.order-summary-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.summary-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border: 0; }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--primary); padding-top: 14px; }
.summary-row.discount { color: var(--success); }

.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
}
.coupon-input:focus { border-color: var(--primary); }

/* ─── CHECKOUT ─── */
.checkout-section { padding: 30px 0; }
.checkout-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: 'Open Sans', sans-serif;
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }

/* Payment methods */
.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
}
.payment-method-card.selected,
.payment-method-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-method-icon { font-size: 24px; width: 32px; text-align: center; }
.payment-method-info { flex: 1; }
.payment-method-name { font-size: 14px; font-weight: 600; }
.payment-method-sub { font-size: 12px; color: var(--text-muted); }

/* ─── AUTH PAGES ─── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d5e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 28px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── DASHBOARD ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 30px 0;
  min-height: 70vh;
}
@media(max-width: 992px) { .dashboard-layout { grid-template-columns: 1fr; } }

.dashboard-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.user-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.user-name { font-size: 15px; font-weight: 700; }
.user-email { font-size: 12px; color: var(--text-muted); }

.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active { background: var(--primary-light); color: var(--primary); }
.sidebar-nav li a i { width: 18px; text-align: center; }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}
.stat-number { font-size: 32px; font-weight: 800; font-family: 'Roboto', sans-serif; margin: 8px 0; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 40px; opacity: 0.08; }

/* ─── ORDER STATUS ─── */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-packed { background: #E0E7FF; color: #3730A3; }
.status-dispatched { background: #FCE7F3; color: #9D174D; }
.status-out_for_delivery { background: #FEF3C7; color: #B45309; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* Timeline */
.order-timeline { position: relative; padding-left: 30px; }
.order-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-dot.done { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-dot.current { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.timeline-time { font-size: 12px; color: var(--text-muted); }

/* ─── ADMIN PANEL ─── */
.admin-body { display: flex; min-height: 100vh; background: #F1F5F9; }
.admin-sidebar {
  width: 260px;
  background: var(--secondary);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo-text { font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 800; }
.admin-logo-text span { color: var(--primary); }
.admin-logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.admin-nav { padding: 16px 0; }
.admin-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  padding: 14px 20px 6px;
  font-weight: 600;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-right: 3px solid var(--primary);
}
.admin-nav a i { width: 20px; }

.admin-main { margin-left: 260px; flex: 1; }
.admin-header {
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
.admin-page-title { font-size: 20px; font-weight: 700; }
.admin-content { padding: 28px; }

.admin-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-title { font-size: 15px; font-weight: 700; }
.admin-card-body { padding: 24px; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.admin-stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
}
.admin-stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.admin-stat-value { font-size: 28px; font-weight: 800; font-family: 'Roboto', sans-serif; }
.admin-stat-change { font-size: 12px; margin-top: 6px; }
.admin-stat-change.up { color: var(--success); }
.admin-stat-change.down { color: var(--danger); }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border: 0; }
.admin-table tr:hover td { background: #FAFAFA; }

/* ─── FOOTER ─── */
.footer { background: var(--secondary); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media(max-width:992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:576px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { margin-bottom: 16px; }
.footer-brand .logo-text { font-size: 22px; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: #fff; }

.footer-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ─── ALERTS & TOASTS ─── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--success);
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.5s forwards;
  font-size: 14px;
}
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(10px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── UTILITY ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col { padding: 0 12px; }
.col-2 { flex: 0 0 calc(100%/6); max-width: calc(100%/6); }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:16px} .mt-4{margin-top:24px} .mt-5{margin-top:32px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:16px} .mb-4{margin-bottom:24px} .mb-5{margin-bottom:32px}
.p-0{padding:0} .p-1{padding:4px} .p-2{padding:8px} .p-3{padding:16px} .p-4{padding:24px}
.gap-1{gap:4px} .gap-2{gap:8px} .gap-3{gap:16px}
.d-flex{display:flex} .align-center{align-items:center} .justify-between{justify-content:space-between} .flex-wrap{flex-wrap:wrap}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #DBEAFE; color: #1E40AF; }
.alert-warning { background: #FEF3C7; color: #92400E; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state i { font-size: 60px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* Range input */
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 4px;
}

/* Pagination */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* Sticky Cart Bar (mobile) */
.sticky-cart-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 100;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
@media(max-width:768px) { .sticky-cart-bar.visible { display: flex; } }

/* ─── RESPONSIVE ─── */
@media(max-width: 768px) {
  .header-main { gap: 12px; }
  .search-wrap { display: none; }
  .header-icon-btn .label { display: none; }
  .top-bar { display: none; }
  .navbar { display: none; }
  .hero-title { font-size: 26px; }
  .hero-slide-overlay { padding: 30px; }
  .section-title { font-size: 20px; }
  .auth-card { padding: 32px 24px; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
}

/* Quick View Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,0.1);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   MOBILE FIXES + LOGO + RESPONSIVE — v2 patch
   ============================================================ */

/* ─── REAL LOGO IMAGE ─── consolidated in BIGGER LOGO block below ─── */

/* ─── TOP BAR ─── */
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.top-bar-divider { opacity: 0.3; }
@media(max-width: 600px) {
  .top-bar { display: none; }
}

/* ─── MOBILE HAMBURGER ─── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
@media(max-width: 768px) {
  .mobile-menu-btn { display: flex; }
}

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.mobile-nav.open { left: 0; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}
.mobile-nav-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
  text-decoration: none;
}
.mobile-nav-link:hover { background: var(--bg); color: var(--primary); }

/* ─── HEADER RESPONSIVE FIXES ─── */
@media(max-width: 768px) {
  .header-main { gap: 10px; padding: 10px 0; }
  .navbar { display: none; }
  .top-bar { display: none; }

  /* hide desktop label text */
  .header-icon-btn .label { display: none; }

  /* full-width search on tablet */
  .search-wrap { flex: 1; max-width: 100%; }

  /* hide login button text on small screen */
  .header-login-btn span { display: none; }
  .header-login-btn { padding: 8px 12px; }

  .header-icon-btn { padding: 8px 10px; }
  .header-icon-btn i { font-size: 18px; }
}

@media(max-width: 480px) {
  .search-wrap { order: 3; flex: 0 0 100%; margin-top: 6px; }
  .header-main { flex-wrap: wrap; }
  .logo { flex: 1; }
  .header-actions { gap: 2px; }
  .header-icon-btn { padding: 6px 8px; }
}

/* ─── PRODUCT GRID RESPONSIVE ─── */
@media(max-width: 575px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .product-price { font-size: 15px; }
  .product-name { font-size: 13px; }
  .btn-add-cart { padding: 8px; font-size: 12px; }
}

/* ─── HERO RESPONSIVE — handled in consolidated block at end of file ─── */

/* ─── CATEGORY GRID RESPONSIVE ─── */
@media(max-width: 480px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .category-card { padding: 14px 6px; }
  .cat-icon { width: 40px; height: 40px; font-size: 16px; }
  .cat-name { font-size: 10px; }
}

/* ─── SHOP LAYOUT RESPONSIVE ─── */
@media(max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: static;
    display: none;
  }
  .shop-sidebar.open { display: block; }
}

/* Filter toggle button for mobile */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  font-family: 'Open Sans', sans-serif;
}
@media(max-width: 992px) { .filter-toggle-btn { display: flex; } }

/* ─── CART RESPONSIVE ─── */
@media(max-width: 768px) {
  .cart-table thead { display: none; }
  .cart-table td { display: block; padding: 8px 12px; }
  .cart-table tr { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
  /* stack cart + summary */
  .cart-table ~ div { grid-template-columns: 1fr !important; }
}
@media(max-width: 768px) {
  /* checkout grid → single col */
  .checkout-section > .container > form > div { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── TRUST BAR RESPONSIVE ─── */
@media(max-width: 480px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { flex-direction: column; text-align: center; }
}

/* ─── STATS RESPONSIVE ─── */
@media(max-width: 600px) {
  .hero-section + * + * + * > .container > div { grid-template-columns: 1fr !important; }
}

/* ─── FOOTER RESPONSIVE ─── */
@media(max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── DASHBOARD RESPONSIVE ─── */
@media(max-width: 768px) {
  .dashboard-layout { display: block !important; padding: 16px 0; }
}

/* ─── ADMIN RESPONSIVE ─── */
@media(max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .admin-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
}

/* ─── PRODUCT DETAIL RESPONSIVE ─── */
@media(max-width: 768px) {
  .product-detail-section > div { grid-template-columns: 1fr !important; }
  .product-gallery { position: static; }
  .product-info-wrap { padding: 0; margin-top: 16px; }
  .product-detail-title { font-size: 20px; }
  .product-detail-price { font-size: 26px; }
  .product-action-row { flex-direction: column; }
  .product-action-row .btn { width: 100%; }
}

/* ─── ORDER DETAIL RESPONSIVE ─── */
@media(max-width: 768px) {
  .product-detail-section + section > .container > div { grid-template-columns: 1fr !important; }
}

/* ─── BANNER IMAGE FIX ─── */
/* Ensure banner images in hero always fill correctly */
.hero-slide > div, .hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── SCROLL TO TOP ─── */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(255,107,0,0.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }


/* ─── HERO FULL-WIDTH: consolidated at end of file ─── */

/* ─── LOGO IMAGE ─── */
.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo { gap: 12px; }

@media(max-width: 900px)  { .logo-img { height: 48px; } }
@media(max-width: 768px)  { .logo-img { height: 40px; } }
@media(max-width: 480px)  { .logo-img { height: 34px; } }

/* Footer logo */
.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

/* ─── AED CURRENCY DISPLAY ─── */
.product-price,
.admin-stat-value,
.summary-row.total span:last-child {
  letter-spacing: -0.3px;
}

/* ─── HERO legacy grid override — handled in consolidated block at end of file ─── */


/* ─── MOBILE HERO FIX — consolidated at end of file ─── */

/* ── Product Detail: Color Swatches ── */
.color-swatch-btn {
  flex-shrink: 0;
  transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.color-swatch-btn:hover  { transform: scale(1.12); }
.color-swatch-btn.active { border-color: var(--primary) !important; transform: scale(1.18); }

/* ── Product Detail: Size Buttons ── */
.size-option-btn {
  transition: all 0.2s;
}
.size-option-btn:hover:not(.active) {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
.size-option-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* ============================================================
   PROFESSIONAL TYPOGRAPHY & REFINEMENTS – Open Sans + Roboto
   ============================================================ */

/* Body text Open Sans for readability */
p, li, td, th, label, input, textarea, select, button, span {
  font-family: var(--font-body);
}

/* Headings use Roboto for authority */
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 20px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 600; }

/* Refined nav links */
.nav-link {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Logo uses Roboto Black */
.logo-text {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

/* Buttons — Open Sans medium */
.btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Product titles — Roboto bold */
.product-title, .product-detail-title {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* Prices — Roboto Black for impact */
.product-price, .product-detail-price {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

/* Section titles */
.section-title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

/* Hero title — maximum impact */
.hero-title, .hero-banner-title {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
}

/* Subtitles and descriptions */
.hero-subtitle, .hero-banner-sub {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  letter-spacing: 0;
}

/* Admin panel headings */
.admin-page-title, .admin-card-title {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
}

/* Form labels */
.form-label {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Form inputs */
.form-control {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400;
}

/* Badge text */
.badge {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  font-size: 11px;
  text-transform: uppercase;
}

/* Table / spec rows */
.spec-label {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.spec-value {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 13px;
}

/* Sidebar nav */
.admin-nav-link {
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

/* Stats numbers */
.stat-number, .admin-stat-value {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; font-family: var(--font-body); }

/* Footer */
.footer { font-family: var(--font-body) !important; font-size: 14px; }



/* ============================================================
   FULL MOBILE RESPONSIVE — ADMIN PANEL + CLIENT PANEL
   ============================================================ */

/* ─── ADMIN HAMBURGER BUTTON ─── */
.admin-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 201;
  background: var(--secondary);
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.admin-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.admin-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.admin-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── ADMIN SIDEBAR OVERLAY ─── */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.open { display: block; }

/* ─── ADMIN SIDEBAR CLOSE BUTTON ─── */
.admin-sidebar-close {
  display: none;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── ADMIN TABLES — HORIZONTAL SCROLL ─── */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── USER DASHBOARD MOBILE TOGGLE ─── */
.dashboard-mobile-toggle {
  display: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  text-align: left;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dashboard-mobile-toggle i { color: var(--primary); }

/* ─── USER DASHBOARD SIDEBAR OVERLAY ─── */
.dashboard-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.dashboard-sidebar-overlay.open { display: block; }

/* ─── ADMIN RESPONSIVE BREAKPOINTS ─── */
@media(max-width: 992px) {
  /* Show hamburger */
  .admin-hamburger { display: flex; }
  .admin-sidebar-close { display: flex; }

  /* Slide sidebar off-screen */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .admin-sidebar.open { transform: translateX(0); }

  /* Main content fills full width */
  .admin-main { margin-left: 0 !important; }

  /* Header gets left padding for hamburger */
  .admin-header { padding-left: 70px !important; }

  /* Stats grid */
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Dashboard revenue/top products layout */
  .admin-main [style*="grid-template-columns:2fr 1fr"] {
    display: block !important;
  }
  .admin-main [style*="grid-template-columns:2fr 1fr"] > div {
    margin-bottom: 20px;
  }

  /* Make admin tables scrollable */
  .admin-table { min-width: 600px; }
  .admin-card-body { overflow-x: auto; }
}

@media(max-width: 600px) {
  /* Single column stats */
  .admin-stats-grid { grid-template-columns: 1fr !important; }

  .admin-content { padding: 16px !important; }
  .admin-header { padding: 12px 16px 12px 68px !important; flex-wrap: wrap; gap: 8px; }
  .admin-page-title { font-size: 17px !important; }

  /* Admin card body padding */
  .admin-card-body { padding: 16px !important; }
  .admin-card-header { padding: 14px 16px !important; flex-wrap: wrap; gap: 8px; }

  /* Sidebar header flex fix */
  .admin-sidebar-header > div { gap: 8px !important; }

  /* Product form on mobile */
  .admin-main [style*="grid-template-columns:2fr 1fr"],
  .admin-main [style*="grid-template-columns:1fr 1fr"],
  .admin-main [style*="grid-template-columns:3fr 1fr"] {
    display: block !important;
  }
  .admin-main [style*="grid-template-columns"] > div { margin-bottom: 16px; }
}

/* ─── USER DASHBOARD RESPONSIVE ─── */
@media(max-width: 768px) {
  /* Show the toggle button */
  .dashboard-mobile-toggle { display: flex; }

  /* Layout: stack sidebar on top */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
    position: relative;
  }

  /* Sidebar becomes a drawer */
  .dashboard-sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--border);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    padding-top: 20px;
  }
  .dashboard-sidebar.open { transform: translateX(0); }

  /* User stat cards responsive */
  .dashboard-layout > div > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Recent orders table scrollable */
  .dashboard-layout .admin-table { min-width: 500px; }
  .dashboard-layout div[style*="overflow:hidden"] { overflow-x: auto !important; }
}

/* ─── USER ORDERS PAGE RESPONSIVE ─── */
@media(max-width: 768px) {
  /* Make order tables scrollable */
  .admin-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Order detail address grid */
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; display: block !important; }
  div[style*="grid-template-columns:1fr 1fr"] > div { margin-bottom: 16px; }
}

/* ─── USER ADDRESSES & PROFILE RESPONSIVE ─── */
@media(max-width: 600px) {
  /* Address cards grid */
  .addresses-grid { grid-template-columns: 1fr !important; }

  /* Form rows become single column */
  .form-row { grid-template-columns: 1fr !important; }

  /* Stat cards on user dashboard */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── ADMIN PRODUCT FORM RESPONSIVE ─── */
@media(max-width: 768px) {
  /* Product form layout */
  .product-form-layout {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  .product-form-layout > div { margin-bottom: 20px; }

  /* Variant rows */
  .variant-row { flex-wrap: wrap; gap: 8px !important; }
  .variant-row input { flex: 1 1 calc(50% - 8px) !important; min-width: 0; }
}

/* ─── ADMIN REPORTS CHARTS RESPONSIVE ─── */
@media(max-width: 768px) {
  .reports-grid { grid-template-columns: 1fr !important; display: block !important; }
  .reports-grid > div { margin-bottom: 20px; }
}

/* ─── ADMIN BANNERS RESPONSIVE ─── */
@media(max-width: 768px) {
  .banners-grid { grid-template-columns: 1fr !important; }
}

/* ─── GENERAL TABLE SCROLL WRAPPER ─── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

/* ─── CONTACT PAGE RESPONSIVE ─── */
@media(max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:40px"] {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:40px"] > div {
    margin-bottom: 24px;
  }
}

/* ─── ABOUT PAGE RESPONSIVE ─── */
@media(max-width: 768px) {
  div[style*="grid-template-columns:1fr 1fr"][style*="align-items:center"] {
    grid-template-columns: 1fr !important;
    display: block !important;
  }
  div[style*="grid-template-columns:1fr 1fr"][style*="align-items:center"] > div {
    margin-bottom: 24px;
  }
}

/* ─── CHECKOUT RESPONSIVE ─── */
@media(max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-layout > div:last-child { position: static !important; }
}

/* ─── CART RESPONSIVE ─── */
@media(max-width: 600px) {
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .cart-item-img { width: 60px !important; height: 60px !important; }
}

/* ─── USER SIDEBAR NAV STYLING WHEN IN DRAWER ─── */
@media(max-width: 768px) {
  .dashboard-sidebar .dashboard-user {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .dashboard-sidebar .sidebar-nav { padding: 8px 0; }
  .dashboard-sidebar .sidebar-nav a {
    padding: 14px 20px;
    font-size: 15px;
  }
}


/* ─── USER STATS GRID ─── */
@media(max-width: 600px) {
  .user-stats-grid { grid-template-columns: 1fr !important; }
}
@media(min-width: 601px) and (max-width: 768px) {
  .user-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ─── ADMIN SIDEBAR HEADER FLEX FIX ─── */
.admin-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

/* ─── ADMIN ORDER DETAIL RESPONSIVE ─── */
@media(max-width: 768px) {
  /* Order detail 2fr 1fr layout */
  .admin-content > div[style*="grid-template-columns:2fr 1fr"] {
    display: block !important;
  }
  .admin-content > div[style*="grid-template-columns:2fr 1fr"] > div {
    margin-bottom: 20px;
  }
}


/* ============================================================
   MOBILE RESPONSIVE ADDITIONS
   ============================================================ */

/* ── CART PAGE ── */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tbody tr { display: block; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
  .cart-table tbody td { display: block; padding: 0; border: none; text-align: left !important; margin-bottom: 6px; }
  .cart-table tbody td:nth-child(2)::before { content: "Price: "; color: var(--text-muted); font-size: 12px; }
  .cart-table tbody td:nth-child(3)::before { content: "Qty: "; color: var(--text-muted); font-size: 12px; }
  .cart-table tbody td:nth-child(4)::before { content: "Total: "; color: var(--text-muted); font-size: 12px; }
  .cart-table tbody td:nth-child(5) { text-align: right !important; }
  .cart-product-img { width: 64px !important; height: 64px !important; }
  .coupon-form { flex-direction: column; }
  .coupon-input, .coupon-form .btn { width: 100%; }
  .cart-actions-row { flex-direction: column !important; gap: 10px !important; }
  .cart-actions-row .btn { width: 100% !important; justify-content: center; }
}

/* ── CHECKOUT ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) {
  .checkout-card { padding: 18px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .checkout-section h1 { font-size: 20px !important; }
}

/* ── ORDER SUCCESS ── */
@media (max-width: 640px) {
  .order-success-card { padding: 24px 16px !important; }
  .order-success-actions { flex-direction: column !important; gap: 10px !important; }
  .order-success-actions .btn { width: 100%; }
  .order-number-badge { display: block !important; width: 100%; }
}

/* ── PAYMENT ── */
@media (max-width: 640px) {
  .payment-card { padding: 24px 16px !important; }
  .payment-icons-row { flex-wrap: wrap !important; justify-content: center !important; }
}

/* ── USER DASHBOARD SIDEBAR DRAWER ── */
.user-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.dashboard-orders-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
  /* Layout */
  .dashboard-layout { display: block !important; padding: 16px 0; }

  /* Toggle button */
  .dashboard-mobile-toggle { display: flex !important; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--secondary); cursor: pointer; align-items: center; gap: 10px; margin-bottom: 16px; box-shadow: var(--shadow); }

  /* Sidebar = drawer */
  .dashboard-sidebar { position: fixed !important; left: 0 !important; top: 0 !important; bottom: 0 !important; width: 280px !important; background: #fff !important; z-index: 9100 !important; transform: translateX(-100%) !important; transition: transform 0.28s ease !important; overflow-y: auto !important; box-shadow: 4px 0 24px rgba(0,0,0,0.2) !important; padding-top: 0 !important; border: none !important; }
  .dashboard-sidebar.open { transform: translateX(0) !important; }

  /* Overlay */
  .dashboard-sidebar-overlay { display: none !important; position: fixed !important; inset: 0 !important; background: rgba(0,0,0,0.5) !important; z-index: 9099 !important; }
  .dashboard-sidebar-overlay.open { display: block !important; }

  /* Stats */
  .user-stats-grid { gap: 10px !important; }
  .stat-card { padding: 14px 10px !important; }
  .stat-number { font-size: 20px !important; }
  .stat-label { font-size: 11px !important; }
  .stat-icon { display: none; }

  /* Orders table */
  .dashboard-orders-table { min-width: 480px !important; font-size: 13px !important; }
  .dashboard-orders-table td, .dashboard-orders-table th { padding: 10px !important; }
  .dashboard-orders-table thead th:nth-child(2), .dashboard-orders-table tbody td:nth-child(2) { display: none !important; }
}

/* ── ORDER DETAIL ── */
.order-detail-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 768px) { .order-detail-grid { grid-template-columns: 1fr !important; } }
.order-tracker-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.order-tracker-inner { min-width: 520px; }

/* ── ORDERS LIST ── */
.order-card-header { background: var(--bg); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) {
  .order-card-meta { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .order-card-actions { width: 100%; }
  .order-card-actions .btn { flex: 1; justify-content: center; }
}

/* ── ADDRESSES ── */
.addresses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .addresses-grid { grid-template-columns: 1fr !important; } }

/* ── CATCH-ALL: inline style grids ── */
@media (max-width: 767px) {
  [style*="grid-template-columns:1fr 380px"], [style*="grid-template-columns: 1fr 380px"] { display: block !important; }
  [style*="grid-template-columns:3fr 1fr"], [style*="grid-template-columns: 3fr 1fr"] { display: block !important; }
}
REDESIGNED HEADER v2 — MrMobile-style with blue theme
   ═══════════════════════════════════════════════════════ */

/* --- Announcement / ticker bar --- */
.announcement-bar {
  background: linear-gradient(90deg, #1a6fa3 0%, #2E86C1 50%, #1a6fa3 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 0;
  overflow: hidden;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1010;
}
.announcement-inner {
  overflow: hidden;
  width: 100%;
}
.announcement-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
  gap: 0;
}
.announcement-track span {
  padding: 0 6px;
  opacity: 0.95;
}
.announcement-track i {
  font-size: 11px;
  margin-right: 3px;
  color: rgba(255,255,255,0.85);
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

/* --- Header shell --- */
.header {
  background: #fff !important;
  border-bottom: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

/* --- Top row (logo + search + contact + icons) --- */
.header-top-row {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
}
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}

/* Logo */
.header-top-inner .logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Search */
.header-top-inner .search-wrap {
  flex: 1;
  max-width: 600px;
}
.header-top-inner .search-form {
  border: 2px solid #dce4ec;
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  display: flex;
}
.header-top-inner .search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,134,193,0.12);
}
.header-top-inner .search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
}
.header-top-inner .search-btn {
  background: var(--primary);
  border: none;
  padding: 0 24px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.header-top-inner .search-btn:hover { background: var(--primary-dark); }

/* Contact block */
.header-contact {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1.5px solid #dce4ec;
  border-radius: 10px;
  min-width: 190px;
}
.header-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}
.header-contact-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-contact-label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.header-contact-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.2px;
}
.header-contact-number:hover { color: var(--primary); }

/* Action icons (sign in, wishlist, cart) */
.header-top-inner .header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header-top-inner .header-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
}
.header-top-inner .header-icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.header-top-inner .header-icon-btn i { font-size: 22px; }
.header-top-inner .header-icon-btn .label {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Cart with bubble count */
.cart-btn {
  position: relative;
}
.cart-count-bubble {
  position: absolute !important;
  top: 5px !important;
  right: 8px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 10px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  border: 2px solid #fff;
}

/* --- Navbar (bottom row) --- */
.header .navbar {
  background: var(--secondary);
}
.header .navbar .navbar-inner {
  display: flex;
  align-items: stretch;
  position: relative;
}
.header .nav-categories-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  font-family: 'Open Sans', sans-serif;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.nav-chevron {
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.2s;
}
.header .nav-categories-btn:hover .nav-chevron { transform: rotate(180deg); }

.header .nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 15px;
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}
.header .nav-links > li > a:hover,
.header .nav-links > li > a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-link-hot {
  color: #fff !important;
}
.header .nav-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 20px;
  margin-left: 3px;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER — SINGLE CONSOLIDATED BLOCK
   All hero rules live here. Do not add hero rules elsewhere.
   ═══════════════════════════════════════════════════════════════ */

/* Section wrapper — zero padding, full width, flush below header */
.hero-section {
  padding: 0;
  margin: 0;
  width: 100%;
  background: #1A1A2E;
}

/* Slider track — full viewport width, no container constraint */
.hero-slider-wrap,
.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;          /* Desktop */
  overflow: hidden;
  background: #1A1A2E;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

/* Individual slide */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ── Admin-uploaded banner image ── */
.hero-banner-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  border-radius: 0;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
  border-radius: 0;
}
.hero-slider-wrap:hover .hero-banner-img {
  transform: scale(1.02);
}

/* Text overlay on uploaded banners */
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 80px;
  gap: 14px;
  z-index: 2;
}
.hero-banner-title {
  font-family: 'Roboto', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  margin: 0;
}
.hero-banner-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  line-height: 1.5;
  margin: 0;
}

/* ── Fallback gradient slide (no image uploaded) ── */
.hero-slide-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.hero-slide-fallback::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255,107,0,0.05);
  pointer-events: none;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 50px 80px;
  z-index: 2;
}
.hero-slide-content { max-width: 520px; }
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  margin-bottom: 28px;
}
.hero-cta-wrap { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Navigation arrows ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  z-index: 10;
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ── Dot indicators ── */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--primary); width: 26px; border-radius: 4px; }

/* ── Admin upload hint (shown when no banners) ── */
.hero-upload-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0,0,0,0.5);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  z-index: 10;
}
.hero-upload-hint a { color: var(--primary); font-weight: 600; }

/* ════════════════════
   TABLET  (≤ 900px)
   ════════════════════ */
@media (max-width: 900px) {
  .hero-slider-wrap,
  .hero-slider {
    height: 360px;
  }
  .hero-banner-overlay,
  .hero-slide-overlay {
    padding: 36px 48px;
  }
  .hero-banner-title,
  .hero-title { font-size: 30px; }
  .hero-banner-sub,
  .hero-subtitle { font-size: 15px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 14px; }
}

/* ════════════════════
   MOBILE  (≤ 600px)
   ════════════════════ */
@media (max-width: 600px) {
  .hero-slider-wrap,
  .hero-slider {
    height: auto !important;
    aspect-ratio: 16 / 8;
    min-height: 200px;
  }
  /* Make slides & image fill the aspect-ratio box */
  .hero-slide,
  .hero-banner-img-wrap,
  .hero-slide-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-banner-overlay,
  .hero-slide-overlay {
    padding: 20px 20px;
  }
  .hero-banner-title,
  .hero-title { font-size: 20px; line-height: 1.2; }
  .hero-banner-sub,
  .hero-subtitle { font-size: 12px; }
  .hero-arrow { display: none; }
  .hero-cta-wrap { gap: 8px; }
  .hero-cta-wrap .btn { font-size: 12px; padding: 8px 14px; }
}

/* ════════════════════
   SMALL MOBILE (≤ 400px)
   ════════════════════ */
@media (max-width: 400px) {
  .hero-slider-wrap,
  .hero-slider {
    aspect-ratio: 4 / 3;
    min-height: 180px;
  }
  .hero-banner-title,
  .hero-title { font-size: 17px; }
  .hero-banner-sub { display: none; }
  .hero-banner-overlay .btn { padding: 7px 12px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE HEADER
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-contact { display: none; }
  .header-top-inner { gap: 12px; }
}

@media (max-width: 768px) {
  .announcement-bar { font-size: 11.5px; }

  .header-top-row { padding: 0; }
  .header-top-inner {
    padding: 10px 16px;
    gap: 10px;
  }
  .header-top-inner .logo-img { height: 40px; } /* matches consolidated logo block */

  /* On mobile: hamburger + logo + cart only */
  .header-top-inner .search-wrap { display: none; }
  .header-contact { display: none; }

  /* Keep only wishlist + cart icons visible */
  .header-top-inner .header-icon-btn:not(.cart-btn) .label,
  .header-top-inner .header-icon-btn:not(.cart-btn) { display: none; }
  .header-top-inner .header-actions { gap: 2px; }
  .header-top-inner .cart-btn { display: flex !important; }
  .header-top-inner .cart-btn .label { display: block; }

  .header .navbar { display: none; }
}

@media (max-width: 480px) {
  /* logo height handled by consolidated logo block */
}

/* Override old .header-main if still used */
.header-main { display: none !important; }
.top-bar { display: none !important; }
/* ═══════════════════════════════════════════════════════
   PAYMENT INFO STRAP  (before hero slider)
   ═══════════════════════════════════════════════════════ */
.pib-strap {
  width: 100%;
  background: linear-gradient(100deg, #deeeff 0%, #e8f4ff 50%, #d6eaff 100%);
  border-bottom: 1px solid #b8d8f8;
  padding: 10px 0;
}
.pib-strap-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
}

/* LEFT */
.pib-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 28px;
  border-right: 1.5px solid #a8c8ee;
  flex-shrink: 0;
}
.pib-left strong {
  font-size: 15px;
  font-weight: 800;
  color: #1a3a5c;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.pib-left span {
  font-size: 12px;
  color: #3a6a9a;
  white-space: nowrap;
}
.pib-left a {
  font-size: 11px;
  color: #2563eb;
  text-decoration: underline;
  margin-top: 1px;
}

/* MIDDLE */
.pib-middle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1.5px solid #a8c8ee;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.pib-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a3a5c;
  white-space: nowrap;
  font-family: 'Open Sans', sans-serif;
}

/* Tabby pill */
.pib-tabby {
  display: inline-flex;
  align-items: center;
  background: #3dbea3;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  padding: 5px 16px 5px 10px;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(61,190,163,0.3);
  white-space: nowrap;
}

/* Tamara pill */
.pib-tamara {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #b62d8a 0%, #e05c1a 50%, #f5a623 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 5px 18px;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: -0.3px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(180,60,100,0.25);
  white-space: nowrap;
}

/* RIGHT */
.pib-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 28px;
  flex-shrink: 0;
}
.pib-right .pib-label { margin-right: 2px; }

/* Card badges */
.pib-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  height: 28px;
  padding: 0 8px;
  line-height: 1;
}
.pib-applepay {
  background: #000;
  min-width: 52px;
}
.pib-mc {
  background: #fff;
  border: 1px solid #e5e7eb;
  min-width: 42px;
  padding: 2px 6px;
}
.pib-visa {
  background: #1A1F71;
  color: #fff;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  min-width: 52px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pib-right { display: none; }
  .pib-middle { border-right: none; }
}
@media (max-width: 700px) {
  .pib-strap-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 16px;
  }
  .pib-left {
    border-right: none;
    padding-right: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #b8d8f8;
    width: 100%;
  }
  .pib-middle {
    padding: 0;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .pib-tabby, .pib-tamara { font-size: 14px; padding: 5px 12px; }
}
@media (max-width: 400px) {
  .pib-left strong { font-size: 13px; }
  .pib-left span   { font-size: 11px; }
  .pib-tabby, .pib-tamara { font-size: 13px; }
}
