
/* =========================================
   ASLAM PRINTER CATALOG
========================================= */

.apc-home,
.apc-catalog,
.apc-single-wrap {
    --apc-ink: #172033;
    --apc-muted: #697386;
    --apc-line: #e8ebf0;
    --apc-accent: #e65b25;
    color: var(--apc-ink);
    font-family: inherit;
}

.apc-container {
    width: min(1200px, calc(100% - 32px));
    margin: 40px auto;
}

/* =========================================
   HOMEPAGE HEADING
========================================= */

.apc-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 25px 0 20px;
}

.apc-section-heading h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
    margin: 6px 0;
    color: var(--apc-ink);
    font-weight: 750;
}

.apc-section-heading p {
    margin: 0;
    color: var(--apc-muted);
    font-size: 14px;
}

.apc-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--apc-accent);
}

/* =========================================
   PRODUCT GRID
   DESKTOP: 6 KOLOM
========================================= */

.apc-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

/* =========================================
   PRODUCT CARD
========================================= */

.apc-product-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--apc-line);
    border-radius: 9px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.apc-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(20, 30, 50, .09);
}

/* =========================================
   PRODUCT IMAGE
========================================= */

.apc-product-image {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f7f8fa;
    padding: 10px;
    text-decoration: none;
}

.apc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.apc-no-image {
    color: #9aa2b1;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================
   STOCK LABEL
========================================= */

.apc-stock {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
}

.apc-product-image .apc-stock {
    position: absolute;
    top: 8px;
    left: 8px;
}

.apc-stock-ready {
    background: #e7f7ee;
    color: #17834b;
}

.apc-stock-terbatas {
    background: #fff4df;
    color: #a76500;
}

.apc-stock-habis {
    background: #fdeaea;
    color: #bd3030;
}

/* =========================================
   PRODUCT INFORMATION
========================================= */

.apc-product-info {
    padding: 11px;
}

.apc-product-info h3 {
    font-size: 12px;
    line-height: 1.45;
    height: 35px;
    overflow: hidden;
    margin: 0 0 9px;
    font-weight: 700;
}

.apc-product-info h3 a {
    color: var(--apc-ink);
    text-decoration: none;
}

.apc-product-info h3 a:hover {
    color: var(--apc-accent);
}

.apc-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--apc-accent);
    margin-bottom: 9px;
}

.apc-detail-link {
    font-size: 11px;
    color: var(--apc-accent);
    font-weight: 700;
    text-decoration: none;
}

.apc-detail-link:hover {
    color: #bd4519;
    text-decoration: underline;
}

/* =========================================
   BUTTON KATALOG LENGKAP
========================================= */

.apc-catalog-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0 40px;
}

.apc-catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 30px;
    background: var(--apc-accent);
    color: #fff !important;
    border: 1px solid var(--apc-accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(230, 91, 37, .17);
    transition: all .2s ease;
}

.apc-catalog-button:hover {
    background: #c94919;
    border-color: #c94919;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(230, 91, 37, .25);
    transform: translateY(-2px);
}

/* =========================================
   FILTER KATALOG
========================================= */

.apc-filter {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    margin: 0 0 24px;
    padding: 16px;
    background: #f7f8fa;
    border: 1px solid var(--apc-line);
    border-radius: 12px;
}

.apc-filter input,
.apc-filter select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    background: #fff;
    color: var(--apc-ink);
    font: inherit;
}

.apc-filter button,
.apc-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: var(--apc-accent);
    color: #fff;
    padding: 0 20px;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.apc-filter button:hover,
.apc-contact-button:hover {
    background: #c94919;
    color: #fff;
}

/* =========================================
   PAGINATION
========================================= */

.apc-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 30px 0;
}

.apc-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--apc-line);
    border-radius: 7px;
    color: var(--apc-ink);
    text-decoration: none;
}

.apc-pagination a.active {
    background: var(--apc-accent);
    border-color: var(--apc-accent);
    color: #fff;
}

/* =========================================
   DETAIL PRODUK WORDPRESS
========================================= */

.apc-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding: 30px 0;
}

.apc-detail-image {
    min-height: 400px;
    background: #f7f8fa;
    border: 1px solid var(--apc-line);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.apc-detail-image img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.apc-detail-content h1 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    margin: 10px 0 18px;
    color: var(--apc-ink);
}

.apc-detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--apc-accent);
    margin: 0 0 15px;
}

.apc-meta {
    color: var(--apc-muted);
    font-size: 14px;
}

.apc-description {
    line-height: 1.75;
    margin: 22px 0;
    color: #4b5565;
}

.apc-contact-button {
    margin-top: 10px;
    min-height: 48px;
}

/* =========================================
   NOTICE
========================================= */

.apc-notice {
    padding: 18px;
    background: #fff8e9;
    border: 1px solid #f3dfb5;
    border-radius: 8px;
    color: #77520b;
}

/* =========================================
   TABLET BESAR
========================================= */

@media (max-width: 1100px) {
    .apc-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 13px;
    }

    .apc-product-image {
        height: 150px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {
    .apc-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .apc-product-image {
        height: 155px;
    }

    .apc-filter {
        grid-template-columns: 1fr 1fr;
    }

    .apc-filter input {
        grid-column: 1 / -1;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .apc-container {
        width: calc(100% - 24px);
        margin: 25px auto;
    }

    .apc-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .apc-product-image {
        height: 145px;
        padding: 9px;
    }

    .apc-product-info {
        padding: 10px;
    }

    .apc-product-info h3 {
        font-size: 12px;
        height: 36px;
    }

    .apc-price {
        font-size: 13px;
    }

    .apc-section-heading {
        align-items: start;
        flex-direction: column;
        margin: 20px 0 16px;
    }

    .apc-section-heading p {
        font-size: 12px;
    }

    .apc-filter {
        grid-template-columns: 1fr;
    }

    .apc-filter input {
        grid-column: auto;
    }

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

    .apc-detail-image {
        min-height: 270px;
    }

    .apc-detail-image img {
        max-height: 300px;
    }

    .apc-detail-price {
        font-size: 24px;
    }

    .apc-catalog-button {
        width: auto;
        max-width: 100%;
        padding: 0 22px;
    }
}
