/* Product taxonomy archive aligned with the approved collection reference. */
.dq-product-archive {
    --dq-collection-teal: #0a5d5d;
    color: #282828;
    font-family: "Afacad", var(--dq-font), sans-serif;
}

.dq-collection-container {
    width: min(1250px, calc(100% - 40px));
    margin-inline: auto;
}

.dq-collection-hero {
    margin: 0 0 50px;
    padding: 60px 0;
    background: #f2f2f2;
    text-align: center;
}

.dq-collection-hero h1 {
    margin: 0 0 13px;
    color: #222;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.dq-collection-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #222;
    font-size: 18px;
    line-height: 1.5;
}

.dq-collection-breadcrumb a {
    transition: color .2s ease;
}

.dq-collection-breadcrumb a:hover {
    color: var(--dq-collection-teal);
}

.dq-collection-breadcrumb > span[aria-hidden="true"] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #222;
}

.dq-collection-listing {
    padding: 0 0 64px;
}

.dq-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.dq-product-archive .dq-collection-card {
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dq-collection-card__link,
.dq-collection-card__media,
.dq-collection-card__detail {
    display: block;
}

.dq-collection-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(61, 50, 38, .12);
    border-radius: 12px;
    background: #f5f3ef;
    box-shadow: 0 8px 24px rgba(45, 36, 27, .08), 0 2px 6px rgba(45, 36, 27, .04);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.dq-collection-card__media::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
    content: "";
    pointer-events: none;
}

.dq-collection-card__image,
.dq-collection-card__placeholder {
    width: 100%;
    height: 100%;
}

.dq-collection-card__image {
    object-fit: cover;
    border-radius: inherit;
    transition: transform .3s ease, opacity .3s ease;
}

.dq-collection-card__placeholder {
    display: grid;
    place-items: center;
    padding: 20px;
    color: #737373;
    font-size: 15px;
    text-align: center;
}

.dq-collection-card__detail {
    padding: 12px 8px 16px;
    text-align: center;
}

.dq-product-archive .dq-collection-card h2 {
    display: -webkit-box;
    min-height: 50.4px;
    margin: 8px 0 0;
    overflow: hidden;
    color: #282828;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    transition: color .25s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dq-collection-card__link:hover .dq-collection-card__image {
    transform: scale(1.025);
}

.dq-collection-card__link:hover .dq-collection-card__media,
.dq-collection-card__link:focus-visible .dq-collection-card__media {
    transform: translateY(-3px);
    border-color: rgba(0, 106, 106, .22);
    box-shadow: 0 14px 32px rgba(45, 36, 27, .13), 0 3px 8px rgba(45, 36, 27, .06);
}

.dq-collection-card__link:hover h2 {
    color: var(--dq-collection-teal);
}

.dq-product-archive .dq-load-more {
    display: block;
    min-height: 44px;
    margin: 34px auto 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 3px;
    background: var(--dq-collection-teal);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease;
}

.dq-product-archive .dq-load-more:hover {
    background: #074747;
    transform: translateY(-1px);
}

.dq-product-archive .dq-term-seo {
    padding-top: 10px;
}

.dq-collection-empty {
    margin: 0;
    padding: 40px;
    background: #f7f7f7;
    text-align: center;
}

@media (max-width: 900px) {
    .dq-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 16px;
    }
}

@media (max-width: 600px) {
    .dq-collection-container {
        width: min(350px, calc(100% - 40px));
    }

    .dq-collection-hero {
        padding: 40px 0;
    }

    .dq-collection-hero h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .dq-collection-breadcrumb {
        gap: 8px;
        font-size: 14px;
    }

    .dq-collection-card__detail {
        padding: 12px 8px 16px;
    }

    .dq-product-archive .dq-collection-card h2 {
        min-height: 44.8px;
        padding-inline: 5px;
        font-size: 16px;
        line-height: 1.4;
    }

    .dq-product-archive .dq-load-more {
        min-height: 41px;
        margin-top: 30px;
        font-size: 16px;
    }
}
