@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Roboto:wght@300;400;500&display=swap');

:root {
    --navbar-bg: #29313a;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --btn-bg: #f8f8f8;
    --btn-text: #111;
    --maroon-glow: #6b1d24;
    --teal-glow: #204b4e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #2b1318 0%, #101d22 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar & Footer */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--navbar-bg); padding: 12px 30px;
}
.nav-left { display: flex; align-items: center; gap: 30px; font-family: 'Playfair Display', serif; }
.menu-icon { font-size: 26px; cursor: pointer; }
.nav-left a { color: var(--text-main); text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.cart-icon { font-size: 24px; cursor: pointer; }

.footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px; font-family: 'Playfair Display', serif;
    margin-top: auto;
}
.footer-left { display: flex; gap: 20px; }
.footer-left a { color: var(--text-main); text-decoration: none; }

/* Layout & Buttons */
.container { flex: 1; max-width: 1200px; margin: 0 auto; padding: 30px 20px; width: 100%; }
.btn {
    background-color: var(--btn-bg); color: var(--btn-text);
    border: none; padding: 6px 18px; cursor: pointer;
    font-family: 'Playfair Display', serif; border-radius: 4px; font-size: 14px;
}

/* --- Home Page --- */
/* --- Hero Section --- */
.hero { 
    position: relative; 
    margin-bottom: 50px; 
}

.hero-banner { 
    width: 100%; 
    height: 190px;
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-color: #1a1a1a; 
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center; 
}

.hero-content { 
    position: absolute; 
    padding: 30px; 
    font-family: 'Playfair Display', serif; 
    font-size: 26px; 
    font-style: italic; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); 
    z-index: 1;
}

/* --- Badges Section --- */
.badges-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-bottom: 50px; 
}
.badge-item { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

/* Wadah Utama Gambar Badge */
.badge-img-wrapper {
    position: relative;
    width: 100px;  
    height: 130px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 20px; 
}

/* Shape Oval Vertikal di Belakang */
.badge-oval-bg {
    top: -20px;
    right: -10px;
    position: absolute;
    width: 80px;
    height: 140px;
    border-radius: 70%; 
    background-color: #8c1c22; 
    z-index: 0;
}

.oval-green { 
    top: -20px;
    right: -10px;
    position: absolute;
    width: 80px;
    height: 140px;
    border-radius: 70%; 
    background-color: #6E8B8B; 
    z-index: 0;
}

.badge-oval-bg::after, .oval-red::after, .oval-teal::after {
    display: none; 
}

/* Gambar Produk Utamanya */
.badge-product {
    position: absolute;
    z-index: 2; 
    width: 110px;
    height: 110px;
    object-fit: cover;
}

/* Gambar Shadow di Belakang */
.badge-shadow {
    position: absolute;
    width: 90px;
    height: 90px;
    object-fit: cover;
    left: -10px;   
    top: 32px;     
    z-index: 1;    
    pointer-events: none;
    filter: brightness(0.6) contrast(1.2); 
    transform: rotate(-15deg) !important;
}

.tilt-left { transform: rotate(-12deg); }
.tilt-right { transform: rotate(12deg); }

/* Tipografi Teks */
.badge-info {
    max-width: 250px;
    min-width: 0;
}

.badge-info h4 { 
    font-family: 'Playfair Display', serif; 
    font-size: 15px; 
    font-weight: 400; 
    color: #ffffff;
    margin-bottom: 12px; 
}

.badge-info p { 
    font-family: 'Playfair Display', serif; 
    font-size: 13px; 
    color: #f5f5f5; 
    line-height: 1.3; 
}

/* Titles */
.titles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.title-item { display: flex; align-items: center; gap: 20px; }
.title-img { width: 220px; height: 200px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* New Arrival */
.new-arrival { display: flex; gap: 25px; align-items: center; margin-bottom: 30px; }
.arrival-large img { width: 100%; max-width: 500px; aspect-ratio: 600 / 220; height: auto; object-fit: cover; border-radius: 4px; object-position: center; display: block; }
.arrival-small img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; object-position: center; display: block; }
.arrival-text h2 { font-family: 'Playfair Display', serif; font-size: 38px; line-height: 1.2; padding-left: 20px; }

/* --- Collection Page --- */
.collection-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.mini-banner img { width: 220px; height: 80px; object-fit: cover; border-radius: 4px; }
.signup-btn { padding: 6px 20px; }

.collection-container { 
    margin-bottom: 40px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
}

.collection-container img {
    height: 140px;   
    width: auto;    
    object-fit: contain;
    border-radius: 4px;
}

.collection-title { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: normal; margin-bottom: 5px; }
.stars { font-size: 18px; color: #fff; }

/* Carousel */
.carousel-section { display: flex; align-items: center; justify-content: center; gap: 40px; margin-bottom: 20px; }
.carousel-nav { font-size: 60px; cursor: pointer; user-select: none; font-family: sans-serif; font-weight: 300; padding: 0 20px; }
.carousel-items { display: flex; align-items: center; justify-content: center; gap: 30px; }

.carousel-item { opacity: 0.6; transform: scale(0.85); transition: all 0.3s ease; }
.carousel-item img { width: 180px; height: 180px; object-fit: cover; border-radius: 8px; }

.carousel-item.active { opacity: 1; transform: scale(1); }
.carousel-item.active .card-inner { border-radius: 12px; padding: 4px; display: inline-block; }
.carousel-item.active img { width: 260px; height: 260px; display: block; border-radius: 8px; }

.carousel-caption { text-align: center; font-family: 'Playfair Display', serif; font-size: 20px; margin-top: 10px; }
.view-all { text-align: right; margin-top: 10px; font-size: 13px; cursor: pointer; color: var(--text-muted); }
.view-all:hover { color: #fff; }

.carousel-item .carousel-caption {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    visibility: visible;
}

/* Sidebar / Drawer Menu */
.sidebar {
    height: 100%;
    width: 260px;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: -260px; 
    background-color: #222831;
    overflow-x: hidden;
    transition: left 0.3s ease; 
    padding-top: 60px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.open { left: 0; }

.sidebar .sidebar-header {
    padding: 10px 20px 20px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.sidebar a {
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #f5f5f5;
    display: block;
    transition: background 0.2s;
}

.sidebar a:hover {
    background-color: #29313a;
    color: #fff;
}

.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    padding: 0;
    color: #a0a0a0;
}
.sidebar .close-btn:hover {
    background: transparent;
    color: #fff;
}

.sidebar-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(2px); 
}

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


/* ==========================================================
   RESPONSIVE DESIGN (SUPAYA RAPI DI HP & TABLET)
   ========================================================== */
@media screen and (max-width: 1024px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .nav-left {
        gap: 15px;
    }

    .badges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .titles-grid {
        grid-template-columns: 1fr;
    }

    .title-img {
        width: 100%;
        height: 150px;
    }

    .new-arrival {
        flex-direction: column;
        text-align: center;
    }

    .arrival-text h2 {
        padding-left: 0;
        font-size: 30px;
    }

    .carousel-section {
        gap: 10px;
    }

    .carousel-item.active img {
        width: 200px;
        height: 200px;
    }
}