/* ================= KATALOG PRODUK ================= */
.catalog-page {
    background: #F7F5F1;
}

/* ---------- HERO ---------- */
.cat-hero {
    background: linear-gradient(132deg, #FCF5EA 0%, #FAF1E4 46%, #FFFDF9 100%);
    border-bottom: 1px solid #F0E7DA;
    padding: 28px 0 34px;
}

.cat-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
}

.cat-hero-copy {
    max-width: 640px;
}

.cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8B6B52;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cat-eyebrow svg {
    color: #A96222;
    flex-shrink: 0;
}

.cat-hero h1 {
    margin: 9px 0 7px;
    color: #241D18;
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.cat-hero p {
    max-width: 560px;
    color: #7D6E62;
    font-size: 0.92rem;
    line-height: 1.65;
}

.cat-hero-note {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    margin-top: 20px;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #EDE3D6;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(90, 60, 30, 0.04);
}

.cat-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #E8F5EC;
    color: #1F8A4C;
}

.cat-hero-note strong {
    display: block;
    color: #3B2C20;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.cat-hero-note span {
    color: #8B7A6C;
    font-size: 0.67rem;
    line-height: 1.35;
}

/* ---------- FILTER & GRID ---------- */
.cat-products {
    padding: 22px 0 26px;
}

.cat-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cat-chip {
    padding: 7px 14px;
    border: 1px solid #E7DCD0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #6B5A4C;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-chip:hover {
    border-color: #C58645;
    color: #A55E1E;
}

.cat-chip.active {
    border-color: #A85E1F;
    background: #A85E1F;
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(168, 94, 31, 0.2);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #EFE7DD;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(45, 26, 14, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(45, 26, 14, 0.08);
}

.cat-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F3EDE6;
}

.cat-card-media > a {
    display: block;
    height: 100%;
}

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

.cat-card:hover .cat-card-media img {
    transform: scale(1.04);
}

.cat-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cat-badge-dark {
    left: 10px;
    background: rgba(32, 25, 20, 0.84);
    color: #FFFFFF;
}

.cat-badge-light {
    right: 10px;
    background: #FFFFFF;
    color: #4B3B2E;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cat-badge-danger {
    right: 10px;
    background: #E5484D;
    color: #FFFFFF;
}

.cat-badge-success {
    right: 10px;
    background: #1D9E5A;
    color: #FFFFFF;
}

.cat-badge-primary {
    right: 10px;
    background: #A85E1F;
    color: #FFFFFF;
}

.cat-pack-chips {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.cat-pack-chip {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.25;
}

.cat-pack-chip.dark {
    background: rgba(32, 25, 20, 0.86);
    color: #FFFFFF;
}

.cat-pack-chip.light {
    background: #FFFFFF;
    color: #4B3B2E;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cat-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 13px 14px 14px;
}

.cat-card-category {
    margin-bottom: 5px;
    color: #B26A2C;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cat-card-title {
    margin-bottom: 5px;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
    color: #2A211B;
}

.cat-card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.cat-card-title a:hover {
    color: #A85E1F;
}

.cat-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
    margin-bottom: 12px;
    color: #8A7B6E;
    font-size: 0.71rem;
    line-height: 1.55;
}

.cat-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 9px;
    margin-top: auto;
}

.cat-price span {
    display: block;
    margin-bottom: 1px;
    color: #9A8C80;
    font-size: 0.59rem;
    line-height: 1.2;
}

.cat-price strong {
    color: #2A211B;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.cat-card-actions {
    display: flex;
    gap: 6px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 29px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cat-btn-detail {
    background: #F4F1ED;
    color: #3B2C20;
}

.cat-btn-detail:hover {
    background: #EAE4DD;
}

.cat-btn-wa {
    background: #25B85A;
    color: #FFFFFF;
}

.cat-btn-wa:hover {
    background: #1E9E4B;
    color: #FFFFFF;
}

.cat-empty {
    padding: 48px 24px;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
    color: #7D6E62;
}

.cat-empty h3 {
    margin-bottom: 4px;
    color: #2A211B;
    font-size: 1.05rem;
}

.cat-empty p {
    font-size: 0.8rem;
}

/* ---------- WHATSAPP BANNER ---------- */
.cat-wa-section {
    padding: 6px 0 40px;
}

.cat-wa-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    border: 1px solid #F2E6D7;
    border-radius: 14px;
    background: linear-gradient(120deg, #FDF4E8 0%, #FBEFE1 100%);
}

.cat-wa-copy {
    max-width: 680px;
}

.cat-wa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #7C6A5B;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cat-wa-kicker svg {
    color: #25B85A;
    flex-shrink: 0;
}

.cat-wa-banner h2 {
    margin-bottom: 4px;
    color: #2A211B;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.cat-wa-banner p {
    color: #8A7B6E;
    font-size: 0.73rem;
    line-height: 1.6;
}

.cat-wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 7px;
    background: #25B85A;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 184, 90, 0.25);
    transition: all 0.2s ease;
}

.cat-wa-button:hover {
    background: #1E9E4B;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 22px 0 26px;
    }

    .cat-hero-top {
        flex-direction: column;
        gap: 8px;
    }

    .cat-hero h1 {
        font-size: 2rem;
    }

    .cat-hero-note {
        margin-top: 4px;
    }

    .cat-wa-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .cat-wa-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
}
