/* ============================================
   REDX GAMES — Main Stylesheet v2
   Font: Oskari G2 Medium (primary) + Poppins (body)
   Theme: Dark (default) + Light toggle
   Brand: #E50914 Red
============================================ */

/* ── Oskari G2 Medium (local TTF) ── */
@font-face {
  font-family: 'OskariG2';
  src: url('Oskari G2 Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Oskari G2 Regular (for Product Titles) ── */
@font-face {
  font-family: 'OskariG2Title';
  src: url('oskari-g2-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Poppins from Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --red: #E50914;
  --red-light: #FF2233;
  --red-dark: #B5070F;
  --red-glow: rgba(229, 9, 20, 0.3);
  --red-glow-strong: rgba(229, 9, 20, 0.55);

  /* Dark Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1d1d1d;
  --bg-nav: rgba(10, 10, 10, 0.97);
  --bg-glass: rgba(22, 22, 22, 0.85);
  --bg-input: #1c1c1c;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #555555;
  --text-accent: #E50914;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(229, 9, 20, 0.4);
  --border-hover: rgba(229, 9, 20, 0.7);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 6px 32px rgba(229, 9, 20, 0.22);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);

  --scrollbar-track: #111;
  --scrollbar-thumb: #E50914;

  --font-primary: 'OskariG2', 'Poppins', sans-serif;
  --font-body: 'Poppins', 'OskariG2', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

[data-theme="light"] {
  --bg-primary: #f4f5f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.96);
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-input: #eef2f6;
  --bg-overlay: rgba(15, 23, 42, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #E50914;

  --border: rgba(0, 0, 0, 0.1);
  --border-accent: rgba(229, 9, 20, 0.35);
  --border-hover: rgba(229, 9, 20, 0.7);

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-red: 0 6px 32px rgba(229, 9, 20, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);

  --scrollbar-track: #f1f5f9;
}

/* ─── Light Mode Component Overrides ─── */
[data-theme="light"] body {
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--text-primary);
}

[data-theme="light"] .navbar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-links a {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--red);
}

[data-theme="light"] .hamburger span {
  background: var(--text-primary);
}

[data-theme="light"] .mobile-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

[data-theme="light"] .hero-slide {
  background: #0f172a;
}

[data-theme="light"] .hero-title {
  color: #ffffff;
}

[data-theme="light"] .hero-desc {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero-price .original {
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

[data-theme="light"] .hero-arrow {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

[data-theme="light"] .cat-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

[data-theme="light"] .cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--red);
}

[data-theme="light"] .cat-title {
  color: var(--text-primary);
}

[data-theme="light"] .product-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .product-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.15);
}

[data-theme="light"] .product-info {
  background: var(--bg-card);
}

[data-theme="light"] .product-name {
  color: var(--text-primary);
}

[data-theme="light"] .product-delivery {
  color: var(--text-muted);
}

[data-theme="light"] .price-original {
  color: var(--text-muted);
}

[data-theme="light"] .cat-chip {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

[data-theme="light"] .cat-chip:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

[data-theme="light"] .cat-chip.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

[data-theme="light"] .sort-select,
[data-theme="light"] .price-input,
[data-theme="light"] .filter-box,
[data-theme="light"] .filter-group,
[data-theme="light"] .shop-sidebar {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="light"] .results-count {
  color: var(--text-secondary);
}

[data-theme="light"] .page-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

[data-theme="light"] .page-btn.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

[data-theme="light"] .detail-features-grid-custom,
[data-theme="light"] .sidebar-box {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feat-title {
  color: var(--text-primary);
}

[data-theme="light"] .feat-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .product-detail-title {
  color: var(--text-primary);
}

[data-theme="light"] .product-detail-tagline {
  color: var(--text-secondary);
}

[data-theme="light"] .recent-card {
  background: var(--bg-input);
  border-color: var(--border);
}

[data-theme="light"] .recent-title {
  color: var(--text-primary);
}

[data-theme="light"] .qty-btn,
[data-theme="light"] .qty-input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="light"] .buy-it-now-btn {
  background: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .buy-it-now-btn:hover {
  background: #1e293b;
}

[data-theme="light"] .search-overlay,
[data-theme="light"] .cart-overlay {
  background: var(--bg-overlay);
}

[data-theme="light"] .search-modal,
[data-theme="light"] .cart-panel {
  background: var(--bg-card);
  color: var(--text-primary);
}

[data-theme="light"] .search-input {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="light"] .search-result-item,
[data-theme="light"] .cart-item {
  background: var(--bg-input);
  border-color: var(--border);
}

[data-theme="light"] .search-result-name,
[data-theme="light"] .cart-item-name {
  color: var(--text-primary);
}

[data-theme="light"] footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .footer-brand-title,
[data-theme="light"] .footer-col-title {
  color: #ffffff;
}

[data-theme="light"] .footer-links a {
  color: #94a3b8;
}

[data-theme="light"] .footer-links a:hover {
  color: #ffffff;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: normal;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 500;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-primary);
}

input,
select,
textarea {
  font-family: var(--font-primary);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;

  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section-title span {
  color: var(--red);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 14px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid var(--border-accent);
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  z-index: 999;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border-accent);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .brand {
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
}

.logo-text .tagline {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 28px);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--red-light);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #fff;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(229, 9, 20, 0.06);
  padding-left: 18px;
}

/* ─── HERO ─── */
.hero {
  margin-top: 68px;
  position: relative;
  overflow: hidden;
  height: clamp(460px, 78vh, 680px);
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 50%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 18px;
  animation: slideInLeft 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  animation: slideInLeft 0.7s ease 0.1s both;
}

.hero-title span {
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow-strong);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  line-height: 1.6;
  font-family: var(--font-body);
  animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  animation: slideInLeft 0.8s ease 0.25s both;
}

.hero-price .original {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
}

.hero-price .sale {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
}

.hero-price .save-badge {
  padding: 4px 12px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: slideInLeft 0.9s ease 0.3s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--red);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--red-light);
  box-shadow: 0 6px 25px var(--red-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* Hero Nav */
.hero-nav {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--red-glow);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

/* ─── CATEGORY STRIP ─── */
.categories-strip {
  padding: 28px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.cat-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.cat-name {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cat-card:hover .cat-name {
  color: var(--red);
}

/* ─── PRODUCT GRID — 4 COLUMNS ─── */
.products-section {
  padding: 56px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── PRODUCT CARD (matching reference style) ─── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-red);
}

/* Product Image — 3:4 ratio */
.product-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.04);
}

.product-img .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%);
  color: var(--text-muted);
  font-size: 3rem;
}

.product-img .placeholder-img .ph-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Save Badge — top right of image */
.save-badge-img {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 10px;
  border-bottom-left-radius: 6px;
}

/* Wishlist button */
.wishlist-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition: var(--transition-fast);
}

.wishlist-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Product Info */
.product-info {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
}

.product-name {
  font-family: 'OskariG2Title', sans-serif;
  font-size: 1.12rem;
  font-weight: normal;

  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-delivery {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-delivery::before {
  content: '⚡';
}

/* Platform thumbnails row */
.product-platforms {
  display: flex;
  align-items: center;
  gap: 4px;
}

.platform-thumb {
  font-family: 'Poppins', sans-serif;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.platform-thumb.pc {
  background: #1b2838;
  color: #c7d5e0;
  border-color: #2a475e;
}

.platform-thumb.sub {
  background: #107c10;
  color: #fff;
  border-color: #0e6b0e;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.price-original {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.price-sale {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Add to Cart Button */
.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 4px;
  margin-top: 8px;
  border: none;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.add-to-cart-btn:hover {
  background: var(--red-light);
  box-shadow: 0 4px 16px var(--red-glow);
}

/* ─── FEATURED BANNERS ─── */
.featured-section {
  padding: 56px 0;
  background: var(--bg-secondary);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.featured-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #1a0000, #0a0a0a);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
  z-index: 1;
}

.featured-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.featured-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.featured-card-title {
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.featured-card:hover {
  transform: scale(1.01);
}

/* ─── STATS BAR ─── */
.stats-bar {
  padding: 36px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 18px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  padding: 56px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  animation: scrollLeft 45s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.testimonial-card:hover {
  border-color: var(--border-accent);
}

.testimonial-stars {
  color: #FFD700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.author-location {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── WHY US ─── */
.why-us-section {
  padding: 56px 0;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-body);
}

/* ─── NEWSLETTER ─── */
.newsletter-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--red-dark) 0%, #1a0000 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.14) 0%, transparent 70%);
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.newsletter-sub {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.newsletter-form {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
}

.newsletter-form button {
  padding: 13px 26px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: var(--transition-fast);
  font-family: var(--font-primary);
}

.newsletter-form button:hover {
  background: var(--red-light);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  padding-bottom: 36px;
}

.footer-brand .logo-text .brand {
  font-size: 1.7rem;
}

.footer-about {
  color: var(--text-secondary);
  font-size: 0.83rem;
  line-height: 1.7;
  margin: 14px 0 18px;
  font-family: var(--font-body);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 12px var(--red-glow);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links li a {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.footer-links li a::before {
  content: '›';
  color: var(--red);
  font-weight: bold;
}

.footer-links li a:hover {
  color: var(--red);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-icon {
  width: 34px;
  height: 34px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  color: var(--red);
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-family: var(--font-body);
}

.contact-value a {
  color: var(--text-secondary);
}

.contact-value a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.footer-copyright span {
  color: var(--red);
}

.footer-payment {
  display: flex;
  gap: 7px;
  align-items: center;
}

.payment-icon {
  padding: 4px 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ─── SHOP PAGE ─── */
.shop-page-header {
  margin-top: 68px;
  padding: 44px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.shop-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(229, 9, 20, 0.07) 0%, transparent 70%);
}

.shop-page-header .page-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.page-title span {
  color: var(--red);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .current {
  color: var(--red);
}

/* Shop Layout */
.shop-layout {
  display: block;
  padding: 20px 0 56px;
}

/* Sidebar */
.shop-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 14px;
}

.filter-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.filter-option:hover {
  color: var(--red);
}

.filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
}

.price-range-inputs {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.price-input {
  flex: 1;
  padding: 8px 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: var(--font-primary);
}

.price-input:focus {
  outline: none;
  border-color: var(--border-accent);
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-count {
  font-size: 0.83rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.results-count strong {
  color: var(--text-primary);
}

.sort-select {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.83rem;
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.sort-select:focus {
  outline: none;
  border-color: var(--border-accent);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 36px 0 18px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.83rem;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.page-btn:hover,
.page-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-primary);
}

.chip:hover,
.chip.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ─── CART SIDEBAR ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 390px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-close {
  width: 34px;
  height: 34px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cart-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-item-img {
  width: 52px;
  height: 69px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-input);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-family: 'OskariG2Title', sans-serif;
  font-size: 0.88rem;
  font-weight: normal;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red);
}

.cart-item-remove {
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 3px;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-empty-icon {
  font-size: 3rem;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-total-label {
  font-size: 0.83rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
}

.cart-total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.checkout-btn:hover {
  background: var(--red-light);
  box-shadow: var(--shadow-red);
}

/* ─── SEARCH OVERLAY ─── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.87);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 100%;
  max-width: 580px;
  margin: 0 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 0 14px;
  box-shadow: var(--shadow-red);
}

.search-input-wrap input {
  flex: 1;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-family: var(--font-primary);
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.search-input-wrap input:focus {
  outline: none;
}

.search-input-wrap button {
  background: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.search-input-wrap button:hover {
  color: var(--red);
}

.search-results {
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-img {
  width: 38px;
  height: 51px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg-input);
  flex-shrink: 0;
}

.search-result-name {
  font-family: 'OskariG2Title', sans-serif;
  font-size: 0.92rem;
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.search-result-price {
  font-size: 0.83rem;
  color: var(--red);
  font-weight: 700;
}

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  min-width: 268px;
  animation: slideInRight 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.success {
  border-left: 4px solid #00c851;
}

.toast.error {
  border-left: 4px solid var(--red);
}

.toast.info {
  border-left: 4px solid #2979ff;
}

.toast-icon {
  font-size: 1rem;
}

.toast-msg {
  font-size: 0.83rem;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-body);
}

.toast.fade-out {
  opacity: 0;
  transform: translateX(18px);
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  animation: pulseGreen 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ─── PRODUCT DETAIL PAGE ─── */
.product-detail-wrap {
  margin-top: 68px;
  padding: 28px 0 60px;
}

.product-detail-wrap .container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Product layout — Centered 2 Columns */
.product-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 44px;
  align-items: start;
  margin: 0 auto;
  max-width: 1240px;
}

/* Product image 3:4 Aspect Ratio */
.product-main-img {
  position: sticky;
  top: 88px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111;
  border: 1px solid var(--border);
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product info */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-detail-title {
  font-family: 'OskariG2', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.product-detail-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  font-style: italic;
  font-family: var(--font-body);
}

/* Feature badges */
.detail-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.detail-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.detail-feature-badge .badge-icon {
  font-size: 0.95rem;
}

.detail-feature-sep {
  color: var(--border);
  font-size: 0.8rem;
}

/* Price block */
.detail-price-block {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.detail-original {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.detail-sale {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
}

.detail-save {
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 3px;
}

/* Platform tags */
.detail-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-platform-tag {
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.detail-platform-tag.pc {
  background: #1b2838;
  border-color: #2a475e;
  color: #c7d5e0;
}

.detail-platform-tag.sub {
  background: #107c10;
  border-color: #0e6b0e;
  color: #fff;
}

/* Quantity + Add to cart */
.detail-atc-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 38px;
  height: 46px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-primary);
}

.qty-btn:hover {
  background: var(--red);
  color: #fff;
}

/* Remove browser native number input spin buttons */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
}

.qty-input {
  width: 44px;
  height: 46px;
  text-align: center;
  background: var(--bg-input);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-primary);
  appearance: textfield;
  -webkit-appearance: textfield;
}

.qty-input:focus {
  outline: none;
}

.detail-atc-btn {
  flex: 1;
  height: 46px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-atc-btn:hover {
  background: var(--red-light);
  box-shadow: var(--shadow-red);
}

.detail-buy-now {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.detail-buy-now:hover {
  color: var(--red);
}

/* 6-feature grid */
.detail-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.detail-feat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-feat-icon {
  font-size: 1.3rem;
}

.detail-feat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-feat-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.4;
}

/* Bundle deal */
.bundle-section {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-top: 3px solid var(--red);
}

.bundle-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bundle-item:last-child {
  margin-bottom: 0;
}

.bundle-item:hover {
  border: 1px solid var(--border-accent);
}

.bundle-item img,
.bundle-item .bi-ph {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.bundle-item .bi-ph {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bundle-item-info {
  flex: 1;
}

.bundle-item-name {
  font-family: 'OskariG2Title', sans-serif;
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bundle-item-price {
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 800;
}

.bundle-item-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

/* Responsive breakpoints for product detail layout */
@media (max-width: 1200px) {
  .product-layout {
    grid-template-columns: 460px 1fr;
  }

  .product-right-sidebar {
    display: none;
  }
}

@media (max-width: 850px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-main-img {
    max-width: 480px;
    margin: 0 auto;
  }
}

.detail-top-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 12px;
}

.detail-top-badges::-webkit-scrollbar {
  display: none;
}

.pill-blue-badge,
.pill-green-badge {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-red-badge {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff3344;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-feature-pills-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 14px;
}

.detail-feature-pills-row::-webkit-scrollbar {
  display: none;
}

.detail-feature-pills-row .pill-green-badge,
.detail-feature-pills-row .pill-red-badge {
  font-size: 0.62rem;
  padding: 2px 7px;
  gap: 3px;
}

.detail-save-blue,
.detail-save-red {
  font-family: 'Poppins', sans-serif;
  padding: 4px 10px;
  background: #E50914;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-platform-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 10px;
}

.detail-platform-pills::-webkit-scrollbar {
  display: none;
}

.tag-pill-blue,
.tag-pill-green {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 16px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-pill-red {
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 16px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ff3344;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-atc-btn-blue,
.detail-atc-btn-red {
  flex: 1;
  height: 46px;
  background: #E50914;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-atc-btn-blue:hover,
.detail-atc-btn-red:hover {
  background: #ff1e27;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.5);
}

.buy-it-now-btn {
  width: 100%;
  height: 46px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ffffff;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-it-now-btn:hover {
  background: #e6e6e6;
}

.detail-features-grid-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .detail-features-grid-custom {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-feat-item-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feat-blue-icon,
.feat-green-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00e676;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.feat-red-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E50914;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.feat-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

/* Bundle Section Custom */
.bundle-section-custom {
  margin-top: 24px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bundle-title-custom {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.bundle-card-white {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.bundle-card-white .bc-check {
  width: 18px;
  height: 18px;
  accent-color: #E50914;
  cursor: pointer;
}

.bundle-card-white .bc-img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.bundle-card-white .bc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
  font-family: 'OskariG2Title', sans-serif;
}

.bundle-card-white .bc-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: #E50914;
}

.bundle-card-white .bc-original {
  font-size: 0.78rem;
  color: #888888;
  text-decoration: line-through;
  margin-left: 6px;
}

.bundle-card-white .bc-original {
  font-size: 0.78rem;
  color: #888888;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Right Sidebar */
.product-right-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.sidebar-box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-right-sidebar .products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  grid-template-columns: none !important;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.recent-card:hover {
  border-color: var(--border-accent);
  transform: translateX(3px);
}

.recent-thumb {
  width: 44px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-info {
  flex: 1;
  overflow: hidden;
}

.recent-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'OskariG2Title', sans-serif;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.recent-orig {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.recent-sale {
  font-size: 0.8rem;
  font-weight: 800;
  color: #00e676;
}

.recent-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'Poppins', sans-serif;
}

.remove-all-btn {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.remove-all-btn:hover {
  background: rgba(0, 230, 118, 0.18);
}

/* ─── SPINNER ─── */
.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 36px auto;
}

/* ─── ANIMATIONS ─── */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(26px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@keyframes pulseGreen {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4)
  }

  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width:1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-layout {
    grid-template-columns: 320px 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width:1024px) {
  .shop-layout {
    grid-template-columns: 230px 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid var(--border);
  }
}

@media (max-width:900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-main-img {
    position: static;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 3/4;
    margin: 0 auto;
  }

  .detail-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: clamp(360px, 68vh, 520px);
  }

  .hero-content {
    left: 22px;
    max-width: calc(100% - 44px);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cart-panel {
    width: 100vw;
  }

  .product-detail-wrap {
    padding: 16px 0 40px;
    margin-top: 54px;
  }

  .product-detail-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
}

@media (max-width:480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .detail-atc-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .qty-wrap {
    flex-shrink: 0;
  }

  .detail-atc-btn,
  .detail-atc-btn-red {
    flex: 1;
    width: auto;
    height: 46px;
    font-size: 0.85rem;
  }

  .product-detail-title {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .detail-price-block {
    padding: 14px;
    gap: 12px;
  }

  .detail-sale {
    font-size: 2rem;
  }
}