/* ============================================
   THOMAS SUPER STORE — Main Stylesheet
   Premium Thomas & Friends Online Store
   ============================================ */

/* === VARIABLES === */
:root {
  --thomas-red: #EE0024;
  --thomas-red-dark: #CC0020;
  --thomas-red-light: #FFF0F0;
  --thomas-blue: #0057B8;
  --thomas-blue-dark: #003D75;
  --thomas-blue-light: #E8F4FD;
  --yellow: #FFCD00;
  --yellow-dark: #E5B800;
  --yellow-light: #FFF8E1;
  --cyan: #6AD1E3;
  --cyan-light: #E0F7FA;
  --sodor-green: #4CAF50;
  --sodor-green-light: #E8F5E9;

  --bg: #FFFFFF;
  --bg-alt: #FAF9F5;
  --bg-dark: #1E1E2E;
  --text: #2D2D3A;
  --text-light: #5A5A6E;
  --text-muted: #8E8E9E;
  --border: #E0E4EA;
  --border-light: #F0F2F5;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 2px 16px rgba(45,45,58,0.07);
  --shadow-lg: 0 12px 40px rgba(45,45,58,0.10);
  --shadow-hover: 0 16px 48px rgba(45,45,58,0.14);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --max-width: 1280px;
  --header-height: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 20px 20px, rgba(0,87,184,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--thomas-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--thomas-red-dark); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.section-title {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.text-center .section-title { display: block; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--thomas-red), var(--yellow));
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.8;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(238,0,36,0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--thomas-red-dark) 0%, var(--thomas-red) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(238,0,36,0.45);
}
.btn-secondary {
  background: #fff;
  color: var(--thomas-red);
  border: 2px solid var(--thomas-red);
  position: relative;
  overflow: hidden;
}
.btn-secondary:hover {
  background: var(--thomas-red-light);
  color: var(--thomas-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(238,0,36,0.15);
}
.btn-yellow {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFD740 100%);
  color: #333;
  box-shadow: 0 4px 20px rgba(255,205,0,0.3);
  position: relative;
  overflow: hidden;
}
.btn-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}
.btn-yellow:hover::before {
  left: 100%;
}
.btn-yellow:hover {
  background: linear-gradient(135deg, var(--yellow-dark) 0%, var(--yellow) 100%);
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,205,0,0.45);
}
.btn-red {
  background: var(--thomas-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(238,0,36,0.3);
}
.btn-red:hover {
  background: var(--thomas-red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: var(--header-height);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--thomas-blue);
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--thomas-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.logo span { color: var(--thomas-red); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav a:hover { color: var(--thomas-red); }
.nav a.active { color: var(--thomas-red); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--thomas-red);
  border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 8px 16px;
  gap: 8px;
  border: 1px solid transparent;
  transition: border var(--transition);
  width: 240px;
}
.header-search:focus-within { border-color: var(--cyan); background: #fff; }
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--text);
}
.header-search svg { color: var(--text-muted); flex-shrink: 0; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--bg-alt); }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--thomas-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  padding: 8px;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--thomas-red);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
}
.announcement-bar strong { color: var(--yellow); }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0062CC 0%, var(--thomas-blue) 25%, var(--thomas-blue-dark) 50%, #002855 75%, #001A3A 100%);
  background-size: 300% 300%;
  animation: heroGradientShift 12s ease-in-out infinite;
  color: #fff;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,214,0,0.18) 0%, rgba(255,214,0,0.05) 40%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 8s ease-in-out infinite;
}
@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238,0,36,0.12) 0%, rgba(106,209,227,0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat 10s ease-in-out infinite reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  color: #fff;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  text-shadow: 0 2px 40px rgba(0,0,0,0.3), 0 0 80px rgba(0,87,184,0.2);
  letter-spacing: -0.03em;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255,205,0,0.4), 0 2px 20px rgba(0,0,0,0.2);
}
.hero-text p {
  font-size: 1.2rem;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 5rem;
  border: 2px dashed rgba(255,255,255,0.2);
}
.hero-image-placeholder span {
  font-size: 1rem;
  opacity: 0.6;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 16px;
}
.hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, var(--yellow) 0%, rgba(255,205,0,0.3) 100%);
  border-radius: 2px;
}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255,205,0,0.3);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* === TRUST BAR === */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
  position: relative;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(0,87,184,0.008) 20px,
      rgba(0,87,184,0.008) 21px
    );
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}
.trust-item svg {
  color: var(--sodor-green);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan-light) 0%, #D4F1F9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(106,209,227,0.15);
}

/* === CATEGORIES === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(238,0,36,0.03) 0%, rgba(0,87,184,0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.category-card:hover::before {
  opacity: 1;
}
.category-card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  width: 20px;
  height: 20px;
  transition: all 0.35s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EE0024' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") no-repeat center/contain;
}
.category-card:hover::after {
  opacity: 0.6;
  transform: translateX(-50%) translateY(0);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(238,0,36,0.1);
  border-color: transparent;
  background: #fff;
  color: var(--thomas-red);
}
.category-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--cyan-light) 0%, #D4F1F9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--cyan);
}
.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(238,0,36,0.3);
}
.category-card:hover .category-icon span { filter: brightness(10); }
.category-name { font-weight: 700; font-size: 0.95rem; position: relative; z-index: 1; }
.category-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; position: relative; z-index: 1; }

/* === PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--thomas-red), var(--yellow), var(--cyan), var(--thomas-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(45,45,58,0.12);
  color: var(--text);
  border-color: transparent;
}
.product-image {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new { background: var(--yellow); color: #333; }
.badge-sale { background: var(--thomas-red); color: #fff; }
.badge-popular { background: var(--cyan); color: #333; }
.badge-exclusive { background: var(--sodor-green); color: #fff; }

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--thomas-red);
  margin-bottom: 6px;
}
.product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.5;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--thomas-red);
  letter-spacing: -0.02em;
}
.product-price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}
.product-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 3px 12px rgba(238,0,36,0.25);
}
.product-cart-btn:hover {
  background: linear-gradient(135deg, var(--thomas-red-dark) 0%, var(--thomas-red) 100%);
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(238,0,36,0.35);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.stars { color: var(--yellow); font-size: 0.85rem; }
.rating-count { font-size: 0.8rem; color: var(--text-muted); }

/* === BRANDS === */
.brands-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  align-items: stretch;
}
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 40px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: var(--text);
  min-width: 180px;
  position: relative;
  overflow: hidden;
}
.brand-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--thomas-red), var(--yellow), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.brand-item:hover::before {
  transform: scaleX(1);
}
.brand-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(45,45,58,0.12);
  border-color: transparent;
  color: var(--thomas-red);
}
.brand-logo {
  font-size: 2rem;
  width: 72px;
  height: 72px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-desc { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* === USP SECTION === */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.usp-card {
  text-align: center;
  padding: 44px 28px;
  border: 1px solid transparent;
  background: transparent;
}
.usp-icon {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, var(--cyan-light) 0%, #D4F1F9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--cyan);
  box-shadow: 0 4px 16px rgba(106,209,227,0.15);
}
.usp-title {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.usp-text {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* === NEW ARRIVALS BANNER === */
.new-arrivals-banner {
  background: linear-gradient(135deg, var(--thomas-red) 0%, #D50032 50%, var(--thomas-red-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(238,0,36,0.2);
}
.new-arrivals-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,205,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.new-arrivals-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.new-arrivals-text { position: relative; z-index: 1; }
.new-arrivals-text h2 { color: #fff; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.new-arrivals-text h2::after { background: rgba(255,255,255,0.3); margin: 12px 0 0; }
.new-arrivals-text p { opacity: 0.92; margin-bottom: 28px; font-size: 1.08rem; line-height: 1.75; }
.new-arrivals-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 6rem;
}

/* === NEWSLETTER === */
.newsletter {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #252540 50%, #1A1A30 100%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(238,0,36,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,87,184,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,205,0,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.newsletter h2 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.newsletter h2::after { background: linear-gradient(90deg, rgba(255,205,0,0.6), rgba(106,209,227,0.6)); }
.newsletter p { opacity: 0.75; margin-bottom: 40px; font-size: 1.1rem; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.newsletter-form input {
  flex: 1;
  padding: 18px 24px;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus {
  border-color: var(--cyan);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(106,209,227,0.15), 0 0 20px rgba(106,209,227,0.1);
}
.newsletter-form .btn { flex-shrink: 0; border-radius: 100px; padding: 18px 32px; }

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, #252540 0%, var(--bg-dark) 40%, #161628 100%);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
  border-top: none;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255,255,255,0.06);
}
.footer-social a:hover {
  background: var(--thomas-red);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 6px 20px rgba(238,0,36,0.3);
  border-color: transparent;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
}
.payment-icon {
  width: 52px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.payment-icon:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.footer-disclaimer {
  padding: 16px 0 24px;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* === PAGE LAYOUT === */
.page-header {
  background: linear-gradient(135deg, var(--thomas-blue) 0%, var(--thomas-blue-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.page-content h2 { margin: 40px 0 16px; font-size: 1.4rem; }
.page-content h3 { margin: 32px 0 12px; font-size: 1.15rem; }
.page-content p { margin-bottom: 16px; color: var(--text-light); line-height: 1.8; }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-content li {
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.7;
  list-style: disc;
}
.page-content ol li { list-style: decimal; }
.page-content a { color: var(--thomas-red); text-decoration: underline; }

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--thomas-red);
  box-shadow: 0 0 0 3px rgba(238,0,36,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--cyan);
}
.contact-card h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-card p { color: var(--text-light); font-size: 0.9rem; }

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  padding: 0;
}
.faq-question:hover { color: var(--thomas-red); }
.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--thomas-red); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}
.faq-answer p { color: var(--text-light); line-height: 1.7; }

/* === COMING SOON OVERLAY (for cart/checkout) === */
.coming-soon-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.coming-soon-overlay.active { opacity: 1; visibility: visible; }
.coming-soon-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 480px;
  margin: 24px;
  box-shadow: var(--shadow-lg);
}
.coming-soon-box h3 { margin-bottom: 12px; }
.coming-soon-box p { color: var(--text-light); margin-bottom: 24px; }

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(238,0,36,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--thomas-red-dark) 0%, var(--thomas-red) 100%);
  box-shadow: 0 8px 32px rgba(238,0,36,0.4);
}


/* ============================================
   THOMAS SUPER STORE — Enhanced Animations
   Premium Thomas & Friends Theme
   ============================================ */

/* === LANGUAGE SWITCHER (Flag Buttons) === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border-light);
}
.lang-flag-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-flag-btn:hover {
  background: rgba(238,0,36,0.08);
  color: var(--thomas-red);
}
.lang-flag-btn.active {
  background: #fff;
  color: var(--thomas-red);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.flag-emoji { font-size: 1.1rem; line-height: 1; }
.lang-code { font-size: 0.75rem; letter-spacing: 0.5px; }
.lang-select { display: none; } /* Hidden; flags are primary */

/* === ANNOUNCEMENT BAR ENHANCED === */
.announcement-bar {
  overflow: hidden;
  position: relative;
}
.announcement-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: none;
}

/* === HERO ENHANCED === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
}

/* Hero Floating Particles (golden sparks) */
.hero .container::before,
.hero .container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero .container::before {
  top: 20%;
  right: 15%;
  box-shadow:
    0 0 6px 2px rgba(255,205,0,0.4),
    80px 40px 0 1px rgba(255,205,0,0.3),
    -60px 80px 0 0 rgba(255,255,255,0.2),
    160px -20px 0 1px rgba(255,205,0,0.25),
    -120px 120px 0 0 rgba(255,255,255,0.15),
    200px 100px 0 1px rgba(255,205,0,0.2),
    40px -60px 0 0 rgba(255,255,255,0.2);
  animation-delay: 0s;
}
.hero .container::after {
  bottom: 30%;
  left: 40%;
  box-shadow:
    0 0 6px 2px rgba(255,205,0,0.3),
    -40px -60px 0 1px rgba(255,205,0,0.2),
    100px 20px 0 0 rgba(255,255,255,0.15),
    -80px 40px 0 1px rgba(255,205,0,0.3),
    60px -80px 0 0 rgba(255,255,255,0.1);
  animation-delay: -3s;
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  25% { transform: translateY(-8px) scale(1.2); opacity: 1; }
  50% { transform: translateY(-4px) scale(0.9); opacity: 0.6; }
  75% { transform: translateY(-12px) scale(1.1); opacity: 0.9; }
}

/* Hero Clouds */
.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cloud-1 {
  width: 300px;
  height: 100px;
  top: 15%;
  left: -5%;
  animation: cloudDrift 40s linear infinite;
}
.cloud-2 {
  width: 200px;
  height: 70px;
  top: 30%;
  left: 40%;
  animation: cloudDrift 55s linear infinite;
  animation-delay: -15s;
}
.cloud-3 {
  width: 250px;
  height: 80px;
  top: 10%;
  left: 70%;
  animation: cloudDrift 45s linear infinite;
  animation-delay: -25s;
}
@keyframes cloudDrift {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(calc(100vw + 120%)); }
}

/* Hero Steam Puffs */
.hero-steam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.steam-puff {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: steamFloat 4s ease-out infinite;
}
.steam-1 { left: 20%; bottom: 30%; animation-delay: 0s; }
.steam-2 { left: 60%; bottom: 40%; animation-delay: 1.5s; width: 14px; height: 14px; }
.steam-3 { left: 80%; bottom: 25%; animation-delay: 3s; width: 18px; height: 18px; }

@keyframes steamFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(2);
  }
}

/* Hero CTA Buttons Enhanced */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
  animation: ctaShine 3s ease-in-out infinite;
}
@keyframes ctaShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}
.hero-cta-secondary {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.5) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* === CSS-ONLY TRAIN ILLUSTRATION === */
.hero-train-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.3));
}
.hero-train {
  position: relative;
  width: 280px;
  height: 190px;
  animation: trainBobble 3s ease-in-out infinite;
}
@keyframes trainBobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.train-body {
  position: relative;
  width: 230px;
  height: 105px;
  background: linear-gradient(180deg, #0068D6 0%, var(--thomas-blue) 50%, #004A9E 100%);
  border-radius: 16px 45px 8px 8px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.1);
}
.train-chimney {
  position: absolute;
  top: -35px;
  left: 35px;
  width: 22px;
  height: 35px;
  background: linear-gradient(180deg, #666 0%, #444 100%);
  border-radius: 4px 4px 0 0;
}
.train-chimney::after {
  content: '';
  position: absolute;
  top: -7px;
  left: -5px;
  width: 32px;
  height: 9px;
  background: linear-gradient(180deg, #777 0%, #555 100%);
  border-radius: 5px;
}
.train-dome {
  position: absolute;
  top: -20px;
  left: 90px;
  width: 34px;
  height: 24px;
  background: linear-gradient(180deg, #FFD740 0%, #FFCD00 50%, #E5B800 100%);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 12px rgba(255,205,0,0.3);
}
.train-cab {
  position: absolute;
  right: 0;
  top: -24px;
  width: 62px;
  height: 130px;
  background: linear-gradient(180deg, #004A9E 0%, var(--thomas-blue-dark) 100%);
  border-radius: 8px 8px 0 0;
  border: 3px solid rgba(255,255,255,0.15);
  border-bottom: none;
}
.train-cab::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 34px;
  background: linear-gradient(180deg, rgba(135,206,250,0.6) 0%, rgba(100,180,240,0.4) 100%);
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.1);
}
.train-face {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 68px;
  height: 56px;
  background: radial-gradient(circle at 50% 40%, #E8E8E8 0%, #C8C8C8 60%, #AAA 100%);
  border-radius: 50%;
  border: 3px solid #999;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,0,0.2);
}
.train-eye {
  position: absolute;
  width: 16px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 10px;
  border: 2px solid #333;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.train-eye::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #333 0%, #1a1a2e 100%);
  border-radius: 50%;
  top: 3px;
  left: 2px;
  animation: eyeLook 4s ease-in-out infinite;
}
@keyframes eyeLook {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
}
.train-eye-left { left: 10px; }
.train-eye-right { left: 32px; }
.train-smile {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  border: 2px solid #333;
  border-top: none;
  border-radius: 0 0 20px 20px;
}
.train-boiler {
  position: absolute;
  left: 0;
  right: 60px;
  bottom: -4px;
  height: 12px;
  background: #444;
  border-radius: 0 0 4px 4px;
}
.train-wheels {
  position: absolute;
  bottom: -18px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
}
.wheel {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 50% 50%, #555 0%, #333 60%, #222 100%);
  border-radius: 50%;
  border: 3px solid #777;
  position: relative;
  animation: wheelSpin 2s linear infinite;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.wheel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #AAA 0%, #777 100%);
  border-radius: 50%;
  border: 1px solid #999;
}
@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Train Steam Puffs */
.train-steam-puffs {
  position: absolute;
  top: -50px;
  left: 25px;
}
.puff {
  position: absolute;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: puffFloat 2.5s ease-out infinite;
}
.puff-1 { width: 20px; height: 20px; left: 0; animation-delay: 0s; }
.puff-2 { width: 16px; height: 16px; left: -10px; animation-delay: 0.8s; }
.puff-3 { width: 12px; height: 12px; left: 5px; animation-delay: 1.6s; }

@keyframes puffFloat {
  0% {
    opacity: 0.8;
    transform: translateY(0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) translateX(-30px) scale(2.5);
  }
}

.hero-track {
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 8px;
  background: #666;
  border-radius: 2px;
}
.hero-track::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #888 0px,
    #888 30px,
    transparent 30px,
    transparent 45px
  );
}

/* === TRACK DIVIDER (see enhanced version below) === */

/* === PRODUCT CARD ENHANCED === */
.product-card {
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(45,45,58,0.12);
}
.product-card:hover .product-image img,
.product-card:hover .product-emoji {
  transform: scale(1.08);
}
.product-image {
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-emoji {
  font-size: 4rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.product-quick-view {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thomas-red);
  cursor: pointer;
  transform: scale(0.8);
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
}
.product-card:hover .product-quick-view {
  transform: scale(1);
}
.product-quick-view:hover {
  background: var(--thomas-red);
  color: #fff;
}

/* Product Cart Button Enhanced */
.product-cart-btn {
  position: relative;
  overflow: hidden;
}
.product-cart-btn svg {
  transition: transform var(--transition);
}
.product-cart-btn:hover svg {
  transform: scale(1.15);
}
.product-cart-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}
.product-cart-btn:active::after {
  transform: scale(2);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease 0.1s;
}

/* Product Prices Row */
.product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stock Status */
.stock-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 8px;
}
.stock-in {
  color: var(--sodor-green);
  background: var(--sodor-green-light);
}
.stock-out {
  color: var(--thomas-red);
  background: var(--thomas-red-light);
}
.stock-low {
  color: var(--yellow-dark);
  background: var(--yellow-light);
}

/* === STAGGERED PRODUCT ANIMATION === */
@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.product-animate {
  animation: productFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* === CATEGORY CARD ANIMATION === */
@keyframes categorySlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.category-animate {
  animation: categorySlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.category-card:hover .category-icon span {
  animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-8px) rotate(-3deg); }
  40% { transform: translateY(0) rotate(0deg); }
  60% { transform: translateY(-5px) rotate(2deg); }
  80% { transform: translateY(0) rotate(0deg); }
}

/* === BADGE GLOW ANIMATION === */
.badge-new,
.badge-sale {
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 16px 3px rgba(255,205,0,0.45); }
}
.badge-sale {
  animation-name: badgePulseSale;
}
@keyframes badgePulseSale {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 16px 3px rgba(238,0,36,0.35); }
}

/* === SKELETON LOADING === */
.skeleton-card {
  pointer-events: none;
}
.skeleton-image {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius) var(--radius) 0 0;
}
.skeleton-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-line {
  height: 14px;
  background: var(--bg-alt);
  border-radius: 6px;
}
.skeleton-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.skeleton-circle {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 50%;
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-alt) 0%, #e8e8e8 50%, var(--bg-alt) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* === EMPTY STATE === */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.empty-grid {
  display: flex !important;
  justify-content: center;
}

/* === FILTER BAR === */
.filter-bar {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs-wrapper::-webkit-scrollbar { display: none; }
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  white-space: nowrap;
}
.filter-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: var(--thomas-red);
  color: var(--thomas-red);
  background: var(--thomas-red-light);
}
.filter-tab.active {
  background: var(--thomas-red);
  color: #fff;
  border-color: var(--thomas-red);
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-select-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}
.filter-select-group select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border var(--transition);
}
.filter-select-group select:focus {
  border-color: var(--thomas-red);
}
.product-count-badge {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === NEW ARRIVALS BANNER ENHANCED === */
.new-arrivals-visual {
  position: relative;
}
.new-arrivals-train {
  position: relative;
  display: inline-block;
}
.na-emoji {
  font-size: 6rem;
  display: block;
}
.na-sparkle {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkleFloat 2s ease-in-out infinite;
}
.na-s1 { top: -10px; right: -20px; animation-delay: 0s; }
.na-s2 { top: 20px; right: -35px; animation-delay: 0.6s; }
.na-s3 { top: -5px; left: -15px; animation-delay: 1.2s; }
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 0.6; }
}

/* === BRAND ITEMS ENHANCED === */
.brand-logo-icon {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, var(--cyan-light) 0%, #D4F1F9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(106,209,227,0.12);
}
.brand-item:hover .brand-logo-icon {
  background: linear-gradient(135deg, var(--cyan) 0%, #4DBFD8 100%);
  color: #fff;
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(106,209,227,0.3);
}

/* === USP CARDS ENHANCED === */
.usp-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: var(--radius);
}
.usp-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--cyan-light) 0%, rgba(106,209,227,0.06) 100%);
  box-shadow: 0 12px 36px rgba(106,209,227,0.1);
}
.usp-icon {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--cyan);
}
.usp-card:hover .usp-icon {
  transform: scale(1.12) rotate(-8deg);
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(238,0,36,0.25);
}
.usp-icon svg {
  color: inherit;
}

/* === NEWSLETTER ENHANCED === */
.newsletter {
  position: relative;
  overflow: hidden;
}
.newsletter-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.steam-deco-1,
.steam-deco-2 {
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: steamFloat 5s ease-out infinite;
}
.steam-deco-1 { left: 15%; bottom: 20%; animation-delay: 0s; }
.steam-deco-2 { right: 15%; bottom: 30%; animation-delay: 2.5s; width: 18px; height: 18px; }

.newsletter-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === PRODUCT DETAIL MODAL === */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.product-detail-overlay.active {
  opacity: 1;
  visibility: visible;
}
.product-detail-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-detail-overlay.active .product-detail-modal {
  transform: translateY(0) scale(1);
}
.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition);
  color: var(--text);
}
.detail-close:hover {
  background: var(--thomas-red);
  color: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.detail-image-section {
  position: relative;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.detail-main-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
}
.detail-image-placeholder {
  font-size: 8rem;
  opacity: 0.4;
}
.detail-image-section .product-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}
.detail-info-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.detail-brand {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--thomas-red);
  margin-bottom: 8px;
}
.detail-name {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.detail-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--thomas-red);
}
.detail-price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.detail-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.detail-specs {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-bottom: 24px;
}
.detail-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.detail-spec-label {
  color: var(--text-muted);
  font-weight: 500;
}
.detail-spec-value {
  font-weight: 600;
  color: var(--text);
}
.detail-add-to-cart {
  margin-top: auto;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* Social Share Buttons */
.detail-share-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.detail-share-label {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}
.detail-share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #555;
}
.share-btn:hover {
  transform: scale(1.1);
  border-color: var(--thomas-red);
}
.share-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.share-tiktok:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.share-copy:hover {
  background: var(--thomas-red);
  color: #fff;
  border-color: var(--thomas-red);
}

/* === SCROLL TRIGGERED ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HERO STATS COUNTER ANIMATION === */
.hero-stat {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-stat:nth-child(1) { animation-delay: 0.4s; }
.hero-stat:nth-child(2) { animation-delay: 0.6s; }
.hero-stat:nth-child(3) { animation-delay: 0.8s; }

/* === TRUST BAR ANIMATION === */
.trust-item {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.trust-item:hover {
  transform: translateY(-3px);
  color: var(--thomas-blue);
}
.trust-item:hover .trust-icon {
  background: linear-gradient(135deg, var(--sodor-green-light) 0%, #C8E6C9 100%);
  color: var(--sodor-green);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(76,175,80,0.2);
}
.trust-icon {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--sodor-green);
}
.trust-icon svg {
  color: inherit;
}

/* === PAYMENT ICONS ENHANCED === */
.payment-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}
.payment-icon:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.payment-icon svg {
  opacity: 0.7;
}

/* === MOBILE MENU BUTTON ENHANCED === */
.mobile-menu-btn {
  color: var(--text);
  display: none;
}
.mobile-menu-btn svg {
  transition: transform var(--transition);
}
.mobile-menu-btn[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* === HEADER SCROLL EFFECT === */
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.96);
}

/* === SMOOTH ENTRANCE FOR SECTIONS === */
.section {
  position: relative;
}
.section::before {
  content: none; /* Disabled by default, enabled on specific sections */
}

/* === FOOTER ENHANCED === */
.footer-social a svg {
  color: inherit;
}


/* ============================================
   NEW FEATURES — Styles
   ============================================ */

/* === HEADER SEARCH WRAPPER (for dropdown) === */
.header-search-wrapper {
  position: relative;
}

/* === FEATURE 1: WISHLIST === */

/* Wishlist button on product cards */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition);
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wishlist-btn:hover {
  color: var(--thomas-red);
  transform: scale(1.1);
  background: #fff;
}
.wishlist-btn.wishlisted {
  color: var(--thomas-red);
  background: #fff;
}

@keyframes wishlistPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.wishlist-btn.wishlist-pulse {
  animation: wishlistPulse 0.6s ease;
}

/* Account header button */
.account-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  color: var(--text);
  text-decoration: none;
}
.account-header-btn:hover {
  background: var(--bg-alt);
  color: var(--thomas-red);
}
.account-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--thomas-red), #c4001e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Wishlist header button */
.wishlist-header-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-header-btn:hover {
  background: var(--bg-alt);
  color: var(--thomas-red);
}
.wishlist-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--thomas-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wishlist Panel (slide-in) */
.wishlist-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.wishlist-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}
.wishlist-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wishlist-panel-overlay.active .wishlist-panel {
  transform: translateX(0);
}
.wishlist-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.wishlist-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.wishlist-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.wishlist-item:hover {
  background: var(--bg-alt);
}
.wishlist-item:last-child {
  border-bottom: none;
}
.wishlist-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wishlist-item-placeholder {
  color: var(--text-muted);
}
.wishlist-item-info {
  flex: 1;
  min-width: 0;
}
.wishlist-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-item-brand {
  font-size: 0.75rem;
  color: var(--thomas-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wishlist-item-price {
  font-weight: 700;
  color: var(--thomas-red);
  font-size: 0.9rem;
}
.wishlist-item-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.wishlist-item-remove:hover {
  background: rgba(238,0,36,0.1);
  color: var(--thomas-red);
}
.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.wishlist-empty svg {
  opacity: 0.3;
  margin-bottom: 16px;
}
.wishlist-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}
.wishlist-empty-sub {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  margin-top: 8px;
}


/* === FEATURE 2: RECENTLY VIEWED === */

.recently-viewed-section {
  padding: 60px 0;
}
.recently-viewed-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.recently-viewed-row::-webkit-scrollbar {
  height: 6px;
}
.recently-viewed-row::-webkit-scrollbar-track {
  background: transparent;
}
.recently-viewed-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.rv-card {
  min-width: 180px;
  max-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition);
  scroll-snap-align: start;
  flex-shrink: 0;
}
.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.rv-card-image {
  aspect-ratio: 1;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-card-placeholder {
  color: var(--text-muted);
}
.rv-card-info {
  padding: 12px;
}
.rv-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-card-price {
  font-weight: 700;
  color: var(--thomas-red);
  font-size: 0.9rem;
}


/* === FEATURE 3: QUICK SEARCH DROPDOWN === */

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: 1001;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
  font-family: inherit;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item:focus {
  background: var(--bg-alt);
  outline: none;
}
.search-result-image {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-icon {
  color: var(--text-muted);
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-result-price {
  font-weight: 700;
  color: var(--thomas-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.search-no-results {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* === FEATURE 5: COOKIE CONSENT === */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-consent.visible {
  transform: translateY(0);
}
.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  background: #fff;
  border-top: 3px solid var(--thomas-red);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cookie-consent-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}
.cookie-consent-text {
  flex: 1;
}
.cookie-consent-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}
.cookie-consent-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-accept-all {
  white-space: nowrap;
  background: var(--sodor-green) !important;
  box-shadow: 0 4px 16px rgba(76,175,80,0.3) !important;
}
.cookie-accept-all:hover {
  background: #43A047 !important;
}
.cookie-necessary-only {
  white-space: nowrap;
  background: transparent !important;
  color: var(--text-light) !important;
  border: 2px solid var(--border) !important;
}
.cookie-necessary-only:hover {
  border-color: var(--text-muted) !important;
  color: var(--text) !important;
}


/* === FEATURE 6: BACK-IN-STOCK NOTIFICATION === */

.stock-notify-section {
  margin: 16px 0;
  padding: 16px;
  background: rgba(238,0,36,0.04);
  border: 1px solid rgba(238,0,36,0.12);
  border-radius: var(--radius-sm);
}
.stock-notify-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.stock-notify-title svg {
  color: var(--thomas-red);
  flex-shrink: 0;
}
.stock-notify-form {
  display: flex;
  gap: 8px;
}
.stock-notify-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
}
.stock-notify-input:focus {
  border-color: var(--thomas-red);
  box-shadow: 0 0 0 3px rgba(238,0,36,0.1);
}
.stock-notify-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sodor-green);
  font-size: 0.85rem;
  font-weight: 500;
}
.stock-notify-success svg {
  flex-shrink: 0;
}


/* === FEATURE 7: QUICK SPECS GRID === */

.quick-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 0.78rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.spec-badge:hover {
  border-color: var(--cyan);
  background: var(--cyan-light);
}
.spec-badge svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.spec-badge-label {
  color: var(--text-muted);
  font-weight: 500;
}
.spec-badge-value {
  color: var(--text);
  font-weight: 600;
}
.spec-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* === FEATURE 8: ADD-TO-CART ANIMATION === */

.product-cart-btn.cart-btn-success {
  background: var(--sodor-green) !important;
  transform: scale(1.15);
}
.product-cart-btn.cart-btn-success svg {
  color: #fff;
}

@keyframes cartFloatUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}
.cart-float-plus {
  position: absolute;
  right: 8px;
  top: -10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sodor-green);
  pointer-events: none;
  animation: cartFloatUp 1s ease-out forwards;
}

@keyframes cartHeaderBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}
.cart-btn.cart-header-pulse {
  animation: cartHeaderBounce 0.6s ease;
}

/* Detail add-to-cart success */
.detail-add-to-cart.cart-btn-success {
  background: var(--sodor-green) !important;
  box-shadow: 0 4px 16px rgba(76,175,80,0.3) !important;
}


/* === TOAST NOTIFICATION === */

.tss-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10002;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.tss-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === COMING SOON ICON (SVG replacement) === */
.coming-soon-icon {
  color: var(--thomas-red);
  margin-bottom: 16px;
}

/* === FLAG ICONS (SVG replacements) === */
.flag-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.flag-icon svg {
  display: block;
}

/* === NEW ARRIVALS TRAIN SVG === */
.na-train-icon {
  color: #fff;
  opacity: 0.9;
  animation: trainBobble 3s ease-in-out infinite;
}

/* === SCROLL-TRIGGERED RAILWAY TRACK === */
.scroll-track {
  position: fixed;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 50;
  pointer-events: none;
}

.scroll-track-rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--thomas-red) var(--scroll-progress, 0%),
    rgba(238,0,36,0.1) var(--scroll-progress, 0%)
  );
  border-radius: 2px;
  transition: background 0.05s linear;
}

.scroll-track-ties {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.scroll-track .tie {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 3px;
  background: var(--thomas-red);
  border-radius: 1px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-track .tie.visible {
  opacity: 0.5;
  transform: scaleX(1);
}

.scroll-train {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--thomas-red);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(238, 0, 36, 0.4), 0 0 20px rgba(255, 205, 0, 0.25);
  transition: top 0.08s linear;
  top: 0;
}
.scroll-train::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 5px;
  background: var(--thomas-red-dark);
  border-radius: 3px 3px 0 0;
}
.scroll-train::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

/* Hide scroll track on mobile */
@media (max-width: 768px) {
  .scroll-track {
    display: none;
  }
}

/* === ENHANCED TRACK DIVIDER === */
.track-divider {
  height: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.track-rail {
  height: 4px;
  background: linear-gradient(180deg, #C0C0C0, #E8E8E8, #D0D0D0, #A8A8A8);
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6), 0 0 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}

.track-ties {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 14px,
    #8B6914 14px,
    #A0782C 17px,
    #8B6914 20px,
    transparent 20px,
    transparent 36px
  );
  opacity: 0.45;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}


/* ============================================
   PREMIUM DESIGN POLISH
   Final design pass — stunning visual details
   ============================================ */

/* === WAVE DIVIDERS BETWEEN SECTIONS === */
.hero + .track-divider {
  display: none;
}
.hero::after {
  z-index: 0;
}

/* Section wave transitions */
.section {
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  background-image: radial-gradient(circle at 20px 20px, rgba(0,87,184,0.01) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Decorative curve from hero into next section */
.hero + .track-divider + .trust-bar,
.trust-bar {
  position: relative;
}
.trust-bar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath fill='%23003D75' d='M0 0h1440v4c-200 12-400 18-720 18S200 16 0 4z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

/* === ANNOUNCEMENT BAR PREMIUM === */
.announcement-bar {
  background: linear-gradient(90deg, var(--thomas-red) 0%, #D50032 50%, var(--thomas-red) 100%);
  background-size: 200% 100%;
  animation: announcementShimmer 4s ease-in-out infinite;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@keyframes announcementShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === SECTION TITLES — DARK BACKGROUND ENHANCEMENT === */
.newsletter h2::after,
.section-dark .section-title::after {
  background: linear-gradient(90deg, rgba(255,205,0,0.6), rgba(106,209,227,0.6));
}
.new-arrivals-text .section-title::after,
.new-arrivals-text h2::after {
  background: rgba(255,255,255,0.25);
  margin: 12px 0 0 0;
}

/* === LOGO ENHANCEMENT === */
.logo-icon {
  background: linear-gradient(135deg, var(--thomas-blue) 0%, #0068D6 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,87,184,0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,87,184,0.3);
}

/* === NAV LINKS PREMIUM UNDERLINE === */
.nav a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--thomas-red), var(--yellow));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a.active::after {
  background: linear-gradient(90deg, var(--thomas-red), var(--yellow));
}

/* === PRODUCT IMAGE HOVER GRADIENT OVERLAY === */
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

/* === NEWSLETTER BACKGROUND PATTERN === */
.newsletter::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(238,0,36,0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0,87,184,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* === FOOTER WAVE TOP === */
.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath fill='%23252540' d='M0 20V4c240 10 480 16 720 16s480-6 720-16v16z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

/* === FOOTER COLUMN HEADERS === */
.footer-col h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--thomas-red), transparent);
  border-radius: 1px;
}

/* === FOOTER LINKS HOVER === */
.footer-col ul a {
  position: relative;
  display: inline-block;
  padding: 2px 0;
}
.footer-col ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.35s ease;
}
.footer-col ul a:hover::after {
  width: 100%;
}

/* === SMOOTH SECTION TRANSITIONS === */
.section + .track-divider {
  background: transparent;
  margin-top: -1px;
  margin-bottom: -1px;
}

/* === FILTER BAR PREMIUM === */
.filter-tab {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  box-shadow: 0 4px 16px rgba(238,0,36,0.25);
}
.filter-select-group select {
  transition: all 0.35s ease;
  border-radius: var(--radius-sm);
}
.filter-select-group select:hover {
  border-color: var(--thomas-blue);
}

/* === PRODUCT DETAIL MODAL PREMIUM === */
.product-detail-modal {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.04);
}
.detail-image-section {
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--bg-alt) 100%);
}
.detail-price {
  background: linear-gradient(135deg, var(--thomas-red), #FF1744);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SCROLL TRACK PREMIUM === */
.scroll-train {
  background: linear-gradient(135deg, var(--thomas-red) 0%, #FF1744 100%);
  box-shadow: 0 0 12px rgba(238, 0, 36, 0.45), 0 0 24px rgba(255, 205, 0, 0.2);
}

/* === SEARCH BAR PREMIUM === */
.header-search {
  border-radius: 100px;
  transition: all 0.35s ease;
}
.header-search:focus-within {
  border-color: var(--thomas-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,87,184,0.08);
}

/* === WISHLIST BTN PREMIUM === */
.wishlist-btn {
  backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wishlist-btn:hover {
  box-shadow: 0 4px 12px rgba(238,0,36,0.15);
}

/* === COMING SOON BOX PREMIUM === */
.coming-soon-box {
  border: 1px solid rgba(0,0,0,0.04);
}

/* === LINK HOVER GLOBAL === */
a {
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================
   PRE-ORDER / BACKORDER STATUS SYSTEM
   ============================================ */

/* Status Badges on product cards and detail */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
}
/* In detail info section, make it inline */
.detail-info-section > .status-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 8px;
}

.status-instock { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-preorder { background: rgba(59,130,246,0.1); color: #2563eb; }
.status-backorder { background: rgba(245,158,11,0.1); color: #d97706; }
.status-outofstock { background: rgba(239,68,68,0.1); color: #dc2626; }

/* Delivery Estimate */
.delivery-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #d97706;
  margin-top: 4px;
}
.delivery-estimate svg {
  flex-shrink: 0;
  color: #d97706;
}

/* Availability Info Box in product detail */
.availability-info-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.availability-info-box.availability-backorder {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
}
.availability-info-box.availability-preorder {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
}
.availability-info-box.availability-outofstock {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.availability-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.availability-backorder .availability-info-icon { color: #d97706; }
.availability-preorder .availability-info-icon { color: #2563eb; }
.availability-outofstock .availability-info-icon { color: #dc2626; }
.availability-info-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.availability-backorder .availability-info-text strong { color: #d97706; }
.availability-preorder .availability-info-text strong { color: #2563eb; }
.availability-outofstock .availability-info-text strong { color: #dc2626; }
.availability-info-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Cart button variants for pre-order/backorder */
.product-cart-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.product-cart-btn-preorder {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  box-shadow: 0 3px 12px rgba(37,99,235,0.25) !important;
}
.product-cart-btn-preorder:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.35) !important;
}
.product-cart-btn-backorder {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  box-shadow: 0 3px 12px rgba(217,119,6,0.25) !important;
}
.product-cart-btn-backorder:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  box-shadow: 0 6px 20px rgba(217,119,6,0.35) !important;
}

/* Detail cart button variants */
.detail-cart-backorder {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 20px rgba(217,119,6,0.3) !important;
}
.detail-cart-backorder:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
}
.detail-cart-preorder {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3) !important;
}
.detail-cart-preorder:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
}
.detail-cart-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   NAV DROPDOWN — Desktop & Mobile
   ============================================ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  cursor: pointer;
}
.nav-dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 220px;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: #EE0024;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 4px 0;
}

/* Mobile: dropdowns expand inline */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    display: none;
    background: rgba(0,0,0,0.02);
  }
  .nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.nav-dropdown-open:hover .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 8px 20px 8px 32px;
    font-size: 0.85rem;
  }
  .nav-dropdown-trigger::after {
    transition: transform 0.2s;
  }
  .nav-dropdown-open .nav-dropdown-trigger::after {
    transform: rotate(180deg);
  }
}
