/* ============================================
   JATEKSHOP.EU REDESIGN 2026 — Shared Styles
   "Playful Premium" Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --magenta: #e4007c;
  --magenta-light: #fce4f0;
  --magenta-dark: #b8005f;
  --green: #16a34a;
  --green-hover: #15803d;
  --green-light: #dcfce7;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e5e7eb;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --red: #ef4444;
  --orange: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --header-height: 72px;
  --trust-height: 40px;
  --nav-height: 48px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

/* Prevent zoom on all elements */
* {
  touch-action: pan-x pan-y;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection in form inputs */
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  overflow-x: clip;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   FILTER SIDEBAR (sticky)
   ===================== */
.badge-layout,
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 768px) {
  .badge-layout,
  .category-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--magenta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  font-weight: 800;
  font-family: var(--font-display);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--magenta); }

/* Search */
.search-wrapper {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-bar {
  width: 100%;
  height: 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 48px 0 20px;
  font-size: 15px;
  background: var(--bg);
  transition: var(--transition);
  color: var(--text);
}

.search-bar:focus {
  outline: none;
  border-color: var(--magenta);
  background: white;
  box-shadow: 0 0 0 4px var(--magenta-light);
}

.search-bar::placeholder { color: var(--text-muted); }

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--magenta);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.search-btn:hover { background: var(--magenta-dark); }

/* Auto-suggest dropdown */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: none;
  z-index: 200;
  overflow: hidden;
}

.search-wrapper:focus-within .search-suggest { display: block; }

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.suggest-item:hover { background: var(--bg); }

.suggest-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--magenta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.suggest-info { flex: 1; min-width: 0; }
.suggest-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-price { font-size: 13px; color: var(--magenta); font-weight: 600; }
.suggest-label { padding: 8px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg); }

/* Header icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  color: var(--text);
  font-size: 20px;
}

.header-icon-btn:hover { background: var(--bg); }

.header-icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--magenta);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* =====================
   TRUST BAR
   ===================== */
.trust-bar {
  color: var(--text);
  height: var(--trust-height);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.trust-bar-track {
  display: flex;
  align-items: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-item-dup { display: none; }

.trust-item .trust-icon { font-size: 14px; }
.trust-item strong { font-weight: 600; }

@media (max-width: 768px) {
  .trust-bar { padding: 0; justify-content: flex-start; }
  .trust-bar-track {
    animation: trustScroll 20s linear infinite;
    gap: 24px;
  }
  .trust-item-dup { display: flex; }
}

@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================
   QUICK FILTER BUTTONS
   ===================== */
.quick-filters-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}
.quick-filters {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}
.quick-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  background: white;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  flex: 1;
}
.quick-filter-btn i { font-size: 11px; color: var(--text-muted); }
.quick-filter-btn:hover {
  background: var(--bg);
  color: var(--magenta);
  border-color: var(--magenta);
}
.quick-filter-btn:hover i { color: var(--magenta); }

@media (max-width: 768px) {
  .quick-filters-wrapper { padding: 0; }
  .quick-filters { padding: 10px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .quick-filter-btn { padding: 6px 10px; font-size: 11px; flex: none; }
  .quick-filter-btn i { font-size: 10px; }
}

/* =====================
   NAVIGATION
   ===================== */
.main-nav {
  background: transparent;
  border-bottom: none;
  position: relative;
  z-index: 90;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 4px;
}

.nav-link {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--magenta); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.highlight {
  color: var(--red);
  font-weight: 600;
}

/* Mega Menu */
.nav-item { position: relative; height: 100%; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 160px);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  pointer-events: none;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-card {
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.mega-card:hover { background: var(--bg); }

.mega-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.mega-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* =====================
   PRODUCT CARD
   ===================== */
.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  z-index: 0;
  min-width: 0; /* Prevents grid items from overflowing */
}

.product-card:hover,
.product-card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  z-index: 100;
}

.margin-info-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(22, 163, 74, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  z-index: 10;
  cursor: help;
  transition: transform 0.2s, background 0.2s;
}
.margin-info-icon:hover {
  transform: scale(1.1);
  background: rgba(22, 163, 74, 1);
}
.margin-info-icon-sm {
  width: 18px;
  height: 18px;
  font-size: 10px;
  top: 4px;
  right: 4px;
}
.margin-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #1a1a2e;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  pointer-events: none;
}
.margin-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 8px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1a1a2e;
}
.margin-info-icon:hover .margin-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.margin-info-icon:hover .margin-tooltip[style*="translateX"] {
  transform: translateX(-50%) translateY(0);
}

/* Superscript info icon */
.margin-info-sup {
  position: relative;
  font-size: 10px;
  color: #16a34a;
  cursor: help;
  margin-left: 2px;
}
.margin-tooltip-inline {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #1a1a2e;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.margin-tooltip-inline::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a2e transparent transparent transparent;
}
.margin-info-sup:hover .margin-tooltip-inline {
  opacity: 1;
  visibility: visible;
}
.margin-info-sup:hover {
  z-index: 9999;
}

/* First order discount superscript */
.price-with-discount {
  display: flex;
  flex-direction: column-reverse;
}
@media (max-width: 768px) {
  .price-with-discount {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}
.first-order-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b5cf6;
  cursor: help;
  position: relative;
}
@media (min-width: 769px) {
  .first-order-label {
    margin-bottom: 4px;
  }
}
.first-order-label-percent {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.first-order-label-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.first-order-label:hover .first-order-tooltip {
  opacity: 1;
  visibility: visible;
}
.first-order-label:hover {
  z-index: 9999;
}
.first-order-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #1a1a2e;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  min-width: 220px;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.first-order-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #1a1a2e transparent transparent transparent;
}

/* Mobile */
@media (max-width: 768px) {
  .first-order-label {
    font-size: 13px;
    margin-left: 8px;
  }
  .first-order-tooltip {
    min-width: 180px;
    font-size: 12px;
  }
}

/* Régi tooltip stílus - eltávolítva */
.first-order-sup {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* First order badge - régi tooltip törölve */

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card-image .placeholder-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}
.product-badge.badge-link {
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.product-badge.badge-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.badge-sale { background: var(--red); color: white; }
.badge-new { background: var(--blue); color: white; }
.badge-hot { background: var(--orange); color: white; }
.badge-bestseller { background: #d4a017; color: white; }
.badge-trending { background: #e8590c; color: white; }
.badge-toprated { background: #2b8a3e; color: white; }
.badge-outlet { background: #6b7280; color: white; }
.badge-own-import { background: var(--magenta); color: white; font-size: 10px; }

/* Dynamic product badges from database */
.badge-reklamos-jatekok { background: linear-gradient(135deg, #dc2626, #b91c1c); color: white; font-weight: 600; }
.badge-eco-termekek { background: linear-gradient(135deg, #16a34a, #15803d); color: white; }
.badge-bomba { background: linear-gradient(135deg, #ea580c, #c2410c); color: white; font-weight: 600; }
.badge-kiemelt { background: linear-gradient(135deg, #eab308, #ca8a04); color: #1a1a2e; font-weight: 600; }
.badge-black-friday { background: linear-gradient(135deg, #18181b, #27272a); color: white; font-weight: 600; }
.badge-karacsonyi { background: linear-gradient(135deg, #dc2626, #15803d); color: white; }
.badge-karacsonyig-odaer { background: linear-gradient(135deg, #059669, #047857); color: white; }

/* Multiple badges stacking */
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 2;
  cursor: pointer;
  font-size: 16px;
}

.product-wishlist:hover { background: var(--magenta-light); transform: scale(1.1); }

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.product-card-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  color: #f59e0b;
}

.stars { color: var(--orange); font-size: 13px; display: inline-flex; gap: 2px; align-items: center; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-card-rating .far, .product-rating-row .far { color: #d1d5db; }

.product-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  margin-top: auto;
  overflow: visible;
  position: relative;
}

.price-current {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-cart {
  width: 100%;
  height: 40px;
  background: var(--magenta);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  font-family: var(--font-display);
}

.btn-cart:hover { background: var(--magenta-dark); transform: scale(1.02); }

/* Product card cart row with qty selector (desktop only) */
.product-card-cart-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.product-card-cart-row .btn-cart {
  flex: 1;
  min-width: 0;
}
.product-card-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  height: 40px;
}
.qty-btn-sm {
  width: 28px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s;
}
.qty-btn-sm:hover {
  background: var(--bg);
}
.qty-input-sm {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: none;
  font-family: var(--font-display);
  -moz-appearance: textfield;
}
.qty-input-sm::-webkit-outer-spin-button,
.qty-input-sm::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input-sm:focus {
  outline: none;
  background: var(--bg);
  border-radius: 4px;
}
@media (max-width: 768px) {
  .product-card-qty { display: none; }
  .product-card-cart-row .btn-cart { width: 100%; }
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 8px;
}

.product-stock .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* =====================
   SECTION TITLES
   ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--magenta);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-link:hover { gap: 8px; }

/* =====================
   PRODUCT GRID
   ===================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* =====================
   FOOTER
   ===================== */

/* PROMO BANNERS */
.promo-banners {
  margin-top: 24px;
  margin-bottom: 8px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.promo-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}
.promo-card:hover img {

}
@media (max-width: 768px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .promo-grid { grid-template-columns: 1fr; gap: 8px; }
}

.site-footer {
  background: #e2e2e8;
  color: var(--text);
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

/* Footer links section */
.footer-links {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.footer-links-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Desktop: expandable row spans 3 columns, displays as subgrid */
.footer-expandable-row {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li {
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--magenta); }

/* Footer middle - social & payment */
.footer-middle {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.footer-middle-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-middle-inner h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-middle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-payment-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social-icons {
  display: flex;
  gap: 6px;
}
.footer-social-icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.footer-social-icons a:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(228,0,124,0.05);
}
.footer-app-links {
  display: flex;
  gap: 8px;
}
.footer-app-links .app-badge img { border-radius: 6px; }

/* Footer bottom */
.footer-bottom {
  background: #1a1a2e;
  padding: 16px 0;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-flags a {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-flags a:hover {
  opacity: 1;
  transform: scale(1.1);
}
.footer-flags .fi {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.footer-legal {
  color: white;
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.9;
}
.footer-legal p { margin: 0; }

/* Footer expandable lists (mobile) */
.footer-expand-btn {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.footer-expand-btn:hover { background: rgba(0,0,0,0.12); }

/* Footer info column (contact & shopping info stacked on desktop) */
.footer-col-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-info-section h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.footer-info-section ul { list-style: none; padding: 0; margin: 0; }
.footer-info-section li { margin-bottom: 4px; }
.footer-info-section a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-info-section a:hover { color: var(--magenta); }
.footer-expand-btn .expand-less { display: none; }
.footer-col-expandable.expanded .footer-expand-btn .expand-more { display: none; }
.footer-col-expandable.expanded .footer-expand-btn .expand-less { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .footer-expand-btn { display: inline-flex; }
  .footer-hidden-mobile { display: none; }
  .footer-col-expandable.expanded .footer-hidden-mobile { display: list-item; }

  /* Footer expandable columns side by side on mobile */
  .footer-expandable-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  .footer-expandable-row .footer-col-expandable {
    min-width: 0;
  }
  .footer-expandable-row .footer-col-expandable h4 {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .footer-expandable-row .footer-col-expandable li {
    margin-bottom: 2px;
  }
  .footer-expandable-row .footer-col-expandable a {
    font-size: 11px;
  }
  .footer-expandable-row .footer-expand-btn {
    font-size: 10px;
    padding: 4px 8px;
    margin-top: 6px;
  }

  /* Footer info column: side by side on mobile */
  .footer-col-info {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-info-section {
    min-width: 0;
  }
  .footer-info-section h4 {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .footer-info-section li {
    margin-bottom: 2px;
  }
  .footer-info-section a {
    font-size: 11px;
  }
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-icon {
  height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}

.country-flags {
  display: flex;
  gap: 6px;
  font-size: 18px;
}

/* =====================
   MOBILE BOTTOM NAV
   ===================== */
.mobile-bottom-container {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  box-sizing: border-box;
}

.mobile-nav {
  background: white;
  border-top: 1px solid var(--border);
  padding: 4px env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 4px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.mobile-nav-item.active { color: var(--magenta); }
.mobile-nav-item .nav-icon { font-size: 18px; }

/* =====================
   SOCIAL PROOF TOAST
   ===================== */
.social-proof-toast {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 150;
  max-width: 320px;
  animation: toastSlide 0.5s ease 3s both, toastFade 0.5s ease 8s both;
  border-left: 3px solid var(--green);
}

.toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--magenta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.toast-text { font-size: 13px; line-height: 1.4; }
.toast-text strong { font-weight: 600; }
.toast-time { font-size: 11px; color: var(--text-muted); }

@keyframes toastSlide {
  from { transform: translateX(-120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFade {
  to { opacity: 0; transform: translateX(-20px); }
}

/* =====================
   MINI CART SLIDEOUT
   ===================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-slideout {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 301;
  transform: translateX(100%);
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-slideout.active { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.cart-close:hover { background: var(--bg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.cart-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--text); text-decoration: none; display: block; }
.cart-item-name:hover { color: var(--magenta); }
.cart-item-img a { display: block; }
.cart-item-img a:hover { opacity: 0.8; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--magenta); }
.cart-item-qty { font-size: 12px; color: var(--text-muted); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total-label { font-size: 16px; font-weight: 500; }

.cart-total-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.btn-checkout {
  width: 100%;
  height: 48px;
  background: var(--magenta);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-checkout:hover { background: var(--magenta-dark); }

.btn-continue-shopping {
  width: 100%;
  height: 44px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-display);
  transition: var(--transition);
  cursor: pointer;
  margin-top: 8px;
}
.btn-continue-shopping:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text-muted);
}

/* =====================
   RESPONSIVE
   ===================== */

/* PROMOTIONAL BANNERS - responsive */
@media (max-width: 768px) {
  .promo-banners table {
    display: block !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
  }
  .promo-banners table tbody {
    display: block !important;
  }
  .promo-banners table tr {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .promo-banners table td {
    display: block !important;
    width: 100% !important;
  }
  .promo-banners table td img {
    border-radius: 8px;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-links-inner { grid-template-columns: 1fr; }
  .footer-expandable-row { grid-column: span 1; }
  .mega-menu { grid-template-columns: repeat(3, 140px); }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-bar { font-size: 11px; }
  .header-inner { gap: 12px; }
  .logo-text { display: none; }
  .search-bar { height: 40px; font-size: 14px; }
  .search-btn { width: 32px; height: 32px; }
  .main-nav { display: none; }
  /* Mobile bottom container - ALWAYS visible on mobile */
  .mobile-bottom-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Compact state - icons only, text hidden */
  .mobile-nav.compact {
    padding: 4px 0 env(safe-area-inset-bottom, 4px) !important;
  }
  .mobile-nav.compact .mobile-nav-item {
    padding: 6px 4px !important;
    gap: 0 !important;
  }
  .mobile-nav.compact .nav-text {
    display: none !important;
  }

  .section-title { font-size: 20px; }
  .footer-links-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-expandable-row { grid-column: span 1; }
  .footer-bottom-inner { padding: 0 16px; max-width: 100%; box-sizing: border-box; }
  .payment-icons { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .payment-icon { height: 24px; padding: 0 6px; font-size: 10px; }
  body { padding-bottom: 60px; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 16px; }
  .mega-menu { display: none; }

  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 13px; }
  .price-current { font-size: 17px; }
  .btn-cart { height: 36px; font-size: 13px; }
}

@media (max-width: 480px) {
  .header-icon-btn:nth-child(1) { display: none; }
  .scroll-row .product-card { min-width: 200px; }
  .product-card-body { padding: 10px; }
  .product-card-name { font-size: 12px; }
  .price-current { font-size: 15px; }
  .price-original { font-size: 12px; }
  .btn-cart { height: 34px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 360px) {
  .scroll-row .product-card { min-width: 180px; }
  .product-card-body { padding: 8px; }
  .product-card-name { font-size: 11px; }
  .price-current { font-size: 14px; }
  .price-original { font-size: 11px; }
  .btn-cart { height: 32px; font-size: 11px; }
  .product-grid { gap: 8px; }
}

/* =====================
   UTILITY CLASSES
   ===================== */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-row .product-card {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.page-section {
  padding: 40px 0;
}

.page-section + .page-section {
  padding-top: 0;
}

/* Placeholder images with gradient backgrounds */
.placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; }
.ph-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.ph-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.ph-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.ph-yellow { background: linear-gradient(135deg, #fef9c3, #fde68a); }
.ph-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.ph-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.ph-red { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.ph-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }

/* Font Awesome icon helpers */
.placeholder > i { color: rgba(0,0,0,0.12); position: relative; z-index: 1; }
.suggest-thumb > i { color: rgba(0,0,0,0.35); }
.cart-item-img > i { color: rgba(0,0,0,0.15); }
.country-flag-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  min-width: 24px;
  height: 18px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
}


/* OWN IMPORT BADGE */
.badge-own-import { background: var(--magenta); color: white; }
.badge-own-import-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--magenta);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Trending tooltip */
.trending-info-sup {
  position: relative;
  font-size: 10px;
  color: #ea580c;
  cursor: help;
  margin-left: 2px;
}
.trending-tooltip-inline {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #1a1a2e;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  min-width: 260px;
  max-width: 340px;
  white-space: normal;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.trending-tooltip-inline::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a2e transparent transparent transparent;
}
.trending-info-sup:hover .trending-tooltip-inline {
  opacity: 1;
  visibility: visible;
}
.trending-info-sup:hover {
  z-index: 9999;
}
