* { box-sizing: border-box; }
html, body {
    margin: 0; font-family: 'Montserrat', sans-serif;
    background: #ffffff; color: #000000; overflow-x: hidden;
}
 
/* LOADER */
.loader {
    position: fixed; 
    inset: 0; 
    background: #ffffff; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    z-index: 10000;
    transition: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.loader img {
    width: 350px; 
    height: auto;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(0.96); opacity: 0.7; }
    50% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.7; }
}

.loader.hide { 
    opacity: 0; 
    pointer-events: none; 
    transform: scale(1.1); 
}

/* TOAST & SHAKE */
.toast {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: #000000; color: #fff; padding: 14px 28px; border-radius: 50px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9999; 
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.toast.show { top: 30px; }
.shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate3d(-50%, 0, 0) translateX(-2px); }
    20%, 80% { transform: translate3d(-50%, 0, 0) translateX(4px); }
    30%, 50%, 70% { transform: translate3d(-50%, 0, 0) translateX(-8px); }
    40%, 60% { transform: translate3d(-50%, 0, 0) translateX(8px); }
}

/* HEADER */
header { 
    padding: 80px 20px 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
}
header h1 { letter-spacing: 12px; font-size: 32px; margin: 0; color: #000000; }
header .slogan { 
    font-size: 10px; 
    font-weight: 700;
    opacity: 0.8; 
    margin-top: 10px; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    color: #333333;
}
header .description {
    max-width: 300px;
    margin-top: 20px;
    font-size: 11px;
    line-height: 1.8;
    opacity: 0.6;
    letter-spacing: 0.5px;
    color: #000000;
}

/* PRODUCTS */
.products { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 0 20px 80px; }
.card { width: 100%; max-width: 450px; background: #ffffff; border-radius: 20px; border: 1px solid #eaeaea; overflow: hidden; position: relative; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.card.sold-out { opacity: 0.4; filter: grayscale(1); pointer-events: none; }
.card img { width: 100%; display: block; }
.badge { position: absolute; top: 15px; left: 15px; padding: 6px 14px; font-size: 10px; font-weight: 700; border-radius: 8px; z-index: 2; color: #fff; }
.pre { background: #555555; } /* Abu-abu untuk Pre-order */
.ready { background: #000000; } /* Hitam untuk Ready Stock */
.sold { background: #ff3b3b; } /* Sold out merah */

/* FOOTER */
footer { background: #f9f9f9; border-top: 1px solid #eaeaea; padding: 60px 20px; text-align: center; margin-top: 40px; color: #000000; }
.footer-logo { letter-spacing: 10px; font-size: 22px; font-weight: 700; margin-bottom: 5px; color: #000000; }
.footer-slogan { font-size: 9px; opacity: 0.5; letter-spacing: 2px; margin-bottom: 35px; text-transform: uppercase; }
.footer-socials { display: flex; justify-content: center; gap: 25px; margin-bottom: 35px; }
.footer-socials a { color: #000000; font-size: 20px; opacity: 0.8; text-decoration: none; transition: 0.3s;}
.footer-socials a:hover { opacity: 1; }
.footer-contact-title { font-size: 12px; font-weight: 700; color: #000000; margin-bottom: 10px; }
.footer-contact-info { font-size: 11px; opacity: 0.7; line-height: 1.8; margin-bottom: 40px; }
.footer-contact-info a { color: #000000; text-decoration: none; font-weight: 600; }
.copyright { font-size: 9px; opacity: 0.4; letter-spacing: 1px; margin-top: 20px; }

/* PAGE SYSTEM */
.page { position: fixed; inset: 0; overflow-y: auto; background: #ffffff; opacity: 0; transform: translateY(20px); transition: 0.4s ease-out; pointer-events: none; z-index: 1; }
.page.active { opacity: 1; transform: translateY(0); pointer-events: auto; z-index: 10; }

/* DETAIL & GRID */
.detail-container { max-width: 500px; margin: auto; padding: 20px 24px 160px; color: #000000; }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 60px; }
.img-grid img { width: 100%; border-radius: 15px; aspect-ratio: 4/5; object-fit: cover; border: 1px solid #eaeaea; }
.section-label { margin-top: 30px; font-size: 11px; font-weight: 700; color: #555555; letter-spacing: 1.5px; text-transform: uppercase; }
.option-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.option-box div { padding: 16px; border: 1.5px solid #eaeaea; text-align: center; border-radius: 12px; cursor: pointer; background: #ffffff; font-size: 14px; font-weight: 600; color: #000000; }
.option-box div.active { background: #000000; color: #fff; border-color: #000000; }
.option-box div.disabled { opacity: 0.3; cursor: not-allowed; border: 1px dashed #ccc; text-decoration: line-through; background: #f5f5f5; }

/* INPUTS */
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 11px; font-weight: 700; color: #555555; margin-bottom: 10px; }
input, textarea { width: 100%; padding: 18px; background: #ffffff; border: 1.5px solid #eaeaea; color: #000000; border-radius: 15px; font-family: inherit; font-size: 15px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
input:focus, textarea:focus { border-color: #000000; outline: none; }

/* BUTTONS */
button { background: #000000; color: #fff; border: none; padding: 20px; width: 100%; font-weight: 700; border-radius: 15px; cursor: pointer; transition: 0.2s; }
button:hover { background: #333333; } /* Berubah jadi abu-abu gelap saat disentuh */
.btn-container { margin-top: 40px; }
.back-btn { position: fixed; top: 25px; left: 20px; z-index: 150; font-weight: 700; font-size: 12px; cursor: pointer; opacity: 0.8; padding: 10px; background: rgba(255,255,255,0.8); border: 1px solid #eaeaea; border-radius: 10px; color: #000000; }

/* SPESIFIKASI PRODUK */
.specs-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.specs-box h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px;
    font-size: 18px; 
    color: #000000; 
}

#specContent {
    margin: 0;
    line-height: 1.8;
    font-size: 14px;
    color: #000000; 
}

.specs-box button {
    margin-top: 25px;
    padding: 15px;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    background: #000000;
    color: #fff;
    border: none;
}
.specs-box button:hover { background: #333333; }

/* --- CSS UNTUK SIDEBAR & MENU --- */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 5000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bar {
    width: 25px;
    height: 2px;
    background: #000000;
    transition: 0.3s;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 6000;
    transition: 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    border-right: 1px solid #eaeaea;
    padding: 100px 30px;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #000000;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links li:hover {
    color: #555555;
    padding-left: 10px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 5500;
}

.sidebar-overlay.show {
    display: block;
}

.sold-out-display {
    opacity: 0.7;
    filter: grayscale(0.5);
}

/* Slider Kontainer */
.img-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-top: 60px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.img-slider::-webkit-scrollbar {
    display: none;
}

.img-slider img {
    flex: 0 0 75%;
    width: 75%;
    border-radius: 15px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border: 1px solid #eaeaea;
    scroll-snap-align: center;
}

/* FITUR GALERI */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px 100px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    background: #f9f9f9;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    object-fit: contain;
}

.img-loading-overlay {
    position: relative;
    display: inline-block;
    width: 100%;
}

.img-loading-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner-overlay i {
    font-size: 32px;
    color: #000000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- BANNER SLIDER --- */
.banner-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.banner-track::-webkit-scrollbar {
    display: none;
}

.banner-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
}

.banner-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.banner-content {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 40px;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.banner-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.banner-content p {
    margin: 0 0 12px;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
    color: #fff;
}

.banner-content a {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.banner-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.banner-dots .dot.active {
    background: #fff;
    width: 16px;
    border-radius: 10px; 
}
