/*
 Theme Name:   Hitek Child
 Description:  Hitek Child Theme
 Author:       XTemos
 Author URI:   https://xtemos.com
 Template:     xts-hitek
 Version:      1.0.0
 Text Domain:  xts-theme
*/

/* 2026-05-04: kill native <summary> disclosure marker across the whole site.
   Every place that uses <details><summary> (FAQs, promo block, AI search overview,
   affiliate help) renders its own SVG chevron — the browser-default ▾ shows up
   ALONGSIDE that custom chevron, giving "podviynі stril′ochky". Apply globally
   so we never have to remember to add the snippet per-block again. */
summary {
	list-style: none;
}
summary::-webkit-details-marker {
	display: none;
}
summary::marker {
	content: "";
}

/* =================================================================
   BREADCRUMB - ПРОСТИЙ СТИЛЬ
   ================================================================= */
.single-product .xts-single-product-navs.col-md-12 {
    background: #fff !important;
    padding: 12px 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 1px solid #eee !important;
}
.single-product .xts-single-product-navs .row {
    align-items: center !important;
    margin: 0 !important;
}
.single-product .xts-single-product-navs .xts-breadcrumbs {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #767676 !important;
    line-height: 1.4 !important;
}
.single-product .xts-single-product-navs .xts-breadcrumbs a {
    color: #333 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}
.single-product .xts-single-product-navs .xts-breadcrumbs a:hover {
    color: #143795 !important;
    text-decoration: underline !important;
}
.single-product .xts-single-product-navs .xts-breadcrumbs .xts-delimiter {
    padding: 0 8px !important;
    color: #999 !important;
}
.single-product .xts-single-product-navs .xts-breadcrumbs .xts-delimiter:after {
    content: ">" !important;
}
.single-product .xts-single-product-navs .xts-single-product-nav {
    margin: 0 !important;
    display: none !important;
}
/* Прибираємо зайві відступи */
.single-product .xts-single-product > .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.single-product.logged-in .wcsatt-options-product-prompt .for-subscribe .ywcrbp_regular_price .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.125rem;
    color: #6b7280;
    text-decoration: line-through;
}
.single-product .has-subscription-plans .price-register-block .ywcrbp_your_price span {
    color: var(--amg-red, #ef4444);
}
/* Ховаємо стандартний WooCommerce <select> якщо є swatches-кнопки */
.single-product .variations td.value .xts-single-product-swatches ~ select,
.single-product .variations td.value .xts-single-product-swatches ~ .reset_variations {
    display: none !important;
}

/* Запобігаємо смиканню блоку варіацій при перемиканні */
.single-product .woocommerce-variation {
    min-height: 1px;
}
.single-product .woocommerce-variation .woocommerce-variation-description,
.single-product .woocommerce-variation .woocommerce-variation-price,
.single-product .woocommerce-variation .woocommerce-variation-availability {
    transition: opacity .15s ease;
}

/* Відсутні варіації: можна вибрати, але візуально позначені */
.xts-single-product-swatches .xts-variation-swatch[data-status="0"] {
    opacity: .5;
    cursor: pointer;
    /* pointer-events: none; — прибрано, щоб можна було вибирати */
    position: relative;
}
/* Перекреслення для відсутніх варіацій */
.xts-single-product-swatches .xts-variation-swatch[data-status="0"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-8deg);
    pointer-events: none;
}
/* Кнопка "Купити" залишається заблокованою для недоступних варіацій */
.single_add_to_cart_button.disabled.wc-variation-is-unavailable {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

/* =================================================================
   БЛОК НАЯВНОСТІ + КНОПКИ ЗБЕРЕГТИ/ПОРІВНЯТИ
   ================================================================= */

/* Робимо блок наявності флексом з кнопками */
.single-product .summary .woocommerce-variation-availability {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: none;
    margin-bottom: 12px;
}

/* Переміщуємо кнопки в блок наявності через CSS order */
.single-product .summary .xts-single-product-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Контейнер для наявності — relative */
.single-product .summary .woocommerce-variation-availability {
    position: relative;
    padding-right: 100px; /* Місце для кнопок */
}

/* Стиль кнопок */
.single-product .xts-single-product-actions .xts-action-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #6b7280 !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
}

.single-product .xts-single-product-actions .xts-action-btn:hover {
    border-color: #d1d5db !important;
    background: #f9fafb !important;
    color: #374151 !important;
}

/* Збільшуємо іконки */
.single-product .xts-single-product-actions .xts-action-btn svg,
.single-product .xts-single-product-actions .xts-action-btn i,
.single-product .xts-single-product-actions .xts-action-btn::before {
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

/* Приховуємо текст кнопок */
.single-product .xts-single-product-actions .xts-action-btn span {
    display: none !important;
}

/* Стиль тексту наявності */
.single-product .woocommerce-variation-availability .stock {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 500;
}

.single-product .woocommerce-variation-availability .in-stock {
    color: #16a34a !important;
}

.single-product .woocommerce-variation-availability .out-of-stock {
    color: #dc2626 !important;
}


/* =================================================================
   THANK YOU PAGE - MODERN UX DESIGN
   ================================================================= */

/* HERO SECTION */

.amigo-hero--error .amigo-hero__icon svg {
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.3));
}

/* BUTTONS */
.amigo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

/* DELIVERY DATE BOX */

.amigo-delivery-box__label {
    font-size: 13px;
    color: #555555;
    font-weight: 500;
}

/* TRACKING CTA */

/* ORDER CARD */

.amigo-order-card__total-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BADGES */

/* ORDER ITEMS */

.amigo-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.amigo-order-item:last-child {
    border-bottom: none;
}

.amigo-order-item__qty {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

.amigo-order-item__price {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* ORDER TOTALS */

/* PAYMENT METHOD */

.amigo-order-card__payment-label {
    font-size: 13px;
    color: #6b7280;
}

/* SHIPPING CARD */

.amigo-shipping-row__label {
    width: 140px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7280;
}

/* HIDE DEFAULT WOO ELEMENTS */

/* Keep customer details visible but styled */

/* ACTION BUTTONS */

/* Стилі для wcrm кнопки в новому дизайні */

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
    
    .amigo-order-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .amigo-order-item__qty,
    .amigo-order-item__price {
        font-size: 13px;
    }
    
    .amigo-shipping-row__label {
        width: 100%;
    }
}

/* =================================================================
   КНОПКА "КУПИТИ" - ХОВАЄМО QUANTITY ДО ДОДАВАННЯ В КОШИК
   woocommerce-variation-add-to-cart
   ================================================================= */

/* Контейнер кнопки */
.woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Quantity: завжди flex, але згорнутий поки не в кошику */
.woocommerce-variation-add-to-cart .quantity,
.single-product form.cart:not(.variations_form) > .quantity {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    border: 0 !important;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
}

/* Кнопка — базові стилі */
.woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product form.cart:not(.variations_form) > .single_add_to_cart_button {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
}
/* Variable product: кнопка заповнює контейнер add-to-cart */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1 1 auto;
    width: 100%;
}
/* Simple product: компактна кнопка */
.single-product form.cart:not(.variations_form) > .single_add_to_cart_button {
    flex: 0 0 auto;
    width: auto;
}

/* ===== РЕЖИМ "В КОШИКУ" — плавна поява quantity ===== */

.woocommerce-variation-add-to-cart.amg-in-cart .quantity,
.single-product form.cart.amg-in-cart:not(.variations_form) > .quantity {
    max-width: 120px;
    opacity: 1;
    height: auto;
    border: 1px solid rgba(119,119,119,.2) !important;
    padding: 0 !important;
    pointer-events: auto;
}

.woocommerce-variation-add-to-cart.amg-in-cart .quantity input,
.single-product form.cart.amg-in-cart:not(.variations_form) > .quantity input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

/* Кнопка звужується */
.woocommerce-variation-add-to-cart.amg-in-cart .single_add_to_cart_button,
.single-product form.cart.amg-in-cart:not(.variations_form) > .single_add_to_cart_button {
    flex: 1 1 auto;
    width: auto;
}

/* =================================================================
   BLOG POST STYLING
   Scoped to .single-post to avoid conflicts with product pages
   ================================================================= */

/* -----------------------------------------------------------------
   0. HIDE THEME TITLE & META — replaced by amg-blog-h1-meta.php
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   1. TYPOGRAPHY — body text
   ----------------------------------------------------------------- */
/* Force 680px centered content (like Chewy) */
.single-post .xts-single-post-boxed {
    max-width: 680px !important;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------------------------
   2. CONTENT WIDTH — title
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   3. HEADINGS — spacing, sizing, balance
   ----------------------------------------------------------------- */

/* H2 decorative accent bar */

/* -----------------------------------------------------------------
   4. CALLOUT BOXES — vet badge, summary, info, tip
   Override inline styles from blog content
   ----------------------------------------------------------------- */

/* Vet badge — green left border (medical/vet = green) */

/* "Головне" summary — green left border (div without a class, first child is h3 with green color) */

/* "Зверніть увагу" info — blue left border */

/* "Порада" tip — amber left border */

/* Product recommendations block — keep original Clerk styling */

/* -----------------------------------------------------------------
   5. TABLE OF CONTENTS — "Зміст"
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   6. RELATED POSTS — sidebar widget (clean up styling)
   Related posts live in off-canvas sidebar, keep as list
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   7. IMAGES — rounded, subtle shadow (exclude product widgets)
   ----------------------------------------------------------------- */

/* Hero figure (first figure = full-width magazine feel) */

/* -----------------------------------------------------------------
   8. BLOCKQUOTES
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   9. TAGS — enhance parent theme styling
   Parent theme already provides bordered tags with dot marker.
   We only add a subtle hover lift and brand-color accent.
   ----------------------------------------------------------------- */
.single-post .xts-tags-list a {
    transition: border-color 0.15s ease, color 0.15s ease;
}

.single-post .xts-tags-list a:hover {
    border-color: rgba(28, 73, 194, 0.5);
    color: #1A1A1A;
}

.single-post .xts-tags-list a:hover::before {
    background-color: #1c49c2;
}

/* -----------------------------------------------------------------
   10. LISTS — spacing
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   11. LINKS in content (exclude product widgets and callout boxes)
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   PRODUCT RECOMMENDATIONS (Clerk) — comprehensive reset
   Undo ALL blog typography that cascades into product cards.
   Uses revert to restore browser/theme defaults inside the widget.
   ----------------------------------------------------------------- */
.single-post .amg-clerk-recommendations {
    font-size: revert !important;
    line-height: revert !important;
    color: revert !important;
    background: transparent !important;
}

.single-post .amg-clerk-recommendations * {
    font-size: revert !important;
    line-height: revert !important;
}

.single-post .amg-clerk-recommendations img {
    border-radius: revert !important;
    box-shadow: none !important;
    margin-block: 0 !important;
}

.single-post .amg-clerk-recommendations a {
    color: revert !important;
    text-decoration: none !important;
    text-decoration-color: revert !important;
    text-underline-offset: revert !important;
}

.single-post .amg-clerk-recommendations a:hover {
    text-decoration: none !important;
}

.single-post .amg-clerk-recommendations p {
    margin-bottom: revert !important;
}

.single-post .amg-clerk-recommendations h2,
.single-post .amg-clerk-recommendations h3,
.single-post .amg-clerk-recommendations h4 {
    margin-top: revert !important;
    margin-bottom: revert !important;
    text-wrap: revert !important;
    color: revert !important;
}

.single-post .amg-clerk-recommendations h2::after {
    content: none !important;
}

.single-post .amg-clerk-recommendations ul,
.single-post .amg-clerk-recommendations ol {
    padding-left: revert !important;
    margin-bottom: revert !important;
}

.single-post .amg-clerk-recommendations li {
    margin-bottom: revert !important;
}

/* -----------------------------------------------------------------
   12. POST FOOTER — spacing
   ----------------------------------------------------------------- */

/* Accent dash on footer separator */

/* -----------------------------------------------------------------
   13. MOBILE RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Callout boxes: tighter padding on mobile */

    /* TOC list items: slightly less indent on mobile */

    /* Prevent content overflow */
}

/* =================================================================
   DESKTOP MENU UX IMPROVEMENTS
   ================================================================= */

/* 1. Hover-intent delay — запобігає випадковому спалахуванню dropdown
      при горизонтальному русі миші по пунктах меню */
.xts-nav-main > .xts-event-hover > .xts-dropdown {
    transition-delay: 0.15s;
}
.xts-nav-main > .xts-event-hover:hover > .xts-dropdown {
    transition-delay: 0s;
}

/* 3. Збільшений відступ між пунктами (s → m) для українських текстів */
.xts-nav-main.xts-gap-s {
    margin-right: -15px;
    margin-left: -15px;
}
.xts-nav-main.xts-gap-s > li > a {
    padding-right: 15px;
    padding-left: 15px;
}

/* 4. Акцентний індикатор при наведенні — жовта лінія під активним пунктом */
.xts-nav-main > li:hover > a > .xts-nav-text {
    border-bottom: 2px solid #1c49c2;
    padding-bottom: 2px;
}
.xts-nav-main > li.current-menu-item > a > .xts-nav-text,
.xts-nav-main > li.current-menu-ancestor > a > .xts-nav-text {
    border-bottom: 2px solid #1c49c2;
    padding-bottom: 2px;
}

/* 6. Ширший dropdown для українських назв категорій (220px → 260px) */
.xts-nav-main .xts-dropdown-menu.xts-style-default {
    --xts-dropdown-width: 260px;
}

/* =================================================================
   PET PREFERENCE MENU PERSONALIZATION
   CSS Custom Properties for dog/cat theming.
   Sidebar: collapsed 65px → expanded 350px on hover.
   ================================================================= */

/* ── Pet-mode CSS Variables ───────────────────────────────── */
:root {
    --amg-accent: #E8952C;
    --amg-accent-rgb: 232, 149, 44;
    --amg-accent-text: #b06d10;
    --amg-accent-glow: rgba(232, 149, 44, 0.35);
}
html.amg-pet-cat {
    --amg-accent: #9575cd;
    --amg-accent-rgb: 149, 117, 205;
    --amg-accent-text: #6a4fa0;
    --amg-accent-glow: rgba(149, 117, 205, 0.35);
}

/* === COLLAPSED STATE: discoverability improvements ===
   КОНТЕКСТ: Sidebar згорнутий (65px від кастомайзера теми) і розгортається до 350px на hover.
   1. Sidebar width: 65px (кастомайзер теми, не перевизначаємо)
   2. "Каталог" label на title bar
   3. Більші іконки категорій (25→28px в collapsed)
   4. Підсвітка активної категорії в collapsed
   5. Анімація гlow для першого візиту
   ===================================================== */

/* 1. Sidebar width: 65px from theme customizer — NO override */

/* 2. Title bar: "Каталог" label (position:absolute — no height change between states) */
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-sticky-cats-title::before {
    margin-right: 0;
    font-size: 22px;
}
/* "Каталог" label — absolutely positioned at bottom of title bar, no layout impact */
.xts-sticky-cats-title::after {
    content: "Каталог";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    white-space: nowrap;
    pointer-events: none;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-sticky-cats-title::after {
    opacity: 0;
    transition: none;
}

/* 2b. Collapsed: hide scrollbar + item separators (clean icon strip) */
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat {
    overflow: hidden !important;
    scrollbar-width: none;
}
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat::-webkit-scrollbar {
    display: none;
}
/* Hide theme's xts-style-separated borders between items (double border fix) */
.xts-sticky-cats .xts-nav-sticky-cat > li::after {
    display: none !important;
}

/* 3. Bigger icons in collapsed state (25→28px) + centered for 65px sidebar */
.xts-nav-sticky-cat > li > a .xts-nav-img {
    transition: width 0.2s ease, height 0.2s ease;
}
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a .xts-nav-img {
    width: 28px !important;
    height: 28px !important;
}
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li {
    margin-left: 6px !important;
    margin-right: 6px !important;
}
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a.xts-nav-link {
    justify-content: center;
    min-height: 44px;
}

/* 4. Active/preferred category highlight in collapsed state */
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.amg-pet-preferred > .xts-nav-link,
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.current-menu-item > .xts-nav-link,
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.current-menu-ancestor > .xts-nav-link {
    background: rgba(var(--amg-accent-rgb), 0.2);
    border-left: 4px solid var(--amg-accent);
    border-radius: 0 8px 8px 0;
}

/* 5. First-visit hint: gentle glow on sidebar edge */
@keyframes amg-sidebar-glow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 3px 0 15px var(--amg-accent-glow); }
}
.xts-sticky-cats.amg-sidebar-hint:not(.xts-expanded):not(:focus-within) {
    animation: amg-sidebar-glow 2s ease-in-out 3;
    animation-delay: 1.5s;
}

/* Override theme's transition:all → only animate width (prevents visual jank) */
.xts-sticky-cats {
    /* Базова згорнута ширина 65px перенесена сюди з wp-custom-css (Customizer →
       Additional CSS), звідки ми прибрали .xts-sticky-cats{width:65px}. Перебиває
       parent-базу 55px (child вантажиться після parent). */
    width: 65px;
    transition: width 0.2s cubic-bezier(0.19, 1, 0.22, 1) 0s !important;
    will-change: width;
}
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) {
    /* ГЛУШНИК hover-width. :hover-розгортання рейки жило у ТРЬОХ місцях, і ЕФЕКТИВНЕ —
       wp-custom-css: .xts-sticky-cats:hover{width:350px} (прибрано звідти), плюс parent
       xts-hitek/style.css:11403 :hover{width:275px} та стейл style-purged.css. Ми зняли
       :hover-розгортання лише в child → на побіжний hover рейка смикалась 65→350, потім JS
       350→450 (двоступеневий стрибок), швидкі проходи = 65↔350 миготіння. Це правило
       (0,3,0 !important) перебиває ВСІ три джерела разом і тримає ЗГОРНУТУ ширину 65px
       (реальна база — 65px). При .xts-expanded (JS-інтент) чи :focus-within глушник
       відпадає (обидва в :not) → працює width:450px вище. Захист і на майбутнє. */
    width: 65px !important;
    transition-delay: 0s !important;
}
/* Розгортання ширини рейки більше НЕ на :hover — побіжний hover розгортав рейку
   миттєво. Тепер розгортає ЛИШЕ .xts-expanded (JS, hover-intent 120мс) та
   :focus-within (клавіатурний fallback). Транзишн width ~200мс лишається вище. */
.xts-sticky-cats.xts-expanded,
.xts-sticky-cats:focus-within {
    width: 450px !important;
}
.xts-sticky-cats.xts-expanded:after {
    visibility: hidden !important;
}
.xts-sticky-cats.xts-expanded .xts-nav-sticky-cat {
    pointer-events: auto !important;
}
/* Text visibility for pinned sidebar (mirrors parent theme's :hover rules) */
.xts-sticky-cats.xts-expanded .xts-sticky-cats-title span,
.xts-sticky-cats.xts-expanded .xts-nav-sticky-cat > li > a .xts-nav-text,
.xts-sticky-cats.xts-expanded .xts-nav-sticky-cat > li > a:after,
.xts-sticky-cats.xts-expanded .xts-sticky-social-wrapper .xts-social-name {
    width: auto !important;
    max-width: none !important;
    opacity: 1 !important;
    transition: opacity .25s ease .12s;
}
.xts-sticky-cats.xts-expanded .xts-nav-sticky-cat > li > a .xts-nav-text {
    margin-left: 10px;
}
.xts-sticky-cats.xts-expanded .xts-sticky-social-wrapper .xts-social-name {
    margin-left: 10px;
}

/* Overlay: allow clicks through during transition */
.xts-sticky-cats:after {
    pointer-events: none !important;
    transition: visibility 0s !important;
}

/* C) Затемнення-оверлей рейки синхронне з розгортанням (~250мс), а не 500мс теми.
   Скоуп ТІЛЬКИ .xts-location-categories (оверлей саме рейки; JS вішає цей клас при
   pin) — інші off-canvas панелі (хедер/кошик/акаунт) лишаються з 0.5s теми. */
.xts-close-side.xts-location-categories {
    /* Дзеркалимо 4-property структуру теми, але 0.25s замість 0.5s: z-index/top
       з відкладеним ревертом тримають бекдроп зверху й на місці ПОКИ він гасне. */
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.25s,
                z-index 0s linear 0.25s,
                top 0s linear 0.25s !important;
}
.xts-close-side.xts-location-categories.xts-opened {
    transition-delay: 0s !important;
}

/* === АКОРДЕОН: dropdown розкривається ВНИЗ під категорією, а не вправо === */

/* Ховаємо ВСІ theme's вбудовані стрілки на <a> в sidebar — замінені на .xts-submenu-opener */
.xts-sticky-cats .xts-nav-sticky-cat .menu-item-has-children > a::after,
.xts-sticky-cats .xts-nav-sticky-cat .xts-has-children > a::after,
.xts-sticky-cats .xts-dropdown-menu .menu-item-has-children > a::after,
.xts-sticky-cats .xts-dropdown-menu .xts-has-children > a::after {
    display: none !important;
    content: none !important;
}

/* Переключаємо з flyout (position:absolute; left:100%) на inline (position:static) */
.xts-nav-sticky-cat > .item-level-0 > .xts-dropdown.xts-dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* D5-фікс: раніше тут стояло transition:none (щоб убити flyout-fade теми). Але
       це правило (специфічність 0,4,0) вигравало transition у ЗАКРИТОМУ стані над
       базовим (0,3,0), бо open-правило (0,5,0) відпадає зі зняттям .xts-opened →
       grid снапив 134px→0 за кадр. Даємо йому ТУ САМУ уніфіковану анімацію, тож і
       open, і close на level-0 плавні 0.25s. transform/position не в списку —
       міняються миттєво (правильно для конвертації flyout→inline). */
    transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.25s,
                opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Прибираємо невидимий "міст" між parent і flyout (непотрібний в акордеоні) */
.xts-nav-sticky-cat > .item-level-0 > .xts-dropdown.xts-dropdown-menu::after {
    display: none !important;
}

/* Контейнер всередині dropdown: прибираємо max-width і padding від .container */
.xts-nav-sticky-cat .xts-dropdown-inner {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ========================================================
   Sticky sidebar: Multi-level Accordion
   ========================================================
   Тема: position:absolute flyout з visibility:hidden.
   Ми: position:static акордеон з .xts-opened class.
   Всі рівні (level-0 до level-3) → акордеон, не flyout.
   ======================================================== */

/* 1) ALL dropdowns inside sidebar → static, hidden, no flyout */
.xts-sticky-cats .xts-nav-sticky-cat .xts-dropdown {
    position: static !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    /* CSS grid trick for smooth height animation 0→auto */
    display: grid !important;
    grid-template-rows: 0fr !important;
    /* Акордеон: закриття і відкриття ОДНІЄЮ тривалістю (0.25s) та одним easing.
       Раніше close=0.2s ease-in, open=0.35s springy → асиметрія (телепорт рядків
       при закритті сусіда). Транзишн на БАЗОВОМУ правилі гарантує, що close
       завжди інтерполюється (правило лишається активним після зняття .xts-opened). */
    transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.25s,
                opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.xts-sticky-cats .xts-nav-sticky-cat .xts-dropdown > * {
    overflow: hidden;
    min-height: 0;
}
.xts-sticky-cats .xts-nav-sticky-cat .xts-dropdown::after {
    display: none !important;
}
/* Theme container inside dropdown — flatten */
.xts-sticky-cats .xts-nav-sticky-cat .xts-dropdown .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2) Collapsed sidebar: force-hide all.
   Розгорнутий стан рейки = .xts-expanded (JS-інтент 120мс) або :focus-within
   (клавіатура). :hover більше НЕ розгортає (див. фікс B), тож і колапс-гард, і
   всі reveal-правила тепер узгоджені на :is(.xts-expanded, :focus-within). */
.xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat .xts-dropdown {
    grid-template-rows: 0fr !important;
    transition: none !important;
}

/* 3) Expanded + parent has .xts-opened → show as accordion (all levels) */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat .xts-opened > .xts-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    grid-template-rows: 1fr !important;
    /* Відкриття: та сама тривалість/easing що й закриття (симетрія 0.25s) */
    transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s,
                opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* 3b) Suppress accordion animation on sidebar expand (instant, no slide-down) */
.xts-sticky-cats.amg-no-accordion-anim .xts-nav-sticky-cat .xts-opened > .xts-dropdown {
    transition: none !important;
}

/* 4) Level-0 opened: thin separator lines */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > .item-level-0.xts-opened > .xts-dropdown {
    border-top: 1px solid rgba(119, 119, 119, 0.15) !important;
    border-bottom: 1px solid rgba(119, 119, 119, 0.18) !important;
    margin-bottom: 6px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* ---- Scroll for long accordion ---- */
.xts-sticky-cats .xts-nav-sticky-cat {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
    overscroll-behavior: contain;
}
.xts-sticky-cats .xts-nav-sticky-cat::-webkit-scrollbar {
    width: 4px;
}
.xts-sticky-cats .xts-nav-sticky-cat::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* ---- Базова читабельність для ВСІХ sub-level лінків ---- */
.xts-nav-sticky-cat .xts-dropdown .xts-nav-link {
    color: #333 !important;
    line-height: 1.4;
    text-decoration: none !important;
}
.xts-nav-sticky-cat .xts-dropdown .xts-nav-link:hover {
    background: rgba(var(--amg-accent-rgb), 0.08) !important;
    color: #111 !important;
}

/* ---- Indentation by level ---- */
/* Level-1: підкатегорії (Їжа для собак, Амуніція, тощо).
   padding-right=56 щоб дати місце розширеному chevron-opener (hit-area 56px). */
.xts-nav-sticky-cat .item-level-1 > .xts-nav-link {
    padding: 11px 56px 11px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #222 !important;
    min-height: 40px !important;
}
/* Level-2: під-підкатегорії (Сухий корм, Вологий корм) */
.xts-nav-sticky-cat .item-level-2 > .xts-nav-link {
    padding: 10px 36px 10px 40px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    min-height: 38px !important;
}
/* Level-3: бренди (Hill's, Farmina) */
.xts-nav-sticky-cat .item-level-3 > .xts-nav-link {
    padding: 9px 12px 9px 52px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #555 !important;
    min-height: 34px !important;
}
.xts-nav-sticky-cat .item-level-3 > .xts-nav-link:hover {
    background: rgba(var(--amg-accent-rgb), 0.1) !important;
}

/* Images inside accordion — small and consistent */
.xts-nav-sticky-cat .xts-dropdown .xts-nav-link .xts-nav-img,
.xts-nav-sticky-cat .xts-dropdown .xts-nav-link > img {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    object-fit: contain !important;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 2px;
}

/* ---- Accordion dropdown visibility (override theme xts-event-hover) ---- */
/* Theme only shows .xts-dropdown for xts-event-click.xts-opened, but sidebar
   items are xts-event-hover. Force-show when our JS adds xts-opened. */
.xts-nav-sticky-cat .xts-opened > .xts-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Keep hidden when NOT opened (override hover-based show for accordion control) */
.xts-nav-sticky-cat .menu-item-has-children:not(.xts-opened) > .xts-dropdown {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---- Opener arrows (ALL levels) ----
   Tactile-friendly: hit-area 56px wide × full row height. Chevron icon
   centered via flex. Hover highlight робить тап-зону візуально явною. */
.xts-nav-sticky-cat .menu-item-has-children {
    position: relative;
}
.xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener {
    position: absolute;
    right: 0;
    top: 0;
    width: 56px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 6px;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener {
    opacity: 0.85;
    pointer-events: auto;
    transition: opacity .15s ease, background .15s ease;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener:hover {
    opacity: 1;
    background: rgba(var(--amg-accent-rgb), 0.14);
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener:active {
    background: rgba(var(--amg-accent-rgb), 0.22);
}
/* Стрілка на opener — чистий CSS chevron (не залежить від font-icon).
   9×9 (з 7×7) — крупніший, видніший на 56px tap-area. */
.xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener::after {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg);
    transition: transform .25s ease, border-color .15s ease;
}
.xts-nav-sticky-cat .menu-item-has-children.xts-opened > .xts-submenu-opener::after {
    transform: rotate(45deg);
    border-color: #555;
}
.xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener:hover::after {
    border-color: var(--amg-accent, #ff671f);
}
/* Level-0 openers: фіксована висота 46px (рядок header'у level-0).
   НЕ height:100% бо li.item-level-0 містить розгорнутий .xts-dropdown з children
   → 100% розтягує opener на весь accordion (бачили 534px). Tap-area 56×46 = достатньо. */
.xts-nav-sticky-cat > .menu-item-has-children > .xts-submenu-opener {
    width: 56px;
    height: 46px;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > .menu-item-has-children > .xts-submenu-opener {
    opacity: 1;
}

/* ── Hide zaebaner-sidebar behind overlay ── */
body.amg-sidebar-open .zaebaner-sidebar {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s ease !important;
}

/* Current page indicator in sidebar */
.xts-nav-sticky-cat > li.current-menu-item > .xts-nav-link,
.xts-nav-sticky-cat > li.current-menu-ancestor > .xts-nav-link {
    border-left: 4px solid var(--amg-accent) !important;
    background: rgba(var(--amg-accent-rgb), 0.14) !important;
}
.xts-nav-sticky-cat > li.current-menu-item > .xts-nav-link .xts-nav-text,
.xts-nav-sticky-cat > li.current-menu-ancestor > .xts-nav-link .xts-nav-text {
    font-weight: 700;
    color: var(--amg-accent-text) !important;
}

/* Deep-level current-menu-item: exact page highlight */
.xts-nav-sticky-cat .current-menu-item > .xts-nav-link {
    background: rgba(var(--amg-accent-rgb), 0.16) !important;
    font-weight: 600;
    border-left: 4px solid var(--amg-accent) !important;
}
.xts-nav-sticky-cat .current-menu-item > .xts-nav-link .xts-nav-text {
    color: var(--amg-accent-text) !important;
}

/* Ancestor breadcrumb trail */
.xts-nav-sticky-cat .current-menu-ancestor > .xts-nav-link {
    border-left: 4px solid rgba(var(--amg-accent-rgb), 0.6) !important;
    background: rgba(var(--amg-accent-rgb), 0.08) !important;
}
.xts-nav-sticky-cat .current-menu-ancestor > .xts-nav-link .xts-nav-text {
    font-weight: 600;
}

/* Level-0 hover: subtle tint */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li:hover > .xts-nav-link {
    background: rgba(var(--amg-accent-rgb), 0.06);
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li:hover > .xts-nav-link .xts-nav-text {
    color: #111 !important;
}

/* Active item hover should INTENSIFY, not flatten */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat .current-menu-item:hover > .xts-nav-link {
    background: rgba(var(--amg-accent-rgb), 0.2) !important;
}

/* Level-0: larger text to differentiate from sub-levels */
.xts-nav-sticky-cat > li > .xts-nav-link .xts-nav-text {
    font-size: 15px;
    font-weight: 600;
}

/* Level-0: reduce height for better density (55→46px, still > 44px WCAG) */
.xts-nav-sticky-cat > li > a.xts-nav-link {
    min-height: 46px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
/* Level-0 openers: height auto via 100% */
/* Reduce side margins: 15→12px (6px more content width) */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li {
    margin-left: 12px !important;
    margin-right: 12px !important;
}

/* Group separators: thin line before non-pet sections (expanded only) */
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.menu-item-1158851,
.xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.menu-item-193051 {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(119, 119, 119, 0.12);
}

/* Phase 1: Візуальний акцент — border-left тільки на active/preferred items */
.xts-nav-sticky-cat > .amg-pet-preferred > .xts-nav-link {
    border-left: 4px solid var(--amg-accent);
    background: rgba(var(--amg-accent-rgb), 0.06);
}
.xts-nav-sticky-cat > .amg-pet-preferred > .xts-nav-link .xts-nav-text {
    font-weight: 700;
}

/* Phase 2: Title bar — flex layout для toggle + position для indicator */
.xts-sticky-cats-title {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Ховаємо оригінальний span "Каталог" візуально, але залишаємо для screen readers */
.xts-sticky-cats-title > span.amg-hidden-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Toggle: pill-shaped табчики всередині title bar (gold #ffba00 bg, dark #242424 text)
   Collapsed (65px): невидимий через theme-техніку (width:0 + opacity:0)
   Expanded (350px): з'являється з плавною анімацією */
.amg-pet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: auto;
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: opacity 0s;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .amg-pet-toggle {
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease .12s;
}
/* #2 fix (2026-06-19): the .amg-pet-toggle container gets background:#f5f5f5 + padding:4px
   from the amigo-cat-or-dog inline \3c style id="amg-pet-toggle-css">, which loads AFTER this
   sheet and therefore beats the transparent rule above. On the gold sticky-cats bar that grey
   pill + the white active button read as a box floating over the gold (owner: «білий фон …
   відірваний від жовтого хедера»). Dissolve the container ON THE GOLD BAR ONLY (scoped +
   !important to out-rank the later inline rule) so the buttons sit directly on the gold and
   merge with the header; the active button keeps its seated inset hairline (set below).
   Shortcode pills on other surfaces keep their own grey container. */
.xts-sticky-cats-title .amg-pet-toggle {
    background: transparent !important;
    padding: 2px !important;
}
.xts-sticky-cats-title .amg-pet-toggle .amg-pet-toggle__btn {
    color: #190a03 !important;
}

/* Кнопки toggle — pill tabs на золотому (#ffba00) фоні з темним (#242424) текстом */
.amg-pet-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #190a03;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 6px;
}
.amg-pet-toggle__btn svg {
    flex-shrink: 0;
}
.amg-pet-toggle__btn:hover {
    background: rgba(25, 10, 3, 0.08);
    color: #190a03;
}
/* Fallback for Safari < 15.4 */
.amg-pet-toggle__btn:focus {
    outline: 2px solid #190a03;
    outline-offset: 1px;
    border-radius: 6px;
}
@supports selector(:focus-visible) {
    .amg-pet-toggle__btn:focus:not(:focus-visible) { outline: none; }
}
.amg-pet-toggle__btn:focus-visible {
    outline: 2px solid #190a03;
    outline-offset: 1px;
    border-radius: 6px;
}
/* Focus-visible for sidebar interactive elements */
/* Fallback for Safari < 15.4 */
.xts-nav-sticky-cat .xts-nav-link:focus,
.xts-nav-sticky-cat .xts-submenu-opener:focus,
.amg-qa__link:focus {
    outline: 2px solid var(--amg-accent);
    outline-offset: -1px;
    border-radius: 4px;
}
@supports selector(:focus-visible) {
    .xts-nav-sticky-cat .xts-nav-link:focus:not(:focus-visible),
    .xts-nav-sticky-cat .xts-submenu-opener:focus:not(:focus-visible),
    .amg-qa__link:focus:not(:focus-visible) { outline: none; }
}
.xts-nav-sticky-cat .xts-nav-link:focus-visible,
.xts-nav-sticky-cat .xts-submenu-opener:focus-visible,
.amg-qa__link:focus-visible {
    outline: 2px solid var(--amg-accent);
    outline-offset: -1px;
    border-radius: 4px;
}
/* Активна кнопка: base style (sidebar toggle keeps solid white pill) */
.amg-pet-toggle__btn.is-active {
    color: #190a03;
    font-weight: 700;
}
/* Sidebar toggle: active = white segment seated INTO the gold bar (merged, not floating) */
.amg-pet-toggle .amg-pet-toggle__btn.is-active {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(25, 10, 3, 0.10);
}
/* Header toggle: subtle semi-transparent active state on gold bg */
.amg-pet-toggle-header .amg-pet-toggle__btn.is-active {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

/* Feature 2: Індикатор режиму в collapsed стані (кольорова смужка під title) */
.amg-pet-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 1;
}
.amg-pet-indicator--dog {
    background: var(--amg-accent);
}

/* Feature 4: Плавна анімація перемикання */
.xts-nav-sticky-cat > li {
    transition: opacity 0.18s ease;
}
.xts-nav-sticky-cat.amg-switching > li {
    opacity: 0;
}

/* Phase 2: Блок швидкого доступу
   Collapsed (65px): невидимий, Expanded (350px): з'являється під title */
.amg-quick-access {
    border-bottom: 1px solid rgba(119, 119, 119, 0.15);
    display: none;
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
}
.xts-sticky-cats:is(.xts-expanded, :focus-within) .amg-quick-access {
    display: block;
    max-height: 200px;
    padding: 10px 20px;
    opacity: 1;
    overflow: hidden;
    transition: max-height .3s ease .1s, padding .3s ease .1s, opacity .2s ease .15s;
}

/* Cat mode: handled by CSS custom properties (--amg-accent-*) defined at :root / html.amg-pet-cat */

/* Header pet toggle (always visible, left of logo) — NO background container, clean minimal */
.amg-pet-toggle-header {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-right: 12px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

/* Anti-CLS: reserve space before JS injects the toggle so logo+search
   don't jump on every page load. Placeholder vanishes once :has() detects
   the real toggle injected by amg-sidebar.js. Widths measured per breakpoint. */
@media (min-width: 1025px) {
    .xts-top-bar .xts-header-col.xts-start.xts-desktop:not(:has(.amg-pet-toggle-header))::before {
        content: '';
        display: inline-block;
        height: 44px;
        flex-shrink: 0;
        margin-right: 0;
    }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .xts-top-bar .xts-header-col.xts-start.xts-desktop:not(:has(.amg-pet-toggle-header))::before {
        width: 96px;
    }
}
@media (min-width: 1281px) {
    .xts-top-bar .xts-header-col.xts-start.xts-desktop:not(:has(.amg-pet-toggle-header))::before {
        width: 206px; /* 16.09: живий перемикач з маскотами = 206 */;
    }
}

/* Hide header toggle when sidebar expands (sidebar covers it at z:300 > z:200) */
body:has(.xts-sticky-cats:is(.xts-expanded, :focus-within)) .amg-pet-toggle-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Narrow desktop: icon-only toggle — compact square buttons */
@media (min-width: 1025px) and (max-width: 1280px) {
    .amg-pet-toggle-header .amg-pet-toggle__btn {
        padding: 0;
        font-size: 0;
        line-height: 0;
        gap: 0;
        width: 30px;
        height: 30px;
        justify-content: center;
        border-radius: 6px;
    }
    .amg-pet-toggle-header .amg-pet-toggle__btn svg {
        margin: 0;
    }
    .amg-pet-toggle-header {
        margin-right: 6px;
        gap: 2px;
    }
}

/* Reduced motion: disable all sidebar animations.
   .xts-sticky-cats * покриває і fixed-flyout (він DOM-нащадок li рейки), тож
   акордеон рейки + flyout уже нейтралізовані. .xts-close-side (оверлей) НЕ є
   нащадком рейки — додано явно, щоб затемнення теж було миттєвим. */
@media (prefers-reduced-motion: reduce) {
    .xts-sticky-cats,
    .xts-sticky-cats *,
    .xts-close-side.xts-location-categories,
    .amg-pet-toggle,
    .amg-pet-toggle-header,
    .amg-quick-access,
    .xts-nav-sticky-cat > li,
    .xts-submenu-opener::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Ховаємо на мобільних (sidebar відсутній) */
@media (max-width: 1024px) {
    .amg-quick-access,
    .amg-pet-toggle,
    .amg-pet-toggle-header {
        display: none !important;
    }
}

/* =================================================================
   D) МОБІЛЬНИЙ ДРОВЕР: збільшена тап-зона шеврон-опенера.
   Тема дає opener шириною 50px — на широкому рядку його важко поцілити.
   Розширюємо до 72px на всю висоту рядка, додаємо роздільник зліва
   (колір з палітри теми — той самий, що й межі між рядками нава) та
   крупніший гліф. Скоуп ТІЛЬКИ .xts-side-mobile — десктоп-рейка
   (.xts-nav-sticky-cat) не зачіпається.
   ================================================================= */
@media (max-width: 1024px) {
    .xts-side-mobile .xts-submenu-opener {
        width: 72px !important;
        align-self: stretch !important;
        font-size: 18px !important;
        color: #555 !important;
        border-left: 1px solid rgba(119, 119, 119, 0.25) !important;
    }
    /* Зсув тексту лінка, щоб не заходив під ширший opener (тема: -50px/50px) */
    .xts-side-mobile .menu-item-has-children:not(.xts-dropdown-html) > a {
        margin-right: -72px !important;
        padding-right: 72px !important;
    }
}

/* =================================================================
   HOMEPAGE — ВІДСТУПИ МІЖ СЕКЦІЯМИ (UX)
   ================================================================= */

/* Відступи між секціями відгуків, порад */
.amg-home-section {
    margin-top: 40px;
    padding-top: 16px;
}
.amg-home-section + .amg-home-section {
    margin-top: 48px;
}

/* Clerk Elementor слайдери — більше повітря між ними */

/* Ангельські оченята — відступ зверху */
.amigo-pet-deals[data-amigo-pet-deals] {
    margin-top: 48px;
}

/* Desktop — ще більше повітря */
@media (min-width: 768px) {
    .amg-home-section {
        margin-top: 48px;
        padding-top: 24px;
    }
    .amg-home-section + .amg-home-section {
        margin-top: 56px;
    }
    .amigo-pet-deals[data-amigo-pet-deals] {
        margin-top: 56px;
    }
}

/* Мобільні — компактніше */
@media (max-width: 576px) {
    .amg-home-section {
        margin-top: 32px;
        padding-top: 12px;
    }
    .amg-home-section + .amg-home-section {
        margin-top: 36px;
    }
}

/* Порожні плейсхолдери рекомендацій — не займають місце */
.snize-recommendation-wrapper:empty,
.amigo-pet-deals:empty,
.amigo-pet-deals-bottom:has(.amigo-pet-deals:empty),
span.clerk:empty {
    display: none !important;
}

/* =================================================================
   MY ACCOUNT — MOBILE HORIZONTAL TAB NAV
   ================================================================= */
@media (max-width: 767px) {
    /* Nav wrapper — gradient fade on right edge */
    .woocommerce-MyAccount-navigation {
        position: relative;
    }
    .woocommerce-MyAccount-navigation::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
        pointer-events: none;
        z-index: 2;
    }
    /* Phase 3 simplification 2026-05-05: прибрав ul border-bottom + 2px tab
       underlines (з active/transparent toggle). Tab states зведено до одного
       сигналу — font-weight + color. Без подвійних meridian і borderів. */
    .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        white-space: nowrap;
        padding: 4px 40px 4px 10px !important;
        margin: 0 !important;
        list-style: none !important;
        scrollbar-width: none;
    }
    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }
    .woocommerce-MyAccount-navigation ul li {
        flex-shrink: 0;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .woocommerce-MyAccount-navigation ul li::before,
    .woocommerce-MyAccount-navigation ul li::marker {
        display: none !important;
        content: none !important;
    }
    .woocommerce-MyAccount-navigation ul li a {
        display: inline-block;
        padding: 10px 14px !important;
        font-size: 13px !important;
        color: #6B7280 !important;
        text-decoration: none !important;
        transition: color .15s;
    }
    .woocommerce-MyAccount-navigation ul li a:hover {
        color: #190a03 !important;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a {
        color: #190a03 !important;
        font-weight: 700 !important;
    }
    /* Hide logout from horizontal tabs */
}

/* MY ACCOUNT — desktop sidebar refinement */
@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .woocommerce-MyAccount-navigation ul li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .woocommerce-MyAccount-navigation ul li a {
        display: block;
        padding: 10px 14px !important;
        color: #374151 !important;
        text-decoration: none !important;
        font-size: 0.95em !important;
        border-left: 3px solid transparent;
        transition: color 0.15s, border-color 0.15s, background 0.15s;
        border-radius: 0 8px 8px 0;
    }
    .woocommerce-MyAccount-navigation ul li a:hover {
        color: #143795 !important;
        background: #f0f6fc !important;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a {
        color: #143795 !important;
        border-left-color: #1c49c2 !important;
        background: #f0f6fc !important;
        font-weight: 600 !important;
    }

    /* Hierarchy — top section (most-used) bold, logout muted */
    .woocommerce-MyAccount-navigation-link--dashboard a,
    .woocommerce-MyAccount-navigation-link--orders a,
    .woocommerce-MyAccount-navigation-link--amigobonus a {
        font-weight: 600 !important;
        color: #1F2937 !important;
    }

    /* Padding between sidebar and content */
    .woocommerce-MyAccount-content {
        padding-left: 24px !important;
    }
}

/* =================================================================
   HEADER COUNTER BADGES — unified red
   ================================================================= */
/* Doubled class hack to win specificity over theme inline rule (#ff8128).
   `.x.x` selects same element but counts as 2 classes for specificity math.
   Net: 0,4,0 beats theme's 0,3,0. */
body .xts-header-cart .xts-cart-count.xts-cart-count,
body .xts-header-compare .xts-compare-count.xts-compare-count,
body .xts-header-wishlist .xts-wishlist-count.xts-wishlist-count,
body .xts-header-cart.xts-design-round .xts-header-el-icon > span,
body .xts-header-compare.xts-design-round .xts-header-el-icon > span,
body .xts-header-wishlist.xts-design-round .xts-header-el-icon > span {
    background-color: #e53935 !important;
}

/* Hide "елементи" / "items" word overlay inside cart count badge.
   Theme template renders <span class="xts-cart-count">N <span>елементи</span></span>
   which overflows the 15x15 badge on mobile and overlaps the cart icon. */
.xts-header-cart .xts-cart-count > span,
.xts-header-cart.xts-design-count .xts-cart-count > span,
.xts-header-cart.xts-design-count-alt .xts-cart-count > span,
.xts-header-cart.xts-design-round .xts-cart-count > span {
    display: none !important;
}

/* =================================================================
   PERFORMANCE — skip rendering offscreen content
   ================================================================= */
body.woocommerce-checkout .xts-side-mobile.xts-side-hidden:not(.xts-opened) {
    content-visibility: hidden;
}
footer.xts-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

/* =================================================================
   PRODUCT PAGE — CARD-BASED LAYOUT (Rozetka-style)
   Grey page background + white card blocks with gaps
   ================================================================= */

/* --- Grey bg covers EVERYTHING on product page, no white gaps --- */
body.single-product,
body.single-product .xts-site-wrapper,
body.single-product .xts-site-content {
    background-color: #f5f5f5 !important;
}
/* --- Row: transparent, NOT a card — children are individual cards --- */
.single-product .xts-single-product > .row {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible;
}

/* --- Gallery card (left col) --- */
.single-product .xts-single-product > .row > .col-md-6:first-of-type {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px !important;
    padding-bottom: 16px;
}
.single-product .woocommerce-product-gallery img {
    border-radius: 8px;
}

/* --- Breadcrumbs row — sits above gallery, no card --- */
.single-product .xts-single-product-navs.col-md-12 {
    background: transparent !important;
}

/* --- Summary column: transparent bg, cards inside --- */
.single-product .xts-single-product > .row > .col-md-6:last-of-type {
    background: transparent !important;
    margin-bottom: 16px !important;
}

/* --- Summary: Title card wrapper (brand + title + rating + sku) --- */
.single-product .xts-single-product-summary .amg-title-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 0 !important;
    position: relative;
}
.single-product .xts-single-product-summary .amg-title-card .xts-single-product-brands {
    position: absolute;
    top: 14px;
    right: 14px;
    float: none;
    padding: 0;
    margin: 0 !important;
}
.single-product .xts-single-product-summary .amg-title-card h1.product_title {
    padding: 14px 100px 0 20px;
    margin: 0 !important;
}
.single-product .xts-single-product-summary .amg-title-card .amg-sku-display {
    padding: 0 20px 16px;
    margin: 0 !important;
}
/* Stock-actions-row in summary — card middle (simple) or card bottom (variable before JS) */
.single-product .xts-single-product-summary > .amg-stock-actions-row {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 4px 20px 16px;
    margin: 0 !important;
}
/* Simple products: stock row is middle of merged card, not bottom */
.single-product .xts-single-product-summary > p.custom-price + .amg-stock-actions-row {
    border-radius: 0;
    padding-bottom: 4px;
    box-shadow: none;
}
/* Simple products: form.cart is card bottom */
.single-product .xts-single-product-summary form.cart:not(.variations_form) {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 12px 16px 20px;
    justify-content: flex-end;
}
/* SKU всередині title-card wrapper — border-radius обробляє wrapper */
/* Variable products: stock-actions-row moved into form.cart by JS — reset card styles */
.single-product .xts-single-product-summary form.cart .amg-stock-actions-row {
    background: transparent;
    border-radius: 0;
    padding: 12px 0;
    margin: 0 !important;
    border-bottom: none;
}

/* --- Summary: Buy block (variations form + price + buy btn) — card --- */
.single-product .xts-single-product-summary form.cart {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 16px 4px 20px;
    margin-top: 10px;
}

/* --- Summary: Short description — inside title card --- */
.single-product .amg-title-card > .woocommerce-product-details__short-description {
    padding: 12px 20px 16px;
    margin: 0 !important;
}
.single-product .amg-title-card > .woocommerce-product-details__short-description p {
    margin: 0;
}

/* --- Summary: Delivery block (delivery + trust) — card --- */
.single-product .xts-single-product-summary .xts-after-add-to-cart {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    margin-top: 10px;
}
/* Remove delivery-card own border — parent card handles it */
.single-product .xts-single-product-summary .xts-after-add-to-cart .delivery-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
}
/* Trust separator inside delivery wrapper card */
.single-product .xts-single-product-summary .xts-after-add-to-cart .trust-block {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: 14px;
}

/* --- Below-summary cards: tabs, reviews, related, upsells --- */
.single-product .xts-single-product > .woocommerce-tabs,
.single-product .xts-single-product > .customer-reviews,
.single-product .xts-single-product > section.related,
.single-product .xts-single-product > section.up-sells {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px !important; /* #8 2026-06-19: 16->40, between-block gap > heading gap */
}
.single-product .xts-single-product > .woocommerce-tabs {
    padding: 20px 24px 24px;
    overflow: visible;
}
.single-product .xts-single-product > .customer-reviews {
    padding: 20px 24px 24px;
}
.single-product .xts-single-product > section.related,
.single-product .xts-single-product > section.up-sells {
    padding: 20px 24px 16px;
}
.single-product .xts-single-product > section.related > h2:first-child,
.single-product .xts-single-product > section.up-sells > h2:first-child {
    margin-top: 0;
}

/* --- Clerk / Searchanise / RV: card when populated --- */
.single-product .xts-single-product > span.clerk:not(:empty),
.single-product .xts-single-product > .snize-recommendation-wrapper:not(:empty),
.single-product .xts-single-product > .amg-rv-widget:not(:empty) {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0;
    margin-bottom: 40px !important; /* #8 2026-06-19: 16->40 (recently-viewed et al.) */
    overflow: hidden;
}
/* Hide empty Clerk/Searchanise/RV */
.single-product .xts-single-product > span.clerk:empty,
.single-product .xts-single-product > .snize-recommendation-wrapper:empty,
.single-product .xts-single-product > .amg-rv-widget:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* --- Mobile --- */
@media (max-width: 767px) {
    /* --- Fix: eliminate stacking side paddings ---
       Chain: container 15px + row-spacing-40 -20px + content-area 20px + col 15px + inner 16px = 46px
       Fix: zero all outer layers → 0 + 0 + 0 + 0 + 16px = 16px (like Rozetka) */
    body.single-product .xts-site-content .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.single-product .xts-site-content .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.single-product .xts-content-area {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .single-product .xts-single-product > .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Breadcrumbs: keep 12px side padding inside the 8px outer */
    .single-product .xts-single-product-navs.col-md-12 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Cards: 8px gap from edges, small border-radius visible */
    .single-product .xts-single-product > .row > .col-md-6:first-of-type,
    .single-product .xts-single-product > .woocommerce-tabs,
    .single-product .xts-single-product > .customer-reviews,
    .single-product .xts-single-product > section.related,
    .single-product .xts-single-product > section.up-sells {
        border-radius: 10px;
        margin-bottom: 24px !important; /* #8 2026-06-19: 8->24 mobile between-block gap */
    }
    .single-product .xts-single-product-summary .amg-title-card {
        border-radius: 10px;
    }
    .single-product .xts-single-product-summary .amg-title-card .xts-single-product-brands {
        top: 10px;
        right: 10px;
    }
    .single-product .xts-single-product-summary .amg-title-card .xts-single-product-brands img {
        max-width: 56px !important;
    }
    .single-product .xts-single-product-summary .amg-title-card h1.product_title {
        padding: 14px 76px 0 14px;
    }
    .single-product .xts-single-product-summary .amg-title-card .amg-sku-display {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 12px;
    }
    .single-product .xts-single-product-summary > .amg-stock-actions-row {
        border-radius: 0 0 10px 10px;
        padding: 4px 14px 12px;
    }
    .single-product .xts-single-product-summary form.cart {
        border-radius: 10px;
        padding: 12px 14px 14px;
        margin-top: 8px;
    }
    .single-product .xts-single-product-summary .xts-after-add-to-cart {
        border-radius: 10px;
        padding: 12px 14px;
        margin-top: 8px;
    }
    .single-product .amg-title-card > .woocommerce-product-details__short-description {
        padding: 10px 14px 14px;
    }
    .single-product .xts-single-product > .woocommerce-tabs,
    .single-product .xts-single-product > .customer-reviews,
    .single-product .xts-single-product > section.related,
    .single-product .xts-single-product > section.up-sells {
        padding: 14px 14px 12px;
    }
}

/* Safari dvh overrides for parent theme 100vh selectors */
.xts-login-side.xts-side-top {
    max-height: 100vh;
    max-height: 100dvh;
}
.xts-search-full-screen .xts-scroll-content.xts-opened:not(.xts-no-results) {
    height: calc(100vh - 265px);
    height: calc(100dvh - 265px);
}

/* =================================================================
   MOBILE STICKY NAVBAR SAFETY GUTTER 2026-05-01
   xts-sticky-navbar (75px) перекривав last grid card / footer на
   archive (brand/category), blog, search, shop. Single product має
   ВЛАСНИЙ gutter в amg-product-design-fixes.css (150px бо там 2 sticky
   bars: navbar + buy-bar). Тут — для всіх інших mobile сторінок з 1 баром.
   ================================================================= */
@media (max-width: 1024px) {
    body.archive:not(.single-product),
    body.post-type-archive-product:not(.single-product),
    body.blog:not(.single-product),
    body.search:not(.single-product),
    body.woocommerce-account:not(.single-product) /* /wishlist/ */ {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* =================================================================
   A11Y TOUCH TARGETS 2026-05-04
   Apple HIG / Material 48dp / WCAG 2.5.5: minimum 44×44px
   ================================================================= */
.amg-pet-toggle__btn,
.xts-account-link,
.xts-wishlist-link,
.xts-compare-link,
.xts-mini-cart-opener {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* pet-toggle has its own padding — preserve visual size, just enforce min-height */
.amg-pet-toggle__btn { padding-top: 11px; padding-bottom: 11px; }

/* =================================================================
   CART PAGE — fix duplicate × remove button 2026-05-04
   The XTS theme renders an icon-font glyph via ::before on `a.remove`,
   while the WC template ALSO outputs literal "×" text inside the link.
   Result: two X marks side by side. Hide the pseudo-element duplicate.
   ================================================================= */
.woocommerce-cart-form a.remove::before,
.woocommerce-cart-form a.remove::after,
table.shop_table a.remove::before,
table.shop_table a.remove::after,
.cart_item .product-remove a::before,
.cart_item .product-remove a::after {
    content: none !important;
    display: none !important;
}

/* =================================================================
   HEADER SEARCH — unified site-wide style 2026-05-04
   Was: pill 20px radius + 11.2px font (XTS default, narrow & cramped).
   Now: 10px radius + 14px desktop / 16px mobile (anti-iOS-zoom).
   Matches the cleaner /my_acc/ rendering that customers preferred.
   ================================================================= */
.searchform input.s,
.searchform input[type="search"],
.searchform input[type="text"],
.snize-input-style {
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    padding: 0 50px 0 14px !important;
    font-size: 14px !important;
    height: 42px !important;
    background: #fff !important;
    color: #111827 !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.searchform input.s::placeholder,
.searchform input[type="search"]::placeholder,
.snize-input-style::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}
.searchform input.s:focus,
.searchform input[type="search"]:focus,
.searchform input[type="text"]:focus,
.snize-input-style:focus {
    border-color: #1c49c2 !important;
    box-shadow: 0 0 0 3px rgba(28, 73, 194, 0.15) !important;
    outline: none !important;
}
/* Mobile: don't override height/padding (XTS theme controls header layout).
   Only bump font slightly (12px → 14px max) so placeholder is readable.
   Anything bigger has been observed to break header layout on real devices. */
@media (max-width: 768px) {
    .searchform input.s,
    .searchform input[type="search"],
    .searchform input[type="text"],
    .snize-input-style {
        font-size: 14px !important;
    }
}

/* =================================================================
   SEARCHANISE DROPDOWN — soften styling 2026-05-04
   Default Searchanise theme uses ALL-CAPS labels and 0px border-radius
   which clashes with our friendly brand voice and rounded input field.
   ================================================================= */
/* Column headers: "Популярні запити" / "Товари" — sentence case, softer underline */
.snize-ac-results .snize-label {
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.01em !important;
    color: #6b7280 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding-bottom: 9px !important;
    margin-bottom: 10px !important;
}
/* Suggestion items hover — pastel brand */
/* Product card hover — gentle lift */
.snize-ac-results .snize-product {
    border-radius: 10px !important;
    transition: background .15s, transform .15s !important;
}
.snize-ac-results .snize-product:hover {
    background: #f9fafb !important;
    border-radius: 10px !important;
}
/* "View all results" CTA — brand-aligned but no all-caps */
/* Stock badge — sentence case (was: ALL CAPS) */
.snize-ac-results .snize-in-stock,
.snize-ac-results .snize-out-of-stock {
    text-transform: none !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
}
/* Mobile dropdown — limit padding and full-width content */
@media (max-width: 737px) {
    .snize-ac-results .snize-label {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
}

/* =================================================================
   2026-05-14 — GLOBAL BUTTON DESIGN SYSTEM
   -----------------------------------------------------------------
   Override XTS Hitek defaults (style.css:388-444) so every
   <button>/.btn/.button looks consistent without per-component
   !important fights. Components that already self-style with
   !important (.amg-cc-chip, .amg-recap-card__edit, qty controls,
   address-book pill, etc.) are unaffected.

   Tokens used:
     #190a03 ink           — text + dark-fill CTAs
     #ffba00 amber-signal  — primary "buy" CTAs (existing brand colour)
     #fafaf7 ivory-soft    — secondary hover bg
     slate (94/cb/e2)      — neutral borders
   ================================================================= */

/* ── Default surface: secondary outline (white + slate border + ink text) ── */
.btn,
.button,
.xts-button,
button,
[type="submit"],
[type="button"] {
    padding: 8px 18px;
    min-height: 44px;
    background-color: #fff;
    color: #190a03;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    line-height: 1.3;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover,
.button:hover,
.xts-button:hover,
button:hover,
[type="submit"]:hover,
[type="button"]:hover {
    background-color: #fafaf7;
    color: #190a03;
    border-color: #cbd5e1;
}
.btn:focus-visible,
.button:focus-visible,
.xts-button:focus-visible,
button:focus-visible,
[type="submit"]:focus-visible,
[type="button"]:focus-visible {
    outline: 2px solid #190a03;
    outline-offset: 2px;
}
button[disabled],
input[disabled],
.button[disabled],
.btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* ── Primary CTA — amber filled (brand "buy" actions) ── */
.button.alt,
#place_order,
.single_add_to_cart_button,
.xts-sticky-atc .single_add_to_cart_button,
.cart_totals .checkout-button,
.checkout-button,
.xts-buy-now-btn {
    background-color: #ffba00;
    color: #190a03;
    border-color: #ffba00;
    font-weight: 600;
}
.button.alt:hover,
#place_order:hover,
.single_add_to_cart_button:hover,
.xts-sticky-atc .single_add_to_cart_button:hover,
.cart_totals .checkout-button:hover,
.checkout-button:hover,
.xts-buy-now-btn:hover {
    background-color: #ecae00;
    color: #190a03;
    border-color: #ecae00;
}

/* ── Dark filled — для secondary CTA (наприклад, AffWP, "Підтвердити", neutral) ── */

/* ── Грідні "Купити" — outline ink → ink-fill on hover ── */
.add_to_cart_button {
    background-color: #fff;
    color: #190a03;
    border: 1px solid #190a03;
    font-weight: 600;
}
.add_to_cart_button:hover {
    background-color: #190a03;
    color: #fff;
    border-color: #190a03;
}

/* ── Mobile (≤768): touch target floor 44×44, slightly tighter padding ── */
@media (max-width: 768px) {
    .btn,
    .button,
    .xts-button,
    button,
    [type="submit"],
    [type="button"] {
        min-height: 44px;
        padding: 9px 16px;
    }
}

/* ── Opt-out: компоненти з власним обличчям (іконки-кнопки, qty,
   checkboxes/radios) — не зачіпаємо. ── */

.xts-quantity button,
.amg-qty-btn,
.amg-cart-popup__close,
input[type="checkbox"],
input[type="radio"] {
    background-color: initial;
    color: initial;
    border-radius: initial;
    min-height: initial;
    padding: initial;
    border: initial;
}

/* ============================================================
   Sticky-cats hover reveal: sync content with sidebar width slide.

   Symptom before fix: panel slides open in ~50ms (easeOutExpo on a
   200ms transition), but text/title/social-name had
   `transition: opacity .25s ease .12s` — 120ms delay, 250ms fade.
   Visible result: empty panel for ~120ms, then text fades in over
   the next 250ms = "сіпається" / "контент догнав".

   Fix:
   1. Replace the lagging opacity fade with a max-width clip that
      shares the SAME timing function as the sidebar width slide.
      Content geometrically unfolds in lock-step with the panel.
      No fade-in.
   2. Match icon shrink (28→25px) to the same timing function so
      icons don't slowly resize while the panel has already settled.
   3. Title chevron / arrow follows the same path.
   ============================================================ */
@media (min-width: 1025px) {
    /* 1. Content always opaque; reveal = max-width animation that shares
          the sidebar's timing function. */
    .xts-sticky-cats .xts-nav-sticky-cat > li > a .xts-nav-text,
    .xts-sticky-cats .xts-nav-sticky-cat > li > a:after,
    .xts-sticky-cats .xts-sticky-cats-title span,
    .xts-sticky-cats .xts-sticky-social-wrapper .xts-social-icons .xts-social-name {
        opacity: 1 !important;
        width: auto !important;
        overflow: hidden;
        transition: max-width 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
    }

    /* 2. Collapsed: clipped to 0 width (still in DOM, no fade needed). */
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a .xts-nav-text,
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a:after,
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-sticky-cats-title span,
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-sticky-social-wrapper .xts-social-icons .xts-social-name {
        max-width: 0 !important;
    }

    /* 3. Expanded (pinned / focus): full reveal up to text width.
          280px is safely larger than the longest item label.
          :hover-гілку прибрано — текст-лейбли розкриваються ЛИШЕ коли рейка
          реально розгорнута (.xts-expanded — JS-інтент 120мс, або :focus-within),
          інакше на побіжний hover лейбли «вивалювались» за межі 65px-рейки. */
    .xts-sticky-cats.xts-expanded .xts-nav-sticky-cat > li > a .xts-nav-text,
    .xts-sticky-cats.xts-expanded .xts-nav-sticky-cat > li > a:after,
    .xts-sticky-cats.xts-expanded .xts-sticky-cats-title span,
    .xts-sticky-cats.xts-expanded .xts-sticky-social-wrapper .xts-social-icons .xts-social-name,
    .xts-sticky-cats:focus-within .xts-nav-sticky-cat > li > a .xts-nav-text,
    .xts-sticky-cats:focus-within .xts-nav-sticky-cat > li > a:after,
    .xts-sticky-cats:focus-within .xts-sticky-cats-title span,
    .xts-sticky-cats:focus-within .xts-sticky-social-wrapper .xts-social-icons .xts-social-name {
        max-width: 280px !important;
    }

    /* 4. Icon size transition: match sidebar's easeOutExpo (was 'ease',
          which lags behind the snappy width slide). */
    .xts-sticky-cats .xts-nav-sticky-cat > li > a .xts-nav-img {
        transition: width 0.2s cubic-bezier(0.19, 1, 0.22, 1),
                    height 0.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
    }
}

/* === Mobile bottom navbar: History (link_1) icon greyed to match siblings (fixed 2026-06-22) ===
   eye-icon.svg is an <img> with a baked opaque stroke="#333" → CSS color can't reach it, so it
   rendered dark and looked permanently active, unlike the font-icon siblings (rgba(52,76,100,.6)).
   NOTE: the 2026-06-19 attempt failed for two reasons — (1) it lived only in this style.css, but
   the site serves style-purged.css; (2) masking the <img> itself does NOT recolor it (the image's
   own opaque pixels still paint over the background-color). Correct fix: hide the <img> and paint
   the eye shape via a masked pseudo-element inheriting the navbar slate (currentColor).
   This rule must also exist in style-purged.css (the file actually served). */
.xts-navbar-link-1 .xts-navbar-icon img {
    display: none;
}
.xts-navbar-link-1 .xts-navbar-icon::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: currentColor;
    -webkit-mask: url(/wp-content/uploads/2026/03/eye-icon.svg) center / contain no-repeat;
            mask: url(/wp-content/uploads/2026/03/eye-icon.svg) center / contain no-repeat;
}

/* ============================================================
   Blog hub H1 (SEO Phase 0, 2026-07-03)
   Rendered by the xts_before_loop hook on /blog/ and blog category archives.
   Sizing follows the theme page-title convention (.xts-page-title .xts-title).
   ============================================================ */

/* ============================================================
   Blog home v2 — hero-постер + чипи рубрик + «Популярне» (I2, 2026-07-03)
   Рендер: xts_before_loop → послідовність .col-12 .amg-bhv2-block у row теми,
   ПІСЛЯ H1 і ПЕРЕД .xts-content-area (сітка loop.php) + .xts-sidebar.
   Токени: ink #190a03, ivory #f8f4ec, amber #ffba00, herb-green #3a5f3a,
   manila-борд #e7ddc9. Шрифт теми Nunito (успадковується). Прапорець
   amg_blog_home_v2. Mobile-first перевірено на 390px.
   ============================================================ */

/* --- Hero-постер --- */
.amg-bhv2-hero:focus-visible {
    outline: 3px solid #1c49c2;
    outline-offset: 3px;
}

/* --- Чипи рубрик --- */

.amg-bhv2-chip:focus-visible {
    background: #190a03;
    border-color: #190a03;
    color: #f8f4ec;
    outline: none;
}

/* --- Секційні заголовки («Популярне», «Нові статті») --- */

/* --- «Популярне» (1 велика + список) --- */

/* --- Заголовок «Нові статті» над рідною сіткою --- */

/* --- Планшет/мобілка --- */
@media (max-width: 768px) {
    /* На мобілці текстовий блок вищий (стоїть від низу вгору) і заголовок сягає
       світлішої частини фото → сильніший скрим на всю висоту для контрасту. */
}

/* ============================================================
   Mobile off-canvas sidebar opener (FAB) reposition (Phase 0, 2026-07-03)
   The theme pins .xts-sidebar-opener at top:50%; right:0, so on mobile it sat
   over article/list body text. Move it to the bottom-right, stacked above the
   sticky scroll-to-top (right:12px; bottom:67px; 40px) and the 55px bottom
   navbar. The button is only relocated, never removed. Opener is displayed by
   the theme only at max-width:1024px, so this rule is scoped to match.
   ============================================================ */
@media (max-width: 1024px) {
    .xts-sidebar-opener.xts-action-btn {
        top: auto;
        bottom: 120px;
    }
}


/* ============================================================================
   Blog home v3 — ADME editorial redesign (задача #28, 2026-07-13).
   Scoped під body.amg-bhv3. Прототип: .design-engineer-plugin/prototype/
   bloghome-v31-adme.html. Критичний above-fold дублюється inline у wp_head @8
   (functions.php, amg_bhv3_critical_css). Прапорець amg_blog_home_v3 / preview.
   ============================================================================ */

/* masthead subtitle */

/* chips */
body.amg-bhv3 .amg-bhv3-chip.is-active{background:#1c49c2;border-color:#1c49c2;color:#fff}

/* pills + metrics (shared) */

/* hero (split editorial) */

/* main layout: feed + rail */

/* feed card (ADME white) */

/* cluster series band (manila) */

/* pager */
body.amg-bhv3 .amg-bhv3-pg.current,body.amg-bhv3 .amg-bhv3-pg.is-active{background:#190a03;border-color:#190a03;color:#fff}

/* rail: most read */

/* trust strip */

/* responsive */

/* ============================================================
   РЕЙКА: ЗГОРНУТИЙ СТАН + ПЛАШКА «КАТАЛОГ» (16.09.2026)
   Кут 65×65 був складений з трьох речей одна на одній: бургер-гліф 22px,
   напис «КАТАЛОГ» 11px капсом біля самого низу і 4px помаранчева смужка
   «індикатор режиму» (собаки й коти одного кольору → без інформації).
   Тепер: SVG-іконка каталогу 24px по центру, напис 12px звичайним регістром,
   смужки нема; поточна секція = заокруглений квадрат по центру колонки
   (стан «selected» #f0f6fc), без бежевого прямокутника зі смугою зліва.
   Дубль цього блоку — у 4 критичних зрізах amg-ccss (home/category/product/blog).
   ============================================================ */
@media (min-width: 1025px) {
    .xts-sticky-cats .amg-pet-indicator { display: none !important; }

    .xts-sticky-cats .xts-sticky-cats-title { position: relative !important; }
    .xts-sticky-cats .xts-sticky-cats-title::before {
        content: "" !important;
        font-size: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 10px !important;
        transform: translateX(-50%) !important;
        width: 24px !important;
        height: 24px !important;
        background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23190a03' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") center / 24px 24px no-repeat !important;
        opacity: 1 !important;
    }
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-sticky-cats-title::before {
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .xts-sticky-cats .xts-sticky-cats-title::after {
        content: "Каталог" !important;
        position: absolute !important;
        left: 50% !important;
        bottom: 8px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        color: rgba(25, 10, 3, 0.8) !important;
        white-space: nowrap !important;
        pointer-events: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    /* Розгорнута плашка: напис ховаємо, лишаються іконка каталогу зліва і пігулки кіт/пес */
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-sticky-cats-title::after {
        opacity: 0 !important;
    }

    /* Згорнута колонка: іконки 30px, поточна/улюблена секція = квадрат по центру */
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a.xts-nav-link {
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-content: center !important;
        border-left: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        transition: background .12s ease !important;
    }
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a.xts-nav-link .xts-nav-img {
        width: 30px !important;
        height: 30px !important;
    }
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li > a.xts-nav-link:hover {
        background: #f5f5f5 !important;
    }
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.amg-pet-preferred > a.xts-nav-link,
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.current-menu-item > a.xts-nav-link,
    .xts-sticky-cats:not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.current-menu-ancestor > a.xts-nav-link {
        background: #f0f6fc !important;
        border-left: 0 !important;
        box-shadow: none !important;
    }

    /* Розгорнута: заголовок поточної секції = така сама пігулка, як у категорій */
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.item-level-0 > a.xts-nav-link {
        margin: 0 10px !important;
        padding-left: 12px !important;
        border-radius: 10px !important;
        border-left: 0 !important;
    }
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.item-level-0.current-menu-item > a.xts-nav-link,
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.item-level-0.current-menu-ancestor > a.xts-nav-link {
        background: #f0f6fc !important;
        color: #143795 !important;
    }
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.item-level-0.current-menu-item > a.xts-nav-link .xts-nav-text,
    .xts-sticky-cats:is(.xts-expanded, :focus-within) .xts-nav-sticky-cat > li.item-level-0.current-menu-ancestor > a.xts-nav-link .xts-nav-text {
        color: #143795 !important;
    }
}

/* ============================================================
   ПЕРЕМИКАЧ КІТ/ПЕС У ШАПЦІ ПК І НА ПЛАШЦІ РЕЙКИ (16.09.2026)
   Той самий сегментований контрол, що на головній («Для кого купуєте?») і в
   мобільному дроверу: біла доріжка з hairline, обраний сегмент #ffba00 з маскотом
   (icon_dog/icon_cat, ставить amg-sidebar.js). Дубль у 4 зрізах amg-ccss.
   ============================================================ */
@media (min-width: 1025px) {
    .amg-pet-toggle-header,
    .xts-sticky-cats-title .amg-pet-toggle {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px !important;
        background: #fff !important;
        border: 1px solid rgba(25, 10, 3, 0.10) !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }
    .amg-pet-toggle-header .amg-pet-toggle__btn,
    .xts-sticky-cats-title .amg-pet-toggle .amg-pet-toggle__btn {
        height: 36px !important;
        min-height: 0 !important;
        padding: 0 14px 0 10px !important;
        gap: 8px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #190a03 !important;
        transition: background .15s ease, box-shadow .15s ease !important;
    }
    .amg-pet-toggle-header .amg-pet-toggle__btn:hover,
    .xts-sticky-cats-title .amg-pet-toggle .amg-pet-toggle__btn:hover {
        background: #f5f5f5 !important;
    }
    .amg-pet-toggle-header .amg-pet-toggle__btn.is-active,
    .xts-sticky-cats-title .amg-pet-toggle .amg-pet-toggle__btn.is-active {
        background: #ffba00 !important;
        box-shadow: 0 1px 3px rgba(25, 10, 3, 0.18) !important;
        font-weight: 800 !important;
    }
    .amg-pet-toggle__ico {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
        flex: 0 0 auto !important;
        display: block !important;
    }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    /* вузький десктоп: лише маскоти, 36×36 */
    .amg-pet-toggle-header .amg-pet-toggle__btn {
        width: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
        font-size: 0 !important;
        gap: 0 !important;
    }
}
