/* ==========================================
   Ball Thai FC Sport Online - Main Stylesheet
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d47a1;
  --primary-dark: #08306b;
  --primary-light: #1565c0;
  --accent: #ff6f00;
  --accent-light: #ff8f00;
  --danger: #e53935;
  --success: #43a047;
  --star: #fbc02d;
  --text-dark: #212121;
  --text-medium: #616161;
  --text-light: #9e9e9e;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, .1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .3s ease;
  --max-width: 1280px;
  --font-thai: 'Kanit', 'Sarabun', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-thai);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Utility ---------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 40px;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
}

.badge-sale {
  background: var(--danger);
}

.badge-new {
  background: var(--success);
}

.badge-hot {
  background: var(--accent);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: .82rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #ccc;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar i {
  margin-right: 5px;
}

/* ---------- Header ---------- */
.header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  line-height: 1.2;
}

.logo small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  opacity: .85;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: all var(--transition);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.search-bar input:focus {
  background: #fff;
  color: var(--text-dark);
  border-color: var(--accent);
}

.search-bar input:focus::placeholder {
  color: var(--text-light);
}

.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.search-bar button:hover {
  background: var(--accent-light);
}

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

.header-icon {
  position: relative;
  color: #fff;
  font-size: 1.25rem;
  transition: color var(--transition);
}

.header-icon:hover {
  color: var(--accent);
}

.header-icon .count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 5px;
}

/* ---------- Navigation ---------- */
.nav {
  background: var(--primary-dark);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform .6s ease;
}

.hero-static-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1200 / 440;
  max-height: 440px;
  pointer-events: none;
}

.hero-static-content .container {
  pointer-events: auto;
}

.hero-slide .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  color: #fff;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-image img {
  max-height: 380px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3));
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

/* decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: #fff;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 30%;
}

/* ---------- Features Strip ---------- */
.features-strip {
  background: #fff;
  padding: 24px 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 71, 161, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: .9rem;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: .78rem;
  color: var(--text-medium);
}

/* ---------- Categories ---------- */
.categories {
  background: #fff;
}

.cat-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 2;
}

.cat-slider-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.cat-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  flex: 1;
  min-width: 0;
}

.cat-grid::-webkit-scrollbar {
  display: none;
}

.cat-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  transition: all var(--transition);
  cursor: pointer;
  min-width: 150px;
  flex-shrink: 0;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.cat-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  transition: transform var(--transition);
}

.cat-card:hover .cat-icon {
  transform: scale(1.1) rotate(-5deg);
}

.cat-card h3 {
  font-size: .9rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.cat-card p {
  font-size: .78rem;
  color: var(--text-medium);
  margin-top: 4px;
}

/* ---------- Product Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-img {
  position: relative;
  padding: 0;
  background: var(--bg-light);
  text-align: center;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  font-size: .85rem;
}

.product-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.product-info {
  padding: 16px 20px 20px;
}

.product-category {
  font-size: .78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.product-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}

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

.product-rating i {
  color: var(--star);
  font-size: .8rem;
}

.product-rating span {
  font-size: .8rem;
  color: var(--text-medium);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--danger);
}

.price-original {
  font-size: .88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-add-btn {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}

.product-add-btn:hover {
  background: var(--primary-dark);
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  padding: 80px 0;
}

.promo-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.promo-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo-banner p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.promo-banner .hero-shape {
  background: #fff;
}

/* ---------- Stats Counter (Premium) ---------- */
.stats-counter {
  position: relative;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #0d47a1 100%);
  padding: 18px 0;
  overflow: hidden;
}

.stats-bg-shapes .stats-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: #fff;
}

.stats-shape-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -60px;
}

.stats-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
}

.stats-shape-3 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 5%;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  padding: 12px 40px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.stats-visible .stat-card:nth-child(1) {
  transition-delay: 0s;
}

.stats-visible .stat-card:nth-child(3) {
  transition-delay: .15s;
}

.stats-visible .stat-card:nth-child(5) {
  transition-delay: .3s;
}

.stats-visible .stat-card:nth-child(7) {
  transition-delay: .45s;
}

.stat-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
}

.stat-icon-wrap i {
  font-size: 1.8rem;
  color: #fff;
  z-index: 2;
  position: relative;
}

.stat-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  animation: stat-pulse 3s ease-in-out infinite;
}

@keyframes stat-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: .6;
  }
}

.stat-card:hover .stat-icon-ring {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
  transform: scale(1.1);
  transition: all .3s ease;
}

.stat-number {
  display: inline;
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-suffix {
  display: inline;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-left: 2px;
}

.stat-label {
  font-size: .92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .65);
  margin-top: 4px;
  letter-spacing: .3px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .2), transparent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .stats-counter {
    padding: 24px 0;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
  }

  .stat-icon-wrap i {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }

  .stat-suffix {
    font-size: 1rem;
  }

  .stat-label {
    font-size: .78rem;
    margin-top: 2px;
  }

  .stats-shape-1 {
    width: 180px;
    height: 180px;
    top: -50px;
    left: -40px;
  }

  .stats-shape-2 {
    width: 120px;
    height: 120px;
  }

  .stats-shape-3 {
    width: 80px;
    height: 80px;
  }
}

/* ---------- Reviews Section ---------- */
.reviews {
  background: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
}

.review-author h4 {
  font-size: .95rem;
}

.review-author span {
  font-size: .8rem;
  color: var(--text-medium);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.review-stars i {
  color: var(--star);
  font-size: .9rem;
}

.review-text {
  font-size: .9rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.review-product {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-light);
}

.review-product strong {
  color: var(--text-dark);
}

.review-images {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.review-img-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .7rem;
}

.reviews-stats {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 50px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.stats-overall {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

.stats-overall .big-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stats-overall .stars {
  margin: 8px 0;
}

.stats-overall .stars i {
  color: var(--star);
  font-size: 1.2rem;
}

.stats-overall .total-reviews {
  font-size: .88rem;
  color: var(--text-medium);
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-bar-label {
  font-size: .85rem;
  width: 50px;
  text-align: right;
  color: var(--text-medium);
}

.stat-bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--star);
  transition: width .8s ease;
}

.stat-bar-count {
  font-size: .82rem;
  color: var(--text-light);
  width: 30px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter p {
  opacity: .85;
  margin-bottom: 28px;
}

.social-follow-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.social-follow-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
  color: #fff;
}

.social-fb {
  background: #1877f2;
}

.social-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-line {
  background: #06c755;
}

.social-tiktok {
  background: #010101;
}

/* ---------- Product Modal ---------- */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease;
  overflow-y: auto;
}

.pm-overlay.show {
  opacity: 1;
}

.pm-container {
  background: #fff;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
  animation: pmFadeIn .3s ease;
}

@keyframes pmFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pm-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  z-index: 10001;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.pm-close:hover {
  background: #e53935;
  color: #fff;
}

.pm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pm-gallery {
  position: relative;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 500px;
  border-radius: 0;
}

.pm-main-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}

.pm-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  overflow-x: auto;
  justify-content: center;
}

.pm-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pm-thumb:hover {
  opacity: 0.9;
}

.pm-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.pm-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.pm-info {
  padding: 36px 32px;
}

.pm-cat {
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.pm-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.pm-code {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pm-price {
  margin-bottom: 24px;
}

.pm-price-current {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 12px;
}

.pm-price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.pm-option-group {
  margin-bottom: 18px;
}

.pm-option-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-btn {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  font-family: inherit;
}

.opt-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.opt-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pm-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #06c755;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-top: 24px;
}

.pm-order-btn:hover {
  background: #05b04a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, .35);
}

.pm-details {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pm-detail-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.pm-detail-section h3 i {
  color: var(--primary);
  margin-right: 6px;
}

.pm-detail-section p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.pm-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-highlights li {
  font-size: .85rem;
  color: var(--text-light);
  padding: 4px 0;
  display: flex;
  align-items: center;
}

/* Gallery Thumbnails */
.pm-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  justify-content: flex-start;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.pm-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-light);
  transition: all .2s ease;
}

.pm-thumb i {
  font-size: 1.5rem;
}

.pm-thumb:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.pm-thumb.active {
  border-color: var(--primary);
  background: rgba(21, 101, 192, .08);
  box-shadow: 0 2px 8px rgba(21, 101, 192, .2);
}

.pm-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.pm-main-img {
  position: relative;
}

.pm-main-img:hover .pm-zoom-hint {
  opacity: 1;
}

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.lb-overlay.show {
  opacity: 1;
}

.lb-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
}

.lb-close:hover {
  background: rgba(255, 255, 255, .3);
  transform: scale(1.1);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, .3);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev {
  left: 24px;
}

.lb-next {
  right: 24px;
}

.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: lbFadeIn .3s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lb-label {
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
  font-weight: 500;
}

.lb-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  font-weight: 500;
}

.lb-thumbs {
  position: absolute;
  bottom: 28px;
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.lb-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.lb-thumb i {
  font-size: 1.3rem;
}

.lb-thumb:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .1);
}

.lb-thumb.active {
  border-color: #fff;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 12px rgba(255, 255, 255, .2);
}

/* Size Chart */
.pm-size-chart {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
}

.pm-size-chart h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.pm-size-chart h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.pm-size-chart-table-wrap {
  overflow-x: auto;
}

.pm-size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.pm-size-chart-table th {
  background: var(--bg-light);
  color: var(--text);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.pm-size-chart-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.pm-size-chart-table tbody tr:hover {
  background: rgba(var(--primary-rgb, 21, 101, 192), .04);
}

.pm-size-chart-note {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-light);
}

.pm-size-chart-note i {
  margin-right: 4px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .pm-body {
    grid-template-columns: 1fr;
  }

  .pm-gallery {
    min-height: 250px;
    border-radius: 0;
  }

  .pm-info {
    padding: 24px 20px;
  }

  .pm-name {
    font-size: 1.2rem;
  }

  .pm-price-current {
    font-size: 1.4rem;
  }

  .pm-details {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .pm-container {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .pm-size-chart {
    padding: 20px 16px;
  }

  .pm-thumbs {
    gap: 6px;
    padding: 8px 12px;
  }

  .pm-thumb {
    width: 52px;
    height: 52px;
  }

  .pm-thumb i {
    font-size: 1.2rem;
  }

  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lb-prev {
    left: 10px;
  }

  .lb-next {
    right: 10px;
  }

  .lb-content i {
    font-size: 8rem !important;
  }

  .lb-thumbs {
    gap: 6px;
    padding: 8px 12px;
  }

  .lb-thumb {
    width: 44px;
    height: 44px;
  }

  .lb-thumb i {
    font-size: 1rem;
  }
}

/* ---------- TikTok / Reels ---------- */
.reels-section {
  background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)),
    url('/image/ballthaifc.sport.jpg') center/cover no-repeat fixed;
  color: #fff;
}

.reels-section .section-title {
  color: #fff;
}

.reels-section .section-subtitle {
  color: rgba(255, 255, 255, .85);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.reel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 9 / 16;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.reel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .15);
}

.reel-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: .88rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .88rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  color: #888;
}

.footer-bottom a {
  color: var(--accent);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 50px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .9rem;
  opacity: .85;
}

.page-header .breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Promo Hero Slider ---------- */
.promo-hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.hero-slides-track {
  display: flex;
  transition: transform .5s ease;
}

.hero-slide {
  min-width: 100%;
  display: block;
  text-decoration: none;
}

.hero-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

/* Slider Nav Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: none;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: all .2s ease;
  z-index: 2;
  opacity: 0;
}

.promo-hero-slider:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Slider Dots */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(255, 255, 255, .5);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, .8);
}

/* ---------- Secondary Banners Grid ---------- */
.promo-banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.promo-banners-grid:empty {
  display: none;
}

.promo-banner-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
  display: block;
  text-decoration: none;
  position: relative;
}

.promo-banner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.promo-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 7;
}

a.promo-banner-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .15) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

a.promo-banner-item:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .promo-hero-slider {
    margin-top: 20px;
    border-radius: var(--radius);
  }

  .hero-slide img {
    aspect-ratio: 16 / 7;
  }

  .hero-nav {
    width: 32px;
    height: 32px;
    font-size: .8rem;
    opacity: 1;
  }

  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }

  .hero-dots { bottom: 10px; gap: 6px; }
  .hero-dot { width: 8px; height: 8px; }

  .promo-banners-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
}

/* ---------- Products Page ---------- */
.products-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 40px 0;
}

.filters-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group h4 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--text-dark);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: .88rem;
  color: var(--text-medium);
  cursor: pointer;
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.filter-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.color-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--primary);
  transform: scale(1.15);
}

.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
}

.products-content {
  min-width: 0;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.products-count {
  font-size: .9rem;
  color: var(--text-medium);
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-sort label {
  font-size: .88rem;
  color: var(--text-medium);
}

.products-sort select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  background: #fff;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text-medium);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.page-btn.dots {
  pointer-events: none;
  box-shadow: none;
  background: transparent;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(13, 71, 161, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.contact-card h4 {
  font-size: .95rem;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: .85rem;
  color: var(--text-medium);
}

.contact-form-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, .1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  background: #ddd;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  font-size: 1.1rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- FAQ Accordion ---------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(13, 71, 161, .08);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(13, 71, 161, .1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-icon {
  color: var(--primary);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 10px;
  opacity: .7;
}

.faq-item.open .faq-icon {
  opacity: 1;
}

.faq-arrow {
  font-size: .75rem;
  color: var(--text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: .9rem;
  color: var(--text-medium);
  line-height: 1.8;
  padding-left: 30px;
  border-left: 3px solid var(--primary);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-slide .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    margin: 0 auto 28px;
  }

  .cat-card {
    min-width: 140px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-page {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-stats {
    grid-template-columns: 1fr;
  }

  .stats-overall {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right {
    display: none;
  }

  .header .container {
    gap: 12px;
  }

  .search-bar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav .container {
    flex-direction: column;
  }

  .hero-slide {
    background-size: cover !important;
  }

  .hero-slide.slide-1 {
    background: url('/image/4.png') center center/cover no-repeat, #1a1a2e !important;
  }

  .hero-slide.slide-2 {
    background: url('/image/5.png') center center/cover no-repeat, #1a1a2e !important;
  }

  .hero-slide.slide-3 {
    background: url('/image/6.png') center center/cover no-repeat, #1a1a2e !important;
  }

  .hero-static-content {
    aspect-ratio: auto;
    max-height: none;
    padding-top: 24px;
    padding-bottom: 48px;
    justify-content: center;
  }

  .hero-static-content .hero-content {
    text-align: center;
  }

  .hero-static-content .hero-buttons {
    justify-content: center;
  }

  .hero-static-content .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-dots {
    bottom: 12px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-card {
    min-width: 130px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    text-align: center;
    padding-bottom: 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .footer-about .logo {
    display: inline-block;
  }

  .footer-about p {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-grid>div:nth-child(2),
  .footer-grid>div:nth-child(3) {
    text-align: left;
    padding-bottom: 20px;
  }

  .footer-grid>div:nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
  }

  .footer h4 {
    font-size: .95rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .footer h4::after {
    left: 0;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: .82rem;
  }

  .footer-contact li {
    margin-bottom: 10px;
    font-size: .84rem;
  }

  .footer-bottom {
    padding: 16px 0;
    font-size: .78rem;
  }

  .contact-info-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }

  .contact-card {
    padding: 20px 14px;
  }

  .contact-card-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .contact-card h4 {
    font-size: .85rem;
  }

  .contact-card p {
    font-size: .78rem;
    word-break: break-word;
  }

  .map-wrapper iframe {
    min-height: 280px !important;
    border-radius: 10px !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .reels-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    max-width: 100%;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .reels-grid::-webkit-scrollbar {
    display: none;
  }

  .reel-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    margin: 0 4px;
    aspect-ratio: 9 / 16;
    max-height: 480px;
  }

  .reel-card:first-child {
    margin-left: 7.5%;
  }

  .reel-card:last-child {
    margin-right: 7.5%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cat-slider-btn {
    width: 36px;
    height: 36px;
    font-size: .85rem;
  }

  .cat-card {
    min-width: 120px;
    padding: 16px 12px;
  }

  .cat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .header .container {
    height: 60px;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-img {
    height: 36px;
  }

  .promo-banner h2 {
    font-size: 1.6rem;
  }


}

/* ---------- Policy / Info Pages ---------- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 60px;
}

.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: .82rem;
  color: var(--text-medium);
  margin-bottom: 36px;
}

.policy-updated i {
  color: var(--primary);
}

.policy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow .3s ease;
}

.policy-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.policy-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.policy-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.policy-card-icon.orange {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.policy-card-icon.green {
  background: linear-gradient(135deg, #2e7d32, #43a047);
}

.policy-card-icon.red {
  background: linear-gradient(135deg, #c62828, #e53935);
}

.policy-card-icon.purple {
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
}

.policy-card-icon.teal {
  background: linear-gradient(135deg, #00695c, #00897b);
}

.policy-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.policy-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 16px 0 8px;
}

.policy-card p {
  font-size: .9rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 10px;
}

.policy-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.policy-card ul li {
  padding: 6px 0;
  font-size: .88rem;
  color: var(--text-medium);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.policy-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--success);
  font-size: .75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.policy-callout {
  background: linear-gradient(135deg, rgba(13, 71, 161, .04), rgba(21, 101, 192, .08));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.policy-callout.warning {
  background: linear-gradient(135deg, rgba(255, 111, 0, .04), rgba(255, 143, 0, .08));
  border-left-color: var(--accent);
}

.policy-callout.success {
  background: linear-gradient(135deg, rgba(67, 160, 71, .04), rgba(67, 160, 71, .08));
  border-left-color: var(--success);
}

.policy-callout p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-dark);
  font-weight: 500;
}

.policy-callout i {
  margin-right: 8px;
  color: var(--primary);
}

.policy-callout.warning i {
  color: var(--accent);
}

.policy-callout.success i {
  color: var(--success);
}

/* Step cards for how-to pages */
.policy-steps {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.policy-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.policy-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.policy-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.policy-step-content h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.policy-step-content p {
  font-size: .85rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

/* Contact box in policy pages */
.policy-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.policy-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  padding: 14px 18px;
  border-radius: var(--radius);
}

.policy-contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.policy-contact-item span {
  font-size: .88rem;
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 768px) {
  .policy-content {
    padding: 30px 0 40px;
  }

  .policy-card {
    padding: 20px;
  }

  .policy-contact-grid {
    grid-template-columns: 1fr;
  }

  .policy-step {
    padding: 16px;
  }
}