/* ----------- Hinza Products / Start --------------- */

.archive-header {
    margin-bottom: 40px;
}

.page-cover {
    height: 40vh;
    min-height: 300px;
    background: url('../img/page-cover.webp') no-repeat center center / cover;
}

.page-cover .section-title .elementor-heading-title {
    margin-bottom: 0 !important;
    color: #fff;
}

.page-cover .cover-icon {
    font-size: 20px;
    text-align: center;
}

.page-cover .cover-icon svg {
    font-size: 20px;
    height: 20px;
    fill: #fff;
    display: block;
    position: relative;
}

.page-cover.archive-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.page-cover.archive-header:before {
    content: '';
    background: var(--text-color-dark, #000);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.5;
}

.page-cover.archive-header .section-title,
.page-cover.archive-header .cover-icon {
    position: relative;
    z-index: 1;
}

.archive-description {
    margin: 0;
}

.archive-description * {
    visibility: visible;
}

/* Archive layout: sidebar + content (sidebar comes first in the markup) */

.product-archive__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}

.product-archive__sidebar {
    position: sticky;
    top: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--hinza-products-columns, 3), minmax(0, 1fr));
    gap: 30px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}

.product-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.product-card__content {
    padding: 24px;
}

.product-card__title {
    margin: 0 0 10px;
    font-size: 24px;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
}

.product-card__categories,
.product-single__categories {
    font-size: 14px;
}

.product-card__categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    margin-bottom: 10px;
}

.product-card__categories-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.6;
}

.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.product-single__image img {
    display: block;
    width: 100%;
    height: auto;
}

.product-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.product-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.archive-pagination {
    margin-top: 40px;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.archive-pagination .nav-links .page-numbers {
    font-family: var(--digits-font-family);
    color: var(--text-color-light);
    font-size: 14px;
}

.archive-pagination .nav-links a.page-numbers:hover {
    color: var(--text-color-light);
}

.archive-pagination .nav-links .page-numbers.current {
    color: var(--accent-color);
    text-decoration: underline;
}

.hinza-products-empty {
    opacity: 0.7;
}

/* Sidebar accordion widgets */

.hinza-widget {
    margin-bottom: 24px;
}

.hinza-accordion {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.hinza-accordion + .hinza-accordion {
    margin-top: 20px;
}

.hinza-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.hinza-accordion__header::-webkit-details-marker {
    display: none;
}

.hinza-accordion__header::marker {
    content: '';
}

.hinza-accordion__icon {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 12px;
    opacity: 0.6;
}

.hinza-accordion[open] > .hinza-accordion__header .hinza-accordion__icon {
    transform: rotate(180deg);
}

.hinza-accordion__body {
    padding: 4px 18px 18px 0;
    border-top: 1px solid #eee;
}

.hinza-checkbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hinza-accordion__body > .hinza-checkbox-list {
    margin-top: 14px;
    max-height: 280px;
    overflow-y: auto;
}

.hinza-checkbox-list__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hinza-checkbox-list__item label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    cursor: pointer;
    font-size: 14px;
}

.hinza-checkbox-list__item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: currentColor;
}

.hinza-checkbox-list__name {
    flex-grow: 1;
    color: inherit;
    text-decoration: none;
}

.hinza-checkbox-list__name:hover {
    color: var(--accent-color);
}

.hinza-checkbox-list__name.is-current {
    color: var(--accent-color);
}

.hinza-checkbox-list__count {
    font-size: 12px;
    opacity: 0.55;
}

/* Category tree: +/- toggle for parents with children */

.hinza-term-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 10px;
    height: 20px;
    padding: 0;
    border: 0;
    background: #fff;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.hinza-term-toggle:not(.hinza-term-toggle--leaf):hover {
    color: var(--accent-color);
}

.hinza-term-toggle--leaf {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.hinza-term-toggle__icon {
    display: inline-block;
}

.hinza-checkbox-list__children {
    display: none;
    margin: 10px 10px 0 0;
    padding-right: 14px;
    border-right: 1px dashed #e2e2e2;
}

.hinza-checkbox-list__children.is-open {
    display: block;
}

/* Single product details column */

.single-product .product-single__image {
    border: 1px solid var(--border-color-light);
}

.single-product .product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 40px;
}

.single-product .product-details .section-subtitle .product-single__categories a {
    color: var(--text-color-dark);
}

.single-product .product-details .section-subtitle .product-single__categories a:hover {
    color: var(--third-color-dark);
}

.single-product .product-details .section-title .elementor-heading-title {
    font-size: 34px;
    margin-bottom: 20px;
}

.single-product .product-details .product-single__tags .title {
    font-family: var(--text-font-family);
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
}

.single-product .product-details .product-single__tags a {
    font-family: var(--text-font-family);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 2px 10px;
    display: inline-block;
}

.single-product .product-details .product-single__tags a:hover {
    color: var(--third-color);
    border-color: var(--third-color);
}

/* Product card theming overrides (accent/text-color/font vars, mobile layout) */

.product-card .product-card__image {
    border-bottom: 1px solid var(--border-color-light);
    aspect-ratio: 1 / 1;
}

.product-card .product-card__content {
}

.product-card .product-card__content .product-card__title,
.product-card .product-card__content .product-card__title * {
    font-family: var(--text-font-family);
    font-size: 15px;
    font-weight: bold;
    color: var(--text-color);
}

.product-card .product-card__content .product-card__categories {
    margin-bottom: 0;
}

.product-card .product-card__content .product-card__categories a {
    font-family: var(--text-font-family);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color-light);
}

@media (max-width: 900px) {
    .product-archive__layout {
        grid-template-columns: 1fr;
    }

    .product-archive__sidebar {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(min(2, var(--hinza-products-columns, 3)), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .single-product .product-details {
        padding: 20px 10px 0;
    }
}

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

    .page-cover {
        height: 28vh;
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .product-card {
        display: flex;
    }

    .product-card .product-card__image {
        flex: 0 0 40%;
        width: 40%;
        border-bottom: 0;
        border-left: 1px solid var(--border-color-light);
    }

    .product-card .product-card__content {
        flex: 0 0 60%;
        width: 60%;
    }
}

/* ----------- Hinza Products / End --------------- */
