/* ═══════════════════════════════════════════════════════════════
   THEME: De'Longhi Coffee Catalog — единый стиль всех страниц.
   Концепция: итальянский espresso-дизайн. Тёмная «обжаренная» шапка и
   подвал, тёплый слоновый фон, белые карточки, золотистая «крема» как
   деталь, фирменный красный — только для действий (кнопки, цена, активные
   состояния). Токены совместимы с catalog.css / blog.css.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --ink: #17120f; --night: #17120f; --roast: #241c17; --roast-2: #33281f;
    --crema: #c9a063; --crema-soft: #efe3cf;
    --brand: #c8102e; --brand-deep: #a60d26; --rating: #e0a000; --sky: #d9b987;
    --paper: #fbf8f4; --tint: #f3ece2; --line: #e7ddd0; --shade: #efe7db;
    --c-bg: var(--paper); --c-bg-soft: var(--tint); --c-bg-card: #fff;
    --c-border: var(--line); --c-border-soft: #eee6da;
    --c-accent: var(--brand); --c-accent-hover: var(--brand-deep); --c-accent-soft: #fbe9ec;
    --c-text: var(--ink); --c-text-2: #6a5d52; --c-text-3: #9a8c7e; --c-price: var(--ink);
    --c-badge-gaming: var(--tint); --c-badge-text: var(--brand);
    --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
    --shadow-sm: 0 1px 2px rgba(23,18,15,.06);
    --shadow-md: 0 10px 24px -14px rgba(23,18,15,.3);
    --shadow-lg: 0 28px 56px -24px rgba(23,18,15,.45);
    --shadow-card: 0 1px 2px rgba(23,18,15,.05), 0 12px 28px -16px rgba(23,18,15,.2);
    --shadow-card-hover: 0 1px 2px rgba(23,18,15,.06), 0 26px 46px -20px rgba(120,70,20,.38);
    --f-base: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font: var(--f-base);
}
body { margin: 0; background: var(--paper); font-family: var(--f-base); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-base); letter-spacing: -.03em; }

/* ═══ Внутренние страницы ═════════════════════════════════════ */

/* Хлебные крошки, заголовки страниц */
.breadcrumbs, .catalog-breadcrumbs { font-size: .875rem; color: var(--c-text-2); }
.breadcrumbs a, .catalog-breadcrumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover, .catalog-breadcrumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.catalog-title, .blog-archive-title, .site-page-title, .compare-tool-title, .comparison-title { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.product-title, .blog-post-title { font-weight: 800; font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.12; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.catalog-desc, .blog-archive-desc, .comparison-excerpt { color: var(--c-text-2); font-size: 1.0625rem; line-height: 1.6; }
.product-section-title, .product-specs-title, .comparison-table-heading, .blog-related-title { font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -.035em; color: var(--ink); }

/* Кнопки: основное действие, второстепенное */
.catalog-load-more-btn, .product-price-cta, .error-404-btn--primary, .reviews-form-submit, .blog-comment-submit, .comment-form .submit, .site-search--page .site-search-submit { background: var(--brand); color: #fff; border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 24px -12px rgba(200,16,46,.5); transition: background .15s, transform .15s, box-shadow .15s; }
.catalog-load-more-btn:hover, .product-price-cta:hover, .error-404-btn--primary:hover, .reviews-form-submit:hover, .blog-comment-submit:hover, .comment-form .submit:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(74,93,245,.8); }
.error-404-btn, .blog-post-share-btn { background: #fff; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.error-404-btn:hover, .blog-post-share-btn:hover:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Поля ввода */
input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=hidden],[type=file]), textarea, select { font-family: var(--f-base); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=hidden],[type=file]):focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,16,46,.16); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* Каталог: фильтр, тулбар, пагинация */
.catalog-header { margin-bottom: var(--sp-6); }
.catalog-toolbar { color: var(--c-text-2); }
.catalog-count strong { color: var(--ink); }
.catalog-pagination-link, .blog-pagination .page-numbers { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.catalog-pagination-link:hover, .blog-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.catalog-pagination-link.is-current, .blog-pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.catalog-no-results, .blog-archive-empty { color: var(--c-text-2); }

/* Товар */
.price-amount { font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.product-stock-badge, .product-badge, .catalog-card-badge { border-radius: 999px; font-weight: 700; }
.product-specs-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.product-specs-table .spec-row:nth-child(even) { background: #fafbff; }
.spec-name { color: var(--c-text-2); }
.spec-val { color: var(--ink); font-weight: 600; }
.comparison-link { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.comparison-link:hover { border-color: #e2cfa8; box-shadow: var(--shadow-card-hover); }
.product-reviews-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.reviews-tab { border-radius: 999px; font-weight: 700; color: var(--c-text-2); }
.reviews-tab:hover { color: var(--brand); }
.reviews-tab.is-active, .reviews-tab[aria-selected="true"] { background: var(--brand); color: #fff; }

/* Сравнение */
.comparison-hero-duo { background: radial-gradient(75% 75% at 50% 40%, #fff, var(--tint)); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.comparison-table-wrap, .compare-table-scroll { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.comparison-table th { background: var(--tint); color: var(--ink); font-weight: 700; }
.comparison-table td, .comparison-table th { border-color: var(--c-border-soft); }
.comp-spec-name { color: var(--c-text-2); font-weight: 600; }
.comp-spec-val { color: var(--ink); }
.comp-price-link { color: var(--brand); font-weight: 700; }
.comp-mobile-head-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }

/* Блог и текстовые страницы */
.blog-category-pill { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.blog-category-pill:hover { border-color: var(--brand); color: var(--brand); }
.blog-category-pill.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.blog-post-category { display: inline-flex; padding: 6px 12px; background: var(--tint); color: var(--brand); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.blog-post-meta, .blog-post-updated { color: var(--c-text-2); }
.blog-post-thumbnail img, .site-page-thumbnail img { border-radius: var(--r-xl); }
.blog-post-toc, .blog-post-author-box, .blog-sidebar-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.blog-post-toc-title, .blog-post-author-box-name { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.blog-post-tag { background: var(--tint); color: var(--brand); border: 0; border-radius: 999px; font-weight: 600; text-decoration: none; }
.blog-post-tag:hover { background: var(--brand); color: #fff; }
.blog-post-adjacent-link { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.blog-post-adjacent-link:hover { border-color: #e2cfa8; box-shadow: var(--shadow-card-hover); }
.blog-post-adjacent-label { color: var(--c-text-2); }
.blog-post-adjacent-title { color: var(--ink); font-weight: 700; }
.comment-respond, .comment-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.entry-content, .page-content, .comparison-content { color: var(--ink); line-height: 1.7; font-size: 1.0625rem; }
.entry-content h2, .entry-content h3, .entry-content h4, .page-content h2, .page-content h3, .comparison-content h2, .comparison-content h3 { font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.entry-content a, .page-content a, .comparison-content a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.entry-content img, .page-content img { border-radius: var(--r-lg); }
.entry-content blockquote, .page-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--c-text-2); }
.entry-content table, .page-content table { background: #fff; border-radius: var(--r-md); }
.entry-content th, .page-content th { background: var(--tint); }

/* 404 */
.error-404-code { background: linear-gradient(180deg, var(--brand), var(--night)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -.06em; }
.error-404-title { font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.error-404-desc { color: var(--c-text-2); }

/* ── Архив таксономии: шапка, сетка по 10, постраничная навигация ── */
.catalog-taxonomy-page .catalog-header { padding-block: 8px 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.catalog-taxonomy-page .catalog-desc { max-width: 70ch; margin: 12px 0 0; }
.catalog-taxonomy-page .catalog-toolbar { display: flex; align-items: center; margin-bottom: 20px; }
.catalog-taxonomy-page .catalog-count { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; background: var(--tint); border-radius: 999px; font-size: .875rem; font-weight: 500; }
.catalog-taxonomy-page .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; min-height: 0; }
.catalog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.catalog-pager-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: 600 .9375rem/1 var(--font); text-decoration: none; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
a.catalog-pager-link:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 6px 16px -8px rgba(200,16,46,.35); }
.catalog-pager-link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(200,16,46,.5); }
.catalog-pager-link--nav { padding: 0 18px; }
.catalog-pager-gap { min-width: 24px; text-align: center; color: var(--c-text-3); }
@media (max-width: 560px) { .catalog-pager-text { display: none; } .catalog-pager-link--nav { padding: 0; width: 44px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── Кнопки ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 700 1rem/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 14px 28px -14px rgba(200,16,46,.7); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--crema); }

/* ── Шапка: тёмная, тонкая «крема»-линия ───────────────────── */
.site-header { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--roast-2); position: sticky; top: 0; z-index: 50; }
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--crema) 50%, transparent); opacity: .5; }
.site-header-inner { height: 72px; }
.site-logo { gap: 11px; text-decoration: none; }
.site-logo-mark svg { width: 34px; height: 34px; display: block; }
.site-logo-text { display: flex; flex-direction: column; gap: 3px; font: 800 1.3rem/1 var(--font); letter-spacing: -.03em; color: #fff; }
.site-logo-text-light { font: 600 .6875rem/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--crema); }
.site-nav-link { padding: 10px 16px; border-radius: 999px; color: rgba(255,255,255,.72); font: 600 .9375rem/1 var(--font); }
.site-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav-item.is-active .site-nav-link { background: var(--crema); color: var(--ink); font-weight: 700; }
.site-header .site-search-input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; font-family: var(--font); }
.site-header .site-search-input::placeholder { color: rgba(255,255,255,.5); }
.site-header .site-search-input:focus { background: rgba(255,255,255,.12); border-color: var(--crema); box-shadow: none; }
.site-search-submit { color: rgba(255,255,255,.75); }
.lang-switcher-list { background: rgba(255,255,255,.08); }
.lang-switcher-link { color: rgba(255,255,255,.72); }
.lang-switcher-item.is-current .lang-switcher-link { background: #fff; color: var(--ink); }
.burger-line { height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
@media (max-width: 768px) {
    .site-header-inner { height: 64px; }
    .site-nav { top: 100%; padding: 12px 16px 20px; background: var(--ink); border-bottom: 0; box-shadow: 0 24px 40px -12px rgba(23,18,15,.6); }
    .site-nav-link { padding: 14px; font-size: 1rem; }
    .site-search--mobile { border-top-color: rgba(255,255,255,.12); }
}

/* ── Поля ввода ────────────────────────────────────────────── */
input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=hidden],[type=file]), textarea, select { font-family: var(--f-base); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=hidden],[type=file]):focus, textarea:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,16,46,.14); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* ── Сетка и карточки каталога ─────────────────────────────── */
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; min-height: 0; }
.catalog-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.catalog-card:hover { transform: translateY(-4px); border-color: var(--crema-soft); box-shadow: var(--shadow-card-hover); }
.catalog-card-img-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 22px; background: radial-gradient(70% 70% at 50% 42%, #fff 0%, var(--tint) 100%); border-bottom: 1px solid var(--line); }
.catalog-card-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.catalog-card:hover .catalog-card-img { transform: scale(1.05); }
.catalog-card-img-placeholder { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--shade); }
.catalog-card-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; background: var(--ink); color: var(--crema-soft); border-radius: 999px; font: 700 .6875rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.catalog-card-badge--stock { top: auto; bottom: 14px; background: #fff; color: var(--c-text-2); border: 1px solid var(--line); }
.catalog-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.catalog-card-brand { margin: 0 0 6px; color: var(--crema); font: 700 .6875rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.catalog-card-title { margin: 0; font: 700 1.0625rem/1.3 var(--font); letter-spacing: -.02em; color: var(--ink); }
.catalog-card-title-link { color: inherit; text-decoration: none; }
.catalog-card-title-link::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* вся карточка кликабельна */
.catalog-card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.catalog-card-spec { padding: 5px 10px; background: var(--tint); color: var(--c-text-2); border-radius: 999px; font: 600 .75rem/1 var(--font); }
.catalog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border: 0; }
.catalog-card-price { margin: 0; color: var(--c-text-2); font-size: .8125rem; line-height: 1; }
.catalog-card-price .price-value { display: block; margin-top: 4px; color: var(--ink); font: 800 1.375rem/1 var(--font); letter-spacing: -.04em; }
.catalog-card-price .price-from, .catalog-card-price .price-cur { font-weight: 600; }
.catalog-card-price .price-cur { margin-left: 2px; }
.catalog-compare-btn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.catalog-compare-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-compare-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.catalog-compare-btn[aria-pressed="true"] svg { transform: rotate(45deg); }
.catalog-compare-btn--wide { width: auto; height: 54px; padding: 0 24px; border-radius: 999px; font: 700 .9375rem/1 var(--font); }
.catalog-card--out-of-stock .catalog-card-img { opacity: .55; filter: grayscale(.6); }
@media (max-width: 1180px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .catalog-card-body { padding: 14px; } .catalog-card-img-wrap { padding: 14px; } .catalog-card-title { font-size: .9375rem; } .catalog-card-price .price-value { font-size: 1.125rem; } }
@media (max-width: 380px)  { .catalog-grid { grid-template-columns: 1fr; } }

.comparison-card, .blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.comparison-card:hover, .blog-card:hover { transform: translateY(-3px); border-color: var(--crema-soft); box-shadow: var(--shadow-card-hover); }
.blog-card-thumb, .comparison-card-duo { background: radial-gradient(75% 75% at 50% 40%, #fff, var(--tint)); border-bottom: 1px solid var(--line); }
.blog-card-category { color: var(--crema); font-weight: 700; letter-spacing: .1em; }
.comparison-card-title, .blog-card-title { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.comparison-card-duo-half:first-child { border-right: 1px solid var(--line); }
.comparison-card-duo-vs { background: var(--ink); color: var(--crema-soft); border: 0; font-weight: 800; }
.blog-card-excerpt, .comparison-card-excerpt { color: var(--c-text-2); }

/* ── Каталог: шапка, типы, панель фильтров ─────────────────── */
.catalog-page { padding-block: 8px 24px; }
.catalog-header { margin-bottom: 26px; }
.type-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.type-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: 700 .875rem/1 var(--font); text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.type-link span { color: var(--c-text-3); font-weight: 600; }
.type-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-link:hover span { color: var(--crema); }

.cf-wrap { margin-bottom: 22px; }
.cf-panel { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.cf-groups { display: flex; flex-wrap: wrap; gap: 18px 36px; }
.cf-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-legend { padding: 0; margin-bottom: 10px; color: var(--c-text-3); font: 700 .6875rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; font: 600 .875rem/1 var(--font); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.cf-chip:hover { border-color: var(--crema); }
.cf-chip-input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip-count { color: var(--c-text-3); font-weight: 600; font-size: .75rem; }
.cf-chip:has(.cf-chip-input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.cf-chip:has(.cf-chip-input:checked) .cf-chip-count { color: var(--crema); }
.cf-chip:has(.cf-chip-input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.cf-price { display: flex; align-items: center; gap: 8px; }
.cf-price-field input { width: 118px; height: 40px; padding: 0 12px; font: 600 .875rem/1 var(--font); }
.cf-price-sep { color: var(--c-text-3); }
.cf-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cf-sort { display: inline-flex; align-items: center; gap: 10px; }
.cf-sort-label { color: var(--c-text-2); font: 600 .875rem/1 var(--font); }
.cf-sort-select { height: 40px; padding: 0 14px; font: 600 .875rem/1 var(--font); }
.cf-actions { display: flex; align-items: center; gap: 14px; }
.cf-reset { color: var(--c-text-2); font: 600 .875rem/1 var(--font); text-underline-offset: 3px; }
.cf-reset:hover { color: var(--brand); }
.cf-apply { height: 42px; padding: 0 22px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; font: 700 .875rem/1 var(--font); cursor: pointer; }
.cf-apply:hover { background: var(--brand-deep); }
html.js .cf-apply { display: none; } /* с JS форма отправляется при выборе */
.cf-toggle { display: none; align-items: center; gap: 10px; width: 100%; height: 48px; margin-bottom: 14px; padding: 0 18px; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; font: 700 .9375rem/1 var(--font); cursor: pointer; }
.cf-toggle-badge { margin-left: auto; min-width: 24px; padding: 4px 8px; background: var(--brand); color: #fff; border-radius: 999px; font-size: .75rem; text-align: center; }
@media (max-width: 760px) {
    .cf-toggle { display: flex; }
    html.js .cf-wrap { display: none; }
    html.js .cf-wrap.is-open { display: block; }
    html.js .cf-apply { display: inline-block; }
    .cf-panel { padding: 18px; }
}
.catalog-count { margin: 0 0 14px; color: var(--c-text-2); font-size: .875rem; }
.catalog-count strong { color: var(--ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 999px; font: 600 .8125rem/1 var(--font); text-decoration: none; }
.filter-chip:hover { background: var(--brand); }
.filter-chip--reset { background: transparent; color: var(--c-text-2); border: 1.5px solid var(--line); }
.filter-chip--reset:hover { background: #fff; color: var(--brand); border-color: var(--brand); }

/* ── Страница товара ───────────────────────────────────────── */
.single-product { padding-block: 8px 24px; }
.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 8px; }
.product-gallery { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: clamp(20px, 4vw, 48px); background: radial-gradient(70% 70% at 50% 42%, #fff 0%, var(--tint) 100%); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-card); }
.product-main-img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-img-placeholder { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--shade); }
.product-gallery-badge { position: absolute; top: 20px; left: 20px; padding: 8px 14px; background: var(--ink); color: var(--crema-soft); border-radius: 999px; font: 700 .75rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.product-info { position: sticky; top: 96px; }
.product-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--crema); font: 700 .8125rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.product-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.product-title { margin: 0 0 14px; font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.product-rating-summary { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--c-text-2); font-size: .875rem; text-decoration: none; }
.product-rating-value { color: var(--ink); font-weight: 800; }
.catalog-stars .is-full, .catalog-stars .is-half { color: var(--rating); }
.product-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.product-fact { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.product-fact-value { display: block; font: 800 1.375rem/1.1 var(--font); letter-spacing: -.035em; color: var(--ink); }
.product-fact-label { display: block; margin-top: 6px; color: var(--c-text-3); font: 600 .75rem/1.2 var(--font); }
.product-milk { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 9px 14px; background: var(--crema-soft); color: #6b4b18; border-radius: 999px; font: 700 .875rem/1 var(--font); }
.product-buy { padding: 24px; background: var(--ink); color: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin: 0; color: rgba(255,255,255,.7); }
.price-from-label { font-size: .9375rem; font-weight: 600; }
.product-buy .price-amount { color: #fff; font: 800 clamp(2.25rem, 4vw, 3rem)/1 var(--font); letter-spacing: -.05em; }
.price-currency { color: var(--crema); font: 700 1.125rem/1 var(--font); }
.product-price--muted .price-amount { color: rgba(255,255,255,.45); }
.product-price-checked { margin: 8px 0 0; color: rgba(255,255,255,.5); font-size: .8125rem; }
.product-stock-badge { display: inline-block; margin: 0 0 10px; padding: 6px 12px; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; font: 700 .75rem/1 var(--font); }
.product-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.product-price-cta { display: inline-flex; flex: 1 1 240px; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; font: 800 1rem/1 var(--font); text-decoration: none; box-shadow: 0 16px 30px -14px rgba(200,16,46,.9); transition: background .16s, transform .16s; }
.product-price-cta:hover { background: #e0132f; color: #fff; transform: translateY(-2px); }
.product-buy .catalog-compare-btn--wide { flex: 0 0 auto; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.product-buy .catalog-compare-btn--wide:hover { background: rgba(255,255,255,.1); border-color: var(--crema); }
.product-buy .catalog-compare-btn[aria-pressed="true"] { background: var(--crema); color: var(--ink); border-color: var(--crema); }
.product-jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.product-jump-link, .product-jump-link-plain { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; background: transparent; color: var(--c-text-2); border: 1.5px solid var(--line); border-radius: 999px; font: 600 .8125rem/1 var(--font); text-decoration: none; transition: border-color .15s, color .15s; }
.product-jump-link:hover, .product-jump-link-plain:hover { border-color: var(--brand); color: var(--brand); }
.product-rating-summary.product-jump-link { padding: 0; border: 0; }
.product-content { max-width: 78ch; margin-top: clamp(32px, 5vw, 56px); line-height: 1.7; font-size: 1.0625rem; color: var(--ink); }
.product-content h2, .product-content h3 { font-weight: 800; letter-spacing: -.03em; }
.product-content a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.product-specs-section { margin-top: clamp(32px, 5vw, 56px); }
.product-specs-title { margin: 0 0 18px; font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -.035em; }
.product-specs-table { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.product-specs-table .spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--c-border-soft); }
.product-specs-table .spec-row:last-child { border-bottom: 0; }
.product-specs-table .spec-row:nth-child(even) { background: var(--paper); }
.spec-name { margin: 0; color: var(--c-text-2); font-weight: 600; }
.spec-val { margin: 0; text-align: right; color: var(--ink); font-weight: 700; }
.spec-tax-link { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(200,16,46,.35); }
.spec-tax-link:hover { border-bottom-color: var(--brand); }
.product-section-title, .similar-products-label, .comparison-table-heading, .blog-related-title { font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -.035em; color: var(--ink); }
.similar-products-section, .product-comparisons-section { margin-top: clamp(40px, 6vw, 72px); }
.similar-products-label { margin: 0 0 20px; }
.comparison-link { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.comparison-link:hover { border-color: var(--crema); box-shadow: var(--shadow-card-hover); }
.product-reviews-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.reviews-tab { border-radius: 999px; font-weight: 700; color: var(--c-text-2); }
.reviews-tab:hover { color: var(--brand); }
.reviews-tab.is-active, .reviews-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
    .product-top { grid-template-columns: 1fr; }
    .product-info { position: static; }
    .product-gallery { aspect-ratio: 4 / 3; border-radius: 24px; }
}
@media (max-width: 520px) { .product-buy { padding: 20px; border-radius: 24px; } .product-specs-table .spec-row { padding: 14px 16px; } }

/* Липкая панель покупки (мобильный) */
.buy-bar { position: fixed; inset: auto 0 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--roast-2); transform: translateY(110%); transition: transform .25s; }
.buy-bar.is-visible { transform: none; }
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; }
.buy-bar-price { margin: 0; color: rgba(255,255,255,.7); font-size: .8125rem; line-height: 1.1; }
.buy-bar-price strong { display: block; color: #fff; font: 800 1.25rem/1.1 var(--font); letter-spacing: -.03em; }
.buy-bar-btn { flex: 1; max-width: 260px; display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 18px; background: var(--brand); color: #fff; border-radius: 999px; font: 800 .9375rem/1 var(--font); text-decoration: none; }
@media (min-width: 901px) { .buy-bar { display: none; } }

/* ── Сравнение ─────────────────────────────────────────────── */
.comparison-hero-duo { background: radial-gradient(75% 75% at 50% 40%, #fff, var(--tint)); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.comparison-table-wrap, .compare-table-scroll { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.comparison-table th { background: var(--tint); color: var(--ink); font-weight: 700; }
.comparison-table td, .comparison-table th { border-color: var(--c-border-soft); }
.comp-spec-name { color: var(--c-text-2); font-weight: 600; }
.comp-spec-val { color: var(--ink); }
.comp-price-link { color: var(--brand); font-weight: 700; }
.comp-mobile-head-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.comparison-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); font-size: var(--f-size-xs); color: var(--c-text-3); }
.comparison-meta-author::after { content: '·'; margin-left: var(--sp-3); }
.compare-bar { background: var(--ink); color: #fff; border: 1px solid var(--roast-2); box-shadow: var(--shadow-lg); }
.compare-bar-link { background: var(--brand); color: #fff; border-radius: 999px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.price-card-btn { background: var(--brand); color: #fff; border-radius: 999px; font-weight: 800; }
.price-card-btn:hover { background: var(--brand-deep); color: #fff; }

/* ── Футер ─────────────────────────────────────────────────── */
.site-footer { margin-top: 80px; padding-block: 60px 32px; background: var(--ink); border-top: 0; color: #fff; }
.footer-logo { display: block; margin-bottom: 14px; color: #fff; font: 800 1.5rem/1 var(--font); letter-spacing: -.035em; text-decoration: none; }
.footer-desc { max-width: 38ch; color: rgba(255,255,255,.62); }
.footer-col-title { color: var(--crema); letter-spacing: .14em; }
.footer-nav-list a { color: rgba(255,255,255,.84); font-weight: 500; }
.footer-nav-list a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--crema); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer-copy { border-top-color: rgba(255,255,255,.12); }
.footer-copy p { color: rgba(255,255,255,.5); }
.footer-copy .footer-disclaimer { margin-top: 6px; font-size: .75rem; color: rgba(255,255,255,.38); }
.site-footer :focus-visible { outline-color: var(--crema); }

/* ── SEO-текст ─────────────────────────────────────────────── */
.catalog-seo-text-inner, .catalog-archive-text-inner { max-width: 860px; padding: clamp(24px, 4vw, 44px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); font-size: 1.0625rem; line-height: 1.65; }
.catalog-seo-text, .catalog-archive-text { margin-top: 48px; padding-block: 0 8px; background: none; border-top: 0; }
.catalog-seo-text-inner h2, .catalog-seo-text-inner h3, .catalog-archive-text-inner h2, .catalog-archive-text-inner h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.catalog-seo-text-inner a, .catalog-archive-text-inner a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════════
   v2: посилення дизайну — серифні заголовки, центровані шапки сторінок,
   менші H1, віджети Надавай, додаткові фільтри.
   ═══════════════════════════════════════════════════════════════ */
:root { --font-display: "Playfair Display", Georgia, "Times New Roman", serif; }

/* Заголовки сторінок: компактні, по центру, з золотим орнаментом */
.catalog-header, .comparison-archive-header, .blog-archive-header { text-align: center; max-width: 760px; margin-inline: auto; }
.catalog-title, .comparison-archive-title, .blog-archive-title, .blog-hub-title { font: 600 clamp(1.5rem, 2.8vw, 2.125rem)/1.15 var(--font-display); letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.catalog-title::after { content: ""; display: block; width: 90px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--crema), transparent); }
.catalog-desc { max-width: 60ch; margin: 12px auto 0; color: var(--c-text-2); font-size: 1rem; line-height: 1.55; }
.type-links { justify-content: center; }
.product-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.01em; line-height: 1.18; }
.product-specs-title, .product-section-title, .similar-products-label, .comparison-table-heading { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: -.005em; text-align: center; }
.similar-products-label::after, .product-specs-title::after, .product-section-title::after { content: ""; display: block; width: 90px; height: 2px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--crema), transparent); }
.product-content h2, .product-content h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; }
.catalog-card-title { font-size: 1rem; }

/* Додаткові фільтри */
.cf-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cf-more-summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--ink); font: 700 .875rem/1 var(--font); cursor: pointer; list-style: none; }
.cf-more-summary::-webkit-details-marker { display: none; }
.cf-more-summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.cf-more[open] .cf-more-summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cf-groups--more { margin-top: 14px; }
.cf-panel .cf-legend { display: block; }

/* Теги на сторінці товару */
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.product-tag { padding: 9px 14px; background: var(--crema-soft); color: #6b4b18; border-radius: 999px; font: 700 .8125rem/1 var(--font); }

/* Віджети Надавай: у тексті запису — рівно там, де шорткод */
.product-content .nadavi-widget-wrap { margin: clamp(22px, 3vw, 34px) 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
/* ─────────────────────────────────────────────────────────────
   НАДАВАЙ ВИДЖЕТ
   ───────────────────────────────────────────────────────────── */
.product-nadavi-section {
    margin-top: var(--sp-10);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--c-border-soft);
}

.nadavi-widget-wrap {
    min-height: 120px; /* CLS */
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* Порівняння — два віджети Надавай поруч */
.comparison-nadavi-section {
    margin-top: var(--sp-10);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--c-border-soft);
}

.comparison-nadavi-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.comparison-nadavi-col-label {
    font-size: var(--f-size-sm);
    font-weight: 600;
    color: var(--c-text-2);
    margin: 0 0 var(--sp-3);
}

@media (max-width: 640px) {
    .comparison-nadavi-duo {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
}



/* Кнопки-ghost поза героєм */
.btn--ghost { color: var(--ink); border-color: var(--line); }

/* Компактніша шапка */
.site-header-inner { height: 66px; }
