/* KAMIEL 2026 — header, catalog and brands refresh. About page content is untouched. */
:root {
    --km-ink: #292522;
    --km-paper: #f4f0eb;
    --km-card: #fbf9f6;
    --km-line: rgba(65, 54, 47, .14);
    --km-bronze: #9a7b55;
    --km-bronze-dark: #71583c;
}

/* ---------- Stable editorial header ---------- */
.site-header {
    height: 84px !important;
    background: rgba(36, 30, 26, .12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, backdrop-filter .28s ease !important;
}

:root { --header-height: 84px; }

body:not([data-route="home"]) .site-header,
.site-header.is-scrolled {
    background: rgba(244, 240, 235, .92) !important;
    border-bottom-color: var(--km-line) !important;
    box-shadow: 0 10px 34px rgba(40, 31, 25, .08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
    backdrop-filter: blur(18px) saturate(125%) !important;
}

body:not([data-route="home"]) .site-header::after { display: none !important; }

.header-inner {
    width: min(100% - 64px, 1340px) !important;
    height: 84px !important;
    grid-template-columns: minmax(0, 1fr) 164px minmax(0, 1fr) !important;
    gap: 28px !important;
}

.header-nav {
    height: 100%;
    gap: clamp(22px, 2.2vw, 40px) !important;
}

.header-nav a,
.catalog-trigger {
    position: relative;
    height: 100% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #fffaf4 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
    white-space: nowrap;
    transform: none !important;
    transition: color .18s ease, opacity .18s ease !important;
}

.header-nav a::after,
.catalog-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.header-nav a:hover,
.catalog-trigger:hover {
    color: #e2c08d !important;
    opacity: 1 !important;
    transform: none !important;
}

.header-nav a:hover::after,
.catalog-trigger:hover::after { transform: scaleX(1); }

body:not([data-route="home"]) .header-nav a,
.site-header.is-scrolled .header-nav a,
body:not([data-route="home"]) .catalog-trigger,
.site-header.is-scrolled .catalog-trigger { color: var(--km-ink) !important; }

body:not([data-route="home"]) .header-nav a:hover,
.site-header.is-scrolled .header-nav a:hover,
body:not([data-route="home"]) .catalog-trigger:hover,
.site-header.is-scrolled .catalog-trigger:hover { color: var(--km-bronze) !important; }

.logo {
    width: 164px !important;
    min-width: 164px !important;
    height: 84px !important;
    grid-template-rows: 38px 19px 9px !important;
    transform: none !important;
}

.logo-mark {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 9px rgba(22, 16, 12, .12));
}

.logo-word {
    color: #fffaf4;
    font-size: 20px !important;
    letter-spacing: .36em !important;
    transform: translateX(.18em) !important;
}

.logo small { color: #d4b57e !important; }

body:not([data-route="home"]) .logo-word,
.site-header.is-scrolled .logo-word { color: var(--km-ink); }

.header-actions { gap: 10px !important; }

.icon-btn,
.header-icon-btn {
    color: #fffaf4 !important;
    transform: none !important;
    transition: color .18s ease, opacity .18s ease, background-color .18s ease !important;
}

.icon-btn:hover,
.header-icon-btn:hover {
    color: #e2c08d !important;
    opacity: 1 !important;
    transform: none !important;
    background: rgba(255, 255, 255, .08) !important;
}

.header-icon {
    background-image: none !important;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.header-icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='9' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M22 22L30 30' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='9' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M22 22L30 30' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.header-icon-heart {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 28.5S6.5 21.8 6.5 13.8C6.5 9.9 9.2 7.4 12.6 7.4c2.2 0 3.8 1.2 4.9 2.8 1.1-1.6 2.7-2.8 4.9-2.8 3.4 0 6.1 2.5 6.1 6.4 0 8-11 14.7-11 14.7Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 28.5S6.5 21.8 6.5 13.8C6.5 9.9 9.2 7.4 12.6 7.4c2.2 0 3.8 1.2 4.9 2.8 1.1-1.6 2.7-2.8 4.9-2.8 3.4 0 6.1 2.5 6.1 6.4 0 8-11 14.7-11 14.7Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.header-icon-bag {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 13h16L27 29H8l1.5-16Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M13.2 13c0-4.2 1.8-6.5 4.3-6.5s4.3 2.3 4.3 6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 13h16L27 29H8l1.5-16Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M13.2 13c0-4.2 1.8-6.5 4.3-6.5s4.3 2.3 4.3 6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

body:not([data-route="home"]) .header-icon-btn,
.site-header.is-scrolled .header-icon-btn { color: var(--km-ink) !important; }

.counter { background: var(--km-bronze) !important; border: 1px solid rgba(255,255,255,.72); }

.mega-wrap {
    top: 84px !important;
    border-radius: 0 0 18px 18px;
    background: rgba(250, 248, 245, .97) !important;
    border-color: var(--km-line) !important;
    box-shadow: 0 28px 80px rgba(39, 30, 24, .18) !important;
}

/* ---------- Modern catalog ---------- */
body[data-route="catalog"] .main,
body[data-route="new"] .main,
body[data-route="discounts"] .main,
body[data-route="brands"] .main { background: var(--km-paper) !important; }

body[data-route="catalog"] .catalog-hero,
body[data-route="new"] .catalog-hero,
body[data-route="discounts"] .catalog-hero,
body[data-route="brands"] .brands-hero {
    padding: 58px 0 34px !important;
    background:
        radial-gradient(circle at 84% 14%, rgba(154, 123, 85, .13), transparent 23%),
        linear-gradient(135deg, #f7f4ef 0%, #eee8e1 100%) !important;
    border-bottom: 1px solid var(--km-line);
}

.catalog-eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--km-bronze);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .24em;
}

body[data-route="catalog"] .page-title,
body[data-route="new"] .page-title,
body[data-route="discounts"] .page-title,
body[data-route="brands"] .page-title {
    color: var(--km-ink) !important;
    font-size: clamp(52px, 6vw, 82px) !important;
    letter-spacing: -.025em;
}

.catalog-section,
.brands-section { background: var(--km-paper) !important; padding-top: 38px !important; }

.catalog-layout-final,
.catalog-layout { grid-template-columns: 258px minmax(0, 1fr) !important; gap: 30px !important; }

.catalog-filter-panel,
.filters {
    position: sticky !important;
    top: 108px !important;
    border: 1px solid var(--km-line) !important;
    border-radius: 18px !important;
    background: rgba(251, 249, 246, .86) !important;
    box-shadow: 0 16px 50px rgba(48, 39, 33, .05) !important;
    padding: 24px !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.catalog-filter-head { border-color: var(--km-line) !important; }
.catalog-filter-head h2 { color: var(--km-ink) !important; font-size: 28px !important; }

.catalog-filter-row,
.catalog-category-link,
.catalog-brand-link,
.catalog-category-child,
.catalog-subcategory-link {
    border-radius: 10px !important;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease !important;
    transform: none !important;
}

.catalog-filter-row:hover,
.catalog-category-link:hover,
.catalog-brand-link:hover,
.catalog-category-child:hover,
.catalog-subcategory-link:hover {
    background: rgba(154, 123, 85, .10) !important;
    transform: none !important;
}

.catalog-filter-row.is-active,
.catalog-category-link.is-active,
.catalog-brand-link.is-active,
.catalog-category-child.is-active,
.catalog-subcategory-link.is-active,
.catalog-chip-list a.is-active {
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
}

.catalog-sort,
#sort.input {
    width: 240px !important;
    height: 50px !important;
    border: 1px solid var(--km-line) !important;
    border-radius: 999px !important;
    background-color: rgba(251, 249, 246, .88) !important;
    padding-left: 20px !important;
    transform: none !important;
}

.catalog-top-actions::after { top: 34px !important; right: 22px !important; width: 9px; height: 9px; }

.catalog-layout-final .product-grid,
.catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }

.catalog-layout-final .product-card,
.catalog-layout .product-card {
    border: 1px solid var(--km-line) !important;
    border-radius: 18px !important;
    background: var(--km-card) !important;
    box-shadow: 0 14px 40px rgba(45, 36, 30, .04);
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.catalog-layout-final .product-card:hover,
.catalog-layout .product-card:hover {
    transform: none !important;
    border-color: rgba(154, 123, 85, .46) !important;
    box-shadow: 0 20px 54px rgba(45, 36, 30, .09) !important;
}

.catalog-layout-final .product-media,
.catalog-layout .product-media {
    aspect-ratio: 4 / 5 !important;
    border-radius: 17px 17px 0 0;
    background: #f8f6f2 !important;
}

.catalog-layout-final .product-info,
.catalog-layout .product-info { padding: 15px 17px !important; }

.catalog-layout-final .brand,
.catalog-layout .brand { color: var(--km-bronze) !important; letter-spacing: .16em; }

.catalog-layout-final .card-actions .btn,
.catalog-layout .card-actions .btn,
.catalog-filter-apply {
    border-radius: 999px !important;
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    transform: none !important;
}

.catalog-layout-final .card-actions .btn:hover,
.catalog-layout .card-actions .btn:hover,
.catalog-filter-apply:hover {
    background: var(--km-bronze-dark) !important;
    border-color: var(--km-bronze-dark) !important;
    transform: none !important;
}

.product-card .wishlist-btn,
.product-card [data-wishlist] {
    border: 1px solid var(--km-line) !important;
    border-radius: 50% !important;
    background: rgba(251, 249, 246, .90) !important;
    transform: none !important;
}

/* ---------- Brands ---------- */
.brands-letters-clean {
    max-width: none !important;
    gap: 7px !important;
    padding-top: 22px;
}

.brands-letters-clean a {
    min-width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
    transform: none !important;
}

.brands-letters-clean a.is-active:hover,
.brands-letters-clean a.is-current {
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    color: #fff !important;
    transform: none !important;
}

.brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px !important; }

.brand-card-clean {
    position: relative;
    border: 1px solid var(--km-line) !important;
    border-radius: 20px !important;
    background: var(--km-card) !important;
    overflow: hidden;
    box-shadow: 0 16px 46px rgba(45, 36, 30, .05);
    transform: none !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.brand-card-clean:hover {
    transform: none !important;
    border-color: rgba(154, 123, 85, .48) !important;
    box-shadow: 0 24px 60px rgba(45, 36, 30, .10) !important;
}

.brand-card-image { height: 250px !important; background: #eee9e3 !important; }
.brand-card-image img { filter: saturate(.78) contrast(.96); }
.brand-card-clean:hover .brand-card-image img { transform: scale(1.025) !important; }
.brand-card-body { padding: 22px !important; }
.brand-card-kicker { color: var(--km-bronze) !important; letter-spacing: .18em !important; }
.brand-card-bottom b { color: var(--km-ink) !important; }

@media (max-width: 1100px) {
    .header-inner { width: min(100% - 36px, 1200px) !important; }
    .header-nav { gap: 20px !important; }
    .catalog-layout-final .product-grid,
    .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
    :root { --header-height: 68px; }
    .site-header { height: 68px !important; }
    .header-inner { height: 68px !important; grid-template-columns: 42px 1fr auto !important; }
    .logo { height: 68px !important; width: 138px !important; min-width: 138px !important; grid-template-rows: 31px 17px 8px !important; }
    .logo-mark { width: 36px !important; height: 36px !important; }
    .logo-word { font-size: 17px !important; }
    .header-actions .header-icon-btn:nth-child(1) { display: none; }
    .burger { color: #fffaf4 !important; transform: none !important; }
    body:not([data-route="home"]) .burger,
    .site-header.is-scrolled .burger { color: var(--km-ink) !important; }
    .mega-wrap { top: 68px !important; }
    .catalog-filter-panel,
    .filters { position: static !important; }
}

@media (max-width: 720px) {
    body[data-route="catalog"] .catalog-hero,
    body[data-route="new"] .catalog-hero,
    body[data-route="discounts"] .catalog-hero,
    body[data-route="brands"] .brands-hero { padding: 38px 0 26px !important; }
    .catalog-top,
    .catalog-top-final { align-items: stretch !important; }
    .catalog-top-actions { padding-top: 0 !important; }
    .catalog-top-actions::after { top: 20px !important; }
    .catalog-layout-final,
    .catalog-layout { grid-template-columns: 1fr !important; }
    .catalog-layout-final .product-grid,
    .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .brands-grid { grid-template-columns: 1fr !important; }
    .brand-card-image { height: 220px !important; }
}

/* =========================================================
   KAMIEL 2026 — remove legacy rose gaps
   ========================================================= */

/* The old footer margin exposed the original pink body background. */
.site-footer {
    margin-top: 0 !important;
}

/* Home keeps its photography, while every plain surface becomes neutral. */
body[data-route="home"] {
    --bg: #f4f0eb;
    --bg-soft: #eee9e3;
    --bg-light: #fbf9f6;
    --border: #d8d0c8;
    background: #f4f0eb !important;
}

body[data-route="home"] .main,
body[data-route="home"] .home-page-width,
body[data-route="home"] .home-hero,
body[data-route="home"] .home-categories-section,
body[data-route="home"] .home-products-section,
body[data-route="home"] .home-clothes-section,
body[data-route="home"] .home-reviews-section {
    background-color: #f4f0eb !important;
}

/* Catalog-family routes use one continuous surface down to the footer. */
body[data-route="catalog"],
body[data-route="new"],
body[data-route="discounts"],
body[data-route="brands"],
body[data-route="catalog"] .app-shell,
body[data-route="new"] .app-shell,
body[data-route="discounts"] .app-shell,
body[data-route="brands"] .app-shell,
body[data-route="catalog"] .main,
body[data-route="new"] .main,
body[data-route="discounts"] .main,
body[data-route="brands"] .main {
    background-color: var(--km-paper) !important;
}

@media (max-width: 480px) {
    .header-inner { width: calc(100% - 20px) !important; gap: 8px !important; }
    .header-actions { gap: 2px !important; }
    .icon-btn,
    .header-icon-btn { width: 32px !important; min-width: 32px !important; }
    .catalog-layout-final .product-media,
    .catalog-layout .product-media { aspect-ratio: 1 / 1.18 !important; padding: 14px !important; }
    .catalog-layout-final .product-title,
    .catalog-layout .product-title { font-size: 14px !important; }
    .catalog-layout-final .product-info,
    .catalog-layout .product-info { padding: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-nav a,
    .catalog-trigger,
    .product-card,
    .brand-card-clean { transition: none !important; }
}

/* =========================================================
   KAMIEL 2026 — compact catalog + unified neutral surfaces
   ========================================================= */

/* The ornamental mark must never touch the wordmark. */
.logo {
    grid-template-rows: 29px 19px 9px !important;
    row-gap: 2px !important;
}

.logo-mark {
    width: 30px !important;
    height: 30px !important;
}

/* One footer palette across catalog, brands, wishlist and cart. */
.site-footer,
body[data-route="catalog"] .site-footer,
body[data-route="new"] .site-footer,
body[data-route="discounts"] .site-footer,
body[data-route="brands"] .site-footer {
    background: #e9e4de !important;
    color: var(--km-ink) !important;
    border-top: 1px solid var(--km-line) !important;
}

.site-footer .footer-grid {
    border-color: var(--km-line) !important;
}

.site-footer .footer-col {
    border-color: var(--km-line) !important;
}

.site-footer .footer-logo,
.site-footer .footer-col h3,
.site-footer .footer-col a {
    color: var(--km-ink) !important;
}

.site-footer .footer-brand p,
.site-footer .footer-col p,
.site-footer .footer-technical-note {
    color: #6f655e !important;
}

.site-footer .footer-col a:hover,
.site-footer .footer-dev-link:hover {
    color: var(--km-bronze-dark) !important;
}

/* Wishlist and cart drawers inherit the same neutral catalog surface. */
.wishlist-drawer,
.cart-drawer-side,
.wishlist-drawer-head,
.cart-drawer-head,
.wishlist-drawer-body,
.cart-drawer-body,
.cart-drawer-footer {
    background: #f5f1ec !important;
    color: var(--km-ink) !important;
}

.wishlist-drawer-head,
.cart-drawer-head,
.cart-drawer-footer,
.cart-drawer-item {
    border-color: var(--km-line) !important;
}

.wishlist-drawer-head span,
.cart-drawer-head span,
.wishlist-drawer-empty > span,
.cart-drawer-empty > span,
.cart-drawer-brand {
    color: var(--km-bronze) !important;
}

.wishlist-drawer-head h2,
.cart-drawer-head h2,
.wishlist-drawer-empty h3,
.cart-drawer-empty h3,
.cart-drawer-title,
.cart-drawer-total strong {
    color: var(--km-ink) !important;
}

.wishlist-drawer-empty p,
.cart-drawer-empty p,
.cart-drawer-option-line,
.cart-drawer-total span {
    color: #746a63 !important;
}

.wishlist-drawer-empty .btn,
.cart-drawer-empty .btn,
.cart-drawer-summary .btn,
.cart-drawer-footer .btn {
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    color: #fff !important;
    border-radius: 999px !important;
    transform: none !important;
}

.wishlist-drawer-empty .btn:hover,
.cart-drawer-empty .btn:hover,
.cart-drawer-summary .btn:hover,
.cart-drawer-footer .btn:hover {
    background: var(--km-bronze-dark) !important;
    border-color: var(--km-bronze-dark) !important;
    transform: none !important;
}

.wishlist-drawer-overlay,
.cart-drawer-overlay {
    background: rgba(41, 37, 34, .34) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.wishlist-drawer .product-card,
.cart-drawer-item,
.cart-drawer-img {
    background: #fbf9f6 !important;
}

/* Compact shared hero for Catalog, New, Discounts and Brands. */
body[data-route="catalog"] .catalog-hero,
body[data-route="new"] .catalog-hero,
body[data-route="discounts"] .catalog-hero,
body[data-route="brands"] .brands-hero {
    padding: 22px 0 18px !important;
    min-height: 0 !important;
}

body[data-route="catalog"] .catalog-hero .breadcrumbs,
body[data-route="new"] .catalog-hero .breadcrumbs,
body[data-route="discounts"] .catalog-hero .breadcrumbs,
body[data-route="brands"] .brands-hero .breadcrumbs {
    margin-bottom: 10px !important;
    font-size: 12px !important;
}

.catalog-eyebrow {
    margin-bottom: 7px !important;
    font-size: 9px !important;
}

body[data-route="catalog"] .page-title,
body[data-route="new"] .page-title,
body[data-route="discounts"] .page-title,
body[data-route="brands"] .page-title {
    font-size: clamp(42px, 4.6vw, 62px) !important;
    margin-bottom: 8px !important;
}

.catalog-top,
.catalog-top-final {
    align-items: center !important;
    margin-bottom: 0 !important;
}

.catalog-top-actions {
    padding-top: 0 !important;
}

.catalog-top-actions::after {
    top: 19px !important;
}

.catalog-sort,
#sort.input {
    height: 42px !important;
    line-height: 42px !important;
}

.brands-head-clean {
    align-items: center !important;
}

.brands-letters-clean {
    padding-top: 12px !important;
    gap: 5px !important;
}

.brands-letters-clean a {
    min-width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
}

/* Compact filter rhythm, especially Collections: New / Discounts / Bestsellers. */
.catalog-filter-panel,
.filters {
    padding: 18px !important;
    border-radius: 15px !important;
}

.catalog-filter-head {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
}

.catalog-filter-head h2 {
    font-size: 25px !important;
}

.catalog-filter-block,
.filters .filter-block {
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.catalog-filter-block h3,
.filters .filter-block h3 {
    margin-bottom: 9px !important;
    font-size: 19px !important;
}

.catalog-category-groups,
.catalog-category-tree,
.catalog-brand-list {
    gap: 2px !important;
}

.catalog-filter-row,
.catalog-category-link,
.catalog-brand-link,
.catalog-category-child,
.catalog-subcategory-link {
    min-height: 29px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    font-size: 14px !important;
}

.catalog-price-filter {
    gap: 8px !important;
}

.catalog-price-input,
.catalog-filter-apply {
    height: 36px !important;
}

.catalog-chip-list {
    gap: 6px !important;
}

.catalog-chip-list a,
.catalog-chip-list-vertical a {
    min-height: 30px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
}

.catalog-section,
.brands-section {
    padding-top: 24px !important;
}

@media (max-width: 900px) {
    .logo {
        grid-template-rows: 25px 17px 8px !important;
        row-gap: 1px !important;
    }

    .logo-mark {
        width: 26px !important;
        height: 26px !important;
    }
}

@media (max-width: 720px) {
    body[data-route="catalog"] .catalog-hero,
    body[data-route="new"] .catalog-hero,
    body[data-route="discounts"] .catalog-hero,
    body[data-route="brands"] .brands-hero {
        padding: 18px 0 15px !important;
    }

    .catalog-top-actions::after {
        top: 17px !important;
    }

    .catalog-sort,
    #sort.input {
        height: 40px !important;
        line-height: 40px !important;
    }
}

/* =========================================================
   KAMIEL 2026 — site-wide neutral surface system
   ========================================================= */

:root {
    --bg: #f4f0eb;
    --bg-soft: #eee9e3;
    --bg-light: #fbf9f6;
    --border: #d8d0c8;
    --camel: #9a7b55;
    --camel-dark: #71583c;
    --camel-soft: #d9cbb9;
}

html,
body,
.app-shell,
.main {
    background-color: #f4f0eb !important;
}

.main {
    background-image: none !important;
}

/* Every registered route receives the same base canvas. */
body[data-route="home"],
body[data-route="catalog"],
body[data-route="product"],
body[data-route="cart"],
body[data-route="checkout"],
body[data-route="payment"],
body[data-route="payment-result"],
body[data-route="brands"],
body[data-route="discounts"],
body[data-route="new"],
body[data-route="about"],
body[data-route="delivery"],
body[data-route="returns"],
body[data-route="contacts"],
body[data-route="terms"],
body[data-route="privacy"] {
    background-color: #f4f0eb !important;
}

.about-page,
.delivery-page,
.returns-page,
.privacy-page,
.offer-page,
.contacts-elegant-page,
.product-page,
.checkout-page,
.payment-page,
.payment-page-clean,
.payment-result-page,
.wishlist-section,
.wishlist-hero,
.page-hero,
.catalog-section,
.brands-section {
    background-color: #f4f0eb !important;
    background-image: none !important;
}

/* Shared information surfaces use paper white instead of legacy pink. */
.delivery-card,
.delivery-panel,
.delivery-note,
.offer-document,
.offer-side,
.returns-card,
.returns-note,
.privacy-card,
.privacy-note,
.contacts-elegant-card,
.contacts-elegant-main,
.contacts-elegant-side,
.legal,
.legal-seller-card,
.checkout-form,
.checkout-summary,
.checkout-block,
.payment-box,
.payment-box-clean,
.payment-result-card,
.liqpay-checkout-box,
.liqpay-checkout-box-clean,
.pickup-box,
.empty,
.notice {
    background-color: #fbf9f6 !important;
    border-color: #d8d0c8 !important;
}

.delivery-info,
.returns-info,
.privacy-info,
.contacts-elegant-details,
.checkout-note,
.checkout-legal-note,
.payment-legal-links {
    color: #6f655e !important;
}

/* About keeps its exact content and photography; only the canvas changes. */
.about-page,
.about-container,
.about-row,
.about-text {
    background-color: transparent !important;
}

.about-page {
    background-color: #f4f0eb !important;
}

/* Footer is deliberately one tone darker, without a colored gap above it. */
.site-footer {
    margin-top: 0 !important;
    background-color: #e9e4de !important;
    border-top-color: #d8d0c8 !important;
}

/* ---------- Final contrast and spacing pass ---------- */
/* The home header remains legible over the hero until the later JS threshold. */
body[data-route="home"] .site-header:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(24, 19, 16, .36) 0%, rgba(24, 19, 16, .10) 72%, transparent 100%) !important;
    border-bottom-color: rgba(255, 255, 255, .18) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body[data-route="home"] .site-header:not(.is-scrolled) .header-nav a,
body[data-route="home"] .site-header:not(.is-scrolled) .catalog-trigger,
body[data-route="home"] .site-header:not(.is-scrolled) .logo-word,
body[data-route="home"] .site-header:not(.is-scrolled) .header-icon-btn,
body[data-route="home"] .site-header:not(.is-scrolled) .burger {
    color: #fffaf4 !important;
}

body[data-route="home"] .site-header.is-scrolled {
    background: rgba(244, 240, 235, .95) !important;
    border-bottom-color: var(--km-line) !important;
    box-shadow: 0 10px 34px rgba(40, 31, 25, .09) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
    backdrop-filter: blur(18px) saturate(125%) !important;
}

body[data-route="home"] .site-header.is-scrolled .header-nav a,
body[data-route="home"] .site-header.is-scrolled .catalog-trigger,
body[data-route="home"] .site-header.is-scrolled .logo-word,
body[data-route="home"] .site-header.is-scrolled .header-icon-btn,
body[data-route="home"] .site-header.is-scrolled .burger {
    color: var(--km-ink) !important;
}

/* Delivery: restore dark readable copy on the neutral information card. */
.delivery-note {
    background: #ece4da !important;
    border: 1px solid #d2c4b5 !important;
    border-radius: 16px !important;
    color: var(--km-ink) !important;
    box-shadow: 0 16px 42px rgba(47, 39, 34, .07) !important;
}

.delivery-note h2,
.delivery-note h3 {
    color: var(--km-ink) !important;
}

.delivery-note p,
.delivery-note li {
    color: #655c55 !important;
}

.delivery-note .btn {
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    color: #fffaf4 !important;
}

.delivery-note .btn:hover {
    background: var(--km-bronze-dark) !important;
    border-color: var(--km-bronze-dark) !important;
}

/* Privacy: a calmer side card and clearly separated actions. */
.privacy-note {
    background: #eee7df !important;
    border: 1px solid #d3c7bc !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 16px 42px rgba(47, 39, 34, .07) !important;
}

.privacy-note h3 {
    color: var(--km-ink) !important;
}

.privacy-note p,
.privacy-note .privacy-email {
    color: #655c55 !important;
}

.privacy-note-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 22px !important;
}

.privacy-note-links .btn {
    width: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 11px 20px !important;
    border-radius: 999px !important;
}

@media (max-width: 560px) {
    .privacy-note {
        padding: 24px !important;
    }

    .privacy-note-links {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .privacy-note-links .btn {
        width: 100% !important;
    }
}

/* ---------- Payment, privacy and catalog-filter refinement ---------- */
.returns-info-main,
.privacy-info-main {
    background: linear-gradient(145deg, #f8f5f1 0%, #eee7df 100%) !important;
    border: 1px solid #d3c7bc !important;
    border-radius: 18px !important;
    padding: clamp(28px, 3vw, 40px) !important;
    box-shadow: 0 18px 48px rgba(47, 39, 34, .065) !important;
}

.returns-info-main > h2,
.privacy-info-main > h2 {
    color: var(--km-ink) !important;
    letter-spacing: -.015em;
}

.returns-block,
.privacy-block {
    border-top-color: rgba(154, 123, 85, .24) !important;
}

.returns-block h3,
.privacy-block h3 {
    color: var(--km-ink) !important;
}

.returns-block p,
.privacy-block p {
    color: #655c55 !important;
}

/* Keep the filter visually light and remove an empty category section. */
.catalog-filter-panel,
.filters {
    background: rgba(248, 245, 241, .94) !important;
    border-color: #d8d0c8 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: 0 14px 38px rgba(47, 39, 34, .055) !important;
}

.catalog-filter-head {
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
}

.catalog-filter-head h2 {
    font-size: 23px !important;
}

.catalog-filter-head a {
    font-size: 12px !important;
}

.catalog-filter-block,
.filters .filter-block {
    padding-bottom: 13px !important;
    margin-bottom: 13px !important;
}

.catalog-filter-block:has(.catalog-limited-list:not(:has(*))) {
    display: none !important;
}

.catalog-price-input {
    height: 36px !important;
    border-color: #d3c7bc !important;
    border-radius: 10px !important;
    background: #fbf9f6 !important;
}

.catalog-filter-apply {
    height: 36px !important;
    font-size: 13px !important;
}

.catalog-chip-list a,
.catalog-chip-list-vertical a {
    border-color: #d3c7bc !important;
    background: rgba(251, 249, 246, .78) !important;
}

@media (min-width: 901px) {
    .catalog-layout-final,
    .catalog-layout {
        grid-template-columns: 238px minmax(0, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 700px) {
    .returns-info-main,
    .privacy-info-main {
        border-radius: 14px !important;
        padding: 24px 20px !important;
    }
}

/* ---------- Balanced contact information panel ---------- */
.contacts-elegant-side {
    grid-template-columns: minmax(180px, .72fr) minmax(300px, 1.35fr) minmax(270px, 1fr) !important;
    grid-template-areas:
        "brand copy details"
        "brand copy route" !important;
    align-items: center !important;
    min-height: 210px;
    padding: 28px 32px !important;
    column-gap: clamp(26px, 3vw, 48px) !important;
    row-gap: 12px !important;
}

.contacts-elegant-brand {
    grid-area: brand;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(24px, 3vw, 42px);
    border-right: 1px solid rgba(154, 123, 85, .24);
}

.contacts-elegant-brand .contacts-elegant-side-label {
    margin: 0 0 12px !important;
}

.contacts-elegant-brand h2 {
    margin: 0 !important;
    font-size: clamp(34px, 3.2vw, 46px) !important;
}

.contacts-elegant-side > p {
    grid-area: copy;
    align-self: center !important;
    max-width: 520px !important;
    margin: 0 !important;
    color: #5f5650 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
}

.contacts-elegant-details {
    align-self: center;
    gap: 11px !important;
    padding-left: 26px !important;
}

.contacts-elegant-route {
    min-height: 44px !important;
    margin-top: 2px !important;
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    color: #fffaf4 !important;
}

.contacts-elegant-route:hover {
    background: var(--km-bronze-dark) !important;
    border-color: var(--km-bronze-dark) !important;
}

@media (max-width: 920px) {
    .contacts-elegant-side {
        grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr) !important;
        grid-template-areas:
            "brand copy"
            "details details"
            "route route" !important;
    }

    .contacts-elegant-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 12px !important;
        padding: 18px 0 0 !important;
        border-top: 1px solid rgba(154, 123, 85, .24) !important;
        border-left: 0 !important;
    }
}

@media (max-width: 620px) {
    .contacts-elegant-side {
        grid-template-columns: 1fr !important;
        grid-template-areas: "brand" "copy" "details" "route" !important;
        min-height: 0;
    }

    .contacts-elegant-brand {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(154, 123, 85, .24);
    }

    .contacts-elegant-details {
        grid-template-columns: 1fr;
    }
}

/* ---------- Stable pointer path from Catalog to mega-menu ---------- */
@media (min-width: 901px) {
    .mega-wrap {
        top: calc(var(--header-height) - 6px) !important;
        padding-top: 48px !important;
    }
}

/* ---------- Readable premium mobile menu ---------- */
@media (max-width: 900px) {
    .drawer-overlay[data-menu-overlay] {
        z-index: 1090 !important;
        background: rgba(35, 29, 25, .46) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        backdrop-filter: blur(6px) !important;
    }

    .menu-drawer {
        z-index: 1100 !important;
        width: min(360px, 88vw) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background:
            radial-gradient(circle at 8% 4%, rgba(202, 168, 116, .18), transparent 34%),
            linear-gradient(160deg, #554b44 0%, #433b36 48%, #342f2b 100%) !important;
        border-right: 1px solid rgba(224, 199, 158, .34) !important;
        box-shadow: 22px 0 58px rgba(28, 22, 19, .24) !important;
        color: #fffaf4 !important;
    }

    .menu-drawer .drawer-head {
        min-height: 82px !important;
        padding: 20px 20px 17px !important;
        border-bottom: 1px solid rgba(255, 250, 244, .18) !important;
        background: rgba(255, 250, 244, .025) !important;
    }

    .menu-drawer .drawer-head strong {
        color: #fffaf4 !important;
        font-size: 24px !important;
        font-weight: 400 !important;
        letter-spacing: .24em !important;
        transform: translateX(.12em);
    }

    .menu-close {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        color: #fffaf4 !important;
        font-size: 27px !important;
        transition: background-color .16s ease, color .16s ease !important;
    }

    .menu-close:hover,
    .menu-close:active {
        background: rgba(255, 250, 244, .10) !important;
        color: #d4b57e !important;
    }

    .menu-drawer .drawer-body {
        padding: 22px 18px max(28px, env(safe-area-inset-bottom)) !important;
        background: transparent !important;
        overflow-y: auto !important;
    }

    .mobile-menu {
        gap: 8px !important;
    }

    .mobile-menu a {
        position: relative;
        min-height: 54px !important;
        padding: 14px 42px 14px 16px !important;
        border: 1px solid rgba(255, 250, 244, .24) !important;
        border-radius: 12px !important;
        background: linear-gradient(110deg, rgba(255, 250, 244, .085), rgba(255, 250, 244, .035)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
        color: #fffaf4 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        text-decoration: none !important;
        transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
    }

    .mobile-menu a::after {
        content: "→";
        position: absolute;
        right: 16px;
        top: 50%;
        color: #ddbd87;
        font-family: var(--serif);
        font-size: 19px;
        line-height: 1;
        transform: translateY(-50%);
    }

    .mobile-menu a:hover,
    .mobile-menu a:active {
        background: rgba(212, 181, 126, .18) !important;
        border-color: rgba(226, 199, 154, .62) !important;
        color: #fffaf4 !important;
    }
}

/* ---------- Stable mobile wordmark ---------- */
@media (max-width: 900px) {
    .header-inner {
        width: calc(100% - 24px) !important;
        height: 68px !important;
        grid-template-columns: 112px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .header-nav {
        display: none !important;
    }

    .logo {
        grid-column: 1 !important;
        justify-self: start !important;
        width: 108px !important;
        min-width: 108px !important;
        height: 64px !important;
        grid-template-rows: 25px 17px !important;
        row-gap: 2px !important;
        overflow: visible !important;
    }

    .logo-mark {
        width: 25px !important;
        height: 25px !important;
    }

    .logo-word {
        font-size: 15px !important;
        letter-spacing: .25em !important;
        transform: none !important;
    }

    .logo small {
        display: none !important;
    }

    .header-actions {
        grid-column: 2 !important;
        justify-self: end !important;
        min-width: 0 !important;
    }
}

@media (max-width: 380px) {
    .header-inner {
        width: calc(100% - 16px) !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: 4px !important;
    }

    .logo {
        width: 94px !important;
        min-width: 94px !important;
    }

    .logo-word {
        font-size: 14px !important;
        letter-spacing: .20em !important;
    }
}

/* ---------- Compact adaptive catalog mega-menu ---------- */
@media (min-width: 901px) {
    .mega-wrap {
        width: min(340px, calc(100vw - 48px)) !important;
        min-width: 0 !important;
        padding-top: 42px;
        border: 1px solid #d3c7bc !important;
        border-radius: 0 0 16px 16px !important;
        background: rgba(248, 245, 241, .98) !important;
        box-shadow: 0 24px 64px rgba(38, 31, 27, .16) !important;
        overflow: hidden !important;
        transition: width .18s ease, box-shadow .18s ease !important;
    }

    .mega-wrap:has(.mega-col:nth-child(2)) {
        width: min(640px, calc(100vw - 48px)) !important;
    }

    .mega-wrap:has(.mega-col:nth-child(3)) {
        width: min(940px, calc(100vw - 48px)) !important;
    }

    .mega-wrap::before {
        content: "Каталог";
        position: absolute;
        top: 0;
        left: 18px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        color: var(--km-bronze-dark);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .20em;
        text-transform: uppercase;
    }

    .mega-body {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: min(430px, calc(100vh - 150px)) !important;
        border-top: 1px solid rgba(154, 123, 85, .18);
        background: transparent !important;
        overflow: hidden !important;
    }

    .mega-col {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: min(430px, calc(100vh - 150px)) !important;
        padding: 8px !important;
        background: transparent !important;
        border-right: 1px solid rgba(154, 123, 85, .18) !important;
        overflow-y: auto !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(154, 123, 85, .35) transparent;
    }

    .mega-col:last-child {
        border-right: 0 !important;
    }

    .mega-item {
        min-height: 40px !important;
        padding: 9px 12px !important;
        border-radius: 9px !important;
        font-size: 16px !important;
        color: var(--km-ink) !important;
        transition: background-color .15s ease, color .15s ease !important;
    }

    .mega-item:hover {
        background: rgba(154, 123, 85, .11) !important;
        color: var(--km-bronze-dark) !important;
    }

    .mega-item.active {
        background: var(--km-ink) !important;
        color: #fffaf4 !important;
    }

    .mega-arrow {
        font-family: var(--sans) !important;
        font-size: 17px !important;
        opacity: .68;
    }

    .mega-close {
        top: 7px !important;
        right: 9px !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        color: #766b63 !important;
        font-size: 20px !important;
        transition: background-color .15s ease, color .15s ease !important;
    }

    .mega-close:hover {
        background: rgba(154, 123, 85, .12) !important;
        color: var(--km-ink) !important;
    }
}

/* ---------- Contacts map and home carousel controls ---------- */
.contacts-elegant-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.contacts-elegant-map {
    width: 100% !important;
    height: clamp(420px, 42vw, 560px) !important;
    border: 1px solid #d3c7bc !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 48px rgba(47, 39, 34, .07) !important;
}

.contacts-elegant-side {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.35fr) minmax(260px, 1fr);
    grid-template-areas:
        "label copy details"
        "title copy details"
        "title copy route";
    align-items: start;
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: 8px;
    padding: 30px 34px !important;
    background: linear-gradient(135deg, #f8f5f1 0%, #eee7df 100%) !important;
    border: 1px solid #d3c7bc !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 38px rgba(47, 39, 34, .05) !important;
}

.contacts-elegant-side-label {
    grid-area: label;
    margin-bottom: 2px !important;
}

.contacts-elegant-side h2 {
    grid-area: title;
    margin: 0 !important;
}

.contacts-elegant-side > p {
    grid-area: copy;
    align-self: center;
    max-width: 440px;
}

.contacts-elegant-details {
    grid-area: details;
    margin: 0 !important;
    padding: 0 0 0 28px !important;
    border-top: 0 !important;
    border-left: 1px solid rgba(154, 123, 85, .26) !important;
}

.contacts-elegant-route {
    grid-area: route;
    width: 100%;
    margin: 8px 0 0 !important;
    border-radius: 999px !important;
}

.home-head-actions,
.home-arrows {
    min-height: 40px !important;
    height: 40px !important;
    align-items: center !important;
    gap: 16px !important;
}

.home-head-actions a,
.home-section-head > a {
    position: relative;
    height: 40px !important;
    align-items: center !important;
    border-bottom: 0 !important;
    line-height: 1 !important;
}

.home-head-actions a::after,
.home-section-head > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: currentColor;
}

.home-arrow {
    position: relative;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

.home-arrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.home-arrow[data-dir="-1"]::before {
    transform: rotate(-135deg) translate(-1px, 1px);
}

.home-arrow[data-dir="1"]::before {
    transform: rotate(45deg) translate(-1px, 1px);
}

@media (max-width: 820px) {
    .contacts-elegant-side {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "label details"
            "title details"
            "copy details"
            "route route";
    }
}

@media (max-width: 620px) {
    .contacts-elegant-map {
        height: 360px !important;
        border-radius: 14px !important;
    }

    .contacts-elegant-side {
        grid-template-columns: 1fr;
        grid-template-areas: "label" "title" "copy" "details" "route";
        padding: 24px 20px !important;
        border-radius: 14px !important;
    }

    .contacts-elegant-details {
        margin-top: 12px !important;
        padding: 18px 0 0 !important;
        border-top: 1px solid rgba(154, 123, 85, .26) !important;
        border-left: 0 !important;
    }

    .home-head-actions,
    .home-arrows {
        gap: 8px !important;
    }

    .home-arrow {
        width: 34px !important;
        height: 40px !important;
        min-width: 34px !important;
    }
}

/* ---------- Delivery steps and privacy contact card ---------- */
.delivery-info-main {
    background: linear-gradient(145deg, #f8f5f1 0%, #e9e1d7 100%) !important;
    border: 1px solid #d1c3b5 !important;
    border-radius: 18px !important;
    padding: clamp(26px, 3vw, 38px) !important;
    box-shadow: 0 18px 48px rgba(47, 39, 34, .065) !important;
}

.delivery-info-main h2 {
    margin-bottom: 24px !important;
    color: var(--km-ink) !important;
    font-size: clamp(30px, 3vw, 40px) !important;
}

.delivery-steps {
    gap: 0 !important;
}

.delivery-step {
    position: relative;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 15px 0 !important;
    border-top: 1px solid rgba(154, 123, 85, .22);
}

.delivery-step:first-child {
    padding-top: 0 !important;
    border-top: 0;
}

.delivery-step:last-child {
    padding-bottom: 0 !important;
}

.delivery-step span {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid var(--km-bronze) !important;
    color: var(--km-bronze-dark) !important;
    font-family: var(--sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.delivery-step p {
    margin: 3px 0 0 !important;
    color: #514a45 !important;
    font-size: 15px !important;
    line-height: 1.52 !important;
}

.privacy-note {
    background: linear-gradient(155deg, #38322e 0%, #292522 100%) !important;
    border-color: rgba(154, 123, 85, .50) !important;
    box-shadow: 0 20px 52px rgba(35, 29, 25, .16) !important;
}

.privacy-note h3 {
    color: #fffaf4 !important;
}

.privacy-note p,
.privacy-note p b,
.privacy-note .privacy-email {
    color: rgba(255, 250, 244, .78) !important;
}

.privacy-note .privacy-email {
    text-decoration-color: rgba(212, 181, 126, .72) !important;
}

.privacy-note-links .btn,
.privacy-note-links .btn.btn-primary {
    background: var(--km-bronze) !important;
    border-color: var(--km-bronze) !important;
    color: #fffaf4 !important;
}

.privacy-note-links .btn:not(.btn-primary) {
    background: transparent !important;
    border-color: rgba(255, 250, 244, .48) !important;
}

.privacy-note-links .btn:hover {
    background: #fffaf4 !important;
    border-color: #fffaf4 !important;
    color: var(--km-ink) !important;
}

@media (max-width: 700px) {
    .delivery-info-main {
        border-radius: 14px !important;
        padding: 24px 20px !important;
    }

    .delivery-step {
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .delivery-step span {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Final contact-panel layout (kept last to override legacy responsive rules). */
.contacts-elegant-side {
    grid-template-columns: minmax(180px, .72fr) minmax(300px, 1.35fr) minmax(270px, 1fr) !important;
    grid-template-areas: "brand copy details" "brand copy route" !important;
    align-items: center !important;
    min-height: 210px !important;
    padding: 28px 32px !important;
    column-gap: clamp(26px, 3vw, 48px) !important;
    row-gap: 12px !important;
}

.contacts-elegant-brand {
    grid-area: brand;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(24px, 3vw, 42px);
    border-right: 1px solid rgba(154, 123, 85, .24);
}

.contacts-elegant-brand .contacts-elegant-side-label { margin: 0 0 12px !important; }
.contacts-elegant-brand h2 { margin: 0 !important; font-size: clamp(34px, 3.2vw, 46px) !important; }

.contacts-elegant-side > p {
    grid-area: copy;
    align-self: center !important;
    max-width: 520px !important;
    margin: 0 !important;
    color: #5f5650 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
}

.contacts-elegant-details {
    grid-area: details;
    align-self: center;
    gap: 11px !important;
    margin: 0 !important;
    padding: 0 0 0 26px !important;
    border-top: 0 !important;
    border-left: 1px solid rgba(154, 123, 85, .24) !important;
}

.contacts-elegant-route {
    grid-area: route;
    width: 100%;
    min-height: 44px !important;
    margin: 2px 0 0 !important;
    background: var(--km-ink) !important;
    border-color: var(--km-ink) !important;
    color: #fffaf4 !important;
}

.contacts-elegant-route:hover {
    background: var(--km-bronze-dark) !important;
    border-color: var(--km-bronze-dark) !important;
}

@media (max-width: 920px) {
    .contacts-elegant-side {
        grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr) !important;
        grid-template-areas: "brand copy" "details details" "route route" !important;
    }

    .contacts-elegant-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 12px !important;
        padding: 18px 0 0 !important;
        border-top: 1px solid rgba(154, 123, 85, .24) !important;
        border-left: 0 !important;
    }
}

@media (max-width: 620px) {
    .contacts-elegant-side {
        grid-template-columns: 1fr !important;
        grid-template-areas: "brand" "copy" "details" "route" !important;
        min-height: 0 !important;
        padding: 24px 20px !important;
    }

    .contacts-elegant-brand {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(154, 123, 85, .24);
    }

    .contacts-elegant-details { grid-template-columns: 1fr; }
}

/* ---------- Working mobile catalog filters and visible burger ---------- */
.mobile-filter-overlay,
.mobile-filter-close {
    display: none;
}

@media (max-width: 900px) {
    body:not([data-route="home"]) .burger span,
    body[data-route="home"] .site-header.is-scrolled .burger span {
        background: var(--km-ink) !important;
    }

    body[data-route="home"] .site-header:not(.is-scrolled) .burger span {
        background: #fffaf4 !important;
    }

    .mobile-filter-overlay {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 1180;
        background: rgba(24, 19, 16, .52);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transition: opacity .22s ease, visibility .22s ease;
    }

    .mobile-filter-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .filters.catalog-filter-panel[data-filter-panel] {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 1190 !important;
        width: min(360px, 88vw) !important;
        max-width: 88vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 24px 18px max(28px, env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-right: 1px solid #d3c7bc !important;
        border-radius: 0 18px 18px 0 !important;
        background: #f8f5f1 !important;
        box-shadow: 22px 0 60px rgba(31, 25, 22, .22) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: translate3d(-104%, 0, 0) !important;
        visibility: hidden;
        pointer-events: none;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        transition: transform .25s ease, visibility .25s ease !important;
    }

    .filters.catalog-filter-panel[data-filter-panel].is-mobile-open {
        transform: translate3d(0, 0, 0) !important;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-filter-close {
        display: inline-flex !important;
        position: absolute;
        top: 13px;
        right: 12px;
        z-index: 2;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        background: rgba(154, 123, 85, .10);
        color: var(--km-ink);
        font-size: 25px;
        line-height: 1;
    }

    .filters.catalog-filter-panel .catalog-filter-head {
        padding-right: 42px !important;
    }

    body.catalog-filter-open {
        overflow: hidden !important;
        touch-action: none;
    }
}

/* ---------- Mobile filter polish + stable contacts layout ---------- */
.catalog-filter-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 901px) {
    [data-detached-filter] {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .filters.catalog-filter-panel[data-filter-panel] {
        width: min(360px, calc(100vw - 28px)) !important;
        max-width: calc(100vw - 28px) !important;
        padding: 0 18px max(24px, env(safe-area-inset-bottom)) !important;
        border-radius: 0 16px 16px 0 !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .filters.catalog-filter-panel .catalog-filter-head {
        position: sticky;
        top: 0;
        z-index: 4;
        min-height: 68px;
        margin: 0 -18px 10px !important;
        padding: max(10px, env(safe-area-inset-top)) 18px 10px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(248, 245, 241, .97) !important;
        border-bottom: 1px solid rgba(154, 123, 85, .22) !important;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .filters.catalog-filter-panel .catalog-filter-head h2 {
        margin: 0 !important;
        font-size: 25px !important;
        line-height: 1 !important;
    }

    .filters.catalog-filter-panel .catalog-filter-head a {
        font-size: 13px !important;
        text-underline-offset: 4px;
    }

    .mobile-filter-close {
        position: static !important;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px;
        background: #eee7df !important;
        border: 1px solid rgba(154, 123, 85, .16) !important;
        font-size: 22px !important;
    }

    .filters.catalog-filter-panel .catalog-filter-block {
        margin-bottom: 10px !important;
        padding: 13px 0 !important;
    }

    .filters.catalog-filter-panel .catalog-filter-block h3 {
        margin-bottom: 8px !important;
        font-size: 18px !important;
    }

    .filters.catalog-filter-panel .catalog-filter-row,
    .filters.catalog-filter-panel .catalog-category-link,
    .filters.catalog-filter-panel .catalog-brand-link,
    .filters.catalog-filter-panel .catalog-subcategory-link {
        min-height: 34px !important;
        font-size: 14px !important;
    }

    .filters.catalog-filter-panel .catalog-price-input,
    .filters.catalog-filter-panel .catalog-filter-apply {
        height: 42px !important;
    }

    .filters.catalog-filter-panel .catalog-chip-list-vertical a {
        min-height: 40px !important;
        padding: 8px 12px !important;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 921px) {
    .contacts-elegant-side {
        display: grid !important;
        grid-template-columns: minmax(190px, .72fr) minmax(300px, 1.35fr) minmax(270px, 1fr) !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: none !important;
    }

    .contacts-elegant-brand {
        position: static !important;
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: stretch !important;
        transform: none !important;
    }

    .contacts-elegant-brand .contacts-elegant-side-label,
    .contacts-elegant-brand h2 {
        position: static !important;
        transform: none !important;
    }

    .contacts-elegant-brand h2 {
        white-space: nowrap;
        letter-spacing: .12em !important;
    }

    .contacts-elegant-side > p {
        grid-column: 2 !important;
        grid-row: 1 / 3 !important;
    }

    .contacts-elegant-details {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    .contacts-elegant-route {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }
}
