﻿.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    margin-top: 32px;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 24px;
    padding: 24px;
    border-radius: 8px;
    background: var(--brand-accent);
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group h4 {
    font-size: 15px;
}

.checkbox-group,
.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.checkbox-group {
    flex-direction: column;
    align-items: flex-start;
}

.filter-group > label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-grid;
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    min-height: 16px;
    max-height: 16px;
    flex: 0 0 16px;
    place-content: center;
    margin: 0;
    border: 1px solid rgba(30, 58, 43, 0.58);
    border-radius: 3px;
    background: #FFFFFF;
    vertical-align: middle;
}

.filter-group > label input[type="checkbox"]::before {
    width: 8px;
    height: 8px;
    background: #183F2C;
    content: '';
    transform: scale(0);
    transition: transform 120ms ease;
}

.filter-group > label input[type="checkbox"]:checked {
    border-color: #183F2C;
}

.filter-group > label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.filter-group > label input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(24, 63, 44, 0.32);
    outline-offset: 2px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #A8C8A0;
    background: #FFFFFF;
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(30, 58, 43, 0.12);
    border-radius: 6px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(30, 58, 43, 0.06);
}

.product-favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 58, 43, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1E3A2B;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(30, 58, 43, 0.14);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-favorite-btn:hover {
    transform: translateY(-1px);
}

.product-favorite-btn.is-active {
    border-color: #1E3A2B;
    background: #1E3A2B;
    color: #FFFFFF;
}

.product-thumb-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.product-card-media {
    position: relative;
    min-width: 0;
}

.product-thumb {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    background: var(--brand-accent);
    border-bottom: 0;
}

.product-thumb img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: var(--brand-accent);
}

.product-card-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 54px;
    place-items: center;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.78);
    color: #1E3A2B;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.18s ease, background-color 0.18s ease;
}

.product-card-gallery-nav--prev {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.product-card-gallery-nav--next {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.product-card-gallery-nav span {
    display: block;
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.product-card-gallery-nav--prev span {
    transform: rotate(-135deg);
}

.product-card-gallery-nav--next span {
    transform: rotate(45deg);
}

.product-card-media:hover .product-card-gallery-nav,
.product-card-media:focus-within .product-card-gallery-nav,
.product-card-gallery-nav:focus-visible {
    opacity: 1;
}

.product-card-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.96);
}

.product-card-gallery-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(15, 34, 24, 0.72);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.product-badge-group {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 1;
}

.product-badge {
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.product-badge--neutral {
    background: #A8C8A0;
    color: #1E3A2B;
}

.product-badge--warm {
    background: var(--brand-accent);
    color: #1E3A2B;
}

.product-badge--sale {
    background: var(--brand-accent);
    color: #1E3A2B;
}

.product-badge--hit {
    border: 1px solid rgba(30, 58, 43, 0.16);
    background: #A8C8A0;
    color: #1E3A2B;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 22px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.product-type {
    color: #1E3A2B;
}

.product-stock {
    font-weight: 700;
}

.product-stock--in-stock {
    color: #1E3A2B;
}

.product-stock--low-stock {
    color: #8A6500;
}

.product-stock--out-stock {
    color: #A13831;
}

.product-preorder-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 4px;
    background: #DCE8D8;
    color: #1E3A2B;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.product-card--out-stock {
    border-color: rgba(30, 58, 43, 0.18);
    background: #F1F3F1;
    box-shadow: none;
}

.product-card--out-stock .product-thumb img {
    filter: grayscale(1);
    opacity: 0.58;
}

.product-card--out-stock .product-info {
    color: #59635D;
}

.product-card--out-stock .product-title a,
.product-card--out-stock .price-main,
.product-card--out-stock .product-type {
    color: #465049;
}

.product-title {
    font-size: 18px;
    line-height: 1.3;
}

.product-title a {
    text-decoration: none;
}

.product-desc {
    color: #1E3A2B;
    font-size: 14px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tags span {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--brand-accent);
    color: #1E3A2B;
    font-size: 12px;
}

.product-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    align-items: flex-end;
}

.price-wrapper {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    font-size: 22px;
    font-weight: 800;
}

.price-main span {
    font-size: 14px;
    font-weight: 500;
    color: #1E3A2B;
}

.price-unit {
    white-space: nowrap;
}

.price-old {
    color: #000000;
    text-decoration: line-through;
    font-size: 14px;
}

.add-to-cart-btn {
    display: inline-flex;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 6px;
    background: #1E3A2B;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.add-to-cart-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-to-cart-btn:hover {
    background: #1E3A2B;
}

.product-favorite-inline {
    display: inline-flex;
    flex: 1 1 128px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(30, 58, 43, 0.16);
    border-radius: 6px;
    background: var(--brand-accent);
    color: #1E3A2B;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.product-favorite-inline.is-active {
    border-color: #1E3A2B;
    background: #A8C8A0;
}

.category-title {
    font-size: 34px;
    margin-bottom: 18px;
}

.catalog-minimum-order {
    display: flex;
    min-height: 52px;
    margin-bottom: 20px;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-left: 4px solid #1E3A2B;
    border-radius: 7px;
    background: var(--brand-accent);
    color: #1E3A2B;
}

.catalog-minimum-order strong {
    font-size: 16px;
}

.catalog-minimum-order span {
    color: rgba(30, 58, 43, 0.74);
    font-size: 13px;
    text-align: right;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    background: var(--brand-accent);
    color: #1E3A2B;
}

@media (min-width: 769px) {
    .catalog-layout {
        display: block;
    }

    .filters-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 32px;
        padding: 24px 28px;
    }

    .filters-container {
        display: grid;
        grid-template-columns: minmax(0, 1.7fr) minmax(170px, 0.55fr) minmax(250px, 0.8fr);
        align-items: start;
        gap: 24px 32px;
    }

    .filter-group:first-child .checkbox-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 12px 22px;
    }

    .filter-group:first-child .checkbox-group label {
        min-width: 0;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .filters-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-group:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .catalog-minimum-order {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 14px;
        padding: 11px 13px;
    }

    .catalog-minimum-order span {
        text-align: left;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-thumb {
        height: 220px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .product-favorite-inline {
        width: 100%;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }
}

/* contact-icons-unified-v2 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg,
.contact-card > [class*="icon"]:first-child svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.contact-card__icon svg *:not([fill="none"]),
.contact-method__icon svg *:not([fill="none"]),
.contact-channel__icon svg *:not([fill="none"]),
.contact-icon svg *:not([fill="none"]),
.contacts-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contacts-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-card > [class*="icon"]:first-child svg *:not([fill="none"]) {
  fill: currentColor !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img,
.contact-card > [class*="icon"]:first-child img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* contact-icons-unified-v3 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.contact-card__icon::before,
.contact-method__icon::before,
.contact-channel__icon::before,
.contact-icon::before,
.contacts-page .contact-card [class*="icon"]::before,
.contact-page .contact-card [class*="icon"]::before,
.contacts-section .contact-card [class*="icon"]::before,
.contact-section .contact-card [class*="icon"]::before {
  color: currentColor !important;
}

/* contact-icons-unified-v4 */
.contact-card [class*="icon"],
.contact-card [class*="logo"],
.contacts-card [class*="icon"],
.contacts-card [class*="logo"],
.contact-method [class*="icon"],
.contact-method [class*="logo"],
.contacts-method [class*="icon"],
.contacts-method [class*="logo"],
.contacts-grid [class*="icon"],
.contacts-grid [class*="logo"],
.contacts-list [class*="icon"],
.contacts-list [class*="logo"],
.contact-links [class*="icon"],
.contact-links [class*="logo"] {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #1b4330 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(27, 67, 48, 0.16) !important;
    overflow: hidden !important;
}

.contact-card [class*="icon"]::before,
.contact-card [class*="icon"]::after,
.contact-card [class*="logo"]::before,
.contact-card [class*="logo"]::after,
.contacts-card [class*="icon"]::before,
.contacts-card [class*="icon"]::after,
.contacts-card [class*="logo"]::before,
.contacts-card [class*="logo"]::after,
.contact-method [class*="icon"]::before,
.contact-method [class*="icon"]::after,
.contact-method [class*="logo"]::before,
.contact-method [class*="logo"]::after,
.contacts-method [class*="icon"]::before,
.contacts-method [class*="icon"]::after,
.contacts-method [class*="logo"]::before,
.contacts-method [class*="logo"]::after {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.contact-card [class*="icon"] svg,
.contact-card [class*="logo"] svg,
.contacts-card [class*="icon"] svg,
.contacts-card [class*="logo"] svg,
.contact-method [class*="icon"] svg,
.contact-method [class*="logo"] svg,
.contacts-method [class*="icon"] svg,
.contacts-method [class*="logo"] svg,
.contacts-grid [class*="icon"] svg,
.contacts-grid [class*="logo"] svg,
.contacts-list [class*="icon"] svg,
.contacts-list [class*="logo"] svg,
.contact-links [class*="icon"] svg,
.contact-links [class*="logo"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #ffffff !important;
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [stroke],
.contact-card [class*="logo"] svg [stroke],
.contacts-card [class*="icon"] svg [stroke],
.contacts-card [class*="logo"] svg [stroke],
.contact-method [class*="icon"] svg [stroke],
.contact-method [class*="logo"] svg [stroke],
.contacts-method [class*="icon"] svg [stroke],
.contacts-method [class*="logo"] svg [stroke],
.contacts-grid [class*="icon"] svg [stroke],
.contacts-grid [class*="logo"] svg [stroke],
.contacts-list [class*="icon"] svg [stroke],
.contacts-list [class*="logo"] svg [stroke],
.contact-links [class*="icon"] svg [stroke],
.contact-links [class*="logo"] svg [stroke] {
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [fill]:not([fill="none"]),
.contact-card [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-card [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-card [class*="logo"] svg [fill]:not([fill="none"]),
.contact-method [class*="icon"] svg [fill]:not([fill="none"]),
.contact-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-method [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-list [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-list [class*="logo"] svg [fill]:not([fill="none"]),
.contact-links [class*="icon"] svg [fill]:not([fill="none"]),
.contact-links [class*="logo"] svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.contact-card [class*="icon"] img,
.contact-card [class*="logo"] img,
.contacts-card [class*="icon"] img,
.contacts-card [class*="logo"] img,
.contact-method [class*="icon"] img,
.contact-method [class*="logo"] img,
.contacts-method [class*="icon"] img,
.contacts-method [class*="logo"] img,
.contacts-grid [class*="icon"] img,
.contacts-grid [class*="logo"] img,
.contacts-list [class*="icon"] img,
.contacts-list [class*="logo"] img,
.contact-links [class*="icon"] img,
.contact-links [class*="logo"] img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}
/* end-contact-icons-unified-v4 */

