@import url('partials.css');

/* =====================
   TAMPILAN DASAR PRODUK
   ===================== */
.produk-main {
    padding: 60px 0 120px 0;
}

.container-produk {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===============
   HEADER & FILTER
   =============== */
.produk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-maroon, #7A0C2E);
    border-radius: 2px;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.filter-wrapper:hover {
    border-color: var(--brand-maroon, #7A0C2E);
    box-shadow: 0 4px 15px rgba(122, 12, 46, 0.1);
}

.filter-wrapper label {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-select {
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-maroon, #7A0C2E);
    background: transparent;
    cursor: pointer;
    padding-right: 4px;
}

/* ==================
   GRID & CARD PRODUK
   ================== */
.grid-produk {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.card-produk-item {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(122, 12, 46, 0.12);
    border: 1px solid #F1F5F9;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-produk-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(122, 12, 46, 0.12);
}

.img-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F8FAFC;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.card-produk-item:hover .img-placeholder img {
    transform: scale(1.04);
}

.produk-info {
    padding: 12px 6px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.produk-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    display: box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-produk-item:hover .produk-info h3 {
    color: var(--brand-maroon, #7A0C2E);
}

.produk-info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-maroon, #7A0C2E);
    margin: 2px 0 0 0;
}

/* ================
   TOMBOL LOAD MORE
   ================ */
.load-more-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 30px 0 10px 0 !important;
}

#btn-load-more {
    display: inline-block;
    background-color: #FFFFFF;
    color: var(--brand-maroon, #7A0C2E);
    border: 2px solid var(--brand-maroon, #7A0C2E);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 12px rgba(122, 12, 46, 0.08);
}

#btn-load-more:hover {
    background-color: var(--brand-maroon, #7A0C2E);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(122, 12, 46, 0.25);
    transform: translateY(-2px);
}

/* =========================
   RESPONSIF MOBILE & TABLET
   ========================= */
@media (max-width: 992px) {
    .grid-produk {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .produk-main { 
        padding: 40px 0 80px 0; 
    }

    .page-title { 
        font-size: 24px; 
    }

    .grid-produk {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .produk-header {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 20px;
        padding-bottom: 6px;
    }

    .page-title::after {
        width: 40px;
        height: 3px;
    }

    .filter-wrapper {
        width: auto;
        padding: 5px 10px;
        border-radius: 20px;
        gap: 6px;
        flex-shrink: 0;
    }

    .filter-wrapper label {
        font-size: 11px;
        gap: 4px;
    }

    .sort-select {
        font-size: 11px;
    }
}