/* --- RESET & GLOBAL VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #ecf0f3;
    --white: #ffffff;
    --neu-shadow-outer: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff;
    --neu-shadow-inner: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    --text-main: #333;
    --primary-black: #111; 
    --verified-green: #00d32d;
    --accent-gold: #ffcb03; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-color); color: var(--text-main); padding-bottom: 20px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 15px; width: 100%; position: relative; }
.hover-scale { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; }
.hover-scale:hover { transform: translateY(-5px) scale(1.02); }

/* --- HEADER PILL 3D --- */
.header-sticky-container { position: sticky; top: 15px; z-index: 1000; margin-bottom: 30px; padding: 0 10px; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; background: var(--bg-color); box-shadow: var(--neu-shadow-outer); border-radius: 80px; padding: 15px 30px; gap: 20px; width: 100%; border: 1px solid rgba(255,255,255,0.4); }
.brand-section { display: flex; align-items: center; gap: 20px; flex: 1; }
.brand-logo { width: 60px; height: 60px; background: var(--bg-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--neu-shadow-outer); padding: 5px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-info { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.company-name { font-size: 20px; font-weight: 800; color: #000; letter-spacing: -0.5px; }
.company-tagline { font-size: 12px; color: #444; font-weight: 500; }
.company-loc { font-size: 11px; color: #666; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.icon-verified { color: var(--verified-green); }

/* SEARCH BAR */
.search-wrapper { width: 500px; flex-shrink: 0; }
.search-container { display: flex; align-items: center; width: 100%; padding: 5px 8px 5px 25px; height: 55px; background: var(--bg-color); box-shadow: var(--neu-shadow-inner); border-radius: 50px; }
.custom-select-wrapper { position: relative; margin-right: 15px; cursor: pointer; border-right: 1px solid #ccc; padding-right: 15px; height: 30px; display: flex; align-items: center; }
.custom-select-trigger { font-size: 13px; font-weight: 700; color: #333; display: flex; align-items: center; white-space: nowrap; }
.search-select-native { display: none; }
.search-input { border: none; background: transparent; flex: 1; outline: none; font-size: 14px; color: #555; }
.search-btn { width: 42px; height: 42px; background: #111; color: #fff; border: none; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }

/* --- HERO & SLIDER --- */
.hero-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 25px; margin-bottom: 40px; }
.sidebar { padding: 25px; background: var(--bg-color); border-radius: 25px; box-shadow: var(--neu-shadow-outer); display: flex; flex-direction: column; min-height: 400px; }
.sidebar-head { font-weight: 800; font-size: 16px; margin-bottom: 20px; color: #111; display: flex; align-items: center; gap: 10px; }
.category-menu li a { display: flex; align-items:center; gap:10px; padding: 12px 10px; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 14px; color: #555; font-weight: 500; transition:0.2s; border-radius:10px; }
.category-menu li a:hover { color: #000; font-weight: 700; background:rgba(255,255,255,0.5); box-shadow: var(--neu-shadow-outer); transform: translateX(5px); }
.btn-sidebar { text-align: center; background: #dfe4ea; color: #333; padding: 12px; border-radius: 50px; font-size: 12px; font-weight: 800; margin-top: auto; box-shadow: var(--neu-shadow-outer); }

.slider-container { border-radius: 25px; box-shadow: var(--neu-shadow-outer); overflow: hidden; position: relative; width: 100%; aspect-ratio: 1400 / 600; background: #ccc; }
.slide { width: 100%; height: 100%; position: absolute; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 20px; transform: translateY(-50%); z-index: 10; pointer-events: none; }
.nav-btn { pointer-events: auto; width: 45px; height: 45px; background: rgba(255,255,255,0.3); backdrop-filter: blur(5px); border-radius: 50%; border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; transition:0.3s; }

.mobile-category-nav { display: none; margin-bottom: 20px; overflow-x: auto; gap: 10px; padding: 10px 5px; scrollbar-width: none; }
.mob-cat-item { background: #fff; padding: 10px 20px; border-radius: 50px; white-space: nowrap; font-size: 12px; font-weight: 600; color: #555; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); flex-shrink: 0; }
.mob-cat-item.active { background: var(--accent-gold); color: #000; }

/* --- PRODUCTS GRID --- */
.products-section { margin-bottom: 50px; }
.section-top { margin-bottom: 20px; padding-left: 5px; }
.section-top h2 { font-size: 26px; font-weight: 800; color: #111; margin-bottom: 5px; border-left: 5px solid var(--accent-gold); padding-left: 15px; }
.grid-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }

.product-card { background: var(--bg-color); border-radius: 25px; padding: 15px; box-shadow: var(--neu-shadow-outer); display: flex; flex-direction: column; transition: 0.4s; border: 1px solid rgba(255,255,255,0.4); }
.product-card:hover { transform: translateY(-10px); z-index: 2; }
.p-img { width: 100%; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; margin-bottom: 15px; box-shadow: var(--neu-shadow-inner); padding: 5px; background: #f0f0f0; }
.p-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.p-info { text-align: left; }
.p-cat { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.p-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 15px; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.btn-detail { background: #dfe4ea; color: #333; font-size: 11px; font-weight: 700; text-align: center; padding: 10px; border-radius: 50px; transition: 0.2s; box-shadow: 3px 3px 6px rgba(0,0,0,0.05); }
.product-card:hover .btn-detail { background: #111; color: #fff; }

/* --- CTA BANNER --- */
.cta-banner { background: #111; border-radius: 30px; padding: 50px 60px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; box-shadow: var(--neu-shadow-outer); position: relative; overflow: hidden; }
.cta-text h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-text p { color: #aaa; }
.btn-3d-cta { background: var(--accent-gold); color: #000; font-weight: 800; padding: 15px 35px; border-radius: 50px; border: none; cursor: pointer; box-shadow: 0 5px 0 #cba200; transition: 0.1s; }

/* --- PRODUCT DETAIL PAGE (FIX SIZE) --- */
.product-detail-container { 
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; 
    background: var(--bg-color); padding: 40px; border-radius: 25px; 
    box-shadow: var(--neu-shadow-outer); margin-top: 20px; 
}
.pd-gallery-wrapper {
    width: 100%;
    max-width: 500px; /* Batasi lebar gambar agar tidak raksasa */
    margin: 0 auto;
}
.pd-main-img-box { 
    width: 100%; aspect-ratio: 1/1; 
    border-radius: 20px; overflow: hidden; margin-bottom: 15px; 
    box-shadow: var(--neu-shadow-inner); padding: 10px; background:#fff; 
}
.pd-main-img-box img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumb-item { aspect-ratio: 1/1; border-radius: 12px; cursor: pointer; background: #dfe4ea; overflow: hidden; border: 2px solid transparent; }
.pd-thumb-item.active { border-color: var(--accent-gold); }
.pd-thumb-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.pd-thumb-item.active img { opacity: 1; }

.pd-btns { display: flex; gap: 15px; margin-top: 20px; }
.wa-btn { flex: 1; padding: 15px; background: var(--verified-green); color: #fff; font-weight: 800; border: none; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.wa-btn:hover { transform: translateY(-3px); }

/* --- FOOTER --- */
.main-footer { background: #111; padding: 60px 50px 20px 50px; color: #ccc; margin-top: 50px; width: 100%; border-radius:30px 30px 0 0; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid #222; max-width: 1400px; margin: 0 auto; }
.footer-logo img { height: 50px; background: #fff; padding: 5px; border-radius: 5px; margin-bottom: 20px; }
.brand-desc { line-height: 1.6; margin-bottom: 20px; font-size: 14px; }
.social-buttons { display: flex; gap: 10px; }
.social-pill { background: #222; padding: 8px 16px; border-radius: 30px; font-size: 12px; color: #fff; display: flex; gap: 8px; align-items: center; border: 1px solid #333; }
.footer-links h4, .footer-contact h4 { color: var(--accent-gold); font-size: 14px; font-weight: 800; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { font-size: 14px; color: #bbb; }
.c-label { font-size: 11px; color: #666; font-weight: 700; display: block; margin-bottom: 5px; letter-spacing: 1px; }
.c-value { font-size: 15px; color: #fff; font-weight: 500; }
.footer-bottom { text-align: center; padding-top: 25px; font-size: 13px; color: #555; }

/* --- MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 99999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; padding: 30px; border-radius: 25px; width: 90%; max-width: 500px; transform: scale(0.9) rotateX(10deg); transition: 0.4s; position: relative; }
.modal-overlay.active .modal-content { transform: scale(1) rotateX(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #888; }
.wa-input { width: 100%; padding: 12px; background: #f0f2f5; border: 2px solid #e1e1e1; border-radius: 10px; margin-bottom: 10px; font-size: 14px; color:#333; }
.wa-input:focus { border-color: var(--accent-gold); background: #fff; outline:none; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1200px) { .grid-items { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 900px) {
    /* Header */
    .header-sticky-container { top: 0; padding: 0; }
    .header-wrap { flex-direction: column; align-items: flex-start; border-radius: 0 0 30px 30px; padding: 20px; gap: 15px; }
    .brand-section { width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; }
    .search-wrapper { width: 100%; }
    .search-container { padding-left: 15px; height: 50px; }
    .custom-select-wrapper { display: none; }
    
    /* Hero */
    .hero-wrapper { grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
    .sidebar { display: none; }
    .mobile-category-nav { display: flex; }
    .slider-container { aspect-ratio: 16/9; }

    /* Product Grid Mobile */
    .grid-items { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card { padding: 12px; border-radius: 15px; }
    
    /* CTA */
    .cta-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
    .btn-3d-cta { width: 100%; justify-content: center; margin-top: 20px; }
    
    /* Footer Mobile (LEFT ALIGNED) */
    .main-footer { padding: 40px 25px; border-radius: 0; margin-top: 30px; }
    .footer-content { grid-template-columns: 1fr; text-align: left; gap: 30px; }
    .footer-brand { align-items: flex-start; }
    .social-buttons { justify-content: flex-start; }
    .footer-links ul { display: flex; flex-direction: column; align-items: flex-start; padding: 0; text-align: left; }
    .footer-links ul li { width: 100%; }
    
    /* Detail Page */
    .product-detail-container { display: flex; flex-direction: column; padding: 25px; gap: 20px; }
    .pd-gallery-wrapper { max-width: 100%; }
    .pd-btns { flex-direction: column; gap: 10px; }
    .wa-btn { width: 100%; }
    
    /* Modal Mobile */
    .input-row-mob { flex-direction: column; gap: 0; }
}