@font-face {
  font-family: "Lora";
  src: url("fonts/Lora.ttf");
}
@font-face {
  font-family: "OnestRegular";
  src: url("fonts/Onest-Regular.ttf");
}
@font-face {
  font-family: "OnestBold";
  src: url("fonts/Onest-Bold.ttf");
}
@font-face {
  font-family: "OnesLight";
  src: url("fonts/Onest-Light.ttf");
}
@font-face {
  font-family: "OnesThin";
  src: url("fonts/Onest-Thin.ttf");
}



:root {
    --bg: #fbf6ef;
    --text: #3f2e20;
    --muted: #8b7d6b;
    --green: #527820;
    --green-dark: #31530e;
    --cream: #f0d1b7;
    --card: #d4dec6;
    --white: #fffdfa;
}

.story-func-two{
    color: #3B5105 !important;
}

* {
    box-sizing: border-box;
  font-family: "OnestRegular";
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 68px;
    padding: 10px 24px;
    background: rgba(241, 230, 211, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(86, 65, 38, 0.08);
}

.logo {
    color: #2c210f;
    line-height: 0.9;
    text-decoration: none;
}

.logo__script,
.logo__text {
    display: block;
}

.logo__script {
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
}

.logo__text {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phone {
    color: #1c160f;
    font-size: 16px;
  font-family: "OnestBold";
    text-decoration: none;
    white-space: nowrap;
}

.phone::before {
    content: "☎";
    margin-right: 8px;
}

.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 38px;
}

.main-nav a {
    color: #433526;
    font-size: 14px;
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions button,
.filters button {
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.catalog-hero {
    min-height: 310px;
    padding: 74px 24px 52px;
    border-radius: 0 0 42px 42px;
    background-image: url(resource/bg8.png);
    background-size: cover;
    text-align: center;
}

.catalog-hero h1,
.story h2 {
    margin: 0;
  font-family: "Lora";
    font-weight: 500;
    line-height: 0.94;
    text-transform: uppercase;
    font-size: 40px;;
}

.catalog-hero h1 {
    font-size: 40px;
}

.decor-line {
    margin: 0 0 12px;
    color: #9b8b58;
}

.catalog-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 420px));
    justify-content: center;
    gap: 58px;
    margin-top: 48px;
}

.catalog-tabs__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: 999px;
    color: var(--white);
    font-size: 17px;
  font-family: "OnestBold";
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: inset 0 8px 18px rgba(255, 255, 255, 0.28), 0 12px 24px rgba(62, 54, 34, 0.15);
}

.catalog-tabs__link--cream {
    background: linear-gradient(180deg, #f7dec9, #dfb28d);
    color: #3e2d1f;
}

.catalog-tabs__link--green {
    background: linear-gradient(180deg, #7aa83a, #315a0c);
}

.story {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    overflow: hidden;
    padding: 90px 24px;
    text-align: center;
}




.story--traditional {
    background:
        url("resource/bg5.png"),
        url("resource/bg4.png");

    background-position:
        left top,
        right top;

    background-repeat:no-repeat;
    background-size: auto;
}

.story--functional {
    background:
        url("resource/bg6.png"),
        url("resource/bg7.png");
    background-position:
        left top,
        right top;
    background-repeat:no-repeat;
    background-size: auto;
}

.story__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    text-transform: uppercase;
}


.story h2 {
    margin-bottom: 28px;
    color: #59401f;
  font-family: "Lora";
    font-size: 40px;
}

.story p:not(.eyebrow) {
    margin: 0 auto 18px;
    max-width: 480px;
    font-weight: 600;
    font-size: 16px;
}
.story__content-first{
    font-weight: 100 !important;
}


.products {
    padding: 0 22px 120px;
}

.catalog-toolbar {
    display: none;
}

.filters,
.sorting {
    display: flex;
    gap: 16px;
}

.sorting input,
.sorting select {
    min-height: 34px;
    border: 1px solid #e4ded4;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.44);
    color: var(--muted);
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 46px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-card__image {
    position: relative;
    min-height: 300px;
    border-radius: 16px;
    background: #fff;
}

.product-card__image button {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(56, 21, 6, 0.08);
    border-radius: 50%;
    background: var(--white);
    color: #381506;
    box-shadow: 0 1px 0 rgba(56, 21, 6, 0.08);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.product-card--hit .product-card__image button {
    top: 66px;
}

.product-card--hit .product-card__image::after {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #708e32;
    color: var(--white);
    content: "ХИТ";
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
}

.product-card p {
    margin: 20px 0 12px;
    color: #514234;
}

.product-card h3 {
    margin: 0 0 20px;
    font-size: 16px;
}

.price {
    font-size: 17px;
    letter-spacing: 0.04em;
}

.price span {
    margin-left: 18px;
    color: #8e8678;
    text-decoration: line-through;
}

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

.pagination a {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    color: var(--text);
    text-decoration: none;
}

.pagination .active {
    border: 1px solid var(--text);
    border-radius: 50%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .site-header {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 4;
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .site-header,
    .catalog-toolbar,
    .filters,
    .sorting {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-tabs,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-tabs {
        gap: 18px;
    }

    .story {
        min-height: 520px;
    }

}

.site-footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 70px 78px;
}

.site-footer__content {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;
    gap: 64px;
    max-width: 1340px;
    margin: 0 auto;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__phone {
    color: var(--white);
    font-family: "OnestBold";
    font-size: clamp(32px, 3.25vw, 46px);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 52px;
}

.site-footer__nav a {
    color: var(--white);
    font-family: "OnestBold";
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: #f0d1b7;
}

.site-footer__nav .site-footer__muted {
    color: rgba(255, 255, 255, 0.48);
}

.site-footer__brand {
    display: flex;
    justify-content: flex-end;
    line-height: 0;
}

.site-footer__brand img {
    width: min(590px, 100%);
    height: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 960px) {
    .site-footer {
        padding: 60px 24px 64px;
    }

    .site-footer__content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer__links {
        align-items: center;
    }

    .site-footer__brand {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 48px 14px 54px;
    }

    .site-footer__phone {
        font-size: 32px;
    }

    .site-footer__nav {
        margin-top: 34px;
    }
}

@media (max-width: 760px) {
    body {
        background: #fbf6ef;
        color: #4a2f1f;
        font-size: 13px;
        line-height: 1.28;
    }

    .site-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: row;
        align-items: center;
        min-height: 58px;
        padding: 12px 15px 8px;
        gap: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .logo img {
        width: 116px;
        height: auto;
    }

    .phone,
    .main-nav,
    .header-actions__cart {
        display: none;
    }

    .header-actions {
        margin-left: auto;
        align-items: center;
        gap: 11px;
    }

    .header-actions button {
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        padding: 0;
        color: #381506;
        line-height: 1;
    }

    .header-actions svg {
        width: 17px;
        height: 17px;
    }

    .header-actions__menu {
        gap: 4px;
        width: 26px !important;
        height: 18px !important;
    }

    .header-actions__menu span {
        display: block;
        width: 23px;
        height: 1px;
        background: #381506;
    }

    .catalog-hero {
        min-height: 370px;
        padding: 83px 7px 18px;
        border-radius: 0 0 28px 28px;
        background-position: center top;
    }

    .catalog-hero__inner {
        max-width: 360px;
        margin: 0 auto;
    }

    .decor-line {
        margin-bottom: 12px;
        line-height: 0;
    }

    .decor-line img {
        width: 72px;
    }

    .catalog-hero h1,
    .story h2 {
        font-size: 26px;
        line-height: .98;
        letter-spacing: -.02em;
    }

    .catalog-tabs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .catalog-tabs__link {
        min-height: 50px;
        border-radius: 999px;
        font-size: 12px;
        letter-spacing: .06em;
        box-shadow: inset 0 7px 14px rgba(255,255,255,.25), 0 7px 16px rgba(62,54,34,.18);
    }

    .story {
        display: block;
        min-height: 0;
        padding: 96px 7px 26px;
        background-size: 54% auto, 54% auto;
    }

    .story--traditional,
    .story--functional {
        background-position: left 63px, right 63px;
    }

    .story__content {
        max-width: 356px;
    }

    .eyebrow {
        margin-bottom: 7px;
        font-size: 10px;
        line-height: 1.15;
        color: #b2aa9c;
    }

    .story h2 {
        margin-bottom: 18px;
        font-size: 25px;
    }

    .story p:not(.eyebrow) {
        max-width: 342px;
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.28;
    }

    .story__content-first {
        font-weight: 400 !important;
    }

    .products {
        padding: 0 7px 72px;
    }

    .catalog-toolbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: 0 auto 18px;
        max-width: 420px;
    }

    .filters,
    .sorting {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .filters button:not(:first-child),
    .sorting select {
        display: none;
    }

    .filters button:first-child {
        position: relative;
        padding-left: 19px;
        color: #4a2f1f;
        font-size: 12px;
    }

    .filters button:first-child::before {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        content: "↕";
        font-size: 15px;
        line-height: 1;
    }

    .filters button:first-child {
        font-size: 0;
    }

    .filters button:first-child::after {
        content: "Фильтры";
        font-size: 12px;
    }

    .sorting label {
        position: relative;
        width: 18px;
        height: 18px;
    }

    .sorting label::after {
        content: "⌕";
        color: #4a2f1f;
        font-size: 19px;
        line-height: 18px;
    }

    .sorting input {
        position: absolute;
        inset: 0;
        width: 18px;
        min-height: 18px;
        padding: 0;
        border: 0;
        opacity: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 7px;
        max-width: 420px;
    }

    .product-card__image {
        min-height: 153px;
        border-radius: 7px;
    }

    .product-card__image button {
        top: 7px;
        right: 7px;
        width: 34px;
        height: 34px;
        border: 0;
        font-size: 22px;
    }

    .product-card--hit .product-card__image button {
        top: 42px;
    }

    .product-card--hit .product-card__image::after {
        top: 7px;
        right: 7px;
        width: 34px;
        height: 34px;
        font-size: 9px;
    }

    .product-card p {
        margin: 9px 0 7px;
        font-size: 13px;
    }

    .product-card h3 {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .price {
        display: flex;
        gap: 12px;
        align-items: baseline;
        font-size: 13px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .price span {
        margin-left: 0;
        color: #8e8678;
    }

    .pagination {
        gap: 20px;
        margin-top: 48px;
    }

    .pagination a {
        min-width: 34px;
        min-height: 34px;
        font-size: 16px;
        color: #9a8e82;
    }

    .pagination .active {
        color: #4a2f1f;
    }

}

@media (max-width: 380px) {
    .product-card__image {
        min-height: 145px;
    }

    .price {
        gap: 9px;
        font-size: 12px;
    }
}

.mobile-menu {
    display: none;
}

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

.product-page {
    padding: 62px 24px 0;
}

.back-link {
    display: inline-flex;
    margin: 0 0 130px calc((100% - 1280px) / 2 + 64px);
    color: #3f2e20;
    font-size: 18px;
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    gap: 44px;
    max-width: 1280px;
    margin: 0 auto 78px;
}

.product-gallery {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
}

.product-gallery__thumbs {
    display: grid;
    gap: 12px;
    align-content: start;
}

.product-gallery__thumbs button,
.product-gallery__main {
    border: 0;
    border-radius: 8px;
    background: var(--card);
}

.product-gallery__thumbs button {
    min-height: 60px;
    cursor: pointer;
}

.product-gallery__main {
    min-height: 575px;
    border-radius: 16px;
}

.product-detail__info h1 {
    margin: 0 0 8px;
    color: #381506;
    font-family: "OnestBold";
    font-size: 20px;
}

.product-detail__price {
    margin-bottom: 26px;
}

.product-detail__buy {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.quantity {
    display: grid;
    grid-template-columns: 34px 34px 34px;
    align-items: center;
    min-height: 56px;
    border: 1px solid rgba(56, 21, 6, 0.38);
    border-radius: 4px;
    text-align: center;
}

.quantity button,
.favorite-large {
    border: 0;
    background: transparent;
    color: #381506;
    cursor: pointer;
    font-size: 18px;
}

.add-to-cart {
    min-width: 220px;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #82a63a, #31530e);
    color: var(--white);
    cursor: pointer;
    font-family: "OnestBold";
    font-size: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.favorite-large {
    font-size: 36px;
    line-height: 1;
}

.product-detail__info h2,
.product-recommendations > h2 {
    margin: 0 0 24px;
    color: #381506;
    font-size: 20px;
    font-weight: 400;
}

.product-detail__info p {
    max-width: 480px;
    margin: 0 0 12px;
    color: #381506;
    font-size: 17px;
    line-height: 1.35;
}

.product-recommendations {
    padding-bottom: 76px;
}

.product-recommendations > h2 {
    max-width: 1280px;
    margin: 0 auto 24px;
}

@media (max-width: 760px) {
    .header-actions__search,
    .catalog-toolbar {
        display: none !important;
    }

    .mobile-menu {
        position: absolute;
        top: 70px;
        left: 15px;
        right: 15px;
        display: none;
        flex-direction: column;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
        background: rgba(251, 246, 239, .98);
        box-shadow: 0 12px 28px rgba(56, 21, 6, .14);
    }

    .mobile-menu--open {
        display: flex;
    }

    .mobile-menu a {
        color: #381506;
        font-family: "OnestBold";
        font-size: 14px;
        text-decoration: none;
    }

    .header-actions__menu[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .header-actions__menu[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .header-actions__menu[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .site-footer {
        display: block;
    }

    .product-page {
        padding: 84px 7px 0;
    }

    .back-link {
        margin: 0 0 32px;
        font-size: 15px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 52px;
    }

    .product-gallery {
        grid-template-columns: 42px 1fr;
        gap: 10px;
    }

    .product-gallery__thumbs button {
        min-height: 42px;
    }

    .product-gallery__main {
        min-height: 300px;
        border-radius: 12px;
    }

    .product-detail__buy {
        flex-wrap: wrap;
        gap: 12px;
    }

    .add-to-cart {
        min-width: 180px;
        flex: 1;
        font-size: 16px;
    }

    .product-detail__info p {
        font-size: 14px;
    }
}

.header-actions__menu {
    display: none;
}

@media (max-width: 760px) {
    .header-actions__menu {
        display: grid;
    }
}

.product-card__image {
    display: block;
    overflow: hidden;
}

.product-card__image img,
.product-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.product-gallery__main {
    overflow: hidden;
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: inherit;
}

.header-actions__link {
    position: relative;
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
}

.header-actions__cart-badge {
    position: absolute;
    top: -9px;
    right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d71920;
    color: #fff;
    font-family: "OnestBold", Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
}

.header-actions__cart-badge[hidden] {
    display: none;
} 

.page-section,
.product-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 520px);
    gap: 48px;
    align-items: start;
}

.product-gallery__main {
    min-height: 420px;
    border-radius: 24px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-gallery__main img {
    max-width: 100%;
    height: auto;
}

.product-detail__buy,
.quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity input {
    width: 64px;
    min-height: 42px;
    border: 1px solid #d8c9b6;
    border-radius: 999px;
    text-align: center;
    background: var(--white);
}

.quantity button,
.add-to-cart,
.favorite-large,
.button-link {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    background: var(--green);
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
}

.quantity button,
.favorite-large {
    width: 42px;
    padding: 0;
    background: var(--white);
    color: var(--text);
    border: 1px solid #d8c9b6;
}

[data-favorite].is-active,
.favorite-large.is-active {
    color: #9c2b20;
}

.cart-notice {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    border-radius: 14px;
    padding: 14px 20px;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.cart-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-notice--error {
    background: #9c2b20;
}

.related-products {
    margin-top: 72px;
}

.grand-basket__item {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e3d5c5;
}

@media (max-width: 760px) {
    .product-detail,
    .grand-basket__item {
        grid-template-columns: 1fr;
    }
}

.product-gallery__thumbs button {
    overflow: hidden;
    padding: 0;
}

.product-gallery__thumbs button.is-active {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.product-gallery__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
}

.quantity {
    border: 0;
}

.quantity span {
    min-width: 34px;
    text-align: center;
}

.related-products {
    padding-bottom: 76px;
}

.product-card__image img,
.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product cards: visual layout from the provided mockup. */
.product-grid {
    gap: 46px 24px;
}

.product-card {
    color: #2f1609;
}

.product-card__image {
    aspect-ratio: 1 / 0.99;
    min-height: 300px;
    border-radius: 14px;
    background: #fff;
}

.product-card__image img {
    object-fit: cover;
}

.product-card__badge {
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #708e32;
    color: var(--white);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
}

.product-card--hit .product-card__image::after {
    content: none;
}

.product-card__image button {
    z-index: 3;
}

.product-card--hit .product-card__image button {
    top: 66px;
}

.product-card__label,
.product-card p.product-card__label {
    margin: 20px 0 12px;
    color: #6f3615;
    font-size: 16px;
    line-height: 1.25;
}

.product-card h3 {
    margin: 0 0 20px;
    color: #2f1609;
    font-family: "OnestBold";
    font-size: 16px;
    line-height: 1.25;
}

.product-card h3 a {
    color: inherit;
}

.product-card .price {
    color: #2f1609;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.product-card .price span {
    margin-left: 18px;
    color: #8d8579;
}

.product-card__cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #82a63a, #31530e);
    color: var(--white);
    cursor: pointer;
    font-family: "OnestBold";
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-card__cart:hover {
    filter: brightness(1.05);
}

.product-detail__label {
    margin: 0 0 12px;
    color: #6f3615;
    font-size: 16px;
    line-height: 1.25;
}

/* Product detail purchase controls: match the provided rounded-button design. */
.product-detail__buy {
    display: flex;
    align-items: center;
    gap: 22px;
}

.product-detail__buy .quantity {
    display: grid;
    grid-template-columns: 34px 34px 34px;
    align-items: center;
    width: 104px;
    min-height: 56px;
    gap: 0;
    border: 1px solid rgba(56, 21, 6, 0.38);
    border-radius: 4px;
    background: transparent;
    color: #381506;
    text-align: center;
}

.product-detail__buy .quantity button,
.product-detail__buy .quantity span {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #381506;
    font-size: 14px;
    line-height: 1;
}

.product-detail__buy .add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    padding: 0 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #82a63a 0%, #31530e 100%);
    color: var(--white);
    font-family: "OnestBold";
    font-size: 20px;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}

.product-detail__buy .favorite-large {
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    min-height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #381506;
    font-size: 42px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
  
@media (max-width: 760px) {
    .product-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .product-detail__buy {
        gap: 12px;
    }

    .product-detail__buy .add-to-cart {
        min-width: 180px;
        font-size: 16px;
    }
}
