.pv-tree-market, .pv-tree-product {
    --tree-ink: #162c22;
    --tree-green: #174a38;
    --tree-line: #d8dfd5;
    --tree-paper: #f8f6ef;
    color: var(--tree-ink);
}

.pv-tree-market {
    position: relative;
    padding-bottom: 52px;
    background: linear-gradient(var(--tree-paper), #fff 95%);
    overflow: hidden;
}

.pv-tree-market > .container {
    position: relative;
    z-index: 1;
}

.pv-tree-market::before, .pv-tree-market::after {
    position: absolute;
    top: 360px;
    width: clamp(85px, 15vw, 275px);
    aspect-ratio: 1;
    background: url("../images/tree-market-branch.webp") center / contain no-repeat;
    content: "";
    pointer-events: none;
    opacity: .8;
}

.pv-tree-market::before { left: -4%; }
.pv-tree-market::after { right: -4%; transform: scaleX(-1); }

.pv-tree-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
    padding-block: 15px;
    font-size: .875rem;
}

.pv-tree-breadcrumb a { color: var(--tree-green); }
.pv-tree-breadcrumb a::after { margin-left: 9px; content: "›"; }

.pv-tree-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(310px, 32vw, 440px);
    overflow: hidden;
    border-radius: 14px;
    color: #fffaf0;
    background: #10291e;
}

.pv-tree-hero--compact { min-height: clamp(245px, 25vw, 340px); }

.pv-tree-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pv-tree-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent 22%, #10261a66 58%, #10261aa8 100%);
    content: "";
}

.pv-tree-hero__copy { margin-left: 47%; padding: clamp(20px, 4.8vw, 64px); }

.pv-tree-hero h1 {
    margin: 0 0 14px;
    color: #fffaf0;
    font-family: Georgia, serif;
    font-size: clamp(36px, 4.9vw, 73px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.pv-tree-hero p { max-width: 30em; margin: 0; color: #f4ead3; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.5; }

.pv-tree-snow {
    position: absolute;
    inset: 10% 5% auto auto;
    color: #f3dfae;
    font-size: clamp(24px, 4vw, 62px);
    transform: rotate(15deg);
    opacity: .42;
    pointer-events: none;
}

.pv-tree-snow::before {
    position: absolute;
    top: 100%;
    right: 120%;
    font-size: .45em;
    content: "❄";
}

.pv-tree-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2.4vw, 28px);
    max-width: 660px;
    margin: clamp(20px, 4vw, 50px) auto 0;
}

.pv-tree-category, .pv-tree-card {
    min-width: 0;
    border: 1px solid var(--tree-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pv-tree-category { display: block; color: var(--tree-ink); text-decoration: none; }

.pv-tree-category img, .pv-tree-card__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f2f0e9;
}

.pv-tree-category span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 54px;
    padding: 11px 16px;
    font-weight: 650;
    font-size: clamp(15px, 1.7vw, 22px);
}

.pv-tree-category b { color: var(--tree-green); font-weight: 500; }
.pv-tree-category:hover { border-color: var(--tree-green); color: var(--tree-green); text-decoration: none; }

.pv-tree-assortment { margin-top: clamp(26px, 5vw, 62px); }
.pv-tree-assortment h2 { margin-bottom: 20px; color: var(--tree-ink); }
.pv-tree-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(9px, 2vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pv-tree-card { display: flex; flex-direction: column; }
.pv-tree-card__image { position: relative; display: block; }
.pv-tree-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    background: #9e392c;
    font-size: .875rem;
    font-weight: 700;
}

.pv-tree-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(9px, 1.8vw, 18px);
}

.pv-tree-card h3 { flex: 1; margin: 0 0 8px; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.28; }
.pv-tree-card h3 a { color: var(--tree-ink); }
.pv-tree-price { margin-bottom: 12px; font-size: clamp(14px, 1.9vw, 23px); font-weight: 700; line-height: 1.25; }
.pv-tree-price del { color: #555f55; font-size: .72em; font-weight: 400; white-space: nowrap; }
.pv-tree-price ins { color: #922f23; text-decoration: none; white-space: nowrap; }
.pv-tree-card:has(.pv-tree-discount) .product-price-sale-label { display: none; }
.pv-tree-price--single { margin-block: 14px 18px; font-size: 1.45rem; }
.pv-tree-unavailable { color: #555f55; }

.pv-tree-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--tree-green);
    color: #fff;
    text-align: center;
    font-weight: 650;
    font-size: .91rem;
    line-height: 1.15;
    cursor: pointer;
}

.pv-tree-button:hover { background: #103828; color: #fff; text-decoration: none; }
.pv-tree-button:disabled { opacity: .65; cursor: default; }
:is(.pv-tree-market, .pv-tree-product) :is(a, button, select, input):focus-visible { outline: 2px solid #9b542b; outline-offset: 2px; }
.pv-tree-pagination { display: flex; gap: 12px; margin-top: 22px; }

.pv-tree-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 54px);
    padding-bottom: 24px;
}

.pv-tree-product__gallery { min-width: 0; }
.pv-tree-request {
    padding: clamp(14px, 3vw, 28px);
    border: 1px solid var(--tree-line);
    border-radius: 12px;
    background: var(--tree-paper);
    scroll-margin-top: 90px;
}

.pv-tree-request h2 { font-size: clamp(20px, 2.3vw, 29px); }
.pv-tree-form { display: grid; gap: 12px; }
.pv-tree-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pv-tree-field { display: grid; align-content: end; gap: 4px; min-width: 0; margin: 0; font-weight: 600; font-size: .95rem; }
.pv-tree-field[hidden], .pv-tree-status[hidden] { display: none; }

.pv-tree-field :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #98a99d;
    border-radius: 5px;
    background: #fff;
    color: var(--tree-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
}

.pv-tree-consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: .9rem; }
.pv-tree-consent input { flex-shrink: 0; margin-top: 3px; accent-color: var(--tree-green); }
.pv-tree-consent a { color: var(--tree-green); text-decoration: underline; }
.pv-tree-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pv-tree-total { font-size: .95rem; font-weight: 650; }
.pv-tree-status { margin: 0; padding: 10px; border-radius: 4px; background: #e6eee3; }
.pv-tree-status[data-error] { background: #f9e4db; color: #842e24; }

@media (max-width: 767.98px) {
    .pv-tree-market { padding-bottom: 32px; }
    .pv-tree-market::before, .pv-tree-market::after { top: 255px; width: 85px; opacity: .45; }
    .pv-tree-market::before { left: -35px; }
    .pv-tree-market::after { right: -35px; }
    .pv-tree-hero { min-height: 280px; align-items: end; }
    .pv-tree-hero--compact { min-height: 215px; }
    .pv-tree-hero__image { object-position: 20% center; }
    .pv-tree-hero::after { background: linear-gradient(0deg, #0e2318fa, #10261ab0 32%, #10261a1a 85%); }
    .pv-tree-hero__copy { margin: 0; padding: 22px 16px; }
    .pv-tree-hero h1 { margin-bottom: 8px; }
    .pv-tree-category span { padding: 8px 9px; }
    .pv-tree-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pv-tree-product__layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359.98px) {
    .pv-tree-form__row { grid-template-columns: minmax(0, 1fr); }
}
