/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= BODY ================= */
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    color: #0f172a;
    background: #f8fafc;
}

/* ================= CONTAINER ================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: linear-gradient(90deg, #0ea5a4, #3b82f6);
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================= AUTH ================= */
.btn-login {
    padding: 8px 18px;
    background: #22c55e;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
}

/* ================= DROPDOWN ================= */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    min-width: 160px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #0f172a;
}

.dropdown-content a:hover {
    background: #f1f5f9;
}

.dropdown-content.show {
    display: block;
}

/* ================= HERO (2 section: Accounting & Marketing Tool) ================= */
/* ================= HERO (1 background, 2 box ke bawah) ================= */
.hero {
    flex-shrink: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0ea5a4, #3b82f6);
    display: flex;
    flex-direction: column;      /* box tersusun atas-bawah */
    align-items: center;
    justify-content: center;
    gap: 40px;                   /* jarak antar box */
    padding: 60px 20px;
}

/* BOX KACA */
.hero-box {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* FOTO */
.hero-photo {
    width: 100%;
    margin-bottom: 25px;
}

.hero-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* TEKS */
.hero-box h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.hero-box p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 520px;
}

/* TOMBOL */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        gap: 25px;
        padding: 40px 15px;
    }

    .hero-box {
        padding: 20px;
    }

    .hero-photo img {
        height: 210px;
    }

    .hero-box h1 {
        font-size: 2rem;
    }
}
.btn-primary {
    padding: 12px 28px;
    background: #22c55e;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
}

.btn-outline {
    padding: 12px 28px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary:hover {
    background: #16a34a;
}

.btn-outline:hover {
    background: #fff;
    color: #0ea5a4;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
    .hero-box {
        padding: 20px;
    }

    .hero-photo img {
        height: 210px;
    }

    .hero-box h1 {
        font-size: 2rem;
    }
}

/* ================= SECTION ================= */
.section {
    padding: 60px 20px;
    width: 100%;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0f766e;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* SLIDER */
.product-slider {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
}

.product-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: 0.5s;
}

.product-slider img.active {
    opacity: 1;
}

/* TEXT */
.product-card h3 {
    margin: 10px 0;
}

.product-card p {
    font-size: 13px;
    color: #64748b;
}

/* BUTTON */
.product-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn {
    padding: 7px 12px;
    border-radius: 8px;
    background: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
}

.btn.primary {
    background: #22c55e;
    color: #fff;
}

/* ================= PAGINATION ================= */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    background: #0ea5a4;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: auto;
    background: linear-gradient(90deg, #0ea5a4, #3b82f6);
    color: #fff;
    text-align: center;
    padding: 15px;
}

/* ================= RESPONSIVE UMUM ================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .nav-right {
        flex-direction: column;
        gap: 10px;
    }
}

/* ================= FORM PRODUK ================= */
.produk-item input,
.produk-item select {
    height: 38px;
    font-size: 14px;
}

.row-label {
    display: block !important;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
}

/* Grid: 4 kolom desktop, 2 kolom tablet, 1 kolom HP */
#produk-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 991.98px) {
    #produk-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    #produk-list { grid-template-columns: 1fr; }
}

/* Tiap produk jadi kartu, isi ditumpuk ke bawah */
#produk-list > .produk-item {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
    animation: slideIn .25s ease;
}

#produk-list > .produk-item > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

#produk-list > .pg-hidden {
    display: none !important;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

