/* ===== GENERAL RESET & MOBILE FIRST ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Zalando Sans Expanded", sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}
.nav-links a.active-link {
  color: #008cff; /* Warna kuning atau sesuai tema Anda */
  font-weight: bold;
}
/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  background: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo-img {
  height: 45px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004a99;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #004a99;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #004a99;
}

#lang-switch {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  color: #333;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
  padding: 20px 10%;
  z-index: 10005;
  display: none;
  border-top: 3px solid #3f3d91;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.cookie-content a {
  color: #3f3d91;
  text-decoration: underline;
}

.btn-cookies {
  background: #3f3d91;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  transition: background 0.3s;
}

.btn-cookies:hover {
  background: #2e2c7a;
}

/* ===== HERO SECTIONS ===== */
.hero,
.hero-about,
.hero-categories,
.hero-programs {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=2000");
}

.hero-about {
  height: 55vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("image/trailer.png");
}

.hero-categories {
  height: 50vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?q=80&w=2000");
}

.hero-programs {
  height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=2000");
}

.hero-content h1 {
  font-size: 4rem;
  max-width: 1920px;
  margin-bottom: 10px;
  font-family: "zalando sans expanded", sans-serif;
}

.hero-subtitle {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.1rem;
  color: #ddd;
}

/* ===== STATISTICS SECTION ===== */
.stat-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1350&q=80"); /* Ganti dengan gambar mesin tik Anda */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Membuat efek parallax saat scroll */
  padding: 100px 0;
  color: white;
  font-family: "Arial", sans-serif;
}

.stat-container {
  display: flex;
  justify-content: space-around;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.icon {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.7;
}

.counter {
  font-size: 48px;
  margin: 10px 0;
  font-weight: bold;
}

.stat-item p {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
}

/* --- Style untuk Stats Counter --- */
.stat-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  color: white;
  font-family: sans-serif;
}

.stat-container {
  display: flex;
  justify-content: space-around;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.icon {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.counter {
  font-size: 48px;
  margin: 10px 0;
  font-weight: bold;
}

.stat-item p {
  font-size: 14px;
  text-transform: uppercase;
  color: #ccc;
}

/* --- Style untuk Brand Carousel (Fixed) --- */
.brand-section {
  padding: 80px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.brand-title {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

/* KUNCI: Gunakan class yang sama dengan HTML (brandSwiper) */
.brandSwiper {
  width: 100%;
  max-width: 1000px; /* Membatasi lebar agar logo merapat ke tengah */
  margin: 0 auto;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* Sesuaikan tinggi slide */
}

.swiper-slide img {
  max-height: 100px; /* Ukuran logo seragam */
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.swiper-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 140px 10% 80px;
  min-height: 75vh;
}

.container h1 {
  font-size: 2.5rem;
  color: #004a99;
  margin-bottom: 30px;
  text-align: center;
}

.page-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

.hero-products-small {
  padding: 100px 10% 40px;
  background: #f4f7f9;
  text-align: left;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

/* ===== OVERVIEW & CARDS (UNIFORM STYLE) ===== */
.overview {
  padding: 80px 10%;
  text-align: center;
  background-color: #ffffff;
  /* Pastikan font keluarga utama Anda di sini */
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 45px;
  color: #222222;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Semua kartu menggunakan style yang sama */
.strength-card,
.strength-card.highlight-card {
  padding: 40px 30px;
  background: #f9f9f9;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eeeeee;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%; /* Menyamakan tinggi kartu */
}

/* Penyeragaman Warna Ikon */
.card-icon i,
.highlight-card .card-icon i {
  font-size: 2.5rem;
  color: #004a99; /* Warna biru konsisten */
  margin-bottom: 20px;
}

/* Penyeragaman Font Judul */
.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222222;
}

/* Penyeragaman Font Deskripsi */
.card-description,
.highlight-text {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  font-weight: normal; /* Menghilangkan bold pada highlight-text */
}

/* Menghilangkan dekorasi khusus pada highlight-text agar sama dengan teks biasa */
.highlight-text {
  display: inline;
  color: inherit;
}

/* Efek Hover Seragam */
.strength-card:hover,
.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-bottom: 4px solid #004a99;
  border-color: #eeeeee; /* Tetap menjaga border samping lembut */
}

/* ===== ABOUT SECTION ===== */
.about-description {
  padding: 80px 15%;
  background-color: #fff;
}

.about-description .container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-description p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  text-align: justify;
}

/* ===== CATEGORIES SECTION ===== */
.categories-list {
  padding: 80px 10%;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.category-image {
  flex: 1;
}

.category-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-info {
  flex: 1.5;
}

.category-info h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
}

.category-info p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.8;
  text-align: justify;
}

.underline {
  width: 100px;
  height: 4px;
  background-color: #add8e6;
  margin: 0 auto;
}

/* ===== PRODUCTS SECTION ===== */
.products-container {
  padding: 60px 4%;
  background-color: #f8fafc;
  min-height: 100vh;
}

.flex-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Header Actions & Filter Toggle */
.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.btn-filter {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-filter:hover {
  border-color: #004a99;
  color: #004a99;
  box-shadow: 0 4px 12px rgba(0, 74, 153, 0.15);
}

/* Sidebar Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.sidebar-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-close-drawer {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.btn-close-drawer:hover {
  color: #333;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.drawer-footer {
  padding: 20px 25px;
  border-top: 1px solid #f0f0f0;
}

.btn-apply {
  width: 100%;
  background: #333;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-apply:hover {
  background: #000;
}

/* Sidebar */
.sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
  height: fit-content;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
}

.filter-group {
  margin-bottom: 30px;
}

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

.filter-group h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group h3::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #edf2f7;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
  background: #f7fafc;
}

.search-box input:focus {
  border-color: #004a99;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
}

.filter-list {
  list-style: none;
  padding: 0;
}

.filter-list > li {
  margin-bottom: 15px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #2d3748;
  transition: color 0.3s;
}

.category-header:hover {
  color: #004a99;
}

.category-header i {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: #a0aec0;
}

.sub-filter-list {
  list-style: none;
  padding-left: 20px;
  margin-top: 12px;
  display: none;
}

.sub-filter-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-filter-list li:hover {
  color: #004a99;
  padding-left: 5px;
}

.has-dropdown.active .sub-filter-list {
  display: block;
}

.has-dropdown.active .toggle-icon {
  transform: rotate(180deg);
  color: #004a99;
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #004a99;
}

/* Product Listing */
.product-listing {
  flex: 1;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  padding: 15px 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  color: #718096;
  font-size: 0.95rem;
}

#product-counter {
  font-weight: 600;
  color: #2d3748;
}

.view-options {
  display: flex;
  gap: 12px;
}

.view-options i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
  color: #a0aec0;
}

.view-options i.active {
  background: #004a99;
  color: #fff;
  border-color: #004a99;
  box-shadow: 0 4px 10px rgba(0, 74, 153, 0.2);
}

/* Grid View (Default) - Judydoll Style */
.list-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px;
  width: 100%;
}

.list-container.list-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px;
}

.product-list-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 250px;
  border: 1px solid #f0f0f0;
}

.list-mode .product-list-item {
  flex-direction: row;
  height: auto;
  align-items: center;
}

.product-list-item:hover {
  transform: translateY(-5px);
}

.item-img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.list-mode .item-img {
  width: 150px;
  min-width: 150px;
  aspect-ratio: 1/1;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-list-item:hover .item-img img {
  transform: scale(1.05);
}

/* Quick Shop Button (Floating Circle) */
.quick-shop {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 5;
  border: none;
}

.quick-shop:hover {
  background: #004a99;
  color: #fff;
  transform: scale(1.1);
}

.item-info {
  padding: 20px 10px;
  text-align: center;
  width: 100%;
}

.list-mode .item-info {
  text-align: left;
  padding: 20px 30px;
}

.cat-label {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.item-info h4 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}

.star-rating {
  color: #ffc107;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.review-count {
  color: #999;
  font-size: 0.75rem;
  margin-left: 5px;
}

.btn-details {
  display: inline-block;
  color: #3f3d91;
  text-decoration: underline;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.btn-details:hover {
  color: #2e2c7a;
}

/* ===== PROGRAMS SECTION ===== */
.programs-list {
  padding: 80px 10%;
  background-color: #fff;
}

.tagline {
  font-weight: bold;
  color: #004a99;
  margin-bottom: 10px;
}

/* ===== PARTNER SECTION ===== */
.why-partner-section {
  padding: 100px 10%;
  background-color: #fdfdfd;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  background: #eef6ff;
  color: #004a99;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 15px;
  color: #333;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.partner-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s;
  border: 1px solid #eee;
}

.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 74, 153, 0.1);
  border-color: #004a99;
}

.icon-box {
  width: 80px;
  height: 80px;
  background: #004a99;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  transition: all 0.4s;
}

.partner-card:hover .icon-box {
  background: #2e7d32;
  transform: rotateY(180deg);
}

.partner-card h3 {
  margin-bottom: 15px;
  color: #004a99;
  font-size: 1.4rem;
}

.partner-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 10% 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: #f4f4f4;
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* ===== GOOGLE TRANSLATE CUSTOMIZATION ===== */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* ===== BEST SELLER SECTION ===== */
.best-seller-section {
  margin-bottom: 60px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 50px 5%;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 74, 153, 0.08);
  border: 1px solid rgba(0, 74, 153, 0.1);
  position: relative;
  overflow: hidden;
}

.best-seller-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.section-title-wrapper .badge {
  background: #004a99;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 74, 153, 0.2);
}

.section-title-wrapper h2 {
  font-size: 2.8rem;
  color: #004a99;
  margin-bottom: 15px;
  font-weight: 800;
}

.section-title-wrapper p {
  color: #555;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.best-seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.best-seller-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.best-seller-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 74, 153, 0.15);
  border-color: #008cff;
}

.best-seller-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #004a99;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.best-seller-card:hover::after {
  transform: scaleX(1);
}

.top-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #004a99;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bs-img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
}

.best-seller-card:hover .bs-img {
  transform: scale(1.1);
}

.bs-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.bs-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bs-cat {
  font-size: 0.75rem;
  color: #999;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bs-info h4 {
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  font-weight: 800;
  text-align: center;
}

.bs-stats {
  margin-top: auto;
  padding: 8px;
  background: transparent;
  color: #777;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

.best-seller-card:hover .bs-stats {
  background: #e3f2fd;
}

.bs-stats i {
  color: #004a99;
  font-size: 1.1rem;
}

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

/* 1. Phones & Tablets (Common Mobile) [max-width: 991px] */
@media (max-width: 991px) {
  .navbar { height: 70px; padding: 10px 5% !important; }
  .logo-text { font-size: 1.1rem; }
  .logo-img { height: 35px; }
  .menu-toggle { display: block !important; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 9999;
  }
  .nav-links.active { display: flex !important; }
  .nav-links li { margin: 15px 0; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-left: 0; }
  
  .hero-content h1 { font-size: 2.2rem !important; }
  .flex-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; margin-bottom: 30px; max-width: 100%; }
  
  .best-seller-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
  .list-container { 
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)) !important; 
  }
  .list-container.list-mode {
    display: flex !important;
  }
  
  .best-seller-section { padding: 30px 20px; }
}

/* MOBILE SPECIFIC FIX - Eliminate Horizontal Overflow */
@media (max-width: 576px) {
  .products-container { padding: 40px 15px; }
  .list-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .product-list-item {
    min-width: 0 !important;
    width: 100% !important;
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .best-seller-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Tablets & Small Laptops [min-width: 768px] */
@media (min-width: 768px) {
  .best-seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-container { justify-content: space-around; }
}

/* 3. Laptops & Desktop [min-width: 992px] */
@media (min-width: 992px) {
  .navbar { padding: 10px 8%; }
  .menu-toggle { display: none !important; }
  .nav-links { 
    display: flex !important; 
    position: static; 
    background: none; 
    box-shadow: none; 
    padding: 0; 
    flex-direction: row; 
    width: auto;
  }
  .nav-links li { margin-left: 25px; border: none; padding: 0; }
  
  .flex-layout { flex-direction: row; }
  .sidebar { flex: 0 0 280px; position: sticky; top: 100px; display: block; }
  
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 30px !important;
  }

  .listing-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .view-options {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .best-seller-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-container { 
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; 
  }
  .list-container.list-mode {
    display: flex !important;
  }
  
  .hero-content h1 { font-size: 3.5rem; }
}

/* 4. Large Desktops [min-width: 1200px] */
@media (min-width: 1200px) {
  .navbar { padding: 10px 10%; }
  .products-container { padding: 80px 10%; }
  .flex-layout { gap: 50px; }
  
  .best-seller-grid, .list-container { 
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; 
  }

  .container, .stat-container, .footer-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* MOBILE SPECIFIC FIX - Eliminate Horizontal Overflow */
@media (max-width: 576px) {
  .products-container { padding: 40px 15px !important; }
  .list-container {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 20px !important;
  }
  .product-list-item {
    min-width: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
  }
  .item-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
  }
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .best-seller-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 
   ==========================================================================
   FINAL FRZ BRANDING & LAYOUT OVERRIDES (Do not remove)
   ==========================================================================
*/

/* 1. Global Branding Revert (No Salmon/Peach) */
.top-badge, 
.badge, 
.section-title-wrapper .badge, 
#load-more-btn {
  background: #004a99 !important;
  color: #ffffff !important;
  border-color: #004a99 !important;
  box-shadow: 0 4px 10px rgba(0, 74, 153, 0.2) !important;
}

.star-rating i {
  color: #3f3d91 !important; /* Original FRZ Purple-ish Blue */
}

.btn-details {
  color: #3f3d91 !important;
  text-decoration: underline !important;
}

.btn-details:hover {
  color: #2e2c7a !important;
}

.btn-filter:hover, 
.quick-shop:hover {
  background-color: #004a99 !important;
  color: #ffffff !important;
  border-color: #004a99 !important;
}

/* 2. Grid & Mobile Layout Fixes (Eliminate Squeezed Rows) */
.list-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .list-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .product-list-item {
    min-width: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
  }
  .item-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
  }
  .best-seller-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 3. Robust List Mode Styles */
.list-container.list-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.list-container.list-mode .product-list-item {
  flex-direction: row !important;
  height: auto !important;
  min-height: 180px !important;
  align-items: center !important;
  padding: 15px !important;
  width: 100% !important;
}

.list-container.list-mode .item-img {
  width: 150px !important;
  min-width: 150px !important;
  height: 150px !important;
  aspect-ratio: 1/1 !important;
}

.list-container.list-mode .item-info {
  text-align: left !important;
  padding: 0 30px !important;
  flex: 1 !important;
}
