/* ===== PT. GUNUNG BERKAT MELIMPAH - MAIN STYLESHEET ===== */
/* Fonts: Poppins + Nunito */

:root {
    --primary: #1a7cce;
    --primary-dark: #1561a8;
    --primary-light: #e8f3fc;
    --accent: #ff6b35;
    --green-tok: #03ac0e;
    --orange-shp: #ee4d2d;
	--orange-ade: #f5a623;
    --blue-lzd: #0f146d;
    --text: #2c2c2c;
    --text-light: #666;
    --text-muted: #999;
    --border: #e0e6ee;
    --bg: #f5f7fa;
    --white: #fff;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --shadow: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Poppins', sans-serif;
    --font2: 'Nunito', sans-serif;
    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    height: var(--nav-h);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font2);
    font-weight: 800;
    font-size: 17px;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 26px;
    background: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    list-style: none;
}
.nav-links a {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--text);
    border-radius: 6px;
    transition: .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

.nav-search-btn, .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    color: var(--text);
    border-radius: 6px;
    transition: .2s;
}
.nav-search-btn:hover, .hamburger:hover { background: var(--primary-light); color: var(--primary); }
.hamburger { display: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-muted);
}
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ===== PAGE WRAPPER (sidebar + main) ===== */
.page-wrapper {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.sidebar-title {
    font-family: var(--font2);
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 14px;
}
.search-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
    transition: .2s;
    margin-bottom: 10px;
}
.search-input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.btn-cari {
    width: 100%;
    padding: 9px;
    background: var(--orange-ade);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s;
}
.btn-cari:hover { background: #ffd54f; /*var(--primary-dark); */
}

.kategori-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    transition: .2s;
}
.radio-label:hover { background: var(--primary-light); color: var(--primary); }
.radio-label.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.radio-label input[type=radio] { display: none; }
.radio-dot {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: .2s;
}
.radio-label.active .radio-dot,
.radio-label input:checked ~ .radio-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px white;
}

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; min-width: 0; }

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}
.view-btn.active,

/*.view-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }*/
.view-btn:hover { background: var(--orange-ade); color: white; border-color: var(--orange-ade); }

.sort-form { display: flex; }
.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--primary); }
.view-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.view-count a { color: var(--text-muted); padding: 2px 4px; border-radius: 4px; }
.view-count a.active { color: var(--primary); font-weight: 700; }
.view-count a:hover { color: var(--primary); }

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.product-grid.list-view {
    grid-template-columns: 1fr;
}
.product-grid.list-view .product-card {
    flex-direction: row;
}
.product-grid.list-view .product-img-wrap {
    width: 180px;
    height: 160px;
    flex-shrink: 0;
}
.product-grid.list-view .product-img-wrap img {
    height: 100%;
    object-fit: cover;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: .25s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.product-img-wrap {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f4f8;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-kat {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name a:hover { color: var(--primary); }
.btn-read {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
    align-self: flex-start;
    margin-top: auto;
}
.btn-read:hover { background: var(--orange-ade); /*var(--primary);*/ color: white; }

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}
.no-results-icon { font-size: 48px; margin-bottom: 16px; }
.no-results h3 { font-size: 18px; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 20px; }
.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    transition: .2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 16px 0;
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    transition: .2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ===== PRODUCT DETAIL ===== */
.detail-wrapper {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.detail-gallery { width: 45%; flex-shrink: 0; }
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    aspect-ratio: 1/1;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: .2s;
}
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { flex: 1; }
.detail-title {
    font-family: var(--font2);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 14px;
}
.detail-short-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}
.detail-retail-note {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
}
.detail-reseller-note {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 16px;
}
.join-link { color: var(--primary); font-weight: 700; }
.marketplace-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-width: 220px;
}
.btn-marketplace {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    transition: .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-marketplace:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.tokopedia { background: var(--green-tok); }
.shopee { background: var(--orange-shp); }
.lazada { background: var(--blue-lzd); }

.detail-meta { border-top: 1px solid var(--border); padding-top: 16px; }
.meta-row { display: flex; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.meta-label { font-weight: 600; min-width: 80px; }
.meta-link { color: var(--primary); }
.meta-link:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link {
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-link:hover { background: var(--primary); color: white; }

/* ===== DESCRIPTION SECTION ===== */
.desc-wrapper {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 0 20px;
}
.desc-heading {
    font-family: var(--font2);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}
.desc-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}
.desc-content p { margin-bottom: 10px; }
.desc-list { margin: 10px 0 10px 20px; }
.desc-list li { margin-bottom: 6px; color: #4a86c8; }
.desc-list li::marker { color: var(--primary); }

/* ===== RELATED PRODUCTS ===== */
.related-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.related-heading {
    font-family: var(--font2);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ===== ZOOM MODAL ===== */
.zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.zoom-modal.open { display: flex; }
.zoom-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: #1a2332;
    color: rgba(255,255,255,.7);
    padding: 28px 20px;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #000; /*white;*/
}
.footer-brand .logo-icon { background: rgba(255,255,255,.15); font-size: 20px; width: 32px; height: 32px; }
.footer-copy { font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 0; }
    
    .page-wrapper { flex-direction: column; }
    .sidebar { width: 100%; display: none; }
    .sidebar.show-mobile { display: flex; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    
    .detail-wrapper { flex-direction: column; }
    .detail-gallery { width: 100%; }
    
    .toolbar { gap: 8px; }
    .view-count { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
