/* 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;
}

/* Mobile top bar: default (DESKTOP) - sorok */
#mobile-top-bar {
  display: none;
}

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;
}

.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;
}

/* Submenu dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.dropdown li {
  display: block;
  text-align: left;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Gaya item dropdown */
.dropdown li {
  display: block;
  text-align: left;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #2c3e50;
  font-size: clamp(0.75rem, 2.81vw, 1.125rem);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  line-height: 1.5;           /* ✔️ jaga jarak atas bawah */
  height: 100%;               /* ✔️ pastikan hover penuh */
  box-sizing: border-box;     /* ✔️ supaya padding tak tolak layout */
  transition: all 0.3s ease;  /* ✔️ smooth semua perubahan */
}

.dropdown li a:hover {
  background-color: #ecf4f3 !important;
  color: #00695c !important;
  text-decoration: none;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  
}

.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; }
}

h1 {
  text-align: center;
  font-size: clamp(1.4rem, 5.25vw, 2.1rem);
  margin: 30px 0;
  color: #000000;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

.swiper {
  width: 100%;
  max-width: 430px; /* ✅ kecilkan gambar */
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f4f4f4;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-section {
  max-width: 1200px;
  margin: 0 auto;
}

.product-layout {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap; /* ✅ kekalkan supaya responsive */
  gap: 40px;
  background-color: #fff;
  border-radius: 10px;
  align-items: flex-start;
}

.product-gallery {
  flex: 0 0 450px; /* ✅ Tetapkan lebar tetap */
  max-width: 450px;
}

.product-details {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.product-title {
  font-size: 1.375rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-rating {
  margin-bottom: 15px;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  color: #333;
}

.product-price {
  font-size: 1.5rem;
  color: #2e7d32;
  font-weight: bold;
}

.product-old-price {
  color: #888; 
  text-decoration: line-through;
  text-decoration-color: #888; 
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  margin-left: 10px;
}

.product-description {
  max-width: 1000px;
  margin: 10px auto 30px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.8;
}

.product-description ol {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

.product-description li {
  margin-bottom: 12px;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
}

.product-description ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 6px;
}

.product-description li strong {
  color: #2e7d32;
}

.product-description p {
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 12px;
}

.discount {
  color: #d32f2f;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  margin-left: 10px;
}

.variation-buttons {
  margin: 20px 0;
}

.variation-option {
  padding: 10px 20px;
  margin-right: 10px;
  border: 1px solid #00695c;
  background-color: #ffffff;
  color: #00695c;
  border-radius: 8px;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.variation-option:hover {
  border-color: #00695c;
  background-color: #d0ebe5; 
  color: #004d40;
}

.variation-option.selected {
  border: 1px solid #00695c;
  color: #004d40;
  background-color: #e6f4f1;
  font-weight: bold;
}

.quantity {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quantity label {
  margin-right: 10px;
}

.quantity input {
  width: 60px;
  text-align: center;
  padding: 8px;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  border: 1px solid #ccc;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.buttons button {
  flex: 1;
  padding: 14px 0;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.add-cart {
  background-color: #c7ebe8;
  border: 2px solid #26a69a;
  color: #004d40;
  font-weight: bold;
  transition: all 0.3s ease;
}

.add-cart:hover {
  background-color: #b2ddd9;
  color: #00332f;
}

.buy-now {
  background-color: #339980; 
  color: white;
  transition: all 0.3s ease;
  font-weight: bold;
}

.buy-now:hover {
  background-color: #8bc7bb;
}


.shipping-info,
.guarantee-info {
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  margin-top: 10px;
  color: #444;
}

#tarikh-penghantaran {
  margin-top: 5px;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  color: #2e7d32;
}

@media screen and (max-width: 768px) {
.shipping-info,
.guarantee-info{
  font-size: clamp(0.85rem, 3.0vw, 1.15rem);
}

#tarikh-penghantaran{
  font-size: clamp(0.85rem, 3.0vw, 1.15rem);
}
}

.description {
  max-width: 1000px;
  margin: -15px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  line-height: 1.8;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
}

.description h2,
.description h3 {
  color: #2e7d32;
}

.review-section {
  scroll-margin-top: 80px;
  width: 100%; /* ❗ guna penuh */
  padding: 60px 0; /* lebih ruang atas bawah */
  background-color: #e5eeea; 
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
}

.review-wrapper {
  background: #ffffff;
  padding: 60px 0;
}

.review-section h2 {
  color: #2e7d32;
  margin-bottom: 30px;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  text-align: center;
}

.review-box {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 30px;
  border-top: 1px solid #ccc;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.none-review-box {
  text-align: center;
  padding: 40px 0;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  color: #666;
}

.review-header {
  font-weight: bold;
  margin-bottom: 8px;
}

.review-date {
  font-weight: normal;
  color: #666;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  margin-left: 8px;
}

.stars {
  color: #ffc107;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
  margin-top: 4px;
}

.review-text {
  margin: 10px 0;
}

.review-images {
  display: flex;
  gap: 10px;
}

.review-images img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* GAYA CSS UNTUK FOOTER */
.site-footer {
  color: #004d40;
  padding: 40px 20px 10px;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  margin-top: 60px;
  background: linear-gradient(to bottom, #cceee9, #e0f2f1);
}

.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: clamp(0.8rem, 3.0vw, 1.2rem);
  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: clamp(0.9rem, 3.38vw, 1.35rem);
  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: clamp(0.75rem, 2.81vw, 1.125rem);
  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: clamp(0.65rem, 2.44vw, 0.975rem);
  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;
}

.wishlist-btn {
  background-color: #ffffff;
  color: #c62828;
  border: 2px solid #c62828;
  padding: 8px 14px;
  font-size: clamp(0.7rem, 2.62vw, 1.05rem);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wishlist-btn i {
  color: #c62828;
  font-size: clamp(0.8rem, 3.0vw, 1.2rem);
}

.wishlist-btn:hover {
  background-color: #fce4ec;
  border-color: #ad1457;
  color: #ad1457;
}

.wishlist-btn:hover i {
  color: #ad1457;
}

.wishlist-wrapper {
  display: flex;
  justify-content: flex-start;
  margin: 15px 0 10px 0;
}

.review-gallery-main {
  width: 100%;
  max-width: 700px;
  margin: 30px auto 15px;
  border-radius: 10px;
  overflow: hidden;
}

.review-gallery-main video,
.review-gallery-main img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
}

.review-gallery-thumb {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 40px;
}

.review-gallery-thumb .swiper-slide {
  height: 80px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.review-gallery-thumb .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #2e7d32;
  border-radius: 6px;
}

.review-gallery-thumb img,
.review-gallery-thumb video {
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.review-images video {
  width: 100px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.review-gallery-popup {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
}

.review-note {
  text-align: center;
  font-size: clamp(0.65rem, 2.44vw, 0.975rem);
  color: #777;
}

.rating-stars {
  color: #fbc02d;
}

.seller-response {
  margin-top: 20px; 
  padding: 5px; 
  background-color: #f9f9f9; 
  border-radius: 4px; 
}

/* Review text spacing rapi */
.review-text.spacing {
  line-height: 1.8;
  margin-bottom: 10px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background-color: #ffffff;
}

.product-table th,
.product-table td {
  border: 1px solid #ccc;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.product-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

body *:not(input):not(textarea):not(button) {
  user-select: none;
  cursor: default;
}

.review-video,
.review-video-tall {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 1024px) {
  .hide-on-mobile {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  /* Kurangkan ruang atas logo dan nama kedai */
  .header-logo {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .shop-title {
    font-size: 20px;
    margin-bottom: 5px;
  }

  /* Kurangkan padding atas teks besar tajuk */
  .product-title {
    font-size: 20px;
    margin-top: 10px;
  }

  /* Kurangkan padding antara komponen */
  .product-container {
    padding: 10px 10px;
  }

  /* Perkemaskan jarak untuk section atas */
  .page-top-spacing {
    padding-top: 10px !important;
  }
}

@media screen and (max-width: 768px) {
  .hide-title-on-mobile {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  /* Buang ruang kanan kosong */
  body, html {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  .product-layout {
    padding: 15px 10px;
  }

  /* Pastikan gambar guna penuh skrin */
  .product-gallery {
    width: 100% !important;
    max-width: 100% !important;
  }

  .swiper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 10px;
  }

  .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}

@media screen and (max-width: 768px) {
  /* Tajuk dua baris, align kiri */
  .product-title {
    font-size: 1.4rem;
    text-align: left;
    line-height: 1.2;
    margin-top: 6px;
    margin-bottom: 12px;
  }

  .product-title span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2px;
  }

  .product-title span:last-child {
    display: block;
    font-size: 1.5rem;
    font-weight: normal;
  }

  /* Harga dan promosi align kiri */
  .product-price,
  .product-promo {
    text-align: left !important;
  }
}

@media screen and (max-width: 768px) {
  .product-price {
    font-size: 1.7rem;
    font-weight: bold;
    text-align: left;
  }

  /* Susunan variasi dan kuantiti */
  .variation-quantity-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 2px;
    margin-bottom: 16px;
  }

  .variation-option {
    font-size: 0.9rem;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    margin: 0;
  }

  .quantity label {
    font-size: 0.8rem;
    margin: 0;
  }

  .quantity input {
    width: 55px;
    padding: 5px;
    font-size: 0.9rem;
  }

  /* Supaya rapat dengan gambar atas */
  .product-details {
    margin-top: -5px;
  }

  .buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .add-cart,
  .buy-now {
    font-size: 1rem;
    padding: 10px 0;
    width: 48%;
  }
}

/* ✅ Supaya review image overflow scroll ke tepi pada fon */
@media screen and (max-width: 768px) {
  .scrollable-review {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .scrollable-review img,
  .scrollable-review video {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 100px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .enable-horizontal-scroll {
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
  }

  .enable-horizontal-scroll img,
  .enable-horizontal-scroll video {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 100px;
    height: auto;
    border-radius: 5px;
  }
}

@media screen and (max-width: 768px) {
  /* Bar Terapung Atas */
  #mobile-top-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    backdrop-filter: none;
    padding: 10px 14px;
    transition: all 0.5s ease;
  }

  .mobile-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    background-color: transparent;
    margin-right: 10px;
  }

  .back-icon svg {
    width: 36px;
    height: 36px;
    pointer-events: none; /* supaya klik terkena <a>, bukan SVG */
  }

  .back-icon {
    pointer-events: auto;
    cursor: pointer;
  }

  .product-title-top {
    font-weight: 600;
    font-size: 1rem;
    color: #004d40;
    flex-grow: 1;
    text-align: left;
    padding-left: 8px;
  }

  .top-cart-link {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: #004d40;
    background: #e0f2f1;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }

  /* Bila scroll ke bawah */
  #mobile-top-bar.solid {
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* =========================
   SAFETY OVERRIDE (PASTIKAN DESKTOP HILANG)
   Letak paling bawah sekali
   ========================= */
@media screen and (min-width: 769px) {
  #mobile-top-bar {
    display: none !important;
  }
}

/* ===== CSP-safe helpers (tak ubah design lama) ===== */
.is-hidden { display: none !important; }

/* Popup gallery: default tutup, buka bila add class is-open */
.review-gallery-popup { display: none; }
.review-gallery-popup.is-open { display: block; }




@media (max-width: 768px){

  /* Saiz responsif */
  .product-price{
    font-size: clamp(1.65rem, 9.0vw, 3.00rem);
    line-height: 0.98;
  }

  /* old + promo sama size & tak wrap */
  .product-price .product-old-price,
  .product-price .discount{
    font-size: clamp(0.85rem, 3.2vw, 1.05rem);
    line-height: 0.5;
    white-space: nowrap;
    display: inline-block;
    vertical-align: baseline;
  }

  /* =========================
     MODE 1 (BELUM PILIH VARIASI)
     paksa old + discount turun BARIS 2
     ========================= */

  /* Ini paksa old price jadi "start baris baru" */
  .product-price .product-old-price{
    display: inline-block !important;     /* ✅ force baris baru */
    margin: 0 !important;
  }

.product-price .product-old-price::before{
  content: "";
  display: block;   /* ✅ ini yang paksa line baru */
  height: 0px;
}

  /* Bila old price jadi block, discount kena kekal sebelahnya (sebaris) */
  .product-price .discount{
    display: inline-block !important;
    margin-left: 8px;
  }

  /* Buat old + discount jadi satu baris (dalam baris 2) */
  .product-price .product-old-price{
    white-space: nowrap;           /* ✅ pastikan baris 2 tak pecah */
  }

  /* =========================
     MODE 2 (DAH PILIH VARIASI)
     balik jadi sebaris macam sekarang
     ========================= */
  .product-details:has(.variation-option.selected) .product-price{
    white-space: nowrap;
  }

  .product-details:has(.variation-option.selected) .product-price .product-old-price{
    display: inline-block !important; /* ✅ kembali sebaris */
    margin-left: 10px !important;
    margin-top: 0 !important;
  }

  .product-details:has(.variation-option.selected) .product-price .discount{
    margin-left: 8px;
  }

  .product-details:has(.variation-option.selected) .product-price .product-old-price::before{
    content: none;
    display: none;
  }
}

