/* Reset dan Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px; /* Disesuaikan untuk header fixed 65px + sedikit margin */
}

/* Header Fixed */
header {
    background-color: #464a4f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1001;
}
.logo-and-name {
    display: flex;
    align-items: center;
}
.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid gold;
    margin-right: 10px;
    margin-left: 15px;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
header h1 {
    font-size: 1.5rem;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color:gold;
    margin: 0;
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}
nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
}
nav ul li {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}
nav ul li a {
    color: white;
    text-decoration: none;
    margin-left: 0.5rem;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px; 
    width: 250px;
    height: 100%;
    background-color: #11bac6;
    color: white;
    transition: right 0.3s;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}
.sidebar.open {
    right: 0; 
}
.sidebar h2 {
    margin-top: 4rem;
    margin-bottom: 3px;
    text-align: left;
}

.sidebar h3{
    margin-top: 1px;
    margin-bottom: 4px;
}

h3{
    font-size: 25px;
}

.sidebar ul {
    list-style: none;
    text-align: left;
}
.sidebar ul li {
    margin-bottom: 5px;
    text-align: left;
}
.sidebar ul li a {
    color: rgb(250, 249, 249);
    text-decoration: none;
    margin-left: 1rem;
}
.sidebar .filter-section {
    margin-top: 2rem;
    text-align: left;
}
.sidebar input, .sidebar select, .sidebar button {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
}
.sidebar button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}
.overlay.show {
    display: block;
}

.search-container {
    padding: 1rem;
    background-color: #11bac6;
    text-align: center;
    display: block;
    margin-left: 15px;
    margin-right: 15px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.search-container input, .search-container select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0.5rem;
}
.search-container input[type="text"] {
    width: 50%;
}
.filter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Daftar Produk */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    flex: 1;
}
.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-info {
    padding: 1rem;
}
.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.product-info h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    color: #007bff;
}
.product-info p {
    margin-bottom: 0.5rem;
    color: #666;
    display: flex;
    align-items: center;
    font-size: 12px;
}
.product-info p i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Responsif */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    nav {
        display: none;
    }
    .search-container {
        display: none;
    }
    .product-list {
        grid-template-columns: 1fr;
    }
    .logo {
        width: 40px;
        height: 40px;
    }
    body {
        padding-top: 70px; /* Disesuaikan untuk header 65px + margin */
    }
}

/* Tambahan CSS untuk Slider */
.slider-container {
    width: 98%; /* Disesuaikan untuk responsivitas */
    max-width: 1230px; /* Batas maksimal */
    height: 555px;
    margin: 18px auto;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.slider {
    display: flex;
    width: calc(100% * 5); 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slider img {
    width: calc(100% / 5);
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.slider-container .prev, .slider-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}
.slider-container .prev {
    left: 10px;
}
.slider-container .next {
    right: 10px;
}
.slider-container .prev:hover, .slider-container .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Responsivitas Slider */
@media (max-width: 768px) {
    .slider-container {
        width: 90%;
        height: 250px;
    }
}
@media (max-width: 480px) {
    .slider-container {
        width: 95%;
        height: 200px;
    }
}

button {
    padding: 8px 16px;
    margin: 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-detail {
    background-color: #007bff;
    color: white;
}
.btn-share {
    background-color: #28a745;
    color: white;
    border-radius: 8px;
    padding-bottom: 6px;
    margin-right: 20px;
}

/* Gaya untuk pop-up share */
.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    width: 300px;
    text-align: center;
}
.share-popup h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
}
.social-icons {
    display: flex;
    justify-content: space-around;
}
.social-icons i {
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s;
}
.social-icons i:hover {
    color: #007bff;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

.slider {
    display: none;
}
.slider.active {
    display: block;
}
.slider-container {
    position: relative;
}
.prev, .next, .pause {
    position: absolute;
    /* Tambahkan styling lainnya untuk posisi tombol */
}