/* 1. IMPORT FONTS & RESET */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800;900&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

/* =========================================
   1. GLOBAL RESET & UTILITIES
   ========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Tombol Biru Bulat */
.btn-pill {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 2px solid #5680FF;
  border-radius: 50px;
  color: #5680FF;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  text-align: center;
}

.btn-pill:hover {
  background-color: #5680FF;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-pill-blue {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 2px solid #5680FF;
  border-radius: 50px;
  color: #5680FF;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  text-align: center;
}

.btn-pill-blue:hover {
  background-color: #5680FF;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Kartu Biru Produk (FIXED MARGIN) */
.blue-card {
  width: 300px;
  flex-shrink: 0;
  /* background: linear-gradient(180deg, #7AA0FF 0%, #5680FF 100%); */
  border-radius: 20px;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: black;
  /* box-shadow: 0 15px 30px rgba(86, 128, 255, 0.3); */
  transition: transform 0.3s ease;

  /* FIX: Hapus 'auto' biar gak maksa ke tengah */
  margin: 0;
}

.blue-card:hover {
  transform: translateY(-10px);
}

.blue-card img {
  width: auto;
  /* height: 220px; */
  object-fit: contain;
  margin-bottom: 25px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
  border-radius: 15px;
}

.blue-info {
  width: 100%;
  text-align: left;
}

.blue-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  /* color: #black; */
  line-height: 1.3;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.blue-cat {
  font-size: 12px;
  opacity: 0.8;
  display: block;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* =========================================
   2. TOP BAR (RUNNING TEXT)
   ========================================= */
.top-running-bar {
  background: #fff;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 9999;
}

.running-text-wrapper {
  width: 100%;
  text-align: center;
  animation: slideText 50s linear infinite;
  white-space: nowrap;
}

.top-running-bar:hover .running-text-wrapper {
  animation-play-state: paused;
}

@keyframes slideText {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* =========================================
   3. NAVBAR
   ========================================= */
.navbar-capsule {
  margin: 30px auto 40px auto;
  background: #fff;
  width: 95%;
  max-width: 1100px;
  height: 80px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  position: relative;
  z-index: 100;
}

.logo-img {
  height: 35px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 700;
  color: #555;
  font-size: 16px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #5680ff;
}

.search-capsule {
  background: #f5f5f5;
  border-radius: 30px;
  padding: 8px 20px;
  width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-capsule input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
  transition: 0.3s;
}

/* =========================================
   SEARCH DROPDOWN - ADD THESE STYLES
   ========================================= */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  animation: slideDown 0.3s ease;
  border: 1px solid #eee;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.search-result-item:first-child {
  border-radius: 15px 15px 0 0;
}

.search-result-item:only-child {
  border-radius: 15px;
}

.search-result-item:hover {
  background: #f8f9ff;
}

.result-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.result-description {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.search-loading {
  padding: 15px 20px;
  text-align: center;
  color: #5680ff;
  font-size: 13px;
  font-weight: 500;
}

.search-loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { 
    content: '.'; 
  }
  40% { 
    content: '..'; 
  }
  60%, 100% { 
    content: '...'; 
  }
}

.search-hint {
  padding: 15px 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
  font-style: italic;
}

mark {
  background-color: #fff3cd;
  color: #333;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Scrollbar styling for search dropdown */
.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
  background: #999;
}


/* =========================================
   4. HERO PAGE (BANNER)
   ========================================= */
.hero-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 768;
  overflow: hidden;
  background: #f4f4f4;
  /* margin-bottom: 60px; */
  margin-top :-150px;
}

.hero-slider,
.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  display: block;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Popup Promo */
.popup-promo {
  position: fixed;
  bottom: 30px;
  right: 50px;
  width: 140px;
  z-index: 101;
  animation: float 3s infinite ease-in-out;
}

.popup-promo img {
  width: 100%;
}

.close-popup {
  position: absolute;
  top: -10px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-weight: bold;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Flash Sale */
.flash-sale {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  margin-bottom: 50px;
}

.flash-text-area {
  text-align: left;
}

.flash-title {
  font-weight: 900;
  font-size: 80px;
  line-height: 0.9;
  color: #8CA6FF;
  margin-bottom: 20px;
}

.text-blue {
  color: #5680FF;
}

.flash-timer p {
  font-size: 20px;
  color: #5680FF;
  margin-bottom: 5px;
}

.timer-digits {
  font-size: 40px;
  font-weight: 900;
  color: #5680FF;
  font-family: monospace;
}

.flash-product-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.arrow-nav {
  font-size: 50px;
  color: #ddd;
  transition: 0.3s;
  cursor: pointer;
}

.arrow-nav:hover {
  color: #5680FF;
}

.flash-card {
  width: 320px;
  border: 1px solid #e0e6ff;
  border-radius: 20px;
  padding: 25px;
  background: #fff;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.discount-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background: #0000AA;
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.disc-big {
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.disc-small {
  font-size: 10px;
}

.card-img-box img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.card-details {
  text-align: left;
}

.cat {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 5px 0 10px;
}

.price-strike {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

.price-main {
  font-size: 24px;
  font-weight: 900;
  color: #5680FF;
}

/* Mid Banner */
.mid-banner {
  position: relative;
  width: 100%;
  /* margin: 60px 0; */
}

.banner-img {
  width: 100%;
  display: block;
}

.full-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Best Seller */
.best-seller {
  padding: 80px 20px;
  text-align: center;
}

.section-header h2 {
  color: #0000ff;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-header p {
  color: #666;
  margin-bottom: 50px;
  font-size: 16px;
}

.best-seller-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.slider-btn {
  background: #fff;
  border: 1px solid #ddd;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.slider-btn:hover {
  background: #5680FF;
  color: #fff;
  border-color: #5680FF;
  transform: scale(1.1);
}

.product-grid {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 20px 5px;
  /* Add slight side padding so shadows aren't cut off */

  /* KEY FIX: Use flex-start or normal. 'center' causes cutoff on overflow */
  justify-content: flex-start;

  /* Smooth scrolling */
  scroll-behavior: smooth;

  /* Optional: Snap effect */
  scroll-snap-type: x mandatory;

  /* Ensure it takes available width but doesn't force overflow incorrectly */
  width: 100%;
  max-width: 1000px;
  /* Adjust based on your layout needs */
}

/* Hide Scrollbar for Clean Look */
.product-grid::-webkit-scrollbar {
  display: none;
}

.product-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* =========================================
   5. CTA SECTION
   ========================================= */
.cta-section {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.cta-img {
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
  object-fit: cover;
}


/* =========================================
   6. PAGE SPECIFIC & SECTION TITLES
   ========================================= */
.about-section {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

.about-header h1 {
  font-size: 48px;
  font-weight: 900;
  color: #0000FF;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
  text-align: justify;
}

.our-product {
  padding: 0 0 100px 0;
  text-align: center;
}

/* FIX JUDUL HALAMAN */
.section-title,
.section-title h2 {
  font-size: 40px;
  font-weight: 900;
  color: #0000ff;
  margin-bottom: 50px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  margin-top: 0;
}

.product-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sort-section {
  padding: 20px 0 40px 0;
  text-align: left;
}

.sort-section h1 {
  font-size: 48px;
  font-weight: 900;
  color: #0000FF;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: 0.3s;
  border: 2px solid transparent;
}

.filter-btn.active {
  background-color: #fff;
  border-color: #0000FF;
  color: #0000FF;
}

.filter-btn:not(.active) {
  background-color: #f0f0f0;
  color: #888;
}

.filter-btn:not(.active):hover {
  background-color: #e0e0e0;
  color: #555;
}

.product-list {
  padding-bottom: 100px;
}

/* --- FIX: PRODUCT GRID ALIGN LEFT --- */
.product-page-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  /* Ganti jadi flex-start biar mulai dari Kiri */
  justify-content: flex-start;
}

.product-hero {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.product-gallery {
  display: flex;
  gap: 20px;
  flex: 1;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- THUMBNAIL (Kotak Kecil) --- */
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  background: #fff;
}

.thumb:hover,
.thumb.active {
  border-color: #5680FF;
}

/* --- MAIN IMAGE (Kotak Besar) --- */
.main-image {
  flex: 1;
  background: #F4F6FF;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 450px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.product-info {
  flex: 1;
  padding-top: 20px;
}

.product-info h1 {
  font-size: 42px;
  font-weight: 900;
  color: #333;
  line-height: 1.2;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.stars {
  color: #FFC107;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.marketplace-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.mp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #333;
  transition: 0.3s;
}

.mp-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mp-btn:hover {
  border-color: #5680FF;
  background: #F4F6FF;
  color: #5680FF;
}

.product-desc {
  margin-bottom: 80px;
}

.product-desc h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-desc p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.testimonials-section {
  margin-bottom: 100px;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testi-card {
  border: 1px solid #eee;
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  transition: 0.3s;
}

.testi-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testi-source {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.testi-stars {
  color: #FFC107;
  font-size: 18px;
  margin-bottom: 15px;
}

.testi-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.testi-content {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}


/* =========================================
   7. FOOTER (UPDATED: 3 KOLOM)
   ========================================= */
.main-footer {
  background-color: #5680ff;
  color: #fff;
  padding: 80px 0;
  margin-top: 0;
}

/* FIX DISINI: Ganti jadi 3 kolom proporsional (2:1:2) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 240px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  margin-left: -10px;
}

.links-col h4,
.contact-col h4 {
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 30px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-col li {
  margin-bottom: 15px;
}

.links-col a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.links-col a:hover {
  color: #fff;
  text-decoration: underline;
  opacity: 1;
}

.wa-contact {
  line-height: 1.6;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
}

.wa-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.socmed-label {
  margin-bottom: 20px;
}

.social-icons-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icons-wrapper a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-icons-wrapper a:hover {
  transform: translateY(-5px);
}

.social-icons-wrapper img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}


/* =========================================
   8. MOBILE RESPONSIVE FIX (YANG DIMINTA ATASAN)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  transform: scale(0.8);
  transition: 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-img {
  width: 100%;
  border-radius: 20px;
}

.close-modal-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  color: #5680FF;
  border: 2px solid #5680FF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  z-index: 10;
}

.popup-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 9000;
  animation: float 3s infinite ease-in-out;
}

/* =========================================
  MODAL STYLES (NEW)
  ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Dark semi-transparent background */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 75vw;
  /* Limit width of popup */
  background: transparent;
  /* No background needed if full image */
  transform: scale(0.8);
  transition: all 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: block;
  cursor: pointer;
  /* Indicates clickable */
}

.close-modal-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #5680FF;
  border: 2px solid #5680FF;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.close-modal-btn:hover {
  transform: scale(1.1);
  background-color: #5680FF;
  color: #fff;
}

@media (max-width: 900px) {

  /* Navbar & Menu */
  .navbar-capsule {
    width: 95%;
    padding: 0 20px;
    height: 50px;

    margin: 10px auto 40px auto;
  }

  /* Search Mobile */
  .search-capsule {
    width: auto;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
  }

  .search-capsule.active {
    background: #fff;
    padding-right: 10px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .search-capsule button {
    display: block;
    z-index: 2;
  }

  .search-capsule input {
    display: block;
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: 0;
  }

  .search-capsule.active input {
    width: 140px;
    padding: 5px 10px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Hamburger & Menu */
  .hamburger {
    display: flex;
    margin-left: 10px;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 50px;
  }

  .footer-col h4 {
    margin-bottom: 12px;
  }

  .brand-col {
    align-items: center;
  }

  .footer-logo {
    margin-left: 0;
    width: 200px;
  }

  .social-icons-wrapper {
    justify-content: start;
  }

  /* Fix Home Page */
  .hero-wrapper {
    height: 300px;
    aspect-ratio: unset;
    margin-bottom: 0;
    margin-top: -100px;
  }

  .flash-sale {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .flash-text-area,
  .flash-details {
    text-align: center;
  }

  .arrow-nav {
    display: none;
  }

  .slider-btn {
    /* display: none; */
    height: 30px;
    width: 30px;
  }

  .product-grid {
    padding: 0 0;
  }

  /* --- [MODIFIKASI] FIX PAGE PRODUCT BREAKPOINT --- */
  /* Ubah jadi 2 Kolom (Grid) biar rapi di HP */
  .product-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-content: start;
    padding: 0 5px;
  }

  /* Bikin Kartu jadi Fleksibel */
  .blue-card {
    width: 85vw;
    max-width: 300px;

    box-shadow: none;
  }

  /* Kecilin Elemen Kartu di HP */
  .blue-card img {
    /* height: 120px; */
    margin-bottom: 15px;
  }

  .blue-info h3 {
    font-size: 14px;
    min-height: 40px;
    line-height: 1.2;
  }

  .blue-cat {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .btn-pill {
    font-size: 12px;
    padding: 10px 0;
  }

  .product-hero {
    flex-direction: column;
  }

  .product-gallery {
    width: 100%;
    flex-direction: column-reverse;
  }

  .thumbnails {
    flex-direction: row;
    justify-content: center;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .best-seller-wrapper {
    gap: 0;
  }

  .popup-promo {
    width: 70px;
  }

  .close-popup {
    position: absolute;
    top: 4px;
    right: -2px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-weight: bold;
  }


    .mid-banner {
      place-content: center;
      height: 150px;
      position: relative;
      display: flex;
      margin: 0;
      overflow: hidden;
    }

    .mid-banner img {
      max-width: none !important;
      width: auto !important;
      height: 100% !important;
    }

    .cta-section {
      height: 130px;
      position: relative;
      display: flex;
      margin: 0;
      overflow: hidden;
    }

    .cta-section img {
      max-width: none !important;
      /* width: auto !important; */
      height: 100% !important;
    }

    /* .hero-slider {
      height: 80%;
    } */

    .top-running-bar {
      height: 25px;
    }

    .best-seller {
      padding: 30px 20px;
    }
}


/* =========================================
   9. UTILITY: BUAT HIDE SECTION
   ========================================= */
.hidden {
  display: none !important;
}