/* Fook Stores - Arabic RTL eCommerce */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #FF6B00;
  --primary-dark: #FF8C00;
  --secondary: #FFA94D;
  --primary-gradient: linear-gradient(135deg, #FF6B00, #FF8C00, #FFA94D);
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --success: #28a745;
  --danger: #e3000f;
  --warning: #ffc107;
  --info: #17a2b8;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* { font-family: var(--font-ar); }
html { direction: rtl; }
body { background: #f5f5f5; color: var(--gray-800); margin: 0; padding: 0; font-size: 14px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 12px;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar a { color: white; opacity: 0.9; }
.top-bar a:hover { opacity: 1; }
.top-bar-offer {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
}
.top-bar-counters { display: flex; gap: 12px; align-items: center; }
.top-bar-counter { display: flex; align-items: center; gap: 4px; }
.top-bar-counter .count {
  background: white;
  color: var(--primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* ===== HEADER ===== */
.header {
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 900; font-size: 16px;
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-sub { font-size: 10px; color: var(--gray-600); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-ar);
}
.search-bar button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 20px;
  font-size: 18px;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: white;
  font-size: 13px;
  font-family: var(--font-ar);
  transition: all 0.2s;
  color: var(--gray-700);
}
.header-btn:hover { border-color: var(--primary); color: var(--primary); }
.header-btn .icon { font-size: 18px; }

/* ===== FORM LABELS ===== */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e; /* Navy Blue */
}
.cart-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  position: relative;
}
.cart-btn:hover { background: var(--primary-dark); color: white; }
.cart-count {
  background: var(--secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: -6px; left: -6px;
}

/* ===== NAV ===== */
.nav {
  background: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
/* ===== SIDEBAR NAV ===== */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e !important; /* Navy Blue */
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
  margin-bottom: 6px;
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
}
.sidebar-nav-item:hover { 
  background: #f0f7ff;
  border-color: #004aad;
  color: #004aad !important;
  transform: translateX(-4px);
}
.sidebar-nav-item.active { 
  background: #1a1a2e !important;
  color: #ffffff !important;
  border-color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}
.sidebar-nav-item .nav-icon { font-size: 18px; }

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 50%, #0a1628 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  gap: 40px;
}
.hero-content { flex: 1; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-title { font-size: 32px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.hero-sub { font-size: 16px; opacity: 0.85; margin: 0 0 20px; }
.hero-price { font-size: 28px; font-weight: 700; color: #ffd700; margin: 0 0 20px; }
.hero-price span { font-size: 16px; font-weight: 400; }
.hero-image { flex-shrink: 0; z-index: 1; }
.hero-image img { max-height: 220px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

/* ===== SECTION ===== */
.section { padding: 24px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== PAGE HEADER & BREADCRUMB ===== */
.page-header {
  background: var(--primary-gradient);
  padding: 32px 0;
  color: white;
  margin-bottom: 32px;
  text-align: center;
}
.page-header h1 {
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.breadcrumb a:hover {
  border-bottom-color: #fff;
}
.breadcrumb-sep {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

/* ===== QUICK FILTERS (PRODUCTS PAGE) ===== */
.quick-filter-section {
  margin-bottom: 24px;
}
.quick-filter-head {
  margin-bottom: 12px;
}
.quick-filter-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}
.quick-category-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.quick-category-row::-webkit-scrollbar { display: none; }

.quick-cat {
  padding: 8px 16px;
  background: white;
  border: 1px solid #eee;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-cat:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.quick-cat.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.brand-circles {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.brand-circles::-webkit-scrollbar { display: none; }

.brand-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 60px;
}
.brand-circle span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
  transition: all 0.2s;
}
.brand-circle small {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}
.brand-circle:hover span {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.brand-circle.active span {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}
.brand-circle.active small {
  color: var(--primary);
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-link { color: var(--primary); font-size: 13px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.cat-icon { font-size: 32px; margin-bottom: 8px; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--gray-700); }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.badge-danger { background: var(--danger); }
.badge-success { background: var(--success); }
.badge-primary { background: var(--primary); }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-secondary { background: var(--gray-600); }
.badge-info { background: var(--info); }

.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-body { padding: 12px; }
.product-brand { font-size: 12px; color: var(--gray-600); margin-bottom: 4px; font-weight: 600; }
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 20px; font-weight: 800; color: var(--primary); }
.price-old { font-size: 14px; color: var(--gray-500); text-decoration: line-through; }
.price-currency { font-size: 13px; font-weight: 700; color: var(--primary); }
.product-installment { font-size: 12px; color: #1a1a1a; margin-bottom: 10px; font-weight: 600; }
.btn-cart {
  display: block;
  width: 100%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ar);
  transition: background 0.2s;
  text-align: center;
}
.btn-cart:hover { background: linear-gradient(135deg, #FF8C00, #FFA94D, #FF6B00); }

/* ===== BRAND BANNER ===== */
.brand-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.brand-banner-content h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.brand-banner-content p { font-size: 14px; opacity: 0.85; margin: 0 0 16px; }
.brand-banner img { max-height: 180px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }

/* ===== INSTALLMENT SECTION ===== */
.installment-logos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.install-logo {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.install-logo:hover { border-color: var(--primary); color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ar);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary-gradient); color: white; border: none; }
.btn-primary:hover { background: linear-gradient(135deg, #FF8C00, #FFA94D, #FF6B00); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #e55c00; color: white; }
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-gradient); color: white; border-color: transparent; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-ar);
  transition: border-color 0.2s;
  background: white;
  color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.form-control::placeholder { color: var(--gray-400); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { display: flex; }
.input-group-text {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-left: none;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-600); }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-400); }

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}
.card-body { padding: 20px; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-images { position: sticky; top: 80px; }
.main-image {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.main-image img { max-height: 400px; object-fit: contain; padding: 24px; transition: opacity .25s ease; }
.thumb-grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.thumb-grid::-webkit-scrollbar { display: none; }
.thumb {
  width: 64px; height: 64px;
  flex-shrink: 0;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product-info { }
.product-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.product-title { font-size: 22px; font-weight: 700; color: var(--dark); margin: 0 0 16px; line-height: 1.4; }
.price-block { background: var(--gray-100); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.price-main { font-size: 32px; font-weight: 700; color: var(--primary); }
.price-old-tag { font-size: 16px; color: var(--gray-500); text-decoration: line-through; margin-right: 12px; }
.price-save { font-size: 13px; color: var(--success); font-weight: 600; }

.color-options { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.color-btn {
  padding: 6px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.color-btn.active, .color-btn:hover { border-color: var(--primary); color: var(--primary); }

.qty-block { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-right: 1px solid var(--gray-300);
  border-left: 1px solid var(--gray-300);
  font-size: 16px;
  font-weight: 600;
  padding: 6px;
  font-family: var(--font-ar);
}
.qty-input:focus { outline: none; }

.add-cart-btn {
  flex: 1;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: background 0.2s;
}
.add-cart-btn:hover { background: linear-gradient(135deg, #FF8C00, #FFA94D, #FF6B00); }

/* installment widget */
.install-widget {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

/* ===== LIVE SEARCH DROPDOWN ===== */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}
.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}
.live-search-item:hover {
  background: #fdf8f4;
}
.live-search-item:last-child {
  border-bottom: none;
}
.live-search-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}
.live-search-info {
  display: flex;
  flex-direction: column;
}
.live-search-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}
.live-search-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.live-search-empty, .live-search-loading {
  padding: 24px;
  text-align: center;
  color: #666;
  font-weight: 600;
  font-size: 14px;
}

.install-widget h4 { font-size: 13px; color: var(--gray-600); margin: 0 0 10px; }
.install-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.install-badge {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.install-badge:hover { border-color: var(--primary); color: var(--primary); }

/* Tabs */
.tabs { border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; display: flex; gap: 0; }
.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ar);
  border: none;
  background: none;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: var(--gray-100);
  padding: 12px 16px;
  text-align: right;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
}
.cart-table td { padding: 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cart-item-img { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; background: var(--gray-100); padding: 4px; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.cart-item-color { font-size: 12px; color: var(--gray-500); }
.cart-qty { display: flex; align-items: center; gap: 8px; }

.order-summary { position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.summary-total { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-step { margin-bottom: 24px; }
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.step-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--dark); }

.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.payment-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-card:hover, .payment-card.active { border-color: var(--primary); background: rgba(0,102,204,0.05); }
.payment-card input { display: none; }
.payment-card label { cursor: pointer; }
.payment-icon { font-size: 24px; display: block; margin-bottom: 4px; }
.payment-label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.payment-sub { font-size: 10px; color: var(--gray-500); }

/* ===== AUTH ===== */
.auth-page {
  min-height: 100vh;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
}
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; width: 100%; max-width: 420px; }
.auth-title { font-size: 24px; font-weight: 700; color: var(--dark); margin: 0 0 6px; text-align: center; }
.auth-sub { font-size: 13px; color: var(--gray-600); text-align: center; margin: 0 0 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-600); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: white;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-logo {
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.admin-logo-text { font-size: 16px; font-weight: 700; }
.admin-logo-sub { font-size: 10px; opacity: 0.6; }

.admin-nav { padding: 16px 0; }
.admin-nav-section { padding: 12px 20px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s;
  border-right: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: white; border-right-color: var(--primary); }
.admin-nav-item.active { background: rgba(0,102,204,0.25); color: white; border-right-color: var(--primary); }
.admin-nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.admin-main {
  flex: 1;
  margin-right: 260px;
  background: var(--gray-100);
  min-height: 100vh;
}
.admin-topbar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; margin: 0; }
.admin-content { padding: 24px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon.blue { background: rgba(0,102,204,0.12); }
.stat-icon.green { background: rgba(40,167,69,0.12); }
.stat-icon.orange { background: rgba(255,102,0,0.12); }
.stat-icon.purple { background: rgba(102,16,242,0.12); }
.stat-label { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--dark); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--gray-100);
  padding: 12px 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

/* Status badge */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #d97706; background: #fef3c7; }
.status-processing { color: #2563eb; background: #dbeafe; }
.status-completed { color: #059669; background: #d1fae5; }
.status-cancelled { color: #dc2626; background: #fee2e2; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.page-link {
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-700);
  background: white;
  transition: all 0.2s;
}
.page-link:hover, .page-link.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: white; margin-top: 40px; }
.footer-top { padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 22px; font-weight: 700; color: white; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
.footer-desc { font-size: 13px; opacity: 0.7; 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.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--primary); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: white; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; opacity: 0.7; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
}
.footer-apps { display: flex; gap: 8px; }
.app-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-right: 220px; }
}
@media (max-width: 768px) {
  .top-bar .container { flex-direction: column; gap: 6px; }
  .header-inner { flex-wrap: wrap; }
  .search-bar { order: 3; width: 100%; max-width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-image { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }
  .admin-main { margin-right: 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 22px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--gray-500); }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-3 { padding: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }

/* Loading */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(0,102,204,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.3s ease;
}
.toast.success { border-right: 4px solid var(--success); }
.toast.error { border-right: 4px solid var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HOMEPAGE REDESIGN ===== */
:root {
  --primary: #FF6B00;
  --primary-dark: #e35f00;
  --secondary: #ff8b38;
  --homepage-shell: 24px;
}

body.homepage {
  background: #f7f8fa;
  font-family: 'Inter', 'Cairo', 'Segoe UI', sans-serif;
}

.full-bleed-shell {
  width: 100%;
  max-width: none;
  padding-inline: var(--homepage-shell);
}

body.homepage .container {
  max-width: none;
}

body.homepage .top-bar {
  background: #131921;
  padding: 8px 0;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

body.homepage .header {
  box-shadow: none;
  border-bottom: 1px solid #eceef3;
}

body.homepage .header-inner {
  gap: 16px;
  padding: 12px 0;
}

body.homepage .logo-icon {
  background: #131921;
  border-radius: 10px;
}

body.homepage .search-bar {
  margin-inline: auto;
  max-width: 760px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  overflow: hidden;
}

body.homepage .search-bar input {
  padding: 13px 18px;
  font-size: 15px;
}

body.homepage .search-bar button {
  min-width: 64px;
  background: var(--primary);
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f2f6;
  text-decoration: none;
  color: #111;
  transition: background 0.2s ease;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover, .live-search-item.active {
  background: #f8fafc;
}

.live-search-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.live-search-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-search-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.live-search-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.live-search-empty, .live-search-loading {
  padding: 16px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.hl-match {
  color: var(--primary);
  font-weight: 800;
}

body.homepage .header-actions {
  margin-right: 0;
  gap: 10px;
}

body.homepage .header-btn {
  border: 1px solid #e6e8ed;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
}

body.homepage .header-btn.icon-only {
  width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
}

body.homepage .nav {
  border-top: none;
  border-bottom: 1px solid #eceef3;
}

body.homepage .nav-inner {
  gap: 4px;
  scrollbar-width: none;
}

body.homepage .nav-inner::-webkit-scrollbar {
  display: none;
}

body.homepage .nav-item {
  border-bottom-width: 2px;
  padding: 12px 14px;
  font-weight: 700;
}

.home-fullwidth {
  width: 100vw;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: hidden;
}

.category-showcase {
  padding: 24px 0 12px;
}

.view-all-btn {
  border: 1px solid #d9dce3;
  color: #1e2532;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.view-all-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.product-row-wrapper {
  position: relative;
  width: 100%;
}

.product-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  cursor: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  align-items: stretch;
  width: 100%;
}

.product-row::-webkit-scrollbar {
  display: none;
}

.product-row-item {
  min-width: 230px;
  max-width: 230px;
  flex: 0 0 auto;
  display: flex;
}

.product-row-item .product-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-row-item .product-body {
  display: flex;
  flex-direction: column;
  min-height: 188px;
}

.product-row-item .btn-cart {
  margin-top: auto;
}

body.homepage .product-card {
  border: 1px solid #eaedf3;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

body.homepage .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

body.homepage .product-img-wrap {
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

body.homepage .product-img-wrap img {
  object-fit: contain;
  padding: 16px;
}

body.homepage .price-current {
  color: var(--primary);
}

body.homepage .badge-danger {
  background: var(--primary-gradient);
  border-radius: 999px;
}

body.homepage .btn-cart {
  border-radius: 10px;
  background: var(--primary-gradient);
  font-weight: 700;
}

@media (max-width: 991px) {
  :root { --homepage-shell: 16px; }
  body.homepage .top-bar { display: none; }
  body.homepage .header-inner { flex-wrap: wrap; }
  body.homepage .search-bar { order: 3; width: 100%; max-width: 100%; }
  
}

@media (max-width: 640px) {
  :root { --homepage-shell: 12px; }
  body.homepage .header-btn:not(.icon-only) span:not(.icon):not(.cart-count) { display: none; }
  .product-row-item { min-width: 170px; max-width: 170px; }
}

/* ===== AMAZON + FOOK STORES SYSTEM ===== */
body {
  color: #0F1111;
}

.top-bar, .header, .nav {
  background-color: #131921;
}

.header, .nav {
  border-color: rgba(255, 255, 255, 0.08);
}

.logo-text,
.logo-sub,
.top-bar a,
.top-bar span,
.nav-item,
.nav-item.active {
  color: #fff;
}

.nav-item:hover {
  color: #FFD814;
  border-bottom-color: #FFD814;
}

.card,
.product-card,
.main-image,
.install-widget,
.checkout-step.card {
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 17, 17, 0.08);
}

.btn-primary,
.btn-cart,
.add-cart-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.btn-primary:hover,
.btn-cart:hover,
.add-cart-btn:hover {
  background: linear-gradient(135deg, #FF8C00, #FFA94D, #FF6B00);
}

.btn-primary:active,
.btn-cart:active,
.add-cart-btn:active {
  transform: translateY(1px);
}

.section-title, .product-title, .cart-item-name, .card-header {
  color: #0F1111;
}

.product-brand, .product-installment, .footer-desc, .text-muted, .breadcrumb {
  color: #555;
}

/* Native horizontal product rows */
.product-row {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-row::-webkit-scrollbar { display: none; }

.cat-grid-modern {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.cat-card.modern {
  border: 1px solid #e4e7ec;
  padding: 18px 10px;
}
.cat-card.modern:hover {
  border-color: #F7CA00;
}

.brand-circles {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.brand-circles::-webkit-scrollbar { display: none; }
.brand-circle {
  border: 1px solid #d8dee8;
  appearance: none;
  min-width: 86px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.brand-circle span { font-weight: 800; }
.brand-circle small { font-size: 10px; color: #555; }
.brand-circle:hover,
.brand-circle.active {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(15, 17, 17, 0.15);
}

/* Product index quick filters */
.quick-filter-section {
  margin: 0 0 18px;
}
.quick-filter-head h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.quick-category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.quick-cat {
  border: 1px solid #d5dae3;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.quick-cat.active {
  border-color: #131921;
  background: #131921;
  color: #fff;
}

/* Product page media and rich description */
.media-stage {
  position: relative;
}
.main-video-wrap iframe,
.main-video-wrap video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
}
.video-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #131921;
  color: #fff;
}
.buy-now-btn {
  min-height: 46px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(247, 202, 0, 0.35);
}
.rich-description p {
  margin: 0 0 10px;
  line-height: 1.9;
}
.desc-bullet { padding-inline-start: 4px; }
.key-features { margin-top: 16px; border-top: 1px solid #eceef3; padding-top: 12px; }
.key-features h4 { margin: 0 0 10px; font-size: 15px; }
.key-features ul { margin: 0; padding: 0; }
.key-features li { margin: 0 0 6px; color: #374151; }
.product-rating-ui { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.product-rating-ui .stars { color: #f59e0b; letter-spacing: 1px; }
.product-rating-ui .score { font-weight: 700; color: #111827; }
.product-rating-ui .reviews-count { color: #555; font-size: 13px; }

.product-detail {
  gap: 24px;
}

.main-image {
  min-height: 420px;
}

/* ===== UI STABILITY HOTFIX ===== */
.home-fullwidth {
  overflow-x: hidden;
}

.product-row-wrapper {
  width: 100%;
  overflow: hidden;
}

.product-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.product-row-item {
  flex: 0 0 auto;
}

.product-detail {
  align-items: start;
}

.product-images {
  max-width: 100%;
}

.main-image {
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.main-image img:hover {
  transform: scale(1.08);
}

.thumb {
  flex: 0 0 68px;
}

/* ===== AMAZON STYLE HEADER + HERO ===== */
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.site-header-wrap {
  box-shadow: 0 6px 18px rgba(15, 17, 17, 0.16);
}

.top-bar {
  background: #0f1720;
}

.header-inner {
  min-height: 68px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-track {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.65));
}

.hero-content {
  position: absolute;
  inset-inline-start: 5%;
  top: 50%;
  transform: translateY(-45%);
  max-width: 500px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(-50%);
}

.hero-content h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.hero-content p {
  margin: 0 0 16px;
  font-size: 16px;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.88);
  z-index: 3;
}

.hero-nav.prev { inset-inline-start: 10px; }
.hero-nav.next { inset-inline-end: 10px; }

.hero-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}

.hero-dot.active {
  width: 24px;
  background: var(--primary-gradient);
}

@media (max-width: 768px) {
  .hero-slider, .hero-track {
    height: 220px;
  }
  .hero-content {
    inset-inline-start: 16px;
    max-width: 80%;
  }
  .hero-content h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .hero-content p {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Reviews UI */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.reviews-score {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
}

.reviews-stars,
.review-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.reviews-meta {
  color: #6b7280;
  font-size: 13px;
}

.reviews-list {
  display: grid;
  gap: 10px;
}

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.review-card p {
  margin: 8px 0 0;
  color: #374151;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .product-images {
    position: static;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }

  .nav.open {
    max-height: 280px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero-slider,
  .hero-track,
  .hero-slide img {
    min-height: 270px;
  }

  .hero-content {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    max-width: 95%;
  }
}

/* Installment drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Missing CSS classes used in Blade templates */
.color-box-btn {
  padding: 10px 24px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.color-box-btn:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.05); }
.color-box-btn.active { border-color: #fb923c; background: #fff7ed; color: #fb923c; }

.product-badge { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.product-badge-secondary { position: absolute; z-index: 5; }
.product-badge-smart { position: absolute; z-index: 5; }

.variant-attr-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  font-family: inherit;
}
.variant-attr-btn:hover { border-color: #fb923c; color: #fb923c; }
.variant-attr-btn.active { border-color: #fb923c; background: #fff7ed; color: #fb923c; font-weight: 800; }
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.install-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 94vw);
  height: 100vh;
  background: #fff;
  z-index: 210;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -8px 0 26px rgba(0, 0, 0, 0.15);
}
.install-drawer.open {
  transform: translateX(0);
}
.install-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eceef3;
}
.install-drawer-head h3 { margin: 0; }
.install-drawer-head button {
  border: none;
  background: transparent;
  font-size: 20px;
}
.install-drawer-body {
  padding: 16px;
}
.drawer-plan-grid {
  display: grid;
  gap: 12px;
}
.drawer-plan {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}
.drawer-plan h4 { margin: 0 0 6px; }
.drawer-plan p { margin: 0 0 4px; font-weight: 700; }
.drawer-plan small { color: #555; }
.drawer-conditions {
  margin-top: 14px;
  color: #555;
  line-height: 1.8;
  font-size: 13px;
}

/* Checkout payment dynamic panels */
.payment-panel {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  animation: fadeIn .2s ease;
}

.payment-methods {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .products-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
.payment-panel.active { display: block; }
.payment-tip { margin: 0; color: #555; font-size: 13px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .qty-block {
    flex-wrap: wrap;
  }
  .buy-now-btn {
    width: 100%;
  }
}

/* ===== Top announcement ticker ===== */
.top-announcement-ticker {
  overflow: hidden;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-announcement-ticker .ticker-wrapper {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
}

.top-announcement-ticker:hover .ticker-wrapper {
  animation-play-state: paused;
}


.top-announcement-ticker .ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

@keyframes tickerScroll {
  from { transform: translate3d(50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .top-announcement-ticker .ticker-wrapper {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════
   VOOC DESIGN SYSTEM — Product Card
   ══════════════════════════════════════════════════════ */
:root {
  --primary: #f97316;
  --primary-soft: #fff7ed;
  --primary-light: #fdba74;
  --primary-dark: #ea580c;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --white: #ffffff;
  --red: #ef4444;
  --green: #16a34a;
  --purple: #8b5cf6;
  --premium-gold: #f59e0b;
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 8px; --radius-md: 12px;
  --radius-lg: 16px; --radius-xl: 20px;
  --radius-2xl: 24px; --radius-3xl: 32px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.03);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.06);
  --shadow-btn: 0 4px 14px rgba(249,115,22,0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms; --duration: 250ms; --duration-slow: 400ms;
}
.vooc-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: var(--radius-full); font-size: 10px; font-weight: 900;
  letter-spacing: 0.2px; text-transform: uppercase; white-space: nowrap;
}
.vooc-badge--sale{background:var(--red);color:var(--white)}
.vooc-badge--new{background:var(--dark);color:var(--white)}
.vooc-badge--out{background:var(--gray-100);color:var(--gray-400)}
.vooc-badge--low{background:var(--primary-soft);color:var(--primary-dark);border:1px solid var(--primary-light)}
.vooc-badge--hot{background:linear-gradient(135deg,var(--red),#dc2626);color:var(--white)}
.vooc-badge--ai{background:linear-gradient(135deg,var(--purple),#d946ef);color:var(--white)}
.vooc-product-card {
  position: relative; background: var(--white); border-radius: var(--radius-xl);
  overflow: hidden; transition: all 0.4s var(--ease-out);
  display: flex; flex-direction: column;
  flex: 0 0 210px; max-width: 210px;
}
@media (max-width: 480px) {
  .vooc-product-card { flex: 0 0 180px; max-width: 180px; border-radius: var(--radius-lg); }
}
.vooc-product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-xl)}
.vooc-product-card__media {
  position: relative; aspect-ratio: 1/1; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4); overflow: hidden;
}
.vooc-product-card__media img {
  max-width: 85%; max-height: 85%; object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}
.vooc-product-card:hover .vooc-product-card__media img{transform:scale(1.08)}
.vooc-product-card__badges {
  position: absolute; top: var(--space-2); right: var(--space-2);
  display: flex; flex-direction: column; gap: var(--space-1); z-index: 5;
}
.vooc-product-card__wishlist {
  position: absolute; top: var(--space-2); left: var(--space-2);
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(8px); z-index: 5;
}
.vooc-product-card__wishlist:hover{transform:scale(1.15)}
.vooc-product-card__body {
  padding: var(--space-3) var(--space-3) 0;
  flex: 1; display: flex; flex-direction: column; gap: var(--space-1);
}
.vooc-product-card__category {
  font-size: 10px; color: var(--gray-400); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.vooc-product-card__title {
  font-size: 13px; font-weight: 900; color: var(--dark);
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vooc-product-card__rating{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--premium-gold)}
.vooc-product-card__rating span{color:var(--gray-400);font-weight:600}
.vooc-product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.vooc-product-card__price {
  font-size: 16px; font-weight: 900; color: var(--primary); line-height: 1;
}
.vooc-product-card__old {
  font-size: 11px; color: var(--gray-400); text-decoration: line-through;
  font-weight: 600;
}
.vooc-product-card__add {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--dark); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all 0.25s var(--ease-out);
  flex-shrink: 0;
}
.vooc-product-card__add:hover{background:var(--primary);transform:scale(1.1)}
