/* =========================
   RESET & GLOBAL
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color);
}

body > * {
  max-width: 100vw;
}

/* =========================
   ROOT VARIABLE (WARNA)
========================= */
:root {
  --primary-color: #1a51d7;
  --secondary-color: #1e3e9c;
  --tertiary-color: #ffa500;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif !important;
}

.text-gradient-purple {
  background: white;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* =========================
   NAVBAR
========================= */
#navbarNav,
.bg-body-tertiary {
  background-color: transparent !important;
}

.navigation-bar {
  background-color: transparent;
  backdrop-filter: blur(7px);
}

.nav-link {
  font-weight: 600;
  border-radius: 20px;
  color: white;
  transition: 0.3s ease;
}

.nav-link:hover {
  color: white;
  background-color: var(--primary-color) !important;
  transform: scale(1.05);
}

.navbar-nav .nav-link:hover {
  background-color: var(--tertiary-color) !important;
  color: white;
}

/* =========================
   BUTTON
========================= */
.btn-primary-custom {
  color: white;
  font-weight: 600;
  border-radius: 15px;
  background: var(--secondary-color);
  box-shadow: 0 4px 8px var(--secondary-color);
  transition: 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--tertiary-color);
  box-shadow: 0 4px 8px var(--tertiary-color);
  transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--secondary-color);
}

.footer-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: white;
}

/* =========================
   SOSIAL & KONTAK
========================= */
.sosmed,
.kontak-data {
  color: var(--tertiary-color) !important;
  transition: 0.3s;
}

.sosmed:hover,
.kontak-data:hover {
  color: aqua !important;
}

/* =====================================
   HERO / CAROUSEL SECTION
===================================== */

/* ===== Container ===== */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 800 / 360;
  margin: 0 auto 20px;
}

/* ===== Track (area 3D) ===== */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

/* ===== Card / Slide ===== */
.card {
  position: absolute;
  top: 5%;
  left: 15%;
  width: 70%;
  height: 90%;
  border-radius: 20px;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transform: scale(1.3);
  filter: grayscale(100%) brightness(0.8);
  transition:
    transform 0.7s cubic-bezier(0.4, 2, 0.6, 1),
    opacity 0.7s ease,
    filter 0.7s ease;
}

/* gambar dalam card */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ===== Navigation Button ===== */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(35px, 5vw, 50px);
  height: clamp(35px, 5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.25s ease;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.1);
}

/* posisi tombol */
.carousel-button.prev {
  left: 5px;
}

.carousel-button.next {
  right: 5px;
}

/* =====================================
   CAROUSEL POSITION STATE
   (state kartu: center, kiri, kanan, hidden)
===================================== */

/* ===== CENTER (utama/fokus) ===== */
.center {
  left: 15%;
  opacity: 1;
  z-index: 5;
  filter: none;
  transform: translateX(0) scale(1.08) rotateY(0deg);
  box-shadow:
    0 4px 15px var(--secondary-color),
    0 8px 30px var(--secondary-color),
    0 0 40px var(--secondary-color);
}

/* ===== SIDE BASE (kartu samping umum) ===== */
.left-1,
.right-1 {
  opacity: 0.7;
  z-index: 4;
  filter: grayscale(60%) blur(1px);
  scale: 0.92;
}

/* kiri */
.left-1 {
  left: 0;
  transform: translateX(-60%) scale(0.92) rotateY(30deg);
}

/* kanan */
.right-1 {
  left: 30%;
  transform: translateX(60%) scale(0.92) rotateY(-30deg);
}

/* ===== HIDDEN ===== */
.hidden {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(100%) blur(3px);
}

/* =====================================
   CAROUSEL DOT INDICATOR
===================================== */

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 55px;
}

.dot {
  width: 30px;
  height: 10px;
  background: white;
  border-radius: 25%;
  cursor: pointer;
  transition: 0.25s ease;
}

.dot:hover {
  transform: scale(1.1);
}

.dot.active {
  background: #ffa500;
}

/* =====================================
   MARQUEE / RUNNING TEXT
===================================== */

.marquee-container {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 35px;
  overflow: hidden;
  background-color: #ee903f;
  background-image: radial-gradient(#ffffff33 3px, transparent 2px);
  background-size: 23px 25px;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  object-fit: cover;
  border-radius: 50%;
}

.marquee-text {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

/* =====================================
   FLASH DEAL SECTION
===================================== */

.flashdeal-section {
  background: var(--primary-color);
}

.flashdeal-wrapper {
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  max-width: 1400px;
}

/* ===== Header ===== */
.flashdeal-header {
  display: flex;
  align-items: center;
  margin: 10px;
}

.flashdeal-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

.flashdeal-title i {
  color: var(--tertiary-color);
  font-size: 28px;
}

/* ===== Countdown ===== */
.flashdeal-countdown {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 10px;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  color: var(--primary-color);
  border-radius: 10px;
  padding: 5px 10px;
  min-width: 48px;
  font-weight: bold;
}

.countdown-box span {
  font-size: 25px;
  font-weight: bold;
}

.countdown-box small {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--tertiary-color);
}

/* =====================================
   CAROUSEL
===================================== */

.flashdeal-carousel-wrapper {
  position: relative;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flashdeal-carousel {
  display: flex;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 10px;
}

/* ===== Arrow ===== */
.fd-arrow {
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.fd-arrow i {
  font-size: 20px;
  font-weight: bold;
  -webkit-text-stroke: 2px currentColor;
  line-height: 1;
}

.fd-arrow:hover {
  background: var(--tertiary-color);
  color: white;
}

/* =====================================
   CARD PRODUK
===================================== */

.fd-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.fd-card:hover {
  cursor: pointer;
  transform: translateY(-12px) perspective(1200px) rotateX(12deg);
}

/* ===== Gambar ===== */
.fd-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
}

.fd-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fd-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 40px;
}

.fd-badge-diskon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e53935;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 20px;
}

/* ===== Info ===== */
.fd-card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.fd-card-judul {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  line-height: 1.3;
}

.fd-card-harga {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fd-harga-promo {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-color);
}

.fd-harga-normal {
  font-size: 12px;
  color: #e53935;
  text-decoration: line-through;
  font-weight: 500;
}

.fd-btn-detail {
  display: block;
  text-align: center;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 7px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
  transition: 0.3s ease;
}

.fd-btn-detail:hover {
  background: var(--tertiary-color);
  color: white;
}

/* ===== Dots ===== */
.fd-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.fd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s ease;
  border: none;
  padding: 0;
}

.fd-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* =====================================
   FILTER BUTTONS
===================================== */

.filter-buttons {
  justify-content: space-evenly;
  margin-top: 15px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  height: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    height 0.3s ease,
    transform 0.3s ease;
}

.filter-buttons.show {
  opacity: 1;
  visibility: visible;
  height: auto;
  transform: translateY(0);
}

.filter-option {
  color: var(--primary-color);
  background: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s ease;
  cursor: pointer;
  padding: 7px;
  flex: 1;
  border: 2px solid var(--primary-color);
}

.filter-option i {
  -webkit-text-stroke: 0.5px currentColor;
}

.filter-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(30, 62, 156, 1);
}

#range-inputs {
  display: none;
}

#range-inputs.show {
  display: flex;
}

#harga-min,
#harga-max {
  color: black;
  background: white;
  font-size: 16px;
  border-radius: 12px;
  transition: 0.3s ease;
  cursor: pointer;
  padding: 7px;
  margin: 0 3px;
}

#harga-min:focus,
#harga-max:focus {
  outline: 3px solid var(--secondary-color);
}

#filter-range {
  color: var(--primary-color);
  background: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s ease;
  cursor: pointer;
  padding: 7px;
  flex: 1;
}

#filter-range:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(30, 62, 156, 1);
}

/* =====================================
   KATALOG KATEGORI SECTION
===================================== */

.kategori-container {
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.badge-jumlah-produk {
  position: absolute;
  right: 0;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 7px;
  display: flex;
  gap: 5px;
}

#kategori-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 36px;
  margin-bottom: 30px;
}

.kategori-card {
  width: 100%;
  height: 110%;
  display: flex;
  flex-direction: column;
  background: var(--primary-color);
  border-radius: 15px;
  text-align: center;
  transition: 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.kategori-card:hover {
  cursor: pointer;
  transform: translateY(-12px) perspective(1200px) rotateX(12deg);
}

/* ===== Area Gambar ===== */
.kategori-img-wrapper {
  position: relative;
  flex: 1;
}

.kategori-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
}

.kategori-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Placeholder tanpa gambar ===== */
.kategori-img-wrapper .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kategori-img-wrapper .img-placeholder i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.5);
}

.info-kategori {
  padding-top: 3px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-kategori h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

/* =====================================
   KATALOG PRODUK SECTION
===================================== */

.katalog-section {
  padding: 40px 40px;
  background: white;
  border-radius: 20px;
}

/* ===== Heading ===== */
.katalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Wrapper ===== */
.katalog-container-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
}

/* ===== Container (grid produk) ===== */
.katalog-container {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.katalog-container-detail {
  z-index: 2;
  gap: 20px;
  width: 100%;
}

/* =====================================
   CARD PRODUK
===================================== */

.katalog-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  z-index: 3;
  background: var(--primary-color);
  border-radius: 15px;
  text-align: center;
  border: 3px solid transparent;
  transform-style: preserve-3d;
  transition: 0.35s ease;
}

/* hover */
.katalog-card:hover {
  cursor: pointer;
  transform: translateY(-12px) perspective(1200px) rotateX(12deg);
}

/* ===== Gambar ===== */
.katalog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.katalog-card .info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =====================================
   INFO PRODUK
===================================== */

.info {
  padding: 15px;
}

.info h3 {
  margin: 5px 0;
  font-size: 17px;
  font-weight: bold;
  color: white;
}

.info p {
  margin: 0;
  font-size: 15px;
  color: black !important;
}

.info .harga {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: bold;
  color: white;
}

/* ===== Tombol Detail ===== */
.btn-detail {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  background: white;
  color: var(--primary-color);
  border-radius: 6px;
  transition: 0.25s ease;
  font-weight: bold;
}

.btn-detail:hover {
  background: var(--tertiary-color);
  color: white;
}

/* =====================================
   STATUS SOLD
===================================== */

.katalog-card.sold {
  opacity: 0.3;
  pointer-events: none;
}

.sold-badge {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  background: #ffa500;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 999px;
  z-index: 1;
}

/* =====================================
   PAGINATION
===================================== */

.pagination .page-link {
  min-width: 40px;
  margin-bottom: 20px;
  text-align: center;
  color: black;
  background-color: transparent;
  border: 2px solid var(--tertiary-color);
  border-radius: 4px !important;
  transition: 0.25s ease;
}

.pagination .page-link:hover {
  background-color: var(--tertiary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(230, 81, 0, 1);
}

.pagination .page-item.active .page-link {
  background-color: var(--tertiary-color);
  border-color: white;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(230, 81, 0, 1);
}

/* =====================================
   SECTION LINK
===================================== */

.link-container {
  max-width: 800px;
  min-height: 125px;
  margin: 30px auto;
  text-align: center;
}

/* ===== Heading ===== */
.link-container h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.link-container .link-icon {
  margin-right: 10px;
  color: #ffa500;
}

/* =====================================
   GRID
===================================== */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-items: center;
}

/* =====================================
   LINK CARD
===================================== */

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  color: var(--primary-color);
  font-weight: bold !important;
  text-decoration: none;
  background: white;
  border-radius: 10px;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--secondary-color);
  transition: 0.3s ease;
}

/* hover effect */
.link-card:hover {
  cursor: pointer;
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 1);
}

/* =====================================
   CARD CONTENT
===================================== */

.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.icon {
  font-size: 20px;
  color: var(--primary-color);
}

.icon-judul {
  font-size: 28px;
  color: #ffa500;
  text-shadow: 1px 1px 0 black;
}

/* =====================================
   WHY SECTION
===================================== */

.why-section {
  padding: 60px 20px 5px;
}

/* ===== Container ===== */
.why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ===== Text ===== */
.why-text {
  flex: 1;
  min-width: 300px;
  margin-bottom: 30px;
}

.why-text h2 {
  font-size: 28px;
  font-weight: 800;
}

.why-text p {
  max-width: 500px;
  font-size: 16px;
  line-height: 1.8;
}

/* ===== Features ===== */
.why-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-item {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

/* icon box */
.feature-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 1);
  transition: 0.3s ease;
}

/* hover kecil biar hidup */
.feature-icon:hover {
  transform: translateY(-5px);
}

.feature-icon i {
  font-size: 40px;
  color: #ffa500;
}

.feature-item p {
  margin-top: 15px;
  font-weight: 500;
}

/* =====================================
   TESTIMONI SECTION
===================================== */

.testimoni-section {
  margin-top: 50px;
  padding: 40px 0;
  border-radius: 20px;
  background-color: white;
}

.testimoni-section h2 {
  padding-bottom: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: black !important;
}

/* =====================================
   TESTIMONI CARD
===================================== */

.testimoni-card {
  width: 70%;
  margin: 0 auto 20px;
  padding: 20px;
  background-color: var(--primary-color);
  border-radius: 12px;
  border-left: 6px solid var(--tertiary-color);
  transition: 0.3s ease;
}

/* hover kecil biar hidup */
.testimoni-card:hover {
  transform: translateY(-4px);
}

/* ===== Nama ===== */
.testimoni-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: white;
}

/* ===== Pesan ===== */
.pesan {
  padding-top: 10px;
  font-style: italic;
  font-weight: 700;
  color: var(--tertiary-color);
}

/* ===== Bagian bawah ===== */
.bawah {
  display: flex;
  flex-direction: column;
}

.rating {
  display: flex;
  align-items: center;
}

/* =====================================
   BUTTON TESTIMONI
===================================== */

.btn-testi {
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  border-radius: 12px;
  transition: 0.3s ease;
}

.btn-testi:hover {
  transform: scale(1.05);
  background-color: var(--tertiary-color);
  color: white;
}

/* =====================================
   FORM INPUT TESTIMONI
===================================== */

.komentar-form {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--secondary-color);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ===== Judul ===== */
.komentar-judul {
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
}

/* =====================================
   INPUT FIELD
===================================== */

.input-nama,
.input-pesan {
  width: 100%;
  padding: 10px 20px;
  font-size: 16px;
  color: black;
  background-color: white;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* jarak bawah */
.input-nama,
.input-pesan {
  margin-bottom: 20px;
}

.input-search {
  width: 100%;
  color: var(--primary-color);
  background-color: white;
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  padding: 10px;
}

/* placeholder */
.input-nama::placeholder,
.input-pesan::placeholder,
.input-search::placeholder {
  color: gray;
}

/* =====================================
   STAR RATING
===================================== */

.star {
  font-size: 2rem;
  color: gray;
  cursor: pointer;
  transition: 0.2s ease;
}

.star.selected,
.star.hover {
  color: gold;
}

/* =====================================
   BUTTON GROUP
===================================== */

.submit-btn,
.allflashdeal-btn {
  margin-left: auto;
  background: white;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 15px;
  border-radius: 15px;
  border: 2px solid white;
  transition: 0.3s ease;
  padding: 10px 20px;
}

.filter-btn,
.reset-btn {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 15px;
  border-radius: 15px;
  border: 2px solid var(--primary-color);
  transition: 0.3s ease;
  padding: 10px 20px;
}

.submit-btn:hover,
.allflashdeal-btn:hover {
  background: transparent;
  color: white;
}

.filter-btn:hover,
.reset-btn:hover {
  background: transparent;
  color: var(--primary-color);
}

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

/* TABLET (≤ 1024px) */
@media (max-width: 1024px) {
  .katalog-container {
    grid-template-columns: repeat(3, 1fr);
  }

  /* hero carousel lebih kecil */
  .carousel-container {
    max-width: 95%;
    aspect-ratio: 16 / 9;
  }

  .fd-card {
    flex: 0 0 calc(33.33% - 12px);
  }

  .flashdeal-title {
    font-size: 22px;
  }

  .countdown-box span {
    font-size: 20px;
  }

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

  /* testimoni */
  .testimoni-card {
    width: 90%;
  }

  /* why section jadi kolom */
  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .why-text p {
    max-width: 100%;
  }

  .submit-btn,
  .filter-btn,
  .reset-btn {
    width: 85px;
    height: 45px;
    font-size: 14px;
    border-radius: 16px;
  }
}

/* MOBILE (≤ 767px) */
@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 18px;
  }
  h3 {
    font-size: 16px;
  }

  /* Katalog Section */
  .katalog-section {
    padding: 20px 20px;
  }
  .katalog-heading h2 {
    font-size: 20px !important;
  }
  .katalog-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .katalog-card img {
    height: 150px;
  }
  .katalog-card .info {
    padding: 8px;
  }

  /* Flash Deal Header */
  .flashdeal-header {
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px;
  }
  .flashdeal-title {
    font-size: 18px;
    width: 100%;
  }
  .flashdeal-title i {
    font-size: 20px;
  }

  /* Countdown */
  .flashdeal-countdown {
    margin: 0;
    gap: 4px;
  }
  .countdown-box {
    min-width: 36px;
    padding: 3px 6px;
    border-radius: 8px;
  }
  .countdown-box span {
    font-size: 16px;
  }
  .countdown-box small {
    font-size: 9px;
  }

  /* Flash Deal Button */
  .allflashdeal-btn {
    width: 35%;
    text-align: center;
    font-size: 10px;
    padding: 10px 10px;
  }

  /* Flash Deal Carousel */
  .flashdeal-wrapper {
    padding: 20px 0;
    max-width: 100%;
  }
  .flashdeal-carousel-wrapper {
    padding: 15px 0;
    gap: 6px;
    margin: 0;
  }
  .flashdeal-carousel {
    padding: 0;
    gap: 10px;
  }
  .fd-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    margin: 0;
  }
  .fd-card-judul {
    font-size: 12px;
  }
  .fd-harga-promo {
    font-size: 13px;
  }
  .fd-harga-normal {
    font-size: 11px;
  }
  .fd-btn-detail {
    font-size: 11px;
    padding: 6px;
  }

  /* Flash Deal Arrows */
  .fd-arrow {
    position: absolute;
    width: 28px;
    height: 28px;
    font-size: 36px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    top: 50%;
    transform: translateY(-50%);
  }
  .fd-arrow-left {
    left: 5px;
  }
  .fd-arrow-right {
    right: 5px;
  }

  /* Filter */
  .filter-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .filter-option {
    flex: 1 1 calc(100% - 6px);
  }

  /* Navigation */
  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  .nav-arrow {
    font-size: 2rem;
    padding: 0 10px 6px;
  }

  /* Kategori */
  .kategori-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kategori-card {
    height: 240px;
  }

  /* Carousel Card */
  .card {
    left: 5%;
    width: 90%;
  }
  .left-1,

  /* sembunyikan side card biar fokus */
  /* .left-1,
  .right-1 {
    display: none;
  } */

  /* Dots */
  .dots {
    margin-top: 25px;
  }

  /* Link Grid */
  .link-grid {
    grid-template-columns: 1fr;
  }

  /* Testimoni */
  .testimoni-card {
    width: 95%;
    padding: 15px;
  }

  /* Form */
  .komentar-form {
    padding: 20px;
  }
  .input-nama,
  .input-pesan,
  .input-search {
    font-size: 14px;
    padding: 12px;
  }
  .submit-btn,
  .filter-btn,
  .reset-btn {
    width: 70px;
    height: 40px;
    font-size: 13px;
    border-radius: 12px;
  }

  /* Marquee */
  .marquee-text {
    font-size: 0.9rem;
  }

  /* Feature Icon */
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  .feature-icon i {
    font-size: 28px;
  }
}
