/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page Container for Fixed Width */
.page-container {
    max-width: 1440px; /* Lebar maksimum konten halaman */
    margin: 0 auto;   /* Membuat container berada di tengah */
    padding: 0 20px;   /* Memberi sedikit jarak jika layar lebih kecil dari max-width */
}

h2.section-title {
    font-size: 20px;
    font-weight: 500;
    margin: 40px 0 20px 0;
}

/* Header */
header {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.search-container {
    flex-grow: 1;
}

#search-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

/* Ad Spaces */
.ad-space {
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    color: #aaa;
    font-size: 16px;
}
.ad-space-horizontal {
    height: 90px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #aaa;
}
.ad-space-vertical {
    height: 600px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/* ======== HALAMAN DEPAN ======== */
.new-models-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(6, 1fr);
}
.model-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
.model-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.all-models-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 40px;
}
.main-category-column h3 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}
.sub-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sub-category-list li {
    margin-bottom: 10px;
}
.sub-category-list a {
    font-size: 14px;
    color: #555;
}
.sub-category-list a:hover {
    text-decoration: underline;
}

/* ======== HALAMAN KATEGORI & PRODUK (LAYOUT DASAR) ======== */
.page-layout-container {
    display: grid;
    grid-template-columns: 240px 1fr; /* Sidebar | Konten */
    gap: 30px;
    align-items: flex-start;
}
.product-page-container {
    display: grid;
    grid-template-columns: 240px 1fr 240px; /* Sidebar | Konten | Iklan Kanan */
    gap: 30px;
    align-items: flex-start;
}
#category-sidebar {
    width: 240px;
    flex-shrink: 0;
}
#main-content {
    flex-grow: 1;
}

/* Sidebar Styling */
.sidebar-category-group { margin-bottom: 24px; }
.sidebar-main-category a { font-size: 15px; font-weight: bold; color: #000; }
.sidebar-main-category a:hover { color: #0056b3; }
.sidebar-main-category.active a { color: #0056b3; }
.sidebar-sub-category-list { list-style: none; padding-left: 15px; margin-top: 12px; }
.sidebar-sub-category-list li { margin-bottom: 8px; }
.sidebar-sub-category-list a { font-size: 14px; color: #555; }
.sidebar-sub-category-list a.active { font-weight: bold; color: #000; }

/* Product Grid (digunakan di Kategori & Search) */
.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
}
.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-info { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-size: 14px; margin-bottom: 10px; flex-grow: 1; }
.download-link {
    display: block; padding: 8px 10px; background-color: #555; color: white;
    text-align: center; border-radius: 4px; font-size: 14px; margin-top: auto;
    transition: background-color 0.2s;
}
.download-link:hover { background-color: #000; }

/* Pagination Styling */
.pagination-container { width: 100%; margin-top: 40px; display: flex; flex-direction: column; align-items: center; }
.next-page-button { display: block; width: 100%; padding: 12px; border: 1px solid #ddd; background-color: #f7f7f7; margin-bottom: 25px; font-size: 16px; color: #0056b3; text-align: center; }
.next-page-button:hover { background-color: #e9e9e9; }
.page-controls { display: flex; align-items: center; gap: 8px; }
.page-controls a { padding: 8px 14px; border: 1px solid #ddd; color: #0056b3; background-color: #fff; }
.page-controls a.active { border: 1px solid #777; background-color: #f0f0f0; color: #000; font-weight: bold; }
.page-of-text { margin-top: 15px; font-size: 14px; color: #777; }

/* ======== HALAMAN DETAIL PRODUK (BARU) ======== */
.breadcrumbs {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #888; }

.product-detail-image {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.product-detail-title {
    font-size: 26px;
    margin: 0 0 15px 0;
}

.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.product-file-info {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.download-model-button {
    display: block;
    width: 100%;
    background-color: #1c8c53;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    margin-top: 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.download-model-button:hover {
    background-color: #15693f;
}