/* Product catalogue: shop and product-category archives. */
.product-catalogue-page,
.product-catalogue-page * {
    box-sizing: border-box;
}

.product-catalogue-page {
    min-height: 70vh;
    background: #f8fbf9;
    color: #26364a;
}

.catalogue-hero {
    position: relative;
    min-height: 184px;
    padding: 28px 16px 34px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(242, 251, 245, .96), rgba(244, 252, 246, .82)),
        url("../../images/img-home/banner-page.jpg");
    background-position: center 54%;
    background-size: cover;
    border-bottom: 1px solid #deeee3;
}

.catalogue-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalogue-hero__inner > * {
    margin-block: 0 !important;
}

.catalogue-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #718196;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.catalogue-breadcrumbs a {
    color: #718196;
    text-decoration: none;
}

.catalogue-breadcrumbs a:hover,
.catalogue-breadcrumbs .is-current {
    color: #168144;
}

.woocommerce .product-catalogue-page .catalogue-hero__title,
.woocommerce-page .product-catalogue-page .catalogue-hero__title,
.product-catalogue-page .catalogue-hero__title {
    margin: 0;
    color: #116b35;
    font-family: "Inter", sans-serif !important;
    font-style: normal !important;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.2;
}

.catalogue-hero__description {
    max-width: 780px;
    margin: 0;
    color: #526b5c;
    font-size: 14px;
    line-height: 1.55;
}

.product-catalogue {
    padding: 24px 16px 56px;
}

.product-catalogue__layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.product-catalogue__sidebar {
    position: sticky;
    top: 88px;
}

.catalogue-categories {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eeea;
    border-radius: 7px;
    box-shadow: 0 2px 12px rgba(31, 64, 45, 0.04);
}

.catalogue-categories__title {
    margin: 0;
    padding: 15px 16px 9px;
    color: #24354a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.catalogue-categories__list {
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
}

.catalogue-categories__item {
    margin: 0;
    padding: 0 7px;
}

.catalogue-categories__item a {
    display: block;
    min-height: 34px;
    padding: 8px 10px;
    overflow: hidden;
    color: #42546a;
    border-left: 3px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.catalogue-categories__item a:hover {
    color: #08752f;
    background: #f1f9f4;
}

.catalogue-categories__item.is-active a {
    color: #08752f;
    background: #eaf7ed;
    border-left-color: #12a84e;
    font-weight: 700;
}

.product-catalogue__content {
    min-width: 0;
}

.catalogue-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 185px auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.catalogue-search {
    position: relative;
    display: block;
    min-width: 0;
}

.catalogue-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #708197;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    transform: translateY(-50%);
    pointer-events: none;
}

.catalogue-search input {
    min-width: 0;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 12px 0 38px;
    color: #26364a;
    background: #fff;
    border: 1px solid #e3ebe6;
    border-radius: 6px;
    outline: none;
    font: inherit;
    font-size: 13px;
    box-shadow: 0 1px 6px rgba(31, 64, 45, 0.025);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.catalogue-search input::placeholder {
    color: #8b99aa;
}

.catalogue-search input:focus {
    border-color: #35a961;
    box-shadow: 0 0 0 3px rgba(18, 168, 78, .1);
}

.catalogue-sort {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    height: 38px;
    padding: 0 8px 0 11px;
    background: #fff;
    border: 1px solid #e3ebe6;
    border-radius: 6px;
    color: #526378;
    font-size: 12px;
    white-space: nowrap;
}

.catalogue-sort span {
    flex: 0 0 auto;
}

.catalogue-sort select {
    min-width: 0;
    max-width: 100%;
    height: 36px;
    flex: 1;
    margin: 0;
    padding: 0 18px 0 4px;
    color: #26364a;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.catalogue-toolbar__count {
    color: #8190a2;
    font-size: 12px;
    white-space: nowrap;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

/* Reuse the homepage card skin without inheriting the homepage section box. */
.catalogue-grid.hp-products-section {
    padding: 0;
    overflow: visible;
    background: transparent;
}

.catalogue-grid.hp-products-section .hp-card {
    width: 100%;
    margin: 0;
}

.catalogue-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 7px;
    box-shadow: 0 2px 10px rgba(26, 72, 43, .035);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.catalogue-card:hover {
    border-color: #cce4d4;
    box-shadow: 0 8px 22px rgba(26, 72, 43, .09);
    transform: translateY(-2px);
}

.catalogue-card__image {
    display: flex;
    width: 100%;
    aspect-ratio: 1.28 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    background: #fbfdfc;
    text-decoration: none;
}

.catalogue-card__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}

.catalogue-card:hover .catalogue-card__image img {
    transform: scale(1.035);
}

.catalogue-card__body {
    display: flex;
    min-height: 155px;
    flex: 1;
    flex-direction: column;
    padding: 9px 12px 12px;
}

.catalogue-card__title {
    min-height: 38px;
    margin: 0 0 4px;
    overflow: hidden;
    color: #078133;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.catalogue-card__title a:hover {
    color: #055f27;
}

.catalogue-card__description {
    min-height: 35px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #53657a;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalogue-card__price {
    min-height: 22px;
    margin-top: auto;
    color: #f01818;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.catalogue-card__price .amount {
    color: inherit;
}

.catalogue-card__price del {
    margin-right: 5px;
    color: #9aa5b1;
    font-size: 12px;
    font-weight: 500;
}

.catalogue-card__price ins {
    text-decoration: none;
}

.catalogue-card__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 7px;
}

.catalogue-card__buy,
.catalogue-card__cart {
    display: inline-flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.catalogue-card__buy {
    min-width: 0;
    flex: 1;
    gap: 6px;
    padding: 0 10px;
    color: #fff !important;
    background: #08752f;
    border: 1px solid #08752f;
    font-size: 12px;
    font-weight: 700;
}

.catalogue-card__buy:hover {
    color: #fff !important;
    background: #065c26;
    border-color: #065c26;
}

.catalogue-card__cart {
    flex: 0 0 36px;
    width: 36px;
    padding: 0;
    color: #08752f !important;
    background: #fff;
    border: 1px solid #19a853;
}

.catalogue-card__cart:hover,
.catalogue-card__cart.added {
    color: #fff !important;
    background: #08752f;
    border-color: #08752f;
}

.catalogue-card__buy svg,
.catalogue-card__cart svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalogue-card__cart.loading {
    opacity: .55;
    pointer-events: none;
}

.catalogue-card + .added_to_cart {
    display: none;
}

.catalogue-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.catalogue-pagination .page-numbers {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #31445a;
    background: #fff;
    border: 1px solid #dfe8e2;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
}

.catalogue-pagination .page-numbers.current,
.catalogue-pagination a.page-numbers:hover {
    color: #fff;
    background: #08752f;
    border-color: #08752f;
}

.catalogue-empty {
    padding: 70px 20px;
    background: #fff;
    border: 1px solid #e5eee8;
    border-radius: 7px;
    text-align: center;
}

.catalogue-empty h2 {
    margin: 0 0 8px;
    color: #26364a;
    font-size: 20px;
}

.catalogue-empty p {
    margin: 0;
    color: #728197;
    font-size: 14px;
}

.catalogue-category-content-wrap {
    margin-top: 36px;
}

.catalogue-category-content {
    position: relative;
    overflow: hidden;
    padding: 28px 30px 30px;
    background: #fff;
    border: 1px solid #e1ebe5;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(25, 78, 47, .06);
}

.catalogue-category-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2bbd6a, #08783c);
}

.catalogue-category-content__title {
    margin: 0 0 18px;
    padding-bottom: 13px;
    color: #08783c;
    border-bottom: 1px solid #e7eee9;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}

.catalogue-category-content__body {
    color: #42546a;
    font-size: 15px;
    line-height: 1.75;
}

.catalogue-category-content__body > :first-child {
    margin-top: 0;
}

.catalogue-category-content__body > :last-child {
    margin-bottom: 0;
}

.catalogue-category-content__body h2,
.catalogue-category-content__body h3,
.catalogue-category-content__body h4 {
    margin: 24px 0 10px;
    color: #08783c;
    font-weight: 750;
    line-height: 1.4;
}

.catalogue-category-content__body h2 { font-size: 21px; }
.catalogue-category-content__body h3 { font-size: 18px; }
.catalogue-category-content__body h4 { font-size: 16px; }

.catalogue-category-content__body p {
    margin: 0 0 14px;
}

.catalogue-category-content__body ul,
.catalogue-category-content__body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.catalogue-category-content__body ul { list-style: disc; }
.catalogue-category-content__body ol { list-style: decimal; }

.catalogue-category-content__body li {
    margin-bottom: 6px;
}

.catalogue-category-content__body a {
    color: #08783c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalogue-category-content__body img {
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 8px;
}

.catalogue-category-content__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.catalogue-category-content__body th,
.catalogue-category-content__body td {
    padding: 10px 12px;
    border: 1px solid #dfe9e3;
    text-align: left;
}

@media (max-width: 1024px) {
    .product-catalogue__layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .catalogue-toolbar {
        grid-template-columns: minmax(180px, 1fr) 175px;
    }

    .catalogue-toolbar__count {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -5px;
    }

    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .catalogue-hero {
        min-height: 154px;
        padding: 22px 12px 26px;
    }

    .catalogue-hero__inner {
        gap: 14px;
    }

    .catalogue-breadcrumbs {
        margin: 0;
        font-size: 10px;
    }

    .woocommerce .product-catalogue-page .catalogue-hero__title,
    .woocommerce-page .product-catalogue-page .catalogue-hero__title,
    .product-catalogue-page .catalogue-hero__title {
        margin: 0;
        font-size: 23px;
    }

    .catalogue-hero__description {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .product-catalogue {
        padding: 16px 12px 36px;
    }

    .catalogue-category-content-wrap {
        margin-top: 24px;
    }

    .catalogue-category-content {
        padding: 22px 18px 24px;
        border-radius: 8px;
    }

    .catalogue-category-content__title {
        margin-bottom: 14px;
        padding-bottom: 11px;
        font-size: 20px;
    }

    .catalogue-category-content__body {
        font-size: 14px;
        line-height: 1.7;
    }

    .product-catalogue__layout {
        display: block;
    }

    .product-catalogue__sidebar {
        display: none;
    }

    .catalogue-toolbar {
        grid-template-columns: minmax(0, 1fr) 148px;
        gap: 8px;
    }

    .catalogue-toolbar__count {
        font-size: 11px;
    }

    .catalogue-grid {
        gap: 10px;
    }

    .catalogue-card__image {
        aspect-ratio: 1.12 / 1;
        padding: 8px;
    }

    .catalogue-card__body {
        min-height: 147px;
        padding: 8px 8px 9px;
    }

    .catalogue-card__title {
        min-height: 35px;
        font-size: 12.5px;
    }

    .catalogue-card__description {
        min-height: 32px;
        font-size: 11px;
    }

    .catalogue-card__price {
        font-size: 14px;
    }

    .catalogue-card__actions {
        gap: 6px;
    }

    .catalogue-card__buy {
        height: 34px;
        padding: 0 5px;
        font-size: 11px;
    }

    .catalogue-card__cart {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (max-width: 420px) {
    .catalogue-toolbar {
        grid-template-columns: minmax(0, 1fr) 126px;
    }

    .catalogue-sort {
        padding-left: 7px;
        font-size: 10.5px;
    }

    .catalogue-search input {
        padding-right: 8px;
        font-size: 12px;
    }

    .catalogue-card__buy svg {
        display: none;
    }
}
