
/* Global reset */
* {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body {                                                   
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #e0f2f1;
}

header {
  background-color: #e0f2f1;
  padding: 0 20px;
  position: static;
  top: 0;
  z-index: 999;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  margin-right: 15px;
  object-fit: contain;
}

.nama-bisnes {
  font-size: 24px;
  color: #00695c;
  margin: 0;
  text-transform: uppercase; /* ✅ ini yang buat semua huruf besar */
}

/*Susunan Logo dan search bar */
.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #e0f2f1;
  min-height: 80px; /* untuk stabilkan tinggi walaupun scroll */
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 20px;
  flex-wrap: wrap; /* ❗ penting */
}

.inner-header {
  display: flex;
  align-items: center;
  gap: 40px; 
}

/*Search-form styling*/
.search-form {
  flex-grow: 1;
  max-width: 1000px;
  margin-left: auto;
  position: relative; /* untuk pastikan ikon dalam input kekal betul */
}

.search-form input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #b0bec5;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  color: #004d40;
  background-color: white;
}

.search-form input[type="text"]::placeholder {
  color: #90a4ae;
  font-style: italic;
}

.search-form input[type="text"]:hover {
  border-color: #00796b;
  box-shadow: 0 0 3px #b2dfdb;
}

/* Ikon search dalam input */
.search-form .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #00796b;
  font-size: 14px;
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #00796b;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.search-button:hover {
  color: #004d40;
}

.troli-link {
  color: #2e7d32;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0px;
  transition: transform 0.3s ease;
}

.troli-link:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.troli-text {
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  color: #2e7d32;
}

.troli-count {
  font-size: 15px;
  font-weight: 600;
  color: #2e7d32;
  margin-left: 4px; /* Jarak rapat sikit dengan ikon */
}

.menu-bar {
  background-color: #e0f2f1;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid #ccc;
  position: static;
  top: 90px; /* ikut tinggi header */
  z-index: 998;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.menu-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 30px;
}

/* Paksa submenu susun menegak */
.menu-bar ul li a {
  text-decoration: none;
  font-size: 15px;
  color: #004d40;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-bar ul li a:hover {
  color: #00796b;
  background-color: transparent;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
}

.blink-icon {
  animation: blink 1s infinite;
  color: red;
  margin-right: 1px;
  font-size: 14px;
  position: relative;
  top: -1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== SLIDER SWIPER ========== */
.swiper {
  width: 99%;
  margin: 10px auto 0 auto; /* Atas 10px, bawah 0 */
  height: 420px;
  position: relative;
  margin-top: 5px;
  border-radius: 10px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Teks atas gambar */
.caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 600;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
  line-height: 1.4;
  max-width: 80%;
}

.caption-sub {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.6;
  max-width: 700px;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; /* 4 arah stroke hitam */
}

.caption a {
  color: #fff;
  text-decoration: none;
}

.caption a:hover {
  text-decoration: underline;
}

.slider-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #00796b;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.slider-button:hover {
  background-color: #004d40;
  text-decoration: none;
}

.slide-full-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 30px 40px;

  /* ✅ buang overlay cerah */
  background: transparent;
  transition: none;
}

.slide-full-link:hover {
  background: transparent;
}

.slide-full-link .caption {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

/* Butang arrow kiri/kanan */
.swiper-button-next,
.swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00695c;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

/* Bullet pagination bawah */
.swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #00a86b;
  opacity: 1;
}

/* Buang arrow default Swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

/* ========== POPULAR PRODUCTS SECTION ========== */
.popular-section {
  padding: 10px 30px 50px 30px;
  background-color: #ffffff;
  text-align: center;
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 40px;
  font-weight: 600;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.product-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  width: 240px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  overflow: hidden;

  position: relative; /* ✅ gabung (sebelum ni duplicate) */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 18px;
  margin: 15px 15px 5px;
  font-weight: 600;
}

.subtitle {
  font-style: italic;
  color: #7a7a7a;
  font-size: 13px;
  margin: 0 15px 10px;
}

.rating {
  font-size: 14px;
  color: #388e3c;
  margin: 0 15px;
}

.rating .stars {
  color: #ffc107;
  margin-right: 5px;
}

/* Gaya untuk bintang kuning */
.rating.yellow-stars {
  color: #ffc107; /* warna kuning */
}

/* ✅ Gabung dua versi .price (font + flex untuk label) */
.price {
  font-size: 16px;
  font-weight: bold;
  color: #00695c;
  margin: 10px 15px 20px;

  display: flex;
  align-items: center;
  gap: 2px; /* ruang antara harga dan label */
}

.harga {
  font-weight: bold;
  color: #2e7d32;
  font-size: 1rem;
}

.container-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GAYA CSS UNTUK FOOTER */
.site-footer {
  background-color: #e0f2f1 !important;
  color: #004d40;
  padding: 40px 20px 10px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  gap: 30px;
}

.footer-about {
  flex: 1;
  min-width: 220px;
}

.footer-about .footer-logo {
  height: 50px;
  margin-bottom: 10px;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #004d40;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #00796b;
}

.footer-social {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social a {
  color: #004d40;
  font-size: 18px;
  margin-right: 12px;
  display: inline-block;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #00796b;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social ul li {
  margin-bottom: 10px;
}

.footer-social ul li a {
  text-decoration: none;
  color: #004d40;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.footer-social ul li a i {
  margin-right: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #00695c;
  border-top: 1px solid #b2dfdb;
  margin-top: 30px;
}

.logo-and-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* untuk tengah logo + alamat */
  text-align: center;
}

.footer-logo {
  height: 90px;
  width: auto;
  display: block;
  margin-left: 10px;  /* ➡️ tolak ke kanan sikit */
  margin-bottom: 14px;
}

.footer-about .alamat {
  margin: 0;
  line-height: 1.6;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  display: flex;
  align-items: center;
  color: #2e7d32;
  font-size: 22px;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.icon-link:hover {
  transform: scale(1.1);
}

.wishlist-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.wishlist-icon:hover {
  transform: scale(1.1);
}

.login-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.troli-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-icons a {
  color: #2e7d32;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  opacity: 0.8;
}

.login-icon:hover {
  transform: scale(1.1);
}

.welcome-msg {
  font-size: 14px;
  color: #2e7d32;
  margin-left: 10px;
}

.suggestion-box {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: 100%;
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  font-size: 14px;
}

.suggestion-box div {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestion-box div:hover {
  background-color: #f1f1f1;
}

/* ===== About Us Section ===== */
.about-us-section {
  background: linear-gradient(to right, #f0f9f4, #ffffff);
  padding: 40px 20px;
  scroll-margin-top: 100px;
}

.about-us-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.about-us-text {
  flex: 1 1 60%;
  padding: 10px 20px;
}

.about-us-text h2 {
  font-size: 32px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.about-us-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.about-us-facts {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.fact-box {
  background: #e8f5e9;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  color: #2e7d32;
}

.about-us-buttons a {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 10px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.about-us-buttons a:hover {
  background: #1b5e20;
}

.about-us-image {
  flex: 1 1 35%;
  text-align: center;
}

.about-us-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== About Page ===== */
.about-page-hero {
  background: linear-gradient(to right, #f0f9f4, #ffffff);
  padding: 40px 20px;
  text-align: center;
}

.about-page-hero h1 {
  font-size: 36px;
  color: #2e7d32;
}

.about-page-hero p {
  font-size: 18px;
  color: #555;
}

.about-section {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.about-section h2 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.about-section p,
.about-section ul {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.about-section ul {
  padding-left: 20px;
}

.about-section ul li {
  margin-bottom: 8px;
}

/* ===== Contact Section ===== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #1b5e20;
}

.contact-info p {
  margin: 8px 0;
  font-size: 16px;
  color: #333;
}

.contact-buttons {
  margin: 20px 0;
}

.contact-buttons .btn-contact {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 10px;
  transition: background 0.3s ease;
}

.contact-buttons .btn-contact:hover {
  background: #1b5e20;
}

.contact-map {
  margin-top: 30px;
}

.contact-map iframe {
  border: 0;
  border-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

.coming-soon-container {
  background: url('../product/home-ads/coming-soon.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.coming-soon-card {
  background: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  backdrop-filter: blur(5px);
}

.coming-soon-card h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2f4f2f;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.coming-soon-card p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #444;
  margin-bottom: 30px;
}

.back-btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #388e3c;
}

.testimonial-section {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.testimonial-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.testimonial-customer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: bold;
  color: #333;
}

.testimonial-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(45deg, #26a69a, #00796b);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.testimonial-button:hover {
  background: linear-gradient(45deg, #00796b, #004d40);
  transform: scale(1.05);
}

body *:not(input):not(textarea):not(button) {
  user-select: none;
  cursor: default;
}

/* =========================
   PROMO BANNER (LATEST + CLEAN)
   - Satu versi sahaja
   ========================= */

.promo-banner {
  background: linear-gradient(135deg, #e8f5e9, #ffffff);
  padding: 10px 15px;
  border: 2px solid #43a047;
  border-radius: 8px;

  display: block;
  text-align: center;

  position: static; /* ✅ default tak ikut scroll */
}

/* ✅ Struktur sebenar dari JS: .promo-banner > .promo-row */
.promo-banner .promo-row{
  display: flex;
  align-items: center;
  justify-content: center; /* group 3 item di tengah */
  gap: 16px;
  flex-wrap: nowrap;       /* desktop kekal sebaris */
}

/* item jangan stretch */
.promo-banner .promo-message,
.promo-banner .countdown,
.promo-banner .promo-cta{
  flex: 0 0 auto;
}

/* message boleh wrap bila sempit tapi tak kacau layout */
.promo-banner .promo-message{
  margin: 0;
  white-space: normal;
  max-width: 520px;
  overflow-wrap: anywhere;
}

/* CTA jangan pecah baris */
.promo-banner .promo-cta a{
  white-space: nowrap;
}


/* ✅ bila promosi aktif (JS tambah class), baru sticky */
.promo-banner.is-sticky {
  position: sticky;
  top: 0;
  z-index: 997;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #43a047;
}

.promo-message {
  font-size: 16px;
  color: #2e7d32;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;          /* ✅ elak stretch */
  white-space: normal;     /* ✅ boleh wrap kalau sempit */
  max-width: 520px;        /* ✅ supaya tak makan semua ruang */
  overflow-wrap: anywhere; /* ✅ wrap lebih stabil */
}

.promo-icon {
  font-size: 20px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.countdown div {
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #43a047;
  text-align: center;
}

.countdown div span {
  display: block;
  font-size: 18px;
  color: #2e7d32;
  font-weight: bold;
}

.countdown div small {
  font-size: 10px;
  color: #424242;
}

.promo-cta a {
  color: #ffffff;
  background: #43a047;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  font-size: 12px;
  white-space: nowrap;
}

.promo-cta a:hover {
  background: #2e7d32;
}

/* Animasi berkelip lembut (profesional) */
@keyframes soft-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.4; filter: brightness(1.2); }
}

/* Hijau blink (JS add .countdown-blink) */
.countdown-blink span {
  animation: soft-blink 1.4s infinite ease-in-out;
  color: #2e7d32;
}

/* Bila tinggal 45 min ke bawah */
.countdown.red-alert span {
  color: #c62828 !important;
  animation: soft-blink 0.8s infinite ease-in-out;
  filter: brightness(1.25);
}

/* smooth transition bila hijau->merah */
.countdown span {
  transition: color 0.5s ease, filter 0.5s ease;
}

/* Badge PROMOSI - moden */
.promo-pill {
  display: none;
  background: linear-gradient(180deg, #ff5252, #e53935);
  color: #fff;
  padding: 3px 12px 4px;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  vertical-align: middle;
  margin-left: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 2px 6px rgba(229,57,53,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
  animation: promoFadeIn 0.3s ease-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@keyframes promoFadeIn {
  from { opacity: 0; transform: translateY(-3px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-pill:hover {
  transform: scale(1.08);
  box-shadow:
    0 3px 8px rgba(229, 57, 53, 0.35),
    inset 0 -1px 0 rgba(255,255,255,0.3);
}

/* =========================
   DESKTOP DEFAULT (kekal rapat & center)
   ========================= */
.promo-banner .promo-row{
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.promo-banner .promo-message{
  max-width: none;   /* biar ikut content, lagi rapat */
}

/* =========================
   MOBILE SAHAJA (layout cantik yang awak suka)
   ========================= */
@media (max-width: 520px){
  /* 1) Row: kiri (message) + kanan (countdown/cta) */
  .promo-banner .promo-row{
    justify-content: space-between;   /* ✅ countdown kekal kanan */
    flex-wrap: nowrap;
    gap: 10px;
  }

  /* 2) Message flexible & boleh shrink */
  .promo-banner .promo-message{
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    text-align: left;
    display: block;
  }

  /* 3) Max 2 baris */
  .promo-banner .promo-message .promo-text{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* 4) Countdown kekal kanan */
  .promo-banner .countdown{
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: clamp(6px, 1.6vw, 10px);
    max-width: none;
  }

  /* 5) Auto kecil ikut phone */
  .promo-banner .countdown div{
    padding: clamp(3px, 1.2vw, 5px) clamp(6px, 2vw, 10px);
    border-radius: 4px;
  }

  .promo-banner .countdown div span{
    font-size: clamp(13px, 4vw, 18px);
  }

  .promo-banner .countdown div small{
    font-size: clamp(8px, 2.5vw, 10px);
  }

  /* 6) CTA kecil ikut phone */
  .promo-banner .promo-cta a{
    font-size: clamp(10px, 2.8vw, 12px);
    padding: clamp(5px, 1.4vw, 6px) clamp(8px, 2vw, 10px);
  }
}

/* =========================
   SOLD OUT + STOCKLINE (CLEAN)
   ========================= */

.product-card.is-soldout {
  opacity: .9;
}

.product-card.is-soldout::after {
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.08);
  pointer-events:none;
  border-radius: inherit;
}

.product-card .soldout-badge {
  position:absolute;
  left:50%;
  top: 80px;
  transform: translate(-50%, -50%);

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 10px 18px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;

  background: rgba(0,0,0,.72);
  color:#fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);

  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
}

@supports (backdrop-filter: blur(6px)) {
  .product-card .soldout-badge {
    backdrop-filter: blur(6px);
  }
}

.product-card .stockline {
  margin: -6px 15px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #000;
  text-align: right;
  display: block;
}

.product-card .stockline .stock-value {
  font-weight: 800;
  color: #000;
}

/* Label Merdeka */
.label-merdeka {
  background-color: #c62828;
  color: white;
  font-weight: bold;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  white-space: nowrap;
  width: auto;
}

/* === FILTER BAR KATEGORI (Salsha Nursery) === */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  margin: 1rem 0 1.5rem;
  border-bottom: 1px solid #e6e6e6;
  scroll-behavior: smooth;
}

/* scrollbar lembut dan halus */
.filter-bar::-webkit-scrollbar {
  height: 6px;
}
.filter-bar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.filter-bar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #f8f8f8;
  border-color: #aaa;
}

.filter-btn.is-active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

/* Supaya produk hilang bila ditapis */
.product-card[hidden] {
  display: none !important;
}

/* Responsif untuk telefon kecil */
@media (max-width: 600px) {
  .filter-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

/* =========================
   MOBILE ONLY LAYOUT (Home)
   ========================= */
@media (max-width: 768px){

  /* 1) HIDE bahagian yang ditag dalam HTML */
  [data-hide-mobile]{
    display: none !important;
  }

  /* 2) Bagi mobile nampak bersih */
  body{
    background: #fff;
  }

  .container{
    padding: 0 12px;
  }

/* pastikan apa-apa yang terlebih tidak keluar dari border */
.promo-banner{
  overflow: hidden;
}

/* MOBILE: kiri teks (wrap), kanan countdown (dalam border) */
.promo-banner .promo-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

/* teks kiri boleh jadi 2-3 baris ikut ruang */
.promo-message{
  margin: 0 !important;

  flex: 1 1 0;        /* ✅ ambil baki ruang */
  min-width: 0;       /* ✅ penting untuk text wrap dalam flex */
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;

  text-align: left;
}

/* CTA & desc kekal hide macam awak buat */
.promo-desc{ display:none !important; }
.promo-cta{ display:none !important; }

/* countdown kanan — jangan overflow */
.countdown{
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;

  flex: 0 0 auto;     /* ✅ kekal di kanan, ikut saiz sendiri */
}

/* kotak countdown boleh mengecil ikut skrin */
.countdown div{
  padding: 3px 6px;
  border-radius: 6px;

  width: clamp(38px, 12vw, 52px); /* ✅ auto kecil bila skrin sempit */
  min-width: 0;                   /* ✅ penting: bagi dia shrink */
  text-align: center;
}

/* nombor */
.countdown div span{
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

/* label JAM/MIN/SAAT */
.countdown div small{
  font-size: 9px;
  line-height: 1;
}

  /* 4) Section produk: buang spacing besar */
  .popular-section{
    padding: 12px 12px 22px;
    background: #fff;
  }

  /* kalau tak nak tajuk popular muncul di mobile */
  .popular-section .section-title{
    display: none;
  }

  /* 5) Filter bar kemas */
  .filter-bar{
    margin: 10px 0 12px;
    padding: 10px 6px;
    gap: 10px;
    border-bottom: 1px solid #eee;
  }

  .filter-btn{
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
  }

  /* 6) Produk jadi 2 kolum */
  .product-container{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: initial;
  }

  .product-card{
    width: auto;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transform: none !important;
  }

  .product-card img{
    height: 140px;
    border-radius: 14px 14px 0 0;
  }

  .product-card h3{
    font-size: 14px;
    margin: 10px 12px 4px;
    line-height: 1.25;
  }

  .subtitle{
    font-size: 11.5px;
    margin: 0 12px 6px;
  }

  .rating{
    font-size: 11.5px;
    margin: 0 12px;
  }

  .price{
    font-size: 13px;
    margin: 8px 12px 8px;
  }

  .product-card .stockline{
    margin: -2px 12px 10px;
    font-size: 11.5px;
  }

  /* 7) Testimoni kemas */
  .testimonial-section{
    padding: 24px 12px 40px;
  }

  .testimonial-section .section-title{
    font-size: 20px;
    margin-bottom: 16px;
  }

  .testimonial-card{
    max-width: 100%;
  }
}
