:root { 
    --primary: #d4a373; 
    --dark: #1a1a1a; 
    --accent: #bc6c25;
    --white: #ffffff;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI', Tahoma, sans-serif; scroll-behavior: smooth; }
body { background: #faf9f6; color: var(--dark); }

header { background: var(--white); height: 80px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.6rem; font-weight: 800; text-decoration: none; color: var(--dark); letter-spacing: -1px; }
.logo span { color: var(--primary); font-weight: 300; font-style: italic; font-size: 1rem; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #555; font-weight: 500; transition: 0.3s; }
.cart-wrapper { position: relative; cursor: pointer; font-size: 1.5rem; }
#cart-count { position: absolute; top: -8px; right: -10px; background: var(--accent); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; }

.slideshow-container {
  max-width: 1000px; /* Batas lebar maksimal */
  position: relative;
  margin: auto;
  /* Hapus overflow: hidden jika ingin bayangan terlihat, 
     tetapi biarkan jika ingin potongan gambar rapi */
}

.mySlides img {
  width: 100%;       /* Gambar memenuhi lebar container */
  height: auto;      /* Tinggi menyesuaikan proporsi gambar secara otomatis */
  display: block;    /* Menghilangkan spasi putih di bawah gambar */
  border-radius: 8px; /* Opsional: mempercantik sudut gambar */
}

/* Memastikan tombol navigasi tetap di tengah secara vertikal 
   meskipun tinggi gambar berubah-ubah */
.prev, .next {
  top: 50%;
  transform: translateY(-50%);
}

.slideshow-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; position: relative; display: inline-block; padding-bottom: 10px; font-style: italic; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 25%; width: 50%; height: 3px; background: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 15px; padding: 15px; transition: 0.4s; border: 1px solid #f0f0f0; text-align: center; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.07); }
.card img { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; cursor: pointer; }

.price { color: var(--accent); font-weight: 700; font-size: 1.2rem; margin: 10px 0; }
.add-btn { width: 100%; padding: 12px; background: var(--dark); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.add-btn:hover { background: var(--primary); }

/* Modal & Slideshow Produk */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 3000; backdrop-filter: blur(5px); }
.modal-content { background: white; margin: 5% auto; padding: 30px; border-radius: 20px; max-width: 800px; position: relative; }
.detail-flex { display: flex; gap: 30px; flex-wrap: wrap; }
.product-gallery { flex: 1; min-width: 300px; position: relative; overflow: hidden; border-radius: 15px; height: 400px; }
.gallery-container { display: flex; transition: transform 0.5s ease-in-out; height: 100%; }
.gallery-container img { min-width: 100%; object-fit: cover; cursor: zoom-in; transition: 0.5s; }
.gallery-container img:hover { transform: scale(1.2); }
.gallery-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 10px; }
.nav-btn { background: rgba(255,255,255,0.8); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }

.sidebar { position: fixed; right: -100%; top: 0; width: 350px; height: 100%; background: white; z-index: 2000; transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar.active { right: 0; }
.sidebar-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; font-weight: bold; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.sidebar-footer { padding: 20px; border-top: 1px solid #eee; }


/* Sidebar Header & Footer Tetap di Tempat */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-box {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* Navigasi Dasar */
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none; /* Sembunyi di Desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* Responsif Mobile (Maksimal 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi di kanan */
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 40px;
        transition: 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0; /* Muncul ke layar */
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 0;
    }

    .mobile-only {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary);
        margin-bottom: 20px;
        cursor: pointer;
    }

    /* Overlay saat menu terbuka */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }

    .nav-overlay.active {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only { display: none; }
}

/* Container Ikon */
.nav-icons {
    display: flex;
    align-items: center; /* Menjaga agar sejajar lurus secara horizontal */
    gap: 20px;           /* Jarak antara ikon keranjang dan hamburger */
    z-index: 2002;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Tombol Hamburger */
.menu-toggle {
    display: none; /* Sembunyi di Desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Muncul di Mobile */
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

* {box-sizing: border-box}
body {font-family: sans-serif; margin:0}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  overflow: hidden;
}

.mySlides {
  display: none; /* Sembunyikan semua slide di awal */
}

/* Tombol navigasi */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Teks keterangan */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.4);
}

/* Indikator titik */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {

}

/* Efek Animasi Fade */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


/* Reset Dasar */
.footer-section {
  color: #ffffff;
  padding: 30px;
  background-color: #d4d6d6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Garis bawah dekoratif */
.footer-col h3::after {
  content: '';
  width: 50px;
  height: 2px;
  background-color: #ff4d4d;
  position: absolute;
  bottom: -5px;
  left: 0;
}

/* Responsivitas untuk Layar Kecil */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: #ffcc00; /* Warna kuning emas saat di-hover */
    transform: translateY(-5px); /* Efek melompat sedikit */
}

/* Responsif untuk HP agar ikon tetap di tengah */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
}

.cart-form {
    margin-top: 20px;
    padding: 15px;
    background: #fdfdfd;
    border-top: 2px solid #eee;
    border-radius: 0 0 10px 10px;
}
.cart-form h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}
.cart-form input, .cart-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.cart-form textarea {
    height: 70px;
    resize: none;
}
