/* === Header Layout === */
.site-header {
    background: #2c3e50;
    color: white;
    padding: 10px 0;
}

.header-container {
    gap: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1050px;
    margin: auto;
    padding: 0 15px;
}

.logo img {
    height: 50px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
    font-size: 22px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: #3498db;
    color:yellow;
    
}

/* Form Pencarian */
.search-form {
    display: flex;
    gap: 6px;
}

.search-form input {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
}

.search-form button {
    padding: 6px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #2980b9;
}

/* Tombol Menu Mobile */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* === Responsive Mobile === */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        color: white;
        margin-left: auto;
    }

    .main-nav {
        width: 100%;
        display: none;
        background: #34495e;
        margin-top: 10px;
        border-radius: 4px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 10px;
    }

    .search-form {
        width: 100%;
        margin-top: 10px;
    }
}




/* =========================
   GLOBAL LAYOUT
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #f5f5f5, #e8eef5);
    color: #333;
}

.container {
    max-width: 1050px;
    margin: auto;
    padding: 0 12px;
    box-sizing: border-box;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #2c3e50;
    color: white;
    padding: 20px 20px;
    display: flex;
    
    align-items: center;
    justify-content: space-between;
}

.site-header .logo img {
    height: 50px;
    
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}


/* =========================
   BANNER SLIDER
========================= */
.banner {
    position: relative;
    overflow: hidden;
}
.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.banner-text {
    width: 70%;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    padding: 15px 25px;
    border-radius: 6px;
    color: white;
    text-align: center;
}
.banner-text h2 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
}
.banner-text p {
    margin: 0;
    font-size: 16px;
}

/* =========================
   KATEGORI (DESKTOP)
========================= */
.kategori {
    margin: 30px auto;
    padding-left: 200px;
    padding-right: 200px;
}
.kategori h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

/* Wrapper agar scroll horizontal kalau >6 */
.kategori-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0;
    scroll-behavior: smooth;
}
.kategori-list::-webkit-scrollbar {
    height: 6px;
}
.kategori-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.kategori-item {
    flex: 0 0 calc(100% / 6 - 12px); /* 6 kategori terlihat */
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-align:center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kategori-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
}
.kategori-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #3498db;
}

/* =========================
   PRODUK GRID (DESKTOP)
========================= */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.produk-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}
.produk-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
.produk-item h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0 4px 0;
    line-height: 1.4;
}
.produk-item h3 a {
    text-decoration: none;
    color: #222;
}
.produk-item h3 a:hover {
    color: #3498db;
}
.harga {
    font-size: 13px;
    color: green;
}
.harga .coret {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}
.produk-item:hover {
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

/* =========================
   CUSTOM ANTON - PRODUK FAVORIT
========================= */
.section.produk-favorit,
.produk-section, 
.section.produk-fisik {
    padding: 20px 0;
    }
    
.main-nav {
    padding: 0 28px;
    width: 100%;
    
}

.page-section {
    padding: 18px 0;
}



/* =========================
   TOMBOL LIHAT SEMUA
========================= */
.btn-center {
    text-align: center;
    margin-top: 15px;
}
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 400;
    transition: background 0.3s ease;
}
.btn:hover {
    background: #2980b9;
}

/* =========================
   FAQ (DESKTOP)
========================= */
#faq {
    padding-top: 36px;
    padding-bottom: 10px;
    max-width: 720px;
    margin: auto;
}
#faq h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.faq-item {
    margin-bottom: 15px;
}
.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    background: #3498db;
    color: white;
    padding: 10px;
    margin: 0;
    border-radius: 4px;
}
.faq-item p {
    font-size: 14px;
    background: white;
    margin: 0;
    padding: 12px;
    line-height: 22px;
    border-radius: 0 0 4px 4px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* =========================
   RESPONSIVE (MOBILE ≤ 600px)
========================= */
@media (max-width: 600px) {

    /* Banner */
    .banner-text h2 { font-size: 18px; font-weight: 700; line-height:24px; }
    .banner-text p { font-size: 14px; }

    /* Kategori scroll horizontal (mobile tetap 5 per view) */
    .kategori-item {
        flex: 0 0 20%; /* 5 kategori terlihat */
    }

    /* Produk Favorit: 2 kolom */
    .section.produk-favorit .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Produk Digital: 3 kolom */
    .produk-section .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Produk Fisik: 2 kolom */
    .section.produk-fisik .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* FAQ font lebih kecil */
    #faq h2 { font-size: 15px; }
    #faq h4 { font-size: 14px; }
    #faq p { font-size: 13px; }
}


/* Pagination Style Bulat */
.pagination {
    text-align: center;
    margin-top: 25px;
}

.pagination a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin: 0 4px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination a.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}


/* === Responsive Halaman Kategori === */
@media (max-width: 600px) {
    .page-section .produk-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .page-section .produk-item img {
        height: auto; /* biar foto tidak terpotong */
    }
}

/* Form Pencarian - Default (Desktop) */
.search-form {
    padding-left:16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input[type="text"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 140px;
}

.search-form button {
    padding: 8px 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #2980b9;
}

/* Mode Mobile */
@media (max-width: 768px) {
    .search-form {
        justify-content: center; /* Rata tengah */
        margin-top: 10px;
        gap: 8px;
    }

    .search-form input[type="text"] {
        padding: 10px 14px;
        font-size: 15px;
        width: 70%; /* lebih besar */
    }

    .search-form button {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .kategori {
    margin: 30px auto;
    padding: 0 !important;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #2c3e50;
}


.about-us-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.6;
    font-size: 16px;
    max-width: 900px;
    margin: auto;
}

.about-us-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.about-us-content p {
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .about-us-content {
        padding: 15px;
        font-size: 14px;
    }
    .about-us-content h2 {
        font-size: 20px;
    }
}


/* === Search Page Styling === */
.search-results {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 15px;
}

.search-results h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Grid hasil pencarian */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Produk di search */
.search-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.search-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.search-item h3 {
    font-size: 14px;
    line-height:22px;
    font-weight:700;
    margin: 10px 0 5px;
}

.search-item h3 a {
    text-decoration: none;
    color: #222;
}

.search-item h3 a:hover {
    color: #3498db;
}

.search-item .harga {
    font-size: 14px;
    color: green;
}

.search-item .harga .coret {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.search-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Pesan produk tidak ditemukan */
.no-results {
    text-align: center;
    font-size: 15px;
    line-height:22px;
    font-weight: 500;
    color: #555;
    padding: 40px 20px;
    background: #fff;
    border-radius: 6px;
    max-width: 600px;
    margin: 50px auto;
}

/* Responsive untuk search */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .search-results h2 {
        font-size: 17px;
    }

    .search-item h3 {
        font-size: 14px;
    }
}



