/* ============================================
   SHOPVERSE — AMAZON-LIKE E-COMMERCE STYLES
   ============================================ */

:root {
  --orange: #FF9900;
  --orange-dark: #e68a00;
  --orange-light: #fff3cd;
  --navy: #131921;
  --navy-mid: #1a2634;
  --navy-light: #232f3e;
  --teal: #37475a;
  --white: #ffffff;
  --off-white: #f3f3f3;
  --light-gray: #e7e7e7;
  --mid-gray: #999;
  --dark-gray: #555;
  --text: #0f1111;
  --text-light: #565959;
  --red: #cc0c39;
  --green: #007600;
  --prime-blue: #00a8e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-sm: 4px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
select { font-family: var(--font-body); }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--navy-mid);
  color: #ccc;
  font-size: 12px;
  padding: 4px 0;
}
.top-bar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar strong { color: var(--white); }
.top-bar-links { display: flex; gap: 20px; }
.top-bar-links a { color: #ccc; transition: color var(--transition); }
.top-bar-links a:hover { color: var(--white); }

/* ============ HEADER ============ */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  white-space: nowrap;
}
.logo:hover { border-color: var(--white); }
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-dot {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

/* Location */
.header-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition);
}
.header-location:hover { border-color: var(--white); }
.header-location svg { color: var(--white); flex-shrink: 0; }
.location-label { display: block; font-size: 11px; color: #ccc; }
.location-value { display: block; font-size: 13px; font-weight: 700; }

/* Search */
.search-bar {
  flex: 1;
  display: flex;
  align-items: stretch;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: visible;
  position: relative;
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow var(--transition);
}
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--orange); }

.search-category-select {
  display: flex;
  align-items: center;
  background: #e3e6e6;
  border-right: 1px solid #cdcdcd;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 8px;
  gap: 4px;
  position: relative;
}
.search-category-select select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  padding-right: 4px;
  max-width: 90px;
}
.search-category-select svg { pointer-events: none; color: var(--dark-gray); }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}

.search-btn {
  background: var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--orange-dark); }
.search-btn svg { color: var(--navy); }

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.search-suggestions.visible { display: block; }
.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--off-white); }
.suggestion-item svg { color: var(--mid-gray); flex-shrink: 0; }

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-flag {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--white);
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  transition: border-color var(--transition);
}
.header-flag:hover { border-color: var(--white); }

.header-account, .header-returns {
  color: var(--white);
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition);
  position: relative;
}
.header-account:hover, .header-returns:hover { border-color: var(--white); }
.account-label { display: block; font-size: 11px; color: #ccc; }
.account-value { display: block; font-size: 13px; font-weight: 700; }

/* Account Dropdown */
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -20px;
  width: 380px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  overflow: hidden;
}
.account-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--white);
}
.header-account:hover .account-dropdown { display: block; }
.account-dropdown-top {
  background: var(--off-white);
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
}
.btn-signin {
  background: var(--orange);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 48px;
  border-radius: 20px;
  margin-bottom: 8px;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.btn-signin:hover { background: var(--orange-dark); }
.account-dropdown-top p { font-size: 12px; color: var(--text-light); }
.account-dropdown-top a { color: #0066c0; }
.account-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px;
}
.account-dropdown-grid > div { padding: 0 8px; }
.account-dropdown-grid strong { display: block; font-size: 13px; margin-bottom: 8px; }
.account-dropdown-grid a {
  display: block;
  font-size: 13px;
  color: var(--text);
  padding: 3px 0;
  transition: color var(--transition);
}
.account-dropdown-grid a:hover { color: var(--orange); text-decoration: underline; }

/* Cart */
.header-cart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--white);
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition);
}
.header-cart:hover { border-color: var(--white); }
.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.cart-label { font-size: 13px; font-weight: 700; }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--navy-light);
  position: sticky;
  top: 60px;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-inner::-webkit-scrollbar { display: none; }

.nav-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}
.nav-all-btn:hover { border-color: var(--white); }

.nav-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: border-color var(--transition);
}
.nav-link:hover { border-color: var(--white); }
.nav-prime { color: var(--prime-blue); font-weight: 700; }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: var(--shadow-lg);
  z-index: 998;
  display: none;
  animation: slideDown 0.2s ease;
}
.mega-menu.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-menu-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.mega-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
}
.mega-col a {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  padding: 5px 0;
  transition: color var(--transition);
}
.mega-col a:hover { color: var(--orange); }

/* ============ HERO ============ */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 420px;
}
.hero-slider { height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }
.hero-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 80px;
  flex: 1;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 400px;
}
.hero-btns { display: flex; gap: 12px; }
.btn-primary {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: background var(--transition);
  font-family: var(--font-body);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-image {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: var(--white);
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
  line-height: 1;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.7); }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--white); transform: scale(1.3); }

/* ============ MAIN CONTENT ============ */
.main-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 16px;
}

.section-block { margin-bottom: 32px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header .section-title { margin-bottom: 0; }

.see-all-link {
  margin-left: auto;
  color: #0066c0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition);
}
.see-all-link:hover { color: var(--orange); text-decoration: underline; }

/* ============ CATEGORY GRID ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.category-card span {
  display: block;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ============ DEALS ============ */
.deals-section {}
.deal-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.timer-value {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 1;
  font-family: var(--font-display);
}
.product-badge.prime { background: var(--prime-blue); }
.product-badge.new { background: var(--green); }

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { background: var(--white); }

.product-img-wrap {
  height: 200px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.stars { color: var(--orange); font-size: 13px; letter-spacing: -1px; }
.rating-count { font-size: 12px; color: #0066c0; }

.product-price-wrap { margin-bottom: 8px; }
.product-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.product-price .currency { font-size: 13px; vertical-align: top; margin-top: 3px; display: inline-block; }
.product-original {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 4px;
}
.product-discount {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

.product-delivery {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.product-delivery strong { color: var(--green); }

.btn-add-cart {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: background var(--transition);
  font-family: var(--font-body);
  margin-top: auto;
}
.btn-add-cart:hover { background: var(--orange-dark); }

/* ============ PRODUCTS GRID ============ */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  border: 1px solid var(--light-gray);
  background: var(--white);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* ============ HORIZONTAL SCROLL ============ */
.horizontal-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--light-gray) transparent;
}
.horizontal-scroll::-webkit-scrollbar { height: 4px; }
.horizontal-scroll::-webkit-scrollbar-track { background: transparent; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: var(--light-gray); border-radius: 2px; }
.horizontal-scroll .product-card { min-width: 200px; flex-shrink: 0; }

/* ============ PRIME BANNER ============ */
.prime-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 12px;
  margin-bottom: 32px;
  overflow: hidden;
}
.prime-banner-inner {
  display: flex;
  align-items: center;
  padding: 40px 48px;
  gap: 48px;
}
.prime-left { flex: 1; }
.prime-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--prime-blue);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.prime-left h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.prime-left p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 24px; }
.prime-btns { display: flex; align-items: center; gap: 20px; }
.btn-prime {
  background: var(--prime-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  font-family: var(--font-body);
}
.btn-prime:hover { background: #0090c4; }
.prime-btns a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color var(--transition); }
.prime-btns a:hover { color: var(--white); }
.prime-right { flex: 1; }
.prime-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
}
.perk span { font-size: 28px; }
.perk p { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; }

/* ============ BRANDS ============ */
.brands-section { margin-bottom: 32px; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), color var(--transition);
}
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--orange); }

/* ============ FOOTER ============ */
.footer { background: var(--navy-mid); margin-top: 32px; }
.footer-top {
  background: var(--teal);
  text-align: center;
  padding: 14px;
}
.back-to-top {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}
.back-to-top:hover { color: var(--orange); }
.footer-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #aaa;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  background: var(--navy);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 12px; color: #aaa; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-copy { font-size: 12px; color: #777; }

/* ============ CART SIDEBAR ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--white);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--light-gray);
  background: var(--navy);
  color: var(--white);
}
.cart-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.cart-close {
  color: var(--white);
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.cart-close:hover { background: rgba(255,255,255,0.2); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-light);
}
.cart-empty p { font-size: 16px; font-weight: 500; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--off-white);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background: var(--off-white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.qty-btn:hover { background: var(--light-gray); }
.qty-value { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  margin-left: auto;
  color: var(--red);
  font-size: 12px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.cart-item-remove:hover { opacity: 0.7; }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
}
.cart-subtotal { font-size: 15px; margin-bottom: 14px; }
.cart-subtotal strong { font-size: 18px; font-family: var(--font-display); }
.btn-checkout {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: background var(--transition);
  font-family: var(--font-body);
}
.btn-checkout:hover { background: var(--orange-dark); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s ease;
  white-space: nowrap;
  border-left: 4px solid var(--orange);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .deals-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-image { width: 280px; height: 240px; right: 40px; }
  .hero-content h1 { font-size: 36px; }
}

@media (max-width: 900px) {
  .header-location { display: none; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .deals-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
  .prime-banner-inner { flex-direction: column; padding: 32px; }
  .hero-image { display: none; }
  .hero-content { padding: 0 48px; }
}

@media (max-width: 600px) {
  .top-bar-links { display: none; }
  .header-flag, .header-returns { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .hero-section { height: 300px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content { padding: 0 24px; }
  .cart-sidebar { width: 100%; right: -100%; }
  .prime-perks { grid-template-columns: 1fr; }
}