/* Container pagination */
.pagination-animated {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

/* Tombol umum */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Tombol number (halaman) */
.pagination-number {
    min-width: 44px;
    padding: 12px 0;
}

/* Hover untuk semua tombol (kecuali disabled) */
.pagination-btn:not(.pagination-disabled):hover {
    background-color: #f57224;
    border-color: #f57224;
    color: white;
}

/* Hover untuk SVG dalam tombol */
.pagination-btn:not(.pagination-disabled):hover svg {
    stroke: white;
}

/* Active / Current page */
.pagination-current {
    background-color: #f57224;
    border-color: #f57224;
    color: white;
    cursor: default;
    pointer-events: none;
}

/* Disabled state (Previous/Next saat tidak aktif) */
.pagination-disabled {
    background-color: #f9f9f9;
    border-color: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
}

/* SVG styling */
.pagination-btn svg {
    stroke: #f57224;
    transition: stroke 0.2s;
    width: 18px;
    height: 18px;
}

.pagination-disabled svg {
    stroke: #ccc;
}

/* Dots (ellipsis) */
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    letter-spacing: 2px;
}
/* Responsif untuk layar kecil */
@media (max-width: 640px) {
    .pagination-container {
        gap: 8px;
        margin: 30px 0 20px;
    }

    .pagination-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .pagination-number {
        min-width: 36px;
        padding: 8px 0;
    }

    .pagination-btn span {
        display: none; /* Sembunyikan teks "Previous" dan "Next" di mobile */
    }

    .pagination-btn svg {
        width: 16px;
        height: 16px;
    }

    .pagination-prev span,
    .pagination-next span {
        display: none;
    }
}
/* --- WADAH UTAMA PRODUK --- */
.product-section {
  width: 100%;
  max-width: 1200px; /* Lebar sama dengan banner atas */
  margin: 20px auto 50px; /* Jarak atas 20px, tengah otomatis, bawah 50px */
}

/* --- GRID DAFTAR PRODUK --- */
.product-grid {
  display: grid;
  /* Membuat 6 kolom berukuran sama untuk tampilan Desktop */
  grid-template-columns: repeat(6, 1fr);
  gap: 10px; /* Jarak antar kartu produk */
}

/* --- KARTU PRODUK (CARD) --- */
.product-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

/* Efek saat kursor diarahkan ke produk */
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: #ee4d2d;
}

/* --- BAGIAN GAMBAR PRODUK --- */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Membuat gambar otomatis berbentuk kotak/persegi */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label Diskon */
.discount-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fcebeb; /* Warna background pink pucat */
  color: #ee4d2d; /* Warna teks oranye WARGERCEP */
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
}

/* --- BAGIAN DETAIL PRODUK (Judul, Harga, Terjual) --- */
.product-details {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Mendorong harga ke paling bawah jika judul pendek */
}

/* Judul Produk dengan pemotongan teks otomatis jika terlalu panjang */
.product-title {
  font-size: 12px;
  color: #212121;
  line-height: 1.4;
  margin-bottom: 10px;
  /* Membatasi teks hanya 2 baris (titik-titik di akhir) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Label Star/Star+ */
.star-badge {
  background-color: #ee4d2d;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  margin-right: 4px;
}

/* Baris bawah berisi Harga & Angka Terjual */
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Memastikan posisi selalu di paling bawah kartu */
}

.product-price {
  color: #ee4d2d;
  font-size: 16px;
  font-weight: bold;
}

.product-sold {
  color: #757575;
  font-size: 11px;
}

/* --- RESPONSIVITAS (TAMPILAN DI LAYAR LEBIH KECIL) --- */
@media (max-width: 1024px) {
  /* Di Tablet: Ubah jadi 4 kolom */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  /* Di HP standar: Ubah jadi 3 kolom */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  /* Di HP layar kecil: Ubah jadi 2 kolom */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* --- HEADER PRODUK --- */
.product-header {
  display: flex;
  justify-content: space-between; /* Mendorong judul ke kiri, link ke kanan */
  align-items: center; /* Memastikan teks sejajar secara vertikal */
  margin-bottom: 15px; /* Jarak antara header dan baris produk di bawahnya */
  padding: 15px 20px; /* Jarak teks ke tepi kotak putih */
  background-color: #ffffff; /* Latar belakang putih */
  border-bottom: 4px solid #ee4d2d; /* Garis bawah aksen warna oranye WARGERCEP */
}

/* Teks Judul */
.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #ee4d2d; /* Warna teks oranye */
  margin: 0;
  text-transform: uppercase; /* Membuat teks jadi HURUF BESAR semua otomatis */
}

/* Link "Lihat Semua" */
.see-all {
  font-size: 14px;
  color: #757575; /* Warna teks abu-abu */
  text-decoration: none; /* Menghilangkan garis bawah bawaan link */
  transition: color 0.2s; /* Efek transisi halus saat disentuh kursor */
}

/* Efek saat link "Lihat Semua" diarahkan kursor */
.see-all:hover {
  color: #ee4d2d;
}

/* TAMPILAN UNTUK HP (Menyesuaikan ukuran font header di layar kecil) */
@media (max-width: 480px) {
  .product-header {
    padding: 12px 15px;
  }
  .section-title {
    font-size: 14px;
  }
  .see-all {
    font-size: 12px;
  }
}
/* --- WADAH PAGINATION --- */
.pagination {
  display: flex;
  justify-content: center; /* Menengahkan posisi ke tengah halaman */
  align-items: center;
  margin-top: 40px; /* Jarak dari batas bawah daftar produk */
  margin-bottom: 20px;
  gap: 8px; /* Jarak antar tombol angka */
}
/* --- RESPONSIF UNTUK HP --- */
@media (max-width: 480px) {
  .pagination {
    gap: 4px; /* Jarak diperkecil agar muat di HP */
  }
}