/**
 * Product archive / catalog taxonomy — catalog listing layout.
 */

.vn-product-archive {
    --vn-green: #7ed321;
    --vn-green-soft: #6bc91a;
    --vn-dark-green: var(--vn-color-primary, #245824);
    --vn-archive-accent: var(--vn-color-primary-hover, #7ed321);
    --vn-archive-text: #111;
    --vn-archive-muted: #666;
    --vn-archive-sale: #e53935;
    --vn-archive-green: var(--vn-color-primary, #245824);
    --vn-archive-bg-soft: #f6f6f2;
    background: #fff;
}

.vn-product-archive__hero:not(.vn-breadcrumb-hero) {
    position: relative;
    min-height: clamp(180px, 14vw, 260px);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #3d4a3a;
}

.vn-product-archive__hero-inner {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
}

.vn-product-archive__title {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    color: #fff;
    font-weight: 600;
}

.vn-product-archive__breadcrumb,
.vn-product-archive__breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
}

.vn-product-archive__breadcrumb {
    margin-top: 12px;
    font-size: 13px;
}

.vn-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.vn-breadcrumb a {
    text-decoration: none;
}

.vn-breadcrumb a:hover {
    color: #fff;
}

.vn-breadcrumb__current {
    color: #fff;
}

.vn-product-archive__body {
    padding: clamp(44px, 5vw, 72px) 0;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 46px;
}

.vn-product-sidebar__block {
    margin-bottom: 34px;
}

.vn-product-sidebar__title {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #111;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.vn-product-sidebar__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 54px;
    height: 2px;
    background: var(--vn-green, #7ed321);
}

.vn-product-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vn-product-sidebar__categories li {
    margin: 0;
}

.vn-product-sidebar__categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-weight: 600;
    color: #5f6670;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease, font-weight 0.2s ease;
}

.vn-product-sidebar__categories a:hover,
.vn-product-sidebar__categories .is-active > a {
    font-weight: 700;
    color: var(--vn-green, #7ed321);
    padding-left: 4px;
}

.vn-product-sidebar__categories .vn-product-sidebar__count {
    font-weight: 500;
    color: #8a9099;
}

.vn-product-sidebar__count {
    flex-shrink: 0;
    font-size: 12px;
}

.vn-price-filter {
    display: grid;
    gap: 14px;
}

.vn-price-filter__empty {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.vn-price-slider {
    position: relative;
    height: 28px;
    margin: 8px 0 18px;
}

.vn-price-slider__track,
.vn-price-slider__range {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.vn-price-slider__track {
    background: rgba(18, 56, 23, 0.16);
}

.vn-price-slider__range {
    background: linear-gradient(90deg, var(--vn-green, #7ed321), #65bd14);
    left: 0;
    right: 0;
}

.vn-price-slider__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}

.vn-price-slider__input--max {
    z-index: 3;
}

.vn-price-slider__input::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: transparent;
    border: 0;
    border-radius: 999px;
}

.vn-price-slider__input::-moz-range-track {
    width: 100%;
    height: 3px;
    background: transparent;
    border: 0;
    border-radius: 999px;
}

.vn-price-slider__input::-webkit-slider-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    margin-top: -5.5px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--vn-green-soft, #6bc91a);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 3px 10px rgba(18, 56, 23, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vn-price-slider__input::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--vn-green-soft, #6bc91a);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(18, 56, 23, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vn-price-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    background: var(--vn-green, #7ed321);
    box-shadow: 0 5px 14px rgba(18, 56, 23, 0.28);
}

.vn-price-slider__input::-moz-range-thumb:hover {
    transform: scale(1.12);
    background: var(--vn-green, #7ed321);
    box-shadow: 0 5px 14px rgba(18, 56, 23, 0.28);
}

.vn-price-slider__input:focus {
    outline: none;
}

.vn-price-slider__input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.35), 0 3px 10px rgba(18, 56, 23, 0.22);
}

.vn-price-slider__input:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.35), 0 3px 10px rgba(18, 56, 23, 0.22);
}

.vn-price-filter__range {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #777;
    font-size: 13px;
}

.vn-price-filter__range strong {
    color: #111;
    font-weight: 700;
}

.vn-product-archive .vn-product-card__add-btn,
.vn-product-card__cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    text-decoration: none;
}

.vn-product-card__cart.is-loading {
    cursor: wait;
    opacity: 0.7;
}

.vn-product-card__cart:disabled {
    pointer-events: none;
}

.vn-price-filter__clear {
    display: inline-block;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    text-align: center;
}

.vn-price-filter__clear:hover {
    color: var(--vn-green, #7ed321);
}

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

.vn-product-sidebar__brand {
    min-height: 72px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.vn-product-sidebar__brand:hover {
    border-color: var(--vn-green, #7ed321);
    transform: translateY(-2px);
}

.vn-product-sidebar__brand img {
    max-width: 100%;
    max-height: 46px;
    object-fit: contain;
}

.vn-product-sidebar__brand-name {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-align: center;
    line-height: 1.3;
}

.vn-product-archive__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.vn-product-archive__result-count {
    margin: 0;
    font-size: 14px;
    color: var(--vn-archive-muted);
}

.vn-product-archive__sort select {
    min-width: 180px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--vn-archive-text);
    background: #fff;
}

.vn-product-archive .vn-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.vn-product-archive__pagination {
    margin-top: 40px;
}

.vn-product-archive__pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.vn-product-archive__pagination a,
.vn-product-archive__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--vn-archive-text);
    font-size: 14px;
}

.vn-product-archive__pagination .current {
    background: var(--vn-archive-accent);
    border-color: var(--vn-archive-accent);
    color: #fff;
}

.vn-product-archive__empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--vn-archive-muted);
}

/* Shared product card image frame (archive, homepage, search, brand sections). */
.vn-product-card__img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.vn-product-card__img,
.vn-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product cards (archive scope) */
.vn-product-archive .vn-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vn-product-archive .vn-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.vn-product-archive .vn-product-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.vn-product-archive .vn-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.vn-product-archive .vn-product-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee, #f8f8f8);
}

.vn-product-archive .vn-product-card:hover .vn-product-card__img {
    transform: scale(1.06);
}

.vn-product-archive .vn-product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.vn-product-archive .vn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
}

.vn-product-archive .vn-badge--sale { background: var(--vn-archive-sale); }
.vn-product-archive .vn-badge--new { background: var(--vn-archive-green); }
.vn-product-archive .vn-badge--stock { background: #888; }

.vn-product-archive .vn-product-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.vn-product-archive .vn-product-card:hover .vn-product-card__overlay {
    transform: translateY(0);
}

.vn-product-archive .vn-product-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.vn-product-archive .vn-product-card__status--out {
    background: rgba(120, 120, 120, 0.92);
}

.vn-product-archive .vn-product-card__status--contact {
    background: rgba(40, 40, 40, 0.88);
}

.vn-product-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.vn-product-card__status--out {
    background: rgba(120, 120, 120, 0.92);
}

.vn-product-card__status--contact {
    background: rgba(40, 40, 40, 0.88);
}

.vn-product-archive .vn-product-card__body {
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vn-product-archive .vn-product-card__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.vn-product-archive .vn-product-card__title a {
    color: var(--vn-archive-text);
    text-decoration: none;
}

.vn-product-archive .vn-product-card__title a:hover {
    color: var(--vn-archive-accent);
}

.vn-product-archive .vn-product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: auto;
}

.vn-product-archive .vn-price-sale {
    font-size: 16px;
    font-weight: 700;
    color: var(--vn-archive-sale);
    white-space: nowrap;
}

.vn-product-archive .vn-price-regular {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
}

.vn-product-archive .vn-price-off {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
}

.vn-product-archive .vn-price-only {
    font-size: 16px;
    font-weight: 700;
    color: var(--vn-archive-text);
    white-space: nowrap;
}

.vn-product-archive .vn-price-contact {
    font-size: 13px;
    color: var(--vn-archive-muted);
}

@media (max-width: 991px) {
    .vn-product-archive__body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vn-product-archive .vn-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
}

@media (max-width: 575px) {
    .vn-product-archive .vn-product-grid {
        grid-template-columns: 1fr;
    }

    .vn-product-archive__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .vn-product-archive__sort,
    .vn-product-archive__sort select {
        width: 100%;
    }
}
