*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    width: 100%;
    height: 60px;
    background: #fff;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 20px;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header img {
    width: 25px;
    height: 25px;
    margin-left: 15px;
    cursor: pointer;
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}
.filter-icon {
    display: none;
    width: 30px;
    height: 30px;
    margin-left: 15px;
    cursor: pointer;
}

.main-content {
    display: flex;
    flex-grow: 1;
    margin-top: 20px;
}

.sidebar {
    width: 240px;
    height: 100vh;
    background: #fff;
    padding: 20px;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; 

}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

input[type="checkbox"] {
accent-color: #000000;
}
.container {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.product {
    width: 280px;
    height: 500px; /* 400px */
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product img {
    width: 100%;
    height: 300px; /* 200px */
    object-fit: cover;
    border-radius: 10px;
}

.product p {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin: 10px 0;
    flex-grow: 1;
}

.price-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #e44d26;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #218838;
}

@media (max-width: 1024px) {
        .sidebar {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            height: auto;
            padding: 20px;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: transform 0.3s ease-in-out;
            transform: translateX(-100%); 
        }

        .sidebar.active {
            display: block;
            transform: translateX(0); 
        }

        .filter-icon {
            display: block;
            width: 30px;
            height: 30px;
            cursor: pointer;
        }

        .sidebar .close-btn {
            display: block;

    }
}
.search-container {
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
.search-container button img {
    width: 20px;
    height: 20px;

}
.lupa-icon {

    cursor: pointer;
}
.search-container input {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

.search-container button {
    padding: 0; 
    background: transparent; 
    border: 1px solid #ccc;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
}

.search-container button:hover {
    background: #ddd; /* Cinza claro */
}
.close-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #28a745; 
    color: white; 
    border: none;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out, background 0.3s;
    opacity: 0.8;
    display: none;
    align-items: center;
    justify-content: center;
    }

.scroll-to-top:hover {
    background: #218838; 
    opacity: 1;
}
