
/* ========================================
   AMPVAULT PRODUCT TAXONOMY ARCHIVES
   ======================================== */

.av-tax-archive {
    background: #f7f9fc;
    min-height: 70vh;
    padding: 42px 16px 90px;
    color: #14213d;
}

.av-tax-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.av-tax-hero {
    padding: 18px 0 34px;
}

.av-tax-hero .woocommerce-breadcrumb {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.av-tax-hero .woocommerce-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.av-tax-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
}

.av-tax-title {
    color: #14213d;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
}

.av-tax-description {
    max-width: 740px;
    color: #52627a;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.av-tax-description p {
    margin: 0 0 12px;
}

/* Child categories */

.av-tax-subcategories {
    margin-bottom: 38px;
}

.av-tax-subcategories h2 {
    font-size: 21px;
    margin: 0 0 18px;
}

.av-tax-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.av-tax-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #14213d;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}

.av-tax-chip:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.av-tax-chip-count {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 12px;
}

/* Product toolbar */

.av-tax-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.av-tax-toolbar .woocommerce-result-count,
.av-tax-toolbar .woocommerce-ordering {
    float: none;
    margin: 0;
}

.av-tax-toolbar .woocommerce-result-count {
    color: #64748b;
    font-size: 14px;
}

.av-tax-toolbar select {
    border: 1px solid #d7dfeb;
    background: white;
    color: #14213d;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 100%;
}

/* WooCommerce native product loop */

.av-tax-archive ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.av-tax-archive ul.products::before,
.av-tax-archive ul.products::after {
    display: none !important;
}

.av-tax-archive ul.products li.product {
    box-sizing: border-box;
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    overflow: hidden;
}

.av-tax-archive ul.products li.product img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    margin-bottom: 15px;
}

.av-tax-archive ul.products li.product
.woocommerce-loop-product__title {
    color: #14213d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.av-tax-archive ul.products li.product .price {
    color: #14213d;
    font-size: 17px;
    font-weight: 750;
}

.av-tax-archive ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    padding: 11px 16px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

/* Empty state */

.av-tax-empty {
    background: white;
    padding: 60px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.av-tax-shop-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 22px;
    border-radius: 9px;
    text-decoration: none;
}

/* Pagination */

.av-tax-pagination {
    margin-top: 34px;
}

.av-tax-pagination .woocommerce-pagination {
    text-align: center;
}

/* Tablet */

@media (max-width: 1024px) {
    .av-tax-archive ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 767px) {
    .av-tax-archive {
        padding: 20px 14px 110px;
    }

    .av-tax-hero {
        padding-bottom: 26px;
    }

    .av-tax-title {
        font-size: 30px;
    }

    .av-tax-description {
        font-size: 14px;
    }

    .av-tax-archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .av-tax-archive ul.products li.product {
        padding: 12px;
        border-radius: 12px;
    }

    .av-tax-archive ul.products li.product img {
        height: 150px;
    }

    .av-tax-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .av-tax-toolbar select {
        width: 100%;
    }

    .av-tax-chip {
        padding: 11px 14px;
    }
}

@media (max-width: 380px) {
    .av-tax-archive ul.products {
        grid-template-columns: 1fr;
    }
}

/* AmpVault catalog grid refinements */

@media (min-width: 1025px) {
    .av-store-archive ul.products {
        grid-template-columns:
            repeat(auto-fit, minmax(220px, 285px)) !important;
        justify-content: center;
        gap: 22px;
    }
}

.av-store-archive ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
}

.av-store-archive ul.products li.product
.woocommerce-loop-product__link {
    display: block;
}

.av-store-archive ul.products li.product .button {
    margin-top: auto;
}

.av-store-archive ul.products li.product .onsale {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    margin: 0 !important;
    background: #16a34a !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
    font-size: 12px !important;
    z-index: 2;
}

/* =========================================
   AMPVAULT SHOP CARD REFINEMENTS
   ========================================= */

@media (min-width: 1025px) {

    .av-store-archive ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        gap: 18px !important;
    }

}

/* Align product card contents */

.av-store-archive ul.products li.product {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.av-store-archive ul.products li.product
.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}

/* Consistent image area */

.av-store-archive ul.products li.product
.woocommerce-loop-product__link img {
    display: block;
    width: 100% !important;
    height: 220px !important;
    max-height: 220px;
    object-fit: contain;
    margin: 0 0 16px !important;
}

/* Compact readable titles */

.av-store-archive ul.products li.product
.woocommerce-loop-product__title {
    color: #14213d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

/* Keep price aligned toward the bottom */

.av-store-archive ul.products li.product .price {
    margin-top: auto;
    margin-bottom: 12px;
    font-weight: 750;
}

/* Full width purchase buttons */

.av-store-archive ul.products li.product .button {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 10px 12px;
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {

    .av-store-archive ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
    }

}

/* Mobile */

@media (max-width: 767px) {

    .av-store-archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .av-store-archive ul.products li.product
    .woocommerce-loop-product__link img {
        height: 145px !important;
        max-height: 145px;
    }

    .av-store-archive ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 13px;
    }

}
