:root {
    --primary-color: #525252;
    --secondary-color: #525252;
    --text-color: #000000;
    --light-bg: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    display: flex; /* Menambahkan display flex untuk menyelaraskan ikon dan teks */
    align-items: center; /* Menyelaraskan item secara vertikal */
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        display: none; /* Hidden by default */
        width: 100%;
        background: var(--light-bg);
        padding: 1rem;
        border-radius: 5px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-icons {
        margin-top: 1rem;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }
    
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(0, 0, 0);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.hero-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}


.featured-products {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/*shop*/
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Latar belakang putih */
    color: #000000; /* Teks hitam */
    margin: 0;
    padding: 0;
}

main.shop {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #000000; /* Teks hitam */
}

.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-category {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #000000; /* Tombol hitam */
    color: white; /* Teks putih */
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-category:hover {
    background: #444444; /* Warna abu-abu gelap saat hover */
    transform: translateY(-2px);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: #ffffff; /* Kartu produk putih */
    border: 1px solid #000000; /* Garis hitam */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #000000; /* Garis hitam di bawah gambar */
}

.product-card h3 {
    margin: 10px;
    font-size: 1.2em;
    color: #000000; /* Teks hitam */
}

.price {
    margin: 10px;
    font-size: 1.1em;
    color: #000000; /* Teks hitam */
}

.add-to-cart {
    display: block;
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 10px;
    background: #000000; /* Tombol hitam */
    color: white; /* Teks putih */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #444444; /* Warna abu-abu gelap saat hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .categories {
        flex-direction: column;
        align-items: center;
    }
}
