/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    transition: color 0.3s;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

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

.nav-menu a:hover {
    color: #3498db;
}

.cart-icon {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Slider Styles - MANUAL ONLY WITH SMOOTH TRANSITION */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.dot.active::after {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Products Section */
.products {
    padding: 36px 0 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 14px;
    font-size: 2.2rem;
    color: #2c3e50;
    transition: color 0.3s;
}

/* ============================================
   TAB NAVIGASI PRODUK  — efek 3D & shadow
   ============================================ */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    padding: 0 0 0 0;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background: linear-gradient(180deg, #f0f4f8 0%, #dce4ed 100%);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #5a6a7a;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px 10px 0 0;
    position: relative;
    /* Efek 3D: border atas/samping terang, border bawah gelap */
    border-top:   2px solid #ffffff;
    border-left:  2px solid #dce4ed;
    border-right: 2px solid #b8c8d8;
    border-bottom: 3px solid #a8bac8;
    /* Shadow ke bawah agar terkesan mengambang */
    box-shadow:
        0 4px 8px rgba(100, 130, 160, 0.18),
        0 2px 4px rgba(100, 130, 160, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.15s ease,
        box-shadow 0.18s ease,
        border-bottom-width 0.12s ease;
    /* Mulai sedikit naik dari garis bawah */
    transform: translateY(2px);
    letter-spacing: 0.01em;
}

.tab-btn i {
    font-size: 1.05rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(180deg, #e2eef9 0%, #c8dcee 100%);
    color: #2475b0;
    transform: translateY(0px);
    box-shadow:
        0 6px 14px rgba(52, 152, 219, 0.22),
        0 3px 6px rgba(52, 152, 219, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    border-bottom-color: #8aaecc;
}

.tab-btn.active {
    /* Gradient biru segar ke bawah */
    background: linear-gradient(180deg, #5dade2 0%, #2e86c1 55%, #2475b0 100%);
    color: #ffffff;
    /* Efek "ditekan" — maju ke depan, shadow ke atas hilang */
    transform: translateY(3px);
    border-top:   2px solid #74bde8;
    border-left:  2px solid #3498db;
    border-right: 2px solid #1a6fa8;
    border-bottom: 2px solid #1a5f96;
    box-shadow:
        0 2px 6px rgba(26, 111, 168, 0.35),
        0 1px 2px rgba(26, 111, 168, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.tab-btn.active i {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22));
}

/* Garis bawah / "lantai" tab */
.tab-nav-floor {
    height: 4px;
    background: linear-gradient(90deg, #2e86c1 0%, #3498db 50%, #2e86c1 100%);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.30);
    margin-bottom: 0;
}

.tab-content {
    display: none;
    border: 2px solid #d0dcе8;
    border-color: #d0dce8;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 30px 0 0 0;
    margin-bottom: 0;
    box-shadow:
        0 6px 20px rgba(52, 100, 150, 0.10),
        0 2px 6px rgba(52, 100, 150, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

.tab-content.active {
    display: block;
}

/* ── Dark mode for tabs ── */
body.dark .tab-btn {
    background: linear-gradient(180deg, #2a2a40 0%, #1a1a2c 100%);
    color: #8090a8;
    border-top:   2px solid #3a3a54;
    border-left:  2px solid #2e2e44;
    border-right: 2px solid #141420;
    border-bottom: 3px solid #0e0e1a;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .tab-btn:hover:not(.active) {
    background: linear-gradient(180deg, #303050 0%, #22223a 100%);
    color: #62b8e8;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.40),
        0 3px 6px rgba(52, 152, 219, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .tab-btn.active {
    background: linear-gradient(180deg, #4aa8e0 0%, #2475b0 55%, #1a5f96 100%);
    color: #ffffff;
    border-top:   2px solid #5ab8f0;
    border-left:  2px solid #2e86c1;
    border-right: 2px solid #1060a0;
    border-bottom: 2px solid #0e4a80;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 4px rgba(0, 0, 0, 0.20);
}

body.dark .tab-nav-floor {
    background: linear-gradient(90deg, #1a5f96 0%, #2475b0 50%, #1a5f96 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.25);
}

body.dark .tab-content {
    border-color: #2a2a3e;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.30),
        0 2px 6px rgba(0, 0, 0, 0.20);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 0 30px 0;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.10),
        0 12px 24px rgba(0, 0, 0, 0.07),
        4px 8px 16px rgba(0, 0, 0, 0.06),
        -2px 4px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.10),
        0 12px 24px rgba(0, 0, 0, 0.13),
        0 24px 40px rgba(0, 0, 0, 0.09),
        6px 14px 24px rgba(0, 0, 0, 0.08),
        -3px 6px 12px rgba(0, 0, 0, 0.05);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    transition: color 0.3s;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* ============================================
   TOMBOL LIHAT SPESIFIKASI
   ============================================ */
.view-spec {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    border-bottom: 3px solid #1a6fa8;
    padding: 12px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s, border-bottom 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow:
        0 4px 6px rgba(52, 152, 219, 0.35),
        0 6px 14px rgba(26, 111, 168, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.view-spec:hover {
    background-color: #2980b9;
    box-shadow:
        0 6px 10px rgba(52, 152, 219, 0.45),
        0 10px 20px rgba(26, 111, 168, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.view-spec:active {
    transform: translateY(1px);
    border-bottom: 1px solid #1a6fa8;
    box-shadow:
        0 2px 4px rgba(52, 152, 219, 0.25),
        inset 0 1px 3px rgba(0, 0, 0, 0.10);
}

/* Tombol Tambah ke Keranjang */
.add-to-cart {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-bottom: 3px solid #1a8a4a;
    padding: 12px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s, border-bottom 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow:
        0 4px 6px rgba(46, 204, 113, 0.35),
        0 6px 14px rgba(26, 138, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.add-to-cart:hover {
    background-color: #27ae60;
    box-shadow:
        0 6px 10px rgba(46, 204, 113, 0.45),
        0 10px 20px rgba(26, 138, 74, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.add-to-cart:active {
    transform: translateY(1px);
    border-bottom: 1px solid #1a8a4a;
    box-shadow:
        0 2px 4px rgba(46, 204, 113, 0.25),
        inset 0 1px 3px rgba(0, 0, 0, 0.10);
}

/* ============================================
   MODAL TENTANG KAMI — identik dengan Cart Modal
   ============================================ */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.about-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
}

.about-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-about {
    font-size: 1.5rem;
    cursor: pointer;
}

.about-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    transition: color 0.3s, background-color 0.3s;
}

.about-body p {
    margin-bottom: 14px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   CART ITEM — LAYOUT 2 KOLOM
   Kiri  : gambar produk (tinggi penuh, merged)
   Kanan : 3 baris — nama / kontrol qty / harga
   ============================================ */
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    align-items: stretch;
    transition: border-color 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Kolom kiri: gambar memenuhi seluruh tinggi baris */
.cart-item-image {
    grid-row: 1;
    width: 90px;
    min-height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kolom kanan: flex column, 3 baris */
.cart-item-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

/* Baris 1 — nama produk */
.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.35;
    margin: 0;
    transition: color 0.3s;
}

/* Baris 2 — kontrol qty + hapus */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.quantity-btn {
    background-color: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #dde;
}

.quantity {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    font-size: 1rem;
}

.remove-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.remove-item:hover {
    background-color: #c0392b;
}

/* Baris 3 — harga */
.cart-item-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
}

.cart-total {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    transition: border-color 0.3s;
}

.total-price {
    color: #e74c3c;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #eee;
    transition: border-color 0.3s;
}

.checkout-btn {
    background-color: #3498db;
}

.clear-cart {
    background-color: #95a5a6;
}

.clear-cart:hover {
    background-color: #7f8c8d;
}

/* ============================================
   MODAL SPESIFIKASI PRODUK
   ============================================ */
.spec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.spec-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s;
}

.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    flex-shrink: 0;
}

.spec-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-spec {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s;
}

.close-spec:hover {
    opacity: 0.7;
}

.spec-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Header produk dalam modal: gambar kiri + teks kanan */
.spec-product-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    transition: border-color 0.3s;
}

.spec-product-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.spec-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-product-title h3 {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.spec-keterangan {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
    transition: color 0.3s;
}

/* ============================================
   GRID FOTO PRODUK 2×2
   ============================================ */
.spec-section-photos {
    margin-bottom: 20px;
}

.spec-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.spec-photo-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.spec-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.spec-photo-item:hover img {
    transform: scale(1.04);
}

/* Grid detail singkat */
.spec-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-detail-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background-color 0.3s;
}

.spec-label {
    font-size: 0.75rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.spec-label i {
    color: #3498db;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s;
}

/* Section spesifikasi */
.spec-section {
    margin-bottom: 20px;
}

.spec-section h4 {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    transition: color 0.3s, border-color 0.3s;
}

.spec-section h4 i {
    color: #3498db;
}

/* ============================================
   LINGKARAN WARNA (COLOR SWATCHES)
   ============================================ */
.spec-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 4px 2px;
}

.spec-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.spec-color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spec-color-swatch:hover .spec-color-circle {
    transform: scale(1.18);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.spec-color-name {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    max-width: 52px;
    line-height: 1.2;
    word-break: break-word;
    transition: color 0.3s;
}

/* Tabel ukuran */
.spec-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.spec-table thead tr {
    background-color: #2c3e50;
    color: white;
}

.spec-table th {
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.spec-table td {
    padding: 9px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    transition: color 0.3s, border-color 0.3s;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

.spec-table tbody tr:hover {
    background-color: #eaf4fb;
}

.spec-size-note {
    font-size: 0.78rem;
    color: #95a5a6;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    transition: color 0.3s;
}

.spec-size-note i {
    color: #3498db;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Teks perawatan */
.spec-perawatan {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    background-color: #fdf9ec;
    border-left: 3px solid #f39c12;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    z-index: 1200;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    font-size: 0.82rem;
    max-width: 260px;
    line-height: 1.4;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .slide-content h2 { font-size: 2rem; }
    .slide-content p  { font-size: 1rem; }
}

@media (max-width: 768px) {
    .navbar { position: relative; }

    /* ── HEADER CONTAINER: padding seragam kecil ──
       Kunci: .navbar bertumpu di sisi kanan layar.
       Padding-right besar justru menggeser .navbar ke kiri
       dan menindih logo. Solusi: pakai padding kecil + max-width pada logo. */
    header .container {
        padding: 12px 15px;
    }

    /* ── LOGO: dibatasi agar tidak meluber ke zona ikon ── */
    .logo {
        min-width: 0;
        overflow: hidden;
        flex-shrink: 1;
        max-width: calc(100% - 128px);
    }

    .logo img {
        width: 32px;
        height: 32px;
        margin-right: 7px;
    }

    .logo h1 {
        font-size: 0.92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── HAMBURGER: paling kanan ── */
    .hamburger {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        display: flex;
    }

    .bar {
        width: 21px;
        height: 2px;
        margin: 3px 0;
    }

    /* ── CART ICON: di kiri hamburger ── */
    .cart-icon {
        position: absolute;
        right: 44px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1001;
        font-size: 1.05rem;
    }

    /* ── DARK MODE TOGGLE: di kiri cart icon ── */
    .dark-mode-toggle {
        position: absolute;
        right: 78px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1001;
    }

    /* Sembunyikan ikon ☀️🌙 agar toggle lebih ramping di HP */
    .dark-mode-toggle .toggle-icon-sun,
    .dark-mode-toggle .toggle-icon-moon {
        display: none;
    }

    /* Toggle switch lebih kecil di mobile */
    .toggle-switch {
        width: 36px;
        height: 20px;
        border-radius: 10px;
    }

    .toggle-knob {
        width: 14px;
        height: 14px;
        top: 3px;
        left: 3px;
    }

    body.dark .toggle-knob {
        transform: translateX(16px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active { left: 0; }

    .nav-menu li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .slide-content {
        padding: 14px 16px;
        width: 65%;
        max-width: 260px;
        border-radius: 8px;
    }
    .slide-content h2 { font-size: 1.5rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }

    .cart-footer {
        flex-direction: column;
        gap: 10px;
    }

    .cart-footer .btn { width: 100%; }

    /* Spec modal: header jadi kolom */
    .spec-product-header { flex-direction: column; }
    .spec-product-img { width: 100%; height: 160px; }
    .spec-details-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .logo h1 { font-size: 0.88rem; }
    .slide-content {
        padding: 10px 12px;
        width: 58%;
        max-width: 230px;
    }
    .slide-content h2 { font-size: 1.1rem; }
    .slide-content p  { font-size: 0.85rem; margin-bottom: 12px; }
    .product-grid { grid-template-columns: 1fr; }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cart-content { width: 95%; }

    /* Posisi & ukuran sama dengan breakpoint 768px — tidak perlu diubah lagi */

    .spec-content { width: 95%; }
    .spec-details-grid { grid-template-columns: 1fr; }

    /* Foto grid tetap 2 kolom di layar kecil */
    .spec-photo-grid { gap: 6px; }

    /* Lingkaran warna sedikit lebih kecil di HP */
    .spec-color-circle {
        width: 30px;
        height: 30px;
    }

    .spec-color-name { font-size: 0.65rem; max-width: 44px; }

    /* Notifikasi lebih kecil di HP */
    .notification {
        font-size: 0.75rem;
        padding: 8px 13px;
        max-width: 210px;
        top: 14px;
        right: 12px;
    }
}

/* ============================================
   LIGHTBOX FOTO PRODUK
   ============================================ */
.photo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 0;
}

.photo-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 0;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: background-color 0.2s;
}

.lightbox-close:hover {
    background-color: rgba(231, 76, 60, 0.9);
}

/* Kursor pointer pada foto produk di grid */
.spec-photo-item {
    cursor: pointer;
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.toggle-icon-sun {
    color: #f39c12;
    font-size: 0.9rem;
    transition: color 0.3s, opacity 0.3s;
}

.toggle-icon-moon {
    color: #95a5a6;
    font-size: 0.85rem;
    transition: color 0.3s, opacity 0.3s;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================
   DARK MODE — semua warna override
   ============================================ */
body.dark {
    background-color: #121218;
    color: #d0d0d0;
}

/* Header */
body.dark header {
    background-color: #1a1a28;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark .logo h1 {
    color: #e0e0e0;
}

body.dark .nav-menu a {
    color: #c0c0c0;
}

body.dark .nav-menu a:hover {
    color: #3498db;
}

body.dark .cart-icon {
    color: #d0d0d0;
}

body.dark .bar {
    background-color: #c0c0c0;
}

/* Toggle switch aktif (dark mode ON) */
body.dark .toggle-switch {
    background-color: #3498db;
}

body.dark .toggle-knob {
    transform: translateX(20px);
}

body.dark .toggle-icon-sun {
    color: #7f8c8d;
    opacity: 0.6;
}

body.dark .toggle-icon-moon {
    color: #3498db;
    opacity: 1;
}

/* Section produk */
body.dark .products {
    background-color: #121218;
}

body.dark .section-title {
    color: #e0e0e0;
}

/* Product card */
body.dark .product-card {
    background-color: #1e1e2e;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 12px 24px rgba(0, 0, 0, 0.25);
}

body.dark .product-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.45),
        0 24px 40px rgba(0, 0, 0, 0.35);
}

body.dark .product-name {
    color: #e0e0e0;
}

body.dark .product-description {
    color: #9a9a9a;
}

/* Mobile nav menu */
body.dark .nav-menu {
    background-color: #1a1a28;
}

body.dark .nav-menu li {
    border-bottom-color: #2e2e3e;
}

/* Modal umum (cart, spec, about) */
body.dark .cart-content,
body.dark .spec-content,
body.dark .about-content {
    background-color: #1e1e2e;
}

body.dark .cart-body,
body.dark .spec-body {
    color: #c8c8c8;
}

body.dark .about-body {
    color: #c8c8c8;
    background-color: #1e1e2e;
}

/* Cart items */
body.dark .cart-item {
    border-bottom-color: #2e2e3e;
}

body.dark .cart-item-name {
    color: #e0e0e0;
}

body.dark .quantity-btn {
    background-color: #2e2e3e;
    color: #d0d0d0;
}

body.dark .quantity-btn:hover {
    background-color: #3a3a50;
}

body.dark .quantity {
    color: #e0e0e0;
}

body.dark .cart-total {
    border-top-color: #2e2e3e;
    color: #e0e0e0;
}

body.dark .cart-footer {
    border-top-color: #2e2e3e;
}

body.dark .empty-cart {
    color: #888;
}

/* Spec modal — body elements */
body.dark .spec-product-header {
    border-bottom-color: #2e2e3e;
}

body.dark .spec-product-title h3 {
    color: #e0e0e0;
}

body.dark .spec-keterangan {
    color: #9a9a9a;
}

body.dark .spec-detail-item {
    background-color: #252535;
}

body.dark .spec-label {
    color: #7a8a8a;
}

body.dark .spec-value {
    color: #e0e0e0;
}

body.dark .spec-section h4 {
    color: #e0e0e0;
    border-bottom-color: #2e2e3e;
}

body.dark .spec-color-name {
    color: #aaa;
}

body.dark .spec-table-wrapper {
    border-color: #2e2e3e;
}

body.dark .spec-table td {
    color: #c0c0c0;
    border-bottom-color: #2a2a3a;
}

body.dark .spec-table tbody tr:nth-child(even) {
    background-color: #252535;
}

body.dark .spec-table tbody tr:hover {
    background-color: #2a3050;
}

body.dark .spec-size-note {
    color: #7a8a8a;
}

body.dark .spec-perawatan {
    background-color: #252218;
    color: #b8b098;
    border-left-color: #c0870a;
}

body.dark .spec-photo-item {
    background-color: #252535;
}

/* Footer — sudah gelap, sedikit penyesuaian */
body.dark footer {
    background-color: #111120;
}

body.dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}
