
:root {
    --cream: #fff8ed;
    --light: #f5ead8;
    --burgundy: #750d16;
    --burgundy-dark: #540810;
    --gold: #c79838;
    --text: #382822;
    --font-body: "Manrope", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, serif;
}

html {
    scroll-padding-top: 200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

main {
    flex: 1;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

h1,
h2 {
    margin: 0 0 20px;
    color: var(--burgundy);
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 {
    font-size: clamp(28px, 4vw, 42px);
}

h2 {
    font-size: clamp(25px, 3vw, 34px);
}

h3 {
    font-family: var(--font-heading);
}

p {
    margin: 0 0 18px;
}

/* Шапка */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    max-height: 100dvh;
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 6px 16px rgba(84, 8, 16, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}

.brand {
    flex-shrink: 0;
}

.brand-logo {
    width: 90px;
    height: 100px;
    object-fit: contain;
}

.main-navigation,
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a,
.header-actions a {
    font-size: 15px;
    font-weight: 600;
}

.main-navigation a:hover,
.header-actions a:hover {
    color: var(--burgundy);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--burgundy);
    border-radius: 6px;
}

.cart-count {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding-inline: 6px;
    color: var(--cream);
    background: var(--burgundy);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.menu-toggle {
    display: none;
    padding: 8px 16px;
    color: var(--burgundy);
    background: transparent;
    border: 1px solid var(--burgundy);
    border-radius: 6px;
    cursor: pointer;
}

/* Банер і кнопки */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--cream);
    border-bottom: 1px solid var(--light);
}

.hero-visual {
    position: absolute;
    inset: 0 0 0 42%;
    z-index: -2;
    overflow: hidden;
    background: var(--light);
}

/* Показуємо праву частину банера без надрукованого тексту. */
.hero-banner {
    position: absolute;
    top: 0;
    right: 0;
    width: 230%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--cream) 0%,
        var(--cream) 40%,
        rgba(255, 248, 237, 0.96) 48%,
        rgba(255, 248, 237, 0.6) 56%,
        rgba(255, 248, 237, 0) 70%
    );
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: 580px;
    padding-block: 72px;
}

.hero-content {
    width: 53%;
    max-width: 610px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    flex: 0 0 32px;
    height: 2px;
    background: var(--gold);
}

.hero-title {
    margin-bottom: 24px;
    font-size: clamp(44px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 1.08;
}

.hero-title span {
    display: block;
}

.hero-description {
    max-width: 410px;
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.75;
}

.hero-actions {
    margin-bottom: 20px;
}

.hero .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 14px 24px;
}

.hero-button span {
    font-size: 22px;
    line-height: 1;
}

.hero-note {
    max-width: 340px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 800px) {
    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-inner {
        min-height: 0;
        padding-block: 44px 24px;
    }

    .hero-content {
        width: 100%;
        max-width: 610px;
    }

    .hero-title {
        font-size: clamp(40px, 8vw, 60px);
    }

    .hero-description {
        max-width: 520px;
        font-size: 16px;
    }

    .hero-visual {
        position: relative;
        inset: auto;
        order: 1;
        width: 100%;
        height: clamp(220px, 45vw, 340px);
    }

    .hero::after {
        display: none;
    }

    .hero-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            var(--cream) 0%,
            rgba(255, 248, 237, 0) 24%
        );
    }
}

@media (max-width: 400px) {
    .hero-eyebrow {
        gap: 8px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .hero-eyebrow::before {
        flex-basis: 20px;
    }

    .hero .hero-button {
        width: 100%;
    }
}

.button {
    display: inline-block;
    padding: 13px 26px;
    color: white;
    background: var(--burgundy);
    border: 1px solid var(--burgundy);
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
}

.button:hover {
    background: var(--burgundy-dark);
}

.text-link {
    color: var(--burgundy);
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

/* Розділи головної */

.section {
    padding-block: 60px;
}

.section p {
    max-width: 850px;
}

.section .button {
    margin-bottom: 18px;
}

.section-catalog {
    background: var(--light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 12px;
}

.category-card:hover,
.category-card:focus-visible {
    border-color: var(--burgundy);
}

.category-card:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 5px;
}

.category-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--light);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    color: var(--burgundy);
    font-size: 13px;
    text-align: center;
}

.category-card-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 18px;
}

.category-card-title {
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.category-card:hover .category-card-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.category-card-arrow {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--light);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.category-empty {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Підвал */

.site-footer {
    padding-top: 45px;
    color: var(--cream);
    background: var(--burgundy-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-logo {
    width: 85px;
    height: 95px;
    margin-bottom: 16px;
    object-fit: contain;
}

.footer-brand p {
    margin-bottom: 6px;
}

.site-footer h2 {
    margin-bottom: 18px;
    color: var(--cream);
    font-size: 23px;
}

.footer-navigation,
.footer-contacts address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-contacts address {
    margin-bottom: 14px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.footer-contacts address p {
    margin: 0;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 248, 237, 0.3);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* Планшети та телефони */

@media (max-width: 1000px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-logo {
        width: 65px;
        height: 75px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Меню згортається після підключення JavaScript */
    .main-navigation.is-collapsible {
        display: none;
    }

    .main-navigation.is-collapsible.is-open {
        display: flex;
    }

    .main-navigation a {
        padding-block: 12px;
        border-bottom: 1px solid var(--light);
    }

    .header-actions {
        gap: 16px;
    }

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

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

    .footer-contacts {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .header-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .header-actions a {
        font-size: 14px;
    }

    .section {
        padding-block: 38px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        grid-template-columns: 104px minmax(0, 1fr);
        grid-template-rows: auto;
    }

    .category-card-image {
        height: 100%;
        min-height: 130px;
    }

    .category-card-caption {
        gap: 8px;
        padding: 16px 12px;
    }

    .category-card-title {
        font-size: 20px;
    }

    .category-card-arrow {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-contacts {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
.menu-toggle {
    display: none;
}

@media (max-width: 1000px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        flex-shrink: 0;
        width: 24px;
        height: 2px;
        background-color: #750d16;
    }
}
@media (max-width: 1000px) {
    .main-navigation.is-collapsible {
        display: none;
    }

    .main-navigation.is-collapsible.is-open {
        display: flex;
    }
}
.production-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.production-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .production-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
    margin-top: 35px;
}

.contact-details {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-details h3 {
    margin: 24px 0 6px;
    color: var(--burgundy);
    font-size: 17px;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-map {
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 450px;
}

@media (max-width: 800px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map iframe {
        height: 350px;
    }
}
.catalog-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 18px;
    margin-top: 30px;
    padding: 24px;
    background: var(--light);
    border-radius: 8px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.filter-field label {
    color: var(--burgundy);
    font-weight: 600;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 6px;
}

.filter-field input:focus-visible,
.filter-field select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

.catalog-filters .button {
    min-height: 48px;
    margin: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.catalog-filters > .text-link {
    padding-block: 12px;
}

.catalog-products {
    margin-top: 35px;
}

@media (max-width: 600px) {
    .catalog-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}
/* Каталог продукції */

.catalog-count {
    margin: 24px 0;
    color: #6b5b53;
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid #eadfd3;
    border-radius: 16px;
}

.product-card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f0e7dc;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    color: #79685e;
    text-align: center;
}

.product-card-content {
    padding: 20px;
}

.product-card-category {
    margin: 0 0 10px;
    color: #79685e;
    font-size: 14px;
}

.product-card-title {
    margin: 0;
    color: #700d16;
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.catalog-empty {
    grid-column: 1 / -1;
    padding: 32px 0;
    text-align: center;
}

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

@media (max-width: 560px) {
    .catalog-products {
        grid-template-columns: 1fr;
    }
}
/* Компактні картки каталогу */
.catalog-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card-content {
    padding: 14px;
}

.product-card-title {
    font-size: 18px;
}

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

.product-card-link:hover .product-card-title {
    text-decoration: underline;
}

.product-card-link:focus-visible {
    outline: 3px solid #700d16;
    outline-offset: -3px;
}

/* Сторінка товару */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.product-detail-photo img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-detail-info h2 {
    margin-top: 24px;
    font-size: 20px;
}

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

    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .catalog-products {
        grid-template-columns: 1fr;
    }
}
/* Реєстрація, вхід та особистий кабінет */

.auth-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 32px;
    background: #fffdf9;
    border: 1px solid #eadfd3;
    border-radius: 16px;
}

.auth-card h1 {
    margin-top: 0;
    font-size: 32px;
}

.auth-form {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bca99a;
    border-radius: 8px;
    background: #ffffff;
    color: #35251e;
    font: inherit;
}

.auth-field input:focus {
    outline: 2px solid #700d16;
    outline-offset: 2px;
}

.field-help {
    margin-top: 8px;
    color: #6b5b53;
    font-size: 14px;
}

.field-help ul {
    padding-left: 20px;
}

.auth-card .errorlist {
    margin: 8px 0;
    padding-left: 20px;
    color: #a01818;
}

.auth-card .button {
    cursor: pointer;
    font: inherit;
}

.account-details {
    margin: 24px 0;
}

.account-details dt {
    margin-top: 16px;
    font-weight: 600;
}

.account-details dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 20px;
    }

    .auth-card h1 {
        font-size: 26px;
    }
}
/* Кошик заявки */

.cart-items {
    display: grid;
    gap: 20px;
    margin: 28px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    background: #fffdf9;
    border: 1px solid #eadfd3;
    border-radius: 16px;
}

.cart-item-image {
    display: block;
    width: 140px;
    height: 180px;
    object-fit: contain;
}

.cart-item-info h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.cart-item-info h2 a {
    color: #700d16;
    text-decoration: none;
}

.cart-item-info h2 a:hover {
    text-decoration: underline;
}

.cart-update-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-update-form .auth-field {
    width: 160px;
}

.auth-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bca99a;
    border-radius: 8px;
    background: #ffffff;
    color: #35251e;
    font: inherit;
}

.auth-field select:focus {
    outline: 2px solid #700d16;
    outline-offset: 2px;
}

.cart-item button {
    cursor: pointer;
    font: inherit;
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cart-item-image {
        margin: 0 auto;
    }

    .cart-update-form {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-update-form .auth-field {
        width: 100%;
    }
}
.auth-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid #bca99a;
    border-radius: 8px;
    background: #ffffff;
    color: #35251e;
    font: inherit;
    resize: vertical;
}

.auth-field textarea:focus {
    outline: 2px solid #700d16;
    outline-offset: 2px;
}

/* =========================
   ОБРАНІ ТОВАРИ
========================= */

.product-card {
    position: relative;
}

/* Форма з кнопкою сердечка */
.favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

/* Звичайне сердечко */
.favorite-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid #e5d8d0;
    border-radius: 50%;

    background: #ffffff;
    color: #a72c32;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);

    transition: transform 0.2s ease,
                background 0.2s ease;
}

/* Наведення курсора */
.favorite-button:hover {
    transform: scale(1.1);
    background: #fff4f4;
}

/* Товар в обраному */
.favorite-button.is-favorite {
    color: #ba2334;
    background: #fff0f1;
}

/* Клавіатурна навігація */
.favorite-button:focus-visible {
    outline: 3px solid #ba2334;
    outline-offset: 3px;
}

/* Мобільні пристрої */
@media (max-width: 600px) {
    .favorite-form {
        top: 8px;
        right: 8px;
    }

    .favorite-button {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
}

/* =========================
   ОСОБИСТИЙ КАБІНЕТ — ОНОВЛЕНИЙ ДИЗАЙН
========================= */

.auth-card.account-card {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding: 40px;
    box-sizing: border-box;
}

.account-card > h1 {
    margin-bottom: 12px;
}

.account-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 36px;
}

.account-tabs .account-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #e0c7b2;
    border-radius: 12px;
    background: #fff8ef;
    color: var(--burgundy);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, color .2s ease,
                border-color .2s ease;
}

.account-tabs .account-tab:hover {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
    text-decoration: none;
}

.account-tabs .account-tab:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.account-section {
    margin-top: 28px;
    scroll-margin-top: 32px;
}

.account-section + .account-section {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #e6d8c9;
}

.account-section h2 {
    margin-bottom: 20px;
}

.account-card .auth-form {
    max-width: 650px;
}

.account-order {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid #eadfd3;
    border-radius: 12px;
    background: var(--cream);
}

.account-order h3 {
    margin: 0 0 10px;
    color: var(--burgundy);
}

.account-order p {
    margin-bottom: 6px;
}

.account-logout {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e6d8c9;
}

/* Сердечко поверх фото, справа вгорі */
.product-card {
    position: relative;
}

.product-card .favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 5;
    margin: 0;
}

.product-card .favorite-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e5d8d0;
    border-radius: 50%;
    background: #fff;
    color: var(--burgundy);
    font: inherit;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

.product-card .favorite-button.is-favorite {
    background: #fff0f1;
    color: #ba2334;
}

@media (max-width: 650px) {
    .auth-card.account-card {
        padding: 22px 16px;
    }

    .account-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* Активна вкладка кабінету */

.account-tabs .account-tab {
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.account-tabs .account-tab.active {
    background: var(--burgundy);
    color: #ffffff;
    border-color: var(--burgundy);
}

/* Приховування неактивних розділів */
.account-section[hidden] {
    display: none !important;
}

/* Іконки обраних товарів */

.favorite-button {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 50%;
    background: #fffdf9;
}

.favorite-button .favorite-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.favorite-button:hover {
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .favorite-button {
        width: 36px;
        height: 36px;
        padding: 7px;
    }
}

/* ===== ВИПРАВЛЕННЯ РОЗМІРУ СЕРДЕЧОК ===== */

.product-card {
    position: relative;
}

.product-card .favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 10;
    margin: 0;
}

.product-card .favorite-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 8px;

    border: 1px solid #eadfd3;
    border-radius: 50%;

    background: #fffdf9;
    cursor: pointer;
}

.product-card .favorite-button img.favorite-icon {
    display: block;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .product-card .favorite-button {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .product-card .favorite-button img.favorite-icon {
        width: 22px;
        height: 22px;
    }
}

/* =========================
   СИСТЕМНІ ПОВІДОМЛЕННЯ
========================= */

.site-messages {
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.site-message {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 15px 20px;
    border: 1px solid #e0d5c7;
    border-radius: 12px;

    background: #fffdf9;
    color: #382822;

    font-size: 15px;
    line-height: 1.5;
}

.site-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: #eee6da;
    color: #750d16;

    font-weight: bold;
}

.site-message-text {
    flex: 1;
}

/* Успішне повідомлення */

.site-message.success {
    border-color: #c4e2ca;
    background: #f2faf3;
    color: #23653b;
}

.site-message.success .site-message-icon {
    background: #287a46;
    color: #ffffff;
}

/* Повідомлення про помилку */

.site-message.error {
    border-color: #f0c1c1;
    background: #fff3f3;
    color: #a01818;
}

.site-message.error .site-message-icon {
    background: #a01818;
    color: #ffffff;
}

/* Попередження */

.site-message.warning {
    border-color: #ead2a3;
    background: #fff9ed;
    color: #805916;
}

/* Мобільні пристрої */

@media (max-width: 600px) {
    .site-message {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Компактна сітка каталогу з декоративними рамками */

.catalog-products.catalog-products-framed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.catalog-products-framed .product-card {
    padding: 6px;
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(84, 8, 16, 0.08);
}

.catalog-products-framed .product-card:hover,
.catalog-products-framed .product-card:focus-within {
    border-color: var(--burgundy);
}

.catalog-products-framed .product-card-image {
    border: 1px solid rgba(199, 152, 56, 0.28);
    border-radius: 12px;
}

.catalog-products-framed .product-card-content {
    padding: 14px 8px 8px;
}

.catalog-products-framed .product-card-category {
    margin-bottom: 6px;
    font-size: 12px;
}

.catalog-products-framed .product-card-title {
    font-size: 18px;
    line-height: 1.35;
}

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

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

@media (max-width: 480px) {
    .catalog-products.catalog-products-framed {
        grid-template-columns: 1fr;
        width: min(100%, 320px);
        margin-inline: auto;
    }
}

/* Сторінки каталогу */

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-link,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 8px;
    font-weight: 600;
}

.pagination-link:hover {
    background: var(--light);
}

.pagination-link:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 3px;
}

.pagination-current {
    color: var(--cream);
    background: var(--burgundy);
    border-color: var(--burgundy);
}

@media (max-width: 600px) {
    .pagination-list {
        order: -1;
        flex-basis: 100%;
    }
}

/* Переваги підприємства на головній */

.benefits-section {
    padding-top: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.benefit-card {
    min-width: 0;
    padding: 28px;
    background: var(--light);
    border: 1px solid rgba(199, 152, 56, 0.5);
    border-radius: 14px;
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.benefit-card h3 {
    margin: 20px 0 12px;
    color: var(--burgundy);
    font-size: 24px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.benefit-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 800px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px;
    }
}

/* Як зробити заявку */

.order-guide {
    border-bottom: 1px solid var(--light);
}

.order-guide-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.order-guide-step {
    position: relative;
    min-width: 0;
    padding-right: 18px;
}

.order-guide-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 0;
    left: 64px;
    height: 1px;
    background: var(--gold);
}

.order-guide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--cream);
    background: var(--burgundy);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
}

.order-guide-step h3 {
    margin: 0 0 12px;
    color: var(--burgundy);
    font-size: 24px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.order-guide-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.order-guide .order-guide-note {
    margin: 28px 0 20px;
    font-size: 14px;
}

.order-guide .button:focus-visible {
    outline-color: var(--burgundy);
}

@media (max-width: 800px) {
    .order-guide-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .order-guide-step {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
        padding: 0;
    }

    .order-guide-step::after {
        display: none;
    }

    .order-guide-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .order-guide-step h3,
    .order-guide-step p {
        grid-column: 2;
    }
}

/* Категорії каталогу */

.catalog-category-nav {
    margin-top: 24px;
}

.catalog-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.catalog-category-chip:hover {
    background: var(--light);
}

.catalog-category-chip.is-active {
    color: var(--cream);
    background: var(--burgundy);
    border-color: var(--burgundy);
}

.catalog-category-chip:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 3px;
}

/* Стилі кнопок обраного в каталозі замість inline-атрибутів */

.catalog-products-framed .favorite-button {
    width: 42px;
    height: 42px;
    padding: 8px;
    background: #fff;
}

.catalog-products-framed .favorite-button img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}

/* Сторінка товару: фото, заявка та характеристики */

.product-page .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 4vw, 56px);
}

.product-page .product-detail-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: 24px;
    background: var(--light);
    box-shadow: 0 8px 24px rgba(84, 8, 16, 0.08);
}

.product-page .product-detail-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 16px;
    object-fit: contain;
}

.product-photo-placeholder {
    padding: 24px;
    text-align: center;
}

.product-page .product-detail-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-page .product-detail-info h1 {
    margin: 16px 0 24px;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.2;
}

.product-category-label {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--burgundy);
    background: var(--light);
    font-size: 14px;
}

.product-favorite-form {
    margin-bottom: 24px;
}

.product-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    color: var(--burgundy);
    background: var(--cream);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.product-favorite-button img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.product-favorite-button:hover {
    background: var(--light);
}

.product-favorite-button:focus-visible,
.product-category-label:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 3px;
}

.product-request-card,
.product-spec-card {
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--gold);
    border-radius: 20px;
    background: var(--cream);
}

.product-request-card {
    background: var(--light);
}

.product-page .product-request-card h2,
.product-spec-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.product-request-form {
    margin: 20px 0 0;
}

.product-request-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.product-request-fields .auth-field {
    min-width: 0;
}

.product-request-fields select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bca99a;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.product-request-fields select:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

.product-specifications {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
    overflow-wrap: anywhere;
}

.product-spec-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .product-page .product-detail,
    .product-specifications {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .product-request-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Кошик: товари та підсумок заявки */

.cart-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
    gap: 28px;
    margin-top: 32px;
}

.cart-page .cart-items {
    min-width: 0;
    margin: 0;
}

.cart-page .cart-item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border-color: var(--gold);
    border-radius: 20px;
    background: var(--cream);
}

.cart-product-photo {
    display: grid;
    place-items: center;
    align-self: start;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--gold);
    border-radius: 12px;
    background: var(--light);
    text-align: center;
    font-size: 12px;
}

.cart-page .cart-item-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.cart-page .cart-item-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-page .cart-item-info h2 {
    font-size: 21px;
}

.cart-page .cart-update-form {
    margin: 20px 0 12px;
}

.cart-remove-button {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    color: var(--burgundy);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cart-remove-button:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 3px;
}

.cart-summary,
.cart-empty-state {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--gold);
    border-radius: 20px;
    background: var(--light);
}

.cart-summary h2,
.cart-empty-state h2 {
    margin-top: 0;
    font-size: 26px;
}

.cart-summary-details {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gold);
}

.cart-summary-details dd {
    margin: 0;
    color: var(--burgundy);
    font-weight: 700;
}

.cart-summary .button {
    display: flex;
    width: 100%;
    text-align: center;
}

.cart-auth-note {
    margin-bottom: 0;
    font-size: 14px;
}

.cart-empty-state {
    margin-top: 32px;
    text-align: center;
}

.cart-continue {
    margin-top: 28px;
}

@media (max-width: 1000px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .cart-page .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .cart-page .cart-item-info h2 {
        font-size: 18px;
    }

    .cart-summary,
    .cart-empty-state {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .cart-page .cart-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-product-photo {
        width: 100px;
    }
}

/* Кнопки кількості в кошику */

.cart-page .cart-update-form .auth-field {
    width: 220px;
    max-width: 100%;
}

.cart-quantity-control.is-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-quantity-control.is-enhanced input {
    min-width: 0;
    flex: 1 1 0;
}

.cart-quantity-button {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 46px;
    padding: 8px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--burgundy);
    background: var(--light);
}

.cart-quantity-button[hidden] {
    display: none;
}

.cart-quantity-button:hover:not(:disabled) {
    color: var(--cream);
    background: var(--burgundy);
}

.cart-quantity-button:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 3px;
}

.cart-quantity-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Статуси та етапи заявки */

.order-status {
    display: inline-block;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--text);
    background: var(--light);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.order-status--new {
    color: #344b68;
    background: #edf3fb;
}

.order-status--processing {
    color: #704500;
    background: #fff0cc;
}

.order-status--confirmed {
    color: #315b33;
    background: #edf5e6;
}

.order-status--completed {
    color: #185347;
    background: #e4f3ed;
}

.order-status--cancelled {
    color: var(--burgundy);
    background: #fbe9e9;
}

.auth-card.order-detail-card {
    max-width: 880px;
    overflow-wrap: anywhere;
}

.order-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    border-top: 3px solid var(--light);
    color: var(--text);
    text-align: center;
    font-size: 14px;
}

.order-step-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--cream);
    font-weight: 700;
}

.order-step.is-reached {
    border-color: var(--gold);
}

.order-step.is-reached .order-step-number {
    background: var(--light);
}

.order-step.is-current {
    border-color: var(--burgundy);
    color: var(--burgundy);
    font-weight: 700;
}

.order-step.is-current .order-step-number {
    border-color: var(--burgundy);
    color: var(--cream);
    background: var(--burgundy);
}

.order-cancelled-note {
    padding: 16px;
    border-left: 4px solid var(--burgundy);
    border-radius: 8px;
    color: var(--burgundy);
    background: #fbe9e9;
}

@media (max-width: 600px) {
    .order-progress {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .order-step {
        flex-direction: row;
        padding: 10px 12px;
        border-top: 0;
        border-left: 3px solid var(--light);
        text-align: left;
    }
}

/* Компактна шапка на широких екранах */

@media (min-width: 1001px) {
    .site-header,
    .site-header .header-inner > *,
    .site-header .brand-logo {
        transition: transform 180ms ease;
    }

    .site-header.is-compact {
        transform: translateY(-20px);
        box-shadow: 0 8px 20px rgba(84, 8, 16, 0.14);
    }

    .site-header.is-compact .header-inner > * {
        transform: translateY(10px);
    }

    .site-header.is-compact .brand-logo {
        transform: scale(0.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header .header-inner > *,
    .site-header .brand-logo {
        transition: none;
    }
}

/* Рух карток товарів: миша та клавіатура */

@media (prefers-reduced-motion: no-preference) {
    .catalog-products-framed .product-card {
        transition: transform 200ms ease;
    }

    .catalog-products-framed .product-card-image img {
        transition: transform 300ms ease;
    }

    .catalog-products-framed .product-card:focus-within {
        transform: translateY(-4px);
    }

    .catalog-products-framed .product-card:focus-within .product-card-image img {
        transform: scale(1.035);
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .catalog-products-framed .product-card:hover {
        transform: translateY(-4px);
    }

    .catalog-products-framed .product-card:hover .product-card-image img {
        transform: scale(1.035);
    }
}

/* Окремі слова зберігають звичне компонування заголовка hero. */
.hero-title .hero-word {
    display: inline-block;
}

/* Декоративний рядок категорій на головній */

.category-marquee {
    padding-block: 16px;
    color: var(--cream);
    background: var(--burgundy);
}

.category-marquee:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.category-marquee-inner {
    width: 100%;
}

.category-marquee-viewport {
    min-width: 0;
    overflow: hidden;
}

.category-marquee-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-inline: 20px;
}

.category-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}

.category-marquee-item::before {
    content: "✦";
    color: var(--gold);
}

.category-marquee-copy {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .category-marquee-track {
        display: flex;
        width: max-content;
        animation: category-marquee-scroll 28s linear infinite;
    }

    .js-enabled .category-marquee-group {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        padding-left: 0;
        padding-right: 28px;
    }

    .js-enabled .category-marquee-copy {
        display: flex;
    }

    .category-marquee:hover .category-marquee-track,
    .category-marquee:focus-within .category-marquee-track {
        animation-play-state: paused;
    }
}

@keyframes category-marquee-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Сповіщення поверх сторінки без зміщення її вмісту */

.site-messages {
    position: fixed;
    right: 4vw;
    bottom: 20px;
    z-index: 200;
    width: min(480px, 92vw);
    max-height: calc(100dvh - 40px);
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    pointer-events: none;
}

.site-message {
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    box-shadow: 0 8px 28px rgba(84, 8, 16, 0.14);
    pointer-events: auto;
}

.site-message-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-message-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -6px -6px -6px 0;
    padding: 8px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.site-message-close:hover {
    background: rgba(84, 8, 16, 0.06);
}

.site-message-close:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

/* Додавання товару до заявки з картки каталогу */

.catalog-quick-add .product-card {
    display: flex;
    flex-direction: column;
}

.catalog-quick-add .product-card-link {
    flex: 1;
}

.product-card-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: stretch;
    gap: 8px;
    margin: 8px;
}

.product-card-cart select {
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--text);
    background: var(--cream);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.product-card-cart select:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 2px;
}

.product-card-cart .button {
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Мініатюра під час додавання до кошика */
.cart-flight {
    position: fixed;
    z-index: 220;
    width: 80px;
    height: 100px;
    max-width: none;
    border: 1px solid var(--gold);
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none;
}

.product-card-cart .button:disabled,
.product-request-form .button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Скасування нової заявки */
.order-cancel-form {
    margin-block: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gold);
}

.order-cancel-form p {
    font-size: 14px;
}

.order-cancel-button {
    border: 1px solid var(--burgundy);
    color: var(--burgundy);
    background: transparent;
}

.order-cancel-button:hover {
    color: var(--burgundy);
    background: var(--light);
}


/* Оформлення з фінального макета: головна та декоративні колоски. */
:root { --muted: #76665c; --border: #e5d8c6; --white: #fffdf8; --radius: 12px; --shadow: 0 8px 30px rgb(56 40 34 / 7%); }
.icon { flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.heritage-home .hero { min-height: 560px; position: relative; overflow: hidden; background: var(--light); isolation: isolate; }
.heritage-home .hero-art { position: absolute; top: -5%; right: 0; width: 61%; height: 110%; z-index: -2; }
.heritage-home .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.heritage-home .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f5ead8 0%, #f5ead8 34%, rgb(245 234 216 / 95%) 41%, rgb(245 234 216 / 15%) 64%, transparent 80%); }
.heritage-home .hero-inner { min-height: 560px; display: flex; align-items: center; padding-block: 48px; }
.heritage-home .hero-copy { max-width: 590px; }
.heritage-home .hero .eyebrow { display: flex; align-items: center; gap: 12px; font-size: .63rem; letter-spacing: .13em; margin-bottom: 23px; }
.heritage-home .gold-line { width: 28px; height: 1px; background: var(--gold); }
.heritage-home .hero h1 { font-size: clamp(3.2rem, 6.5vw, 6rem); line-height: 1.04; margin-left: -3px; }
.heritage-home .hero h1 span, .heritage-home .hero h1 em { display: block; }
.heritage-home .hero h1 em { font-weight: 500; }
.heritage-home .hero-description { font-size: .85rem; color: #665447; line-height: 1.85; margin: 24px 0 28px; }
.heritage-home .hero-origin { display: flex; align-items: center; gap: 12px; font-size: .6rem; color: var(--muted); margin-top: 32px; line-height: 1.6; }
.heritage-home .hero-origin .icon { width: 27px; height: 35px; color: var(--gold); }
.heritage-home .hero-origin strong { font-weight: 600; color: var(--text); }
.heritage-home .hero-seal { position: absolute; right: 5.5%; bottom: 30px; width: 112px; height: 112px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: var(--cream); background: rgb(84 8 16 / 88%); border: 1px solid var(--gold); outline: 6px solid rgb(84 8 16 / 75%); border-radius: 50%; transform: rotate(10deg); }
.heritage-home .hero-seal span { font-size: .52rem; font-weight: 700; letter-spacing: .13em; }
.heritage-home .hero-seal .icon { color: #e6bf72; width: 28px; height: 28px; }
.heritage-home .section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 36px; }
.heritage-home .section-heading .eyebrow { margin-bottom: 11px; }
.heritage-home .section-heading > p { color: var(--muted); font-size: .8rem; margin-left: auto; margin-right: auto; line-height: 1.8; }
.heritage-home .section-heading > .text-link { margin-bottom: 6px; }
.heritage-home .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.heritage-home .heritage-category-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #efe0c8; overflow: hidden; transition: box-shadow .25s; }
.heritage-home .heritage-category-card:hover { box-shadow: var(--shadow-hover); }
.heritage-home .heritage-category-card > img { width: 100%; aspect-ratio: 1.7; object-fit: cover; transition: transform .4s; }
.heritage-home .heritage-category-card:hover > img { transform: scale(1.04); }
.heritage-home .heritage-category-caption { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--white); }
.heritage-home .heritage-category-caption strong { display: block; font-size: .82rem; }
.heritage-home .heritage-category-caption small { color: var(--muted); font-size: .62rem; }
.heritage-home .round-arrow { width: 30px; height: 30px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.heritage-home .round-arrow .icon { width: 15px; height: 15px; }
.heritage-home .category-card-all { background: var(--burgundy); color: var(--cream); display: flex; flex-direction: column; justify-content: space-between; padding-top: 22px; }
.heritage-home .category-all-number { font-family: var(--font-heading); font-size: 3.2rem; line-height: 1; margin: 0 22px 8px; color: #e1bd76; }
.heritage-home .category-all-copy { font-size: .75rem; margin-inline: 22px; }
.heritage-home .category-card-all .heritage-category-caption { background: transparent; color: var(--cream); margin-top: 12px; }
.heritage-home .category-card-all .round-arrow { border-color: #b56e63; }
.heritage-home .category-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.7; }
.heritage-home .why-section { background: var(--burgundy); color: var(--cream); padding-block: 56px; }
.heritage-home .why-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; align-items: center; }
.heritage-home .why-section h2 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); }
.heritage-home .why-section em { color: #e6c18a; }
.heritage-home .why-section .eyebrow { color: #dcb676; font-size: .6rem; }
.heritage-home .why-item > .icon { width: 30px; height: 30px; color: #dcb676; margin-bottom: 16px; }
.heritage-home .why-item h3 { font-size: .83rem; margin-bottom: 9px; }
.heritage-home .why-item p { color: #e0bcc0; font-size: .72rem; line-height: 1.8; }
.heritage-home .story-section { background: var(--light); }
.heritage-home .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; }
.heritage-home .story-image { position: relative; }
.heritage-home .story-image > img { width: 100%; aspect-ratio: 1.1; object-fit: cover; border-radius: var(--radius); }
.heritage-home .story-stamp { position: absolute; right: -22px; bottom: 28px; background: var(--cream); border: 1px solid var(--gold); padding: 17px 25px; display: flex; align-items: center; flex-direction: column; box-shadow: var(--shadow); }
.heritage-home .story-stamp span { font-size: .56rem; letter-spacing: .1em; }
.heritage-home .story-stamp strong { font-family: var(--font-heading); font-size: 2.5rem; color: var(--burgundy); line-height: 1.2; }
.heritage-home .story-copy > p:not(.eyebrow) { color: var(--muted); font-size: .82rem; margin-top: 20px; }
.heritage-home .story-copy .text-link { margin-top: 25px; }
.heritage-home .story-stats { display: flex; gap: 50px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #d9c8b0; }
.heritage-home .story-stats strong { display: block; color: var(--burgundy); font-family: var(--font-heading); font-size: 2.5rem; line-height: 1.2; }
.heritage-home .story-stats span { color: var(--muted); font-size: .65rem; }
.heritage-home .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; list-style: none; padding: 0; margin: 0; }
.heritage-home .steps-grid li { border-top: 1px solid var(--border); padding-top: 20px; }
.heritage-home .step-number { display: block; font-family: var(--font-heading); color: var(--gold); font-size: 2.5rem; line-height: 1.2; margin-bottom: 19px; }
.heritage-home .steps-grid h3 { font-size: .93rem; margin-bottom: 10px; }
.heritage-home .steps-grid p { color: var(--muted); font-size: .79rem; }
.heritage-home .contact-band { background: #f0e1c8; border-block: 1px solid #e3cda9; padding-block: 60px; }
.heritage-home .contact-band-inner { display: flex; gap: 40px; justify-content: space-between; align-items: center; }
.heritage-home .contact-band h2 { margin-bottom: 15px; }
.heritage-home .contact-band p:not(.eyebrow) { color: var(--muted); font-size: .8rem; }
.heritage-home .contact-big-phone { font-family: var(--font-heading); color: var(--burgundy); font-size: clamp(1.3rem, 2.3vw, 2.1rem); white-space: nowrap; }
.heritage-home .contact-band .text-link { margin-top: 12px; }

.heritage-home { overflow: clip; }
.heritage-home h1, .heritage-home h2 { color: var(--text); font-weight: 500; letter-spacing: -.035em; }
.heritage-home h2 { font-size: clamp(30px, 3.5vw, 48px); }
.heritage-home h3 { font-family: var(--font-body); }
.heritage-home em { color: var(--burgundy); font-weight: 400; }
.heritage-home .section { padding-block: 80px; }
.heritage-home .eyebrow { margin: 0 0 16px; color: var(--burgundy); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.heritage-home .hero { display: block; min-height: 560px; }
.heritage-home .hero::after { display: none; }
.heritage-home .hero-inner { padding-block: 48px; }
.heritage-home .hero-banner { position: static; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.heritage-home .hero h1 .hero-word { display: block; }
.heritage-home .hero-description { max-width: 430px; font-size: 15px; }
.heritage-home .hero-origin { font-size: 11px; }
.heritage-home .hero-origin .icon { flex: 0 0 27px; }
.heritage-home .hero-seal { z-index: 2; }
.heritage-home .why-section h2 { color: var(--cream); font-size: clamp(27px, 2.8vw, 36px); }
.heritage-home .why-section h3 { color: var(--cream); font-size: 15px; }
.heritage-home .why-section p { font-size: 14px; }
.heritage-home .why-section .eyebrow { color: #e6c18a; font-size: 11px; }
.heritage-home .category-marquee { background: #eee0c8; color: #6a5138; padding-block: 14px; }
.heritage-home .category-marquee-item { font-size: 12px; }
.heritage-home .heritage-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.heritage-home .heritage-category-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.heritage-home .heritage-category-card > img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.heritage-home .heritage-category-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; }
.heritage-home .heritage-category-caption strong { font: 600 15px var(--font-body); }
.heritage-home .heritage-category-caption small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.heritage-home .round-arrow { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; }
.heritage-home .category-card-all { background: var(--burgundy); color: var(--cream); }
.heritage-home .category-all-copy { font-size: 13px; }
.heritage-home .category-placeholder { color: var(--gold); background: var(--light); }
.heritage-home .category-placeholder .icon { width: 48px; height: 48px; }
.heritage-home .story-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.9; }
.heritage-home .story-stats span { font-size: 12px; }
.heritage-home .steps-grid { margin-top: 30px; }
.heritage-home .steps-grid p, .heritage-home .contact-band p:not(.eyebrow) { font-size: 14px; }
.heritage-home .product-card-title { color: var(--text); font: 600 16px/1.45 var(--font-body); }
.heritage-home .product-card-category { color: var(--muted); font-size: 12px; }
.heritage-home .catalog-products-framed .product-card { border-color: var(--border); background: var(--white); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-wordmark { color: var(--burgundy); font: 600 18px/1.3 var(--font-heading); }
.brand-wordmark > span { display: block; margin-top: 6px; font: 700 8px var(--font-body); letter-spacing: .2em; }
.brand-logo { width: 54px; height: 64px; }
.header-inner { padding-block: 15px; }
.site-header { border-bottom: 1px solid var(--border); }
.main-navigation a, .header-actions a { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-card-placeholder, .product-photo-placeholder { color: var(--muted); }
.product-card-placeholder .icon, .product-photo-placeholder .icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold); }
.catalog-products-framed .product-card { padding: 0; border-color: var(--border); border-radius: 12px; background: var(--white); box-shadow: none; }
.catalog-products-framed .product-card-image { border: 0; border-radius: 0; }
.catalog-products-framed .product-card-content { padding: 18px; }
.catalog-products-framed .product-card-title { color: var(--text); font: 600 16px/1.45 var(--font-body); }
.catalog-products-framed .product-card-cart { margin: 0 18px 18px; }
.catalog-products-framed .product-card:focus-within { box-shadow: var(--shadow); }
@media (max-width: 1100px) {
    .brand-wordmark { display: none; }
    .heritage-home .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .heritage-home .why-grid > div:first-child { grid-column: 1 / -1; }
    .heritage-home .story-grid { gap: 40px; }
}
@media (max-width: 800px) {
    .heritage-home .section { padding-block: 52px; }
    .heritage-home .hero { display: flex; flex-direction: column; }
    .heritage-home .hero-art { position: relative; inset: auto; order: 1; width: 100%; height: 280px; }
    .heritage-home .hero::before { display: none; }
    .heritage-home .hero-inner { min-height: 0; padding-block: 36px; }
    .heritage-home .hero h1 { font-size: clamp(44px, 8vw, 64px); }
    .heritage-home .hero-seal { right: 24px; bottom: 20px; width: 96px; height: 96px; }
    .heritage-home .hero-origin { margin-top: 24px; }
    .heritage-home .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .heritage-home .section-heading > p { margin: 0; flex-basis: 100%; }
    .heritage-home .heritage-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heritage-home .story-grid { grid-template-columns: 1fr; gap: 36px; }
    .heritage-home .story-image { padding-right: 16px; }
    .heritage-home .story-stamp { right: 0; }
    .heritage-home .steps-grid { gap: 20px; }
    .heritage-home .contact-band-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 520px) {
    .heritage-home .heritage-categories { grid-template-columns: 1fr; }
    .heritage-home .why-grid, .heritage-home .steps-grid { grid-template-columns: 1fr; }
    .heritage-home .why-grid > div:first-child { grid-column: auto; }
    .heritage-home .hero .eyebrow { font-size: 10px; line-height: 1.7; }
    .heritage-home .hero-description br, .heritage-home .desktop-break { display: none; }
    .heritage-home .story-stats { gap: 28px; }
    .heritage-home .category-card-all { min-height: 250px; }
}
@media (prefers-reduced-motion: no-preference) {
    .heritage-home .heritage-category-card { transition: transform .25s, box-shadow .25s; }
    .heritage-home .heritage-category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}

/* Добірка: доступне горизонтальне прокручування працює також без JavaScript. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.heritage-home #featured-products .selection-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) var(--light); padding: 8px 4px 22px; margin-inline: -4px; }
.heritage-home .selection-track > .product-card { flex: 0 0 calc((100% - 66px) / 4); scroll-snap-align: start; }
.selection-controls { display: flex; justify-content: flex-end; gap: 10px; margin: -52px 0 24px; }
.selection-controls[hidden] { display: none; }
.selection-arrow { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 10px; border: 1px solid var(--border); border-radius: 50%; color: var(--burgundy); background: var(--cream); cursor: pointer; }
.selection-arrow:hover { background: var(--light); }
.selection-arrow:disabled { opacity: .4; cursor: default; }
.heritage-home [data-count] { display: inline-block; min-inline-size: 3ch; font-variant-numeric: tabular-nums; }
.heritage-home .story-stats strong > span { font: inherit; color: inherit; }
@media (max-width: 1000px) { .heritage-home .selection-track > .product-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 600px) {
    .heritage-home .selection-track > .product-card { flex-basis: 88%; }
    .selection-controls { margin: 16px 0; justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .order-progress.motion-ready .order-step { position: relative; }
    .js-enabled .order-progress.motion-ready .order-step.is-reached, .js-enabled .order-progress.motion-ready .order-step.is-current { border-top-color: transparent; }
    .order-step-fill { position: absolute; inset: -3px 0 auto; height: 3px; background: var(--gold); transform-origin: left center; }
    .is-current > .order-step-fill { background: var(--burgundy); }
}

/* Порожнє фото: колосок над підписом, обидва елементи по центру. */
.product-card-placeholder,
.product-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.product-card-placeholder .icon,
.product-photo-placeholder .icon {
    margin: 0;
}


/* Закритий вхід: без навігації та вмісту основного сайту. */
.access-page { min-height: 100svh; background: var(--cream); }
.access-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; width: 100%; min-height: 100svh; padding: 36px 20px; }
.access-brand { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--burgundy); }
.access-brand img { flex: 0 0 64px; object-fit: contain; }
.access-brand p { margin: 0; font: 600 22px/1.3 var(--font-heading); }
.access-brand span { display: block; margin-top: 8px; font: 700 9px var(--font-body); letter-spacing: .2em; }
.access-card { width: 100%; max-width: 460px; margin: 0; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.access-card h1 { font-size: 32px; }
.access-card > p { font-size: 14px; color: var(--muted); }
.access-card .auth-form { width: 100%; }
.access-card .auth-form .button { width: 100%; }
.access-card .access-message { padding: 14px; color: var(--burgundy); background: var(--light); border-radius: 8px; }
.access-footnote { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 400px) { .access-card { padding: 24px 18px; } .access-brand p { font-size: 19px; } }
