/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #f0f0f0;
    backdrop-filter: blur(4px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1a1a1a;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a1a1a;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: url('/assets/images/banners/hero-banner.jpg') center/cover no-repeat;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.hero-buttons .btn-secondary:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* ===== KATEGORI ===== */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.kategori-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
    text-align: center;
}

.kategori-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.kategori-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #eaeaea;
    aspect-ratio: 16/9;
}

.kategori-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kategori-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.kategori-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.kategori-link {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

/* ===== PRODUK GRID ===== */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.produk-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.produk-card-image {
    aspect-ratio: 1/1;
    background: #f5f5f5;
    overflow: hidden;
}

.produk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.produk-card:hover .produk-card-image img {
    transform: scale(1.03);
}

.produk-card-body {
    padding: 16px 18px 20px;
}

.produk-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.produk-card-body .harga {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.produk-card-body .deskripsi-singkat {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produk-card-body .btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

/* ===== TENTANG HOME ===== */
.tentang-home-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tentang-home-text h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tentang-home-text p {
    color: #555;
    margin-bottom: 16px;
}

.tentang-home-image {
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 4/3;
}

.tentang-home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ARTIKEL GRID ===== */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.artikel-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artikel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.artikel-card-image {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    overflow: hidden;
}

.artikel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artikel-card-body {
    padding: 18px 20px 22px;
}

.artikel-card-body .meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.artikel-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.artikel-card-body p {
    font-size: 14px;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artikel-card-body .read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

/* ===== CTA ===== */
.cta-box {
    background: #f8f8f8;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

.cta-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 120px 0 50px;
    background: #f8f8f8;
    text-align: center;
}

.page-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-hero p {
    color: #666;
    font-size: 16px;
}

/* ===== FILTER ===== */
.filter-section {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
}

.footer h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 6px;
}

.footer ul li a {
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer ul li a:hover {
    opacity: 1;
}

.footer-social p {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .tentang-home-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
        gap: 12px;
    }

    .nav-menu.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .kategori-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    .produk-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .artikel-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-hero {
        padding: 100px 0 30px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .produk-card-body h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .produk-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .produk-card-body {
        padding: 12px 14px 16px;
    }

    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}