:root {
  --color-primary: #FCAB3A;
  --color-secondary: #FCF1D2;
  --max-width: 1150px;
}

* { 
  box-sizing: border-box; 
}

body {
  background-color: var(--color-secondary);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 10px 40px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 65px;
}

.logo h1 {
  font-size: 18px;
}

.logo h1 span {
  color: var(--color-primary);
}

/* Right Section (Nav + Contact) */
.nav-and-btn {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.btn-contact {
  padding: 10px 18px;
  background-color: var(--color-primary);
  color: white;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
}

.btn-contact:hover {
  background-color: #4d4a47;
}

/* Cart + Hamburger container */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* Cart Icon */
.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-icon img {
  width: 25x;
  height: 25px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  display: none; /* disembunyikan kalau 0 */
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-and-btn {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background-color: #fff;
    width: 220px;
    padding: 20px;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999; /* biar di atas konten */
  }

  .nav-and-btn.show {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .btn-contact {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  /* Cart tetap di luar hamburger */
  .cart-icon {
    display: flex;
    align-items: center;
  }
}

/* ===== STORE MAIN CONTENT ===== */
.store-main {
  margin-top: 80px;
  background-color: var(--color-secondary);
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background-color: var(--color-secondary);
  padding: 20px 0;
  margin-top: 50px;
}

.filter-container {
  background-color: white;
  border-radius: 15px;
  padding: 15px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
  margin: 0 auto;
}

.filter-buttons {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-wrap: nowrap;
}

.filter-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: #f8f8f8;
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 20px 0;
}

.product-category {
  margin-bottom: 60px;
}

.category-title {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 340px);
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
  justify-content: start;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.btn-add-to-cart {
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
  background-color: #e0992a;
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 25px;
  display: flex;
  gap: 25px;
}

.modal-product-image {
  flex: 1;
  min-width: 200px;
}

.modal-product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.modal-product-info {
  flex: 1;
}

.modal-product-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.modal-description h5 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.modal-description p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.modal-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.btn-add-to-cart-modal {
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  margin-bottom: 8px;
}

.btn-add-to-cart-modal:hover {
  background-color: #e0992a;
}

.btn-add-to-cart-modal img {
  width: 16px;
  height: 16px;
}

.add-to-cart-hint {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .store-main {
    margin-top: 70px;
  }

  .filter-container {
    margin: 0 20px;
    padding: 12px 20px;
  }

  .filter-buttons {
    gap: 15px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .filter-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, 340px);
    gap: 20px;
    justify-content: center;
  }

  .category-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .modal-body {
    flex-direction: column;
    gap: 20px;
  }

  .modal-product-image {
    min-width: auto;
  }

  .modal-product-image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, 340px);
    justify-content: center;
  }

  .product-card {
    margin: 0 10px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 3000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.show {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  display: none;
}

.cart-overlay.show {
  display: block;
}

.cart-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Cart Header */
.cart-header {
  background-color: var(--color-primary);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover {
  opacity: 0.8;
}

/* Empty Cart Button */
.btn-empty-cart {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 15px 25px;
  margin: 20px 25px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.btn-empty-cart:hover {
  background-color: #c82333;
}

.btn-empty-cart.hidden {
  display: none;
}

.trash-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Cart Items */
.cart-items {
  flex: 1;
  padding: 0 25px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.quantity-display {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cart-item-remove:hover {
  background-color: #f8d7da;
}

.cart-item-remove img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* Cart Total */
.cart-total {
  padding: 20px 25px;
  border-top: 1px solid #eee;
}

.cart-total h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* Delivery Method */
.delivery-method {
  padding: 0 25px 20px;
}

.delivery-method h5 {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.method-option:hover {
  background-color: #f8f9fa;
}

.method-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.method-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.method-option input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.method-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.delivery-note {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Address Form */
.address-form {
  padding: 0 25px 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 15px 25px;
  margin: 0 25px 25px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .cart-header {
    padding: 15px 20px;
  }
  
  .btn-empty-cart,
  .cart-items,
  .cart-total,
  .delivery-method,
  .address-form,
  .btn-whatsapp {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Section Testimoni */
.testimoni {
  background-color: var(--color-primary);
  padding: 60px 20px;
  text-align: center;
}

.section-header {
  font-size: 28px;
  color: var(--color-secondary);
  margin-bottom: 40px;
}

/* Swiper Container */
.testimoni-swiper {
  padding: 20px 50px;
  position: relative;
  overflow: visible; /* biar panah bisa keluar */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Card sejajar */
.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* Pastikan setiap slide punya tinggi fleksibel dan kartu meregang penuh */
.testimoni-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* Card Testimoni */
.testimoni-card {
  background: #fff;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.testimoni-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

.testimoni-card h3 {
  font-size: 16px;
  margin: 0;
  color: #333;
}

.rating {
  font-size: 14px;
  color: #FFD700;
}

/* Isi komentar */
.testimoni-text {
  background: #c7c7c7;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  flex-grow: 1;
}

/* Panah Navigasi */
.swiper-button-next,
.swiper-button-prev {
  color: #FF7070;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-prev { left: -30px; }
.swiper-button-next { right: -30px; }

/* Contact */
.contact-section {
  background: url('../Assets/Kontak\ BG.png') center/cover no-repeat;
  padding: 60px 20px;
  color: white;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  margin-bottom: 45px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info span {
  color: var(--color-primary);
}

.contact-info .info-item {
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-info .map-container {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.social-media a {
  color: white;
  margin-right: 15px;
  font-size: 20px;
  transition: color 0.3s;
}

.social-media a:hover {
  color: var(--color-primary);
}

.map-container {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden; /* biar iframe ikut melengkung */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* bayangan */
  border: 3px solid #fff; /* biar kelihatan kaya frame */
  max-width: 320px; /* biar proporsional */
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: none;
}

.contact-form {
  margin: 80px auto;
  flex: 1;
  background: white;
  padding: 35px;
  border-radius: 12px;
  color: black;
  max-width: 500px; /* batas lebar biar nggak kepanjangan */
  text-align: center;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
}

.contact-form h3 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 22px;
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* biar full dalam form */
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  width: 100%; /* full width dalam form */
  background: var(--color-primary);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #ffdf7f;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  /* Contact */
  .contact-container {
    flex-direction: column; /* dari sejajar jadi vertikal */
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .map-container {
    margin: 20px auto;
    max-width: 100%;
  }

  .contact-form {
    padding: 25px;
    max-width: 100%;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .contact-form textarea {
    height: 100px;
  }

  .contact-form button {
    font-size: 16px;
    padding: 12px;
  }
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer ul li a:hover {
  text-decoration: underline;
}

/* Sosial Media Icon */
.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Bagian Bawah */
.footer-bottom {
  text-align: left;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Fix Height Berlebih */
section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
