    * {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Poppins", sans-serif;

}

body {

  background: #fff;

  color: #222;

}

.top-nav {

  display: flex;

  justify-content: space-around;

  align-items: center;

  background: #fff;
  
  gap: 8px;

  padding: 10px 0;

  border-bottom: 1px solid #eee;

}

.top-nav a {

  color: #333;

  font-size: 15px;

  font-weight: 500;

  text-decoration: none;

  transition: 0.3s;


}

.top-nav a:hover {

  color: #e60000;

}

.header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 12px 16px;

  border-bottom: 1px solid #eee;

  position: sticky;

  top: 0;

  background: #fff;

  z-index: 100;

}

.header .logo {

  width: 110px;

}

.menu-btn, .search-btn {

  font-size: 22px;

  color: #333;

}

/* Menu */

.nav-menu {

  background: #fff;

  display: none;

  position: relative;

  flex-direction: column;

  text-align: center;

  width: 100%;

  border-top: 1px solid #eee;

}

.nav-menu.active {

  display: flex;

  animation: slideDown 1s ease;

}

@keyframes slideDown {

  from { opacity: 0; transform: translateY(-10px); }

  to { opacity: 1; transform: translateY(0); }

}

.nav-menu ul {

  list-style: none;

  padding: 10px 0;

  margin: 0;

}

.nav-menu li {

  margin: 10px 0;

}

.nav-menu a {

  text-decoration: none;

  color: #111;

  font-weight: 800;

  font-size: 1em;

  letter-spacing: 0.5px;

}

/* ===== Search Dropdown ===== */

.search-dropdown {

  position: fixed;

  top: -100px;

  left: 0;

  width: 100%;

  background: #fff;

  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  transition: top 0.8s ease;

  z-index: 999;

  padding: 15px;

}

.search-dropdown.active {

  top: 65px; /* muncul di bawah navbar */

}

.search-container {

  display: flex;

  align-items: center;

  gap: 10px;

  justify-content: center;

  max-width: 600px;

  margin: auto;

}

.search-container input {

  flex: 1;

  padding: 10px 15px;

  border: 1px solid #ccc;

  border-radius: 8px;

  outline: none;

  font-size: 15px;

  background: #f8f8f8;

}

.close-search {

  background: #e60000;

  border: none;

  color: #fff;

  font-size: 18px;

  padding: 8px 12px;

  border-radius: 8px;

  cursor: pointer;

  transition: 0.3s;

}

.close-search:hover {

  background: #b30000;

}

/* Mobile */

@media (max-width: 600px) {

  .search-container {

    width: 90%;

  }

  .search-dropdown.active {

    top: 60px;

  }

}

/* ===== Hero Slider ===== */

.hero-slider {

  position: relative;

  width: 100%;

  height: 200px;

  overflow: hidden;

}

.slides {

  position: relative;

  width: 100%;

  height: 100%;

}

.slide {

  position: absolute;

  width: 100%;

  height: 100%;

  opacity: 0;

  transition: opacity 1s ease;

}

.slide.active {

  opacity: 1;

  z-index: 1;

}

.slide img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  filter: brightness(80%);

}

/* Slide Content */

.slide-content {

  position: absolute;

  top: 50%;

  left: 10%;

  transform: translateY(-50%);

  color: #fff;

  max-width: 500px;

}

.slide-content h2 {

  font-size: 3em;

  font-weight: 900;

  line-height: 1.1;

}

.slide-content h2 span {

  color: #ff2a2a;

}

.slide-content p {

  margin: 15px 0;

  font-size: 1.2em;

}

.slide-content .btn {

  background: #fff;

  color: #000;

  padding: 10px 25px;

  text-decoration: none;

  font-weight: 600;

  border-radius: 3px;

}

/* Controls */

.prev, .next {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  background: rgba(255, 0, 0, 0.8);

  border: none;

  color: #fff;

  font-size: 1.5em;

  padding: 15px;

  border-radius: 10%;

  cursor: pointer;

  z-index: 2;

  transition: background 0.5s;

}

.prev:hover, .next:hover {

  background: #ff2a2a;

}

.prev { left: 20px; }

.next { right: 20px; }

/* Dots */

.dots {

  position: absolute;

  bottom: 20px;

  width: 100%;

  text-align: center;

}

.dots button {

  width: 40px;

  height: 6px;

  margin: 0 5px;

  border: none;

  background: rgba(255, 255, 255, 0.4);

  border-radius: 3px;

  cursor: pointer;

  transition: background 0.5s;

}

.dots button.active {

  background: #ff2a2a;

}

/* Responsive */

@media (max-width: 768px) {

  .slide-content h2 {

    font-size: 2em;

  }

  .slide-content p {

    font-size: 1em;

  }

}

.section-title {

  padding: 20px;

}

.section-title h2 {

  font-size: 22px;

  color: #2d2d2d;

}

.product-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

  gap: 16px;

  padding: 0 18px 40px;

}

.product-card {

  position: relative;

  background: #fff;

  border-radius: 10px;

  max-height: 280px;

  overflow: hidden;

  box-shadow: 0 0 4px rgba(0,0,0,0.1);

  transition: transform 0.2s ease;

}

.product-card a {

  text-decoration: none;

}

.product-card:hover {

  transform: scale(1.03);

}

.product-card img {

  width: 100%;

  height: 180px;

  object-fit: cover;

}

.discount {

  position: absolute;

  top: 8px;

  left: 8px;

  background: #f73a3a;

  color: #fff;

  font-size: 12px;

  font-weight: bold;

  padding: 4px 6px;

  border-radius: 8px;

}

.label {

  position: absolute;

  bottom: 30%;

  left: 0px;

  background: #f73a3a;

  color: #fff;

  font-size: 12px;

  font-weight: bold;

  padding: 4px 6px;

  border-radius: 0 5px 0 0;

}

.favorite {

  position: absolute;

  top: 8px;

  right: 8px;

  color: #333;

  font-size: 18px;

}

.product-card h3 {

  font-size: 14px;

  font-weight: 600;

  padding: 8px;

  color: #2c2c2c;
  
  /* --- Inilah bagian penting --- */
  display: -webkit-box;           /* aktifkan mode flex box vertikal */
  -webkit-box-orient: vertical;   /* arah vertikal */
  -webkit-line-clamp: 2;          /* potong 2 baris */
  overflow: hidden;               /* sembunyikan teks lebih */
  text-overflow: ellipsis;        /* tambahkan "..." */
  white-space: normal;            /* izinkan teks pindah baris */
}

.old-price {

  text-decoration: line-through;

  color: #999;

  font-size: 13px;

  padding-left: 8px;

}

.new-price {

  color: #e53935;

  font-size: 14px;

  font-weight: 600;

  padding-left: 8px;

  padding-bottom: 10px;

}

.terjual {

  position: absolute;

  bottom: 10px;

  right: 8px;

  color: #000;

  font-size: 11px;

  padding-left: 8px;

}

.nav-left {

  display: flex;

  align-items: center;

  gap: 10px;

}

.nav-links {

  display: flex;

  list-style: none;

  gap: 25px;

}

.nav-links li a {

  color: var(--text-color);

  text-decoration: none;

  font-weight: 500;

}

.nav-right {

  display: flex;

  align-items: center;

  gap: 10px;

}

.nav-right i {

  font-size: 1.2em;

  cursor: pointer;

}

/* Toggle Button */

.menu-toggle {

  background: none;

  border: none;

  color: var(--text-color);

  font-size: 1.4em;

  cursor: pointer;

  display: none;

}

/* Responsive */

@media (max-width: 768px) {

  .menu-toggle {

    display: block;

  }

  .nav-links {

    position: absolute;

    top: 65px;

    left: 0;

    width: 100%;

    background: var(--bg-color);

    flex-direction: column;

    align-items: center;

    gap: 15px;

    padding: 20px 0;

    display: none;

  }

  .nav-links.active {

    display: flex;

  }

}

/* ===== Footer ===== */

.footer {

  background: #fff;

  text-align: center;

  padding: 40px 20px 40px;

  color: #333;

  position: relative;

  border-top: 1px solid #eee;

}

.footer-top {

  margin-bottom: 30px;

}

.footer-hours {

  font-size: 14px;

  margin-bottom: 20px;

  color: #555;

}

.footer-socials a {

  color: #333;

  font-size: 30px;

  margin: 0 10px;

  transition: 0.3s;

}

.footer-socials a:hover {

  color: #e60000;

}

.footer-apps {

  margin-top: 20px;

}

.footer-apps img {

  width: 130px;

  margin: 10px;

  transition: 0.3s;

}

.footer-apps img:hover {

  transform: scale(1.05);

}

.footer-bottom {

  border-top: 1px solid #f0f0f0;

  padding-top: 25px;

}

.footer-logo {

  width: 120px;

  margin-bottom: 15px;

}

.footer-links {

  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 15px;

}

.footer-links a {

  color: #555;

  font-size: 14px;

  text-decoration: none;

  transition: 0.3s;

}

.footer-links a:hover {

  color: #e60000;

}

.footer-country {

  font-size: 14px;

  margin-bottom: 10px;

  color: #666;

}

.footer-country i {

  margin-right: 5px;

}

.footer-copy {

  font-size: 13px;

  color: #999;

}

/* ===== Scroll to Top Button ===== */

.scroll-top {

  position: fixed;

  bottom: 30px;

  right: 20px;

  background: #e60000;

  color: #fff;

  border: none;

  border-radius: 50%;

  width: 45px;

  height: 45px;

  font-size: 18px;

  cursor: pointer;

  display: none;

  justify-content: center;

  align-items: center;

  transition: 0.3s;

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

}

.scroll-top:hover {

  background: #b30000;

}

.scroll-top.show {

  display: flex;

}

/* Responsive */

@media (min-width: 768px) {

  .footer-links {

    flex-direction: row;

    justify-content: center;

  }

  .footer-links a {

    margin: 0 15px;

  }

}

    .product-container {

      display: flex;

      flex-wrap: wrap;

      padding: 40px 5%;

      gap: 50px;

      justify-content: center;

    }

    .product-gallery {

      flex: 1;

      min-width: 320px;

      max-width: 500px;

    }

    .product-gallery img {

      width: 100%;

      border-radius: 10px;

    }

    .thumbnails {

      display: flex;

      justify-content: center;

      margin-top: 10px;

      gap: 10px;

    }

    .thumbnails img {

      width: 80px;

      height: 80px;

      object-fit: cover;

      border-radius: 6px;

      cursor: pointer;

      transition: 0.3s;

      border: 2px solid transparent;

    }

    .thumbnails img.active,

    .thumbnails img:hover {

      border-color: #000;

    }

    .product-details {

      flex: 1;

      min-width: 320px;

      max-width: 500px;

    }

    .product-details h1 {

      font-size: 26px;

      font-weight: 600;

      margin-bottom: 10px;

    }

    .product-price {

      font-size: 22px;

      font-weight: 600;

      color: #e60000;

      margin-bottom: 20px;

    }

    .color-options {

      margin-bottom: 20px;

    }

    .color-options label {

      font-weight: 500;

      display: block;

      margin-bottom: 5px;

    }

    .color-picker {

      display: flex;

      gap: 10px;

    }

    .color {

      width: 32px;

      height: 32px;

      border-radius: 50%;

      cursor: pointer;

      border: 2px solid transparent;

      transition: 0.3s;

    }

    .color.active {

      border-color: #000;

      transform: scale(1.1);

    }

    .btn {

      display: inline-block;

      padding: 12px 25px;

      background: #000;

      color: #fff;

      border: none;

      border-radius: 8px;

      cursor: pointer;

      font-size: 15px;

      margin-top: 15px;

      transition: 0.3s;

    }

    .btn:hover {

      background: #e60000;

    }

    .description {

      margin-top: 25px;

    }

    .description h3 {

      margin-bottom: 10px;

      font-size: 18px;

      font-weight: 600;

    }

    .description p {

      font-size: 14px;

      color: #555;

    }
    
    @media (max-width: 768px) {

      .product-container {

        flex-direction: column;

        align-items: center;

      }

    }