/* THEME VARIABLES */
:root {
  --nav-bg: #131921;
  --nav-bg-secondary: #232f3e;
  --primary: #1a4be8;
  --primary-dark: #15369b;
  --accent: #f59e0b;
  --accent-soft: #facc15;
  --card-bg: #ffffff;
  --body-bg: #f3f4f7;
  --text-main: #111827;
  --text-muted: #6b7280;
  --pill-blue: #06b6d4;
  --pill-red: #ef4444;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.25);
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #e0edff 0, var(--body-bg) 40%);
  color: var(--text-main);
}

/* NAVBAR */
.main-nav {
  background: var(--nav-bg);
  color: #fff;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.logo span {
  color: #ff9900;
}

.delivery .small {
  font-size: 11px;
  opacity: 0.8;
}

.delivery .bold {
  font-size: 13px;
  font-weight: 700;
}

/* SEARCH */
.nav-center {
  display: flex;
  flex: 1;
  margin: 0 10px;
}

.search-box {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 999px 0 0 999px;
  outline: none;
  font-size: 14px;
}

.search-box:focus {
  box-shadow: 0 0 0 2px #fbbf24;
}

.search-btn {
  background: #ff9900;
  border: none;
  padding: 8px 14px;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
}

/* RIGHT SIDE NAV */
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.acc {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.acc .small {
  font-size: 11px;
  opacity: 0.8;
}

.acc .bold {
  font-size: 12px;
  font-weight: 700;
}

.icon {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  position: relative;
}

.cart-num {
  position: absolute;
  top: -4px;
  right: -10px;
  background: #ff9900;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  color: #111;
}

/* Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid #4b5563;
  border-radius: 6px;
  padding: 4px 8px;
  color: #e5e7eb;
  font-size: 18px;
}

/* MENU BAR */
.menu-row {
  background: var(--nav-bg-secondary);
  padding: 8px 12px;
  display: flex;
  gap: 16px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  transition: max-height 0.22s ease;
}

.menu-row a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
  position: relative;
}

.menu-row .menu-link.active::after,
.menu-row .menu-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffbf34;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 52px 20px 70px;
  position: relative;
  overflow: hidden;
  margin-bottom: 90px;
  margin-top: 8px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  border: 32px solid rgba(248, 250, 252, 0.08);
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 15px;
  margin-bottom: 18px;
  opacity: 0.95;
}

.shop-btn {
  background: #ff9900;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.42);
}

/* AFFILIATE BANNER */
.affiliate-banner {
  padding: 8px 16px 16px;
  margin-top: -10px;
}

.affiliate-banner p {
  background: #fffbeb;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: #854d0e;
  border: 1px solid #fed7aa;
}

/* CATEGORY TILES */
.tiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: -46px; /* pull up under hero */
  padding: 0 10px 30px;
}

.tile {
  background: var(--card-bg);
  width: 135px;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s, box-shadow 0.18s, translate 0.18s;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tile-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.tile p {
  font-size: 13px;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
}

/* GENERIC SECTIONS */
.section {
  padding: 10px 16px 26px;
}

/* SECTION HEADERS */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header h2 {
  font-size: 22px;
}

.section-sub {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.see-all {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

/* PRODUCT CARD LAYOUT */
.card-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.card-row.wrap {
  flex-wrap: wrap;
  overflow-x: visible;
}

/* PRODUCT CARD */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 240px;
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.35);
  border-color: rgba(245, 158, 11, 0.8);
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* BADGE PILLS */
.pill {
  display: inline-block;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  margin: 8px 0 0 8px;
}

.pill-fast {
  background: var(--pill-blue);
}

.pill-discount {
  background: var(--pill-red);
  margin-left: 6px;
}

/* CONTENT */
.card-body {
  padding: 10px 10px 14px;
}

.card-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.rating-row {
  font-size: 12px;
  margin-bottom: 4px;
}

.stars {
  color: #fbbf24;
}

.rating-count {
  color: var(--text-muted);
  margin-left: 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price {
  font-size: 17px;
  font-weight: 700;
}

.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* BUTTONS */
.btn-add {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: none;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  color: #3f1c00;
  box-shadow: 0 10px 16px rgba(251, 191, 36, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(251, 191, 36, 0.65);
}

/* PROMO BANNERS */
.promo-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 6px 16px 26px;
}

.promo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 150px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-soft);
}

.promo1 {
  background: linear-gradient(120deg, #f97316, #b91c1c);
}
.promo2 {
  background: linear-gradient(120deg, #0ea5e9, #1e293b);
}
.promo3 {
  background: linear-gradient(120deg, #22c55e, #16a34a);
}

.promo-content {
  padding: 14px 16px 18px;
}

.promo-content h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.promo-content p {
  font-size: 13px;
  margin-bottom: 8px;
}

.promo-btn {
  background: #fbbf24;
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

/* FOOTER */
.footer {
  margin-top: 20px;
  background: #232f3e;
  color: #e5e7eb;
  font-size: 13px;
  padding-bottom: 60px; /* space for bottom nav */
}

.back-top {
  display: block;
  text-align: center;
  padding: 9px 0;
  background: #374151;
  color: #e5e7eb;
  text-decoration: none;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding: 20px 16px 14px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  margin-bottom: 5px;
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding: 9px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #131921;
}

.fb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-logo {
  font-size: 15px;
  font-weight: 700;
}

.fb-logo span {
  color: #ff9900;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin-right: 4px;
  font-size: 11px;
  text-decoration: none;
  color: #e5e7eb;
}

.fb-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-right a {
  color: #e5e7eb;
  text-decoration: none;
}

/* BOTTOM MOBILE NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #111827;
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.55);
}

.bottom-btn {
  background: transparent;
  border: none;
  color: #f9fafb;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  cursor: pointer;
}

.bottom-btn span {
  font-size: 10px;
}

/* RESPONSIVE */
.desktop-only {
  display: inline-flex;
}

@media (max-width: 900px) {
  .nav-center {
    display: none; /* hide big search bar on smaller screens */
  }
  .hamburger {
    display: inline-flex;
  }
  .menu-row {
    flex-wrap: wrap;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .menu-row.open {
    max-height: 160px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .desktop-only {
    display: none;
  }
}

@media (max-width: 600px) {
  .product-card {
    width: 75vw;
    max-width: 280px;
  }
  .section,
  .promo-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tiles {
    gap: 10px;
  }
  .tile {
    width: 45%;
  }
  .bottom-nav {
    display: flex;
  }
}


.tile {
  text-decoration: none;
  border: none;
}

.tile * {
  text-decoration: none;
}




.hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 300%;
  height: 100%;
  background: url('amazon-pics/gamecontroller\ .jpg') center/cover no-repeat,
              url('amazon-pics/Smart\ Watch\ Ultra.jpg') center/cover no-repeat,
              url('amazon-pics/4K\ Smart\ TV\ 55.jpg') center/cover no-repeat;
  animation: slide 10s linear infinite;
}

@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(-33%); }
  66% { transform: translateX(-66%); }
  100% { transform: translateX(0); }
}
