/* --- TEMA & VARIABEL DASAR --- */
:root {
    --bg-main: #f8f9fa;
    --text-main: #212529;
    --header-bg: rgba(255, 255, 255, 0.85);
    --card-bg: #ffffff;
    --theme-grad: linear-gradient(45deg, #d4af37, #f3e5ab);
    --theme-color: #d4af37;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --text-main: #f8f9fa;
    --header-bg: rgba(15, 15, 15, 0.85);
    --card-bg: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-main); color: var(--text-main); overflow-x: hidden; transition: var(--transition); display: flex; flex-direction: column; min-height: 100vh; font-size: 15px; line-height: 1.5; }
main { flex: 1; }

/* --- MARQUEE --- */
.marquee-container { background: var(--theme-grad); color: #fff; padding: 8px 0; overflow: hidden; white-space: nowrap; font-size: 0.95rem; font-weight: 500; letter-spacing: 1px;}
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- HEADER, LOGO TOKO, & ANIMASI PENCARIAN --- */
header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: var(--header-bg); backdrop-filter: blur(15px); z-index: 1000; border-bottom: 1px solid rgba(128,128,128,0.2); }
.header-brand { display: flex; align-items: center; gap: 15px; transition: var(--transition); }
#store-logo-img { max-height: 45px; border-radius: 8px; object-fit: contain; }
.logo { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; white-space: nowrap;}
.header-controls { display: flex; align-items: center; gap: 15px; position: relative; width: 100%; justify-content: flex-end;}

.shimmering-text {
    background: linear-gradient(to right, var(--text-main) 20%, var(--theme-color) 40%, var(--theme-color) 60%, var(--text-main) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite reverse;
}
@keyframes shimmer { to { background-position: 200% center; } }

button { background: transparent; border: 1px solid rgba(128,128,128,0.4); color: var(--text-main); padding: 8px 12px; border-radius: 8px; outline: none; cursor: pointer; transition: var(--transition); font-size: 1rem;}
button:hover { border-color: var(--theme-color); }

.search-wrapper { display: flex; align-items: center; position: relative; transition: var(--transition); }
#search-input { width: 0; padding: 0; border: none; background: transparent; color: var(--text-main); transition: var(--transition); opacity: 0; font-size: 1rem; border-bottom: 2px solid var(--theme-color); outline: none;}
#btn-search { border: none; font-size: 1.2rem; padding: 5px; }

/* Menyembunyikan Logo Toko saat Search Terbuka */
header.search-active .header-brand { opacity: 0; pointer-events: none; transform: scale(0.8); position: absolute; }
header.search-active .header-controls { justify-content: center; }
header.search-active .search-wrapper { width: 100%; max-width: 600px; }
header.search-active #search-input { width: 100%; padding: 8px; opacity: 1; margin-right: 10px;}
header.search-active #btn-dl-toggle { color: red; font-weight: bold; border-color: red;}

/* --- HERO SLIDER --- */
.hero-slider { position: relative; height: 60vh; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; font-family: 'Playfair Display', serif; text-align: center; padding: 20px;}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { background: rgba(0,0,0,0.5); padding: 20px 40px; border-radius: 12px; backdrop-filter: blur(8px); }

/* --- PRODUCT GRID (2 GRID HORIZONTAL) --- */
.products-section { padding: 50px 30px; text-align: center; max-width: 1200px; margin: 0 auto; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 30px; }

/* Mengunci tampilan produk menjadi 2 kolom */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Responsif: Di HP otomatis menjadi 1 Kolom agar tidak bertumpuk */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    .header-brand { gap: 10px; }
    #store-logo-img { max-height: 35px; }
    .logo { font-size: 1.5rem; }
    header { padding: 15px 20px; }
}

.product-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid rgba(128,128,128,0.1); }
.product-card:hover { transform: translateY(-8px); border-color: var(--theme-color); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

/* Image Wrapper & Hover Zoom Effect */
.product-img-wrapper { height: 350px; overflow: hidden; background: #ddd; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
[data-theme="dark"] .product-img-wrapper { background: #222; }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.product-img-wrapper:hover img { transform: scale(1.08); }

.prod-info { padding: 20px; text-align: left; }
.prod-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px;}
.prod-title-row h3 { font-size: 1.25rem; line-height: 1.3;}

/* Tombol Deskripsi (!) */
.btn-info {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; min-width: 26px; border-radius: 50%;
    border: 2px solid var(--theme-color); color: var(--theme-color);
    background: transparent; font-size: 0.95rem; font-weight: bold;
    cursor: pointer; padding: 0; transition: var(--transition);
}
.btn-info:hover { background: var(--theme-color); color: var(--card-bg); transform: scale(1.1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);}

.prod-info p { color: var(--theme-color); font-weight: 600; font-size: 1.2rem; margin-bottom: 15px;}
.btn-buy { width: 100%; background: var(--bg-main); color: var(--text-main); font-weight: 600; border: 2px solid var(--theme-color); padding: 10px; font-size: 1rem;}
.btn-buy:hover { background: var(--theme-grad); color: #000; border-color: transparent;}

/* --- PAYMENT SECTION & CHECKOUT --- */
.payment-section { padding: 50px 30px; background: rgba(128,128,128,0.03); border-top: 1px solid rgba(128,128,128,0.1); border-bottom: 1px solid rgba(128,128,128,0.1);}
.payment-container { max-width: 800px; margin: 0 auto;}
.themed-box-inner { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid rgba(128,128,128,0.2); box-shadow: 0 5px 20px rgba(0,0,0,0.05);}
.themed-box-inner h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 20px; color: var(--theme-color); text-align: center;}
.form-group-customer { margin-bottom: 20px; text-align: left; }
.form-group-customer label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group-customer input, .form-group-customer textarea, .customer-select { 
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(128,128,128,0.4); 
    background: var(--bg-main); color: var(--text-main); font-size: 1rem; outline: none; transition: 0.3s;
}
.form-group-customer div { width: 100%; }
.form-group-customer div > input { flex: 1; } 

.form-group-customer input:focus, .form-group-customer textarea:focus, .customer-select:focus { border-color: var(--theme-color); }
#selected-product { font-weight: bold; color: var(--theme-color); }
.customer-select option { background: var(--card-bg); color: var(--text-main); }
.note-small { font-size: 0.85rem; color: var(--theme-color); font-style: italic; margin-top: 5px; display: block; }

.btn-wa { width: 100%; background: #25D366; color: white; border: none; padding: 12px; font-size: 1.1rem; font-weight: bold; margin-top: 10px;}
.btn-wa:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3); border-color: transparent;}

/* --- SLOW CAROUSEL --- */
.brand-carousel-section { padding: 50px 0; background: var(--bg-main); text-align: center;}
.slow-carousel { overflow: hidden; width: 100%; position: relative; padding: 20px 0;}
.carousel-track { display: flex; width: calc(200px * 16); animation: scrollSlow 40s linear infinite; }
.carousel-item { width: 200px; height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--card-bg); margin: 0 15px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid rgba(128,128,128,0.1);}
@keyframes scrollSlow { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-200px * 8 - 240px)); } }

/* --- CONTACT & SOCIAL SPLIT (FontAwesome) --- */
.contact-social-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 50px 30px; max-width: 1000px; margin: 0 auto; }
.contact-card, .social-card { text-align: center; }
.contact-card p, .social-card p { font-size: 0.95rem; color: var(--text-main); opacity: 0.8; margin-bottom: 20px;}
.social-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 2rem; }
.social-icons a { text-decoration: none; transition: transform 0.3s, color 0.3s; display: inline-block; color: var(--text-main); opacity: 0.7;}
.social-icons a:hover { transform: scale(1.2); opacity: 1; color: var(--theme-color);}
#cs-address { color: var(--theme-color); }

/* --- FOOTER --- */
footer { background: var(--theme-grad); color: #000; text-align: center; padding: 15px; position: sticky; bottom: 0; z-index: 100; font-weight: 600; font-size: 1rem; letter-spacing: 1px; box-shadow: 0 -3px 15px rgba(0,0,0,0.1);}

/* --- CUSTOM MODAL & ZOOM --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 9999; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.themed-box { background: var(--card-bg); padding: 30px; border-radius: 15px; width: 90%; max-width: 450px; text-align: center; border-top: 5px solid var(--theme-color); box-shadow: 0 15px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: var(--transition); }
.modal-overlay.active .themed-box { transform: translateY(0); }
.themed-box h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 15px; color: var(--theme-color); }
.themed-box p { font-size: 1rem; margin-bottom: 20px;}
.modal-actions { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }
.btn-ok { background: var(--theme-grad); color: #000; border: none; font-weight: bold; width: 100px; padding: 10px;}
.btn-cancel { background: transparent; border: 1px solid var(--text-main); width: 100px; padding: 10px; }

/* Modal Zoom Image */
#zoom-modal { z-index: 10000; flex-direction: column; cursor: zoom-out; }
#zoom-img { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); object-fit: contain; transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
#zoom-modal.active #zoom-img { transform: scale(1); }
.close-zoom { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; font-weight: bold; cursor: pointer; transition: 0.3s; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.close-zoom:hover { color: var(--theme-color); transform: scale(1.1);}