/*
 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
*/
.woocommerce-breadcrumb .breadcrumb-last:last-child {
display: none;
}

/* =================================================================
   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: #f59e0b !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
   ================================================================= */

.amigo-thankyou-modern {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

/* HERO SECTION */
.amigo-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 24px;
}

.amigo-hero__icon {
    margin-bottom: 20px;
}

.amigo-hero__icon svg {
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.3));
}

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

.amigo-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.amigo-hero__text {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.amigo-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* 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;
}

.amigo-btn--primary {
    background: linear-gradient(135deg, #ffcc00 0%, #ffba00 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 186, 0, 0.3);
}

.amigo-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 186, 0, 0.4);
    color: #1a1a1a;
}

.amigo-btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.amigo-btn--secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* DELIVERY DATE BOX */
.amigo-delivery-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.amigo-delivery-box__icon {
    font-size: 32px;
}

.amigo-delivery-box__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.amigo-delivery-box__date {
    font-size: 18px;
    font-weight: 700;
    color: #78350f;
}

.amigo-delivery-box__method {
    font-size: 14px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* TRACKING CTA */
.amigo-tracking-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.amigo-tracking-cta__icon {
    color: #16a34a;
    flex-shrink: 0;
}

.amigo-tracking-cta__text {
    flex: 1;
    font-size: 14px;
    color: #166534;
}

.amigo-tracking-cta__link {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    white-space: nowrap;
}

.amigo-tracking-cta__link:hover {
    color: #15803d;
    text-decoration: underline;
}

/* ORDER CARD */
.amigo-order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.amigo-order-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.amigo-order-card__info {
    flex: 1;
    min-width: 150px;
}

.amigo-order-card__number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

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

.amigo-order-card__status {
    flex-shrink: 0;
}

.amigo-order-card__total {
    text-align: right;
    min-width: 100px;
}

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

.amigo-order-card__total-value {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
}

/* BADGES */
.amigo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.amigo-badge--paid {
    background: #dcfce7;
    color: #166534;
}

.amigo-badge--paid::before {
    content: "✓";
}

.amigo-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.amigo-badge--pending::before {
    content: "⏳";
}

/* ORDER ITEMS */
.amigo-order-card__items {
    padding: 0;
}

.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__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.amigo-order-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amigo-order-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.amigo-order-item__details {
    flex: 1;
    min-width: 0;
}

.amigo-order-item__name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 4px;
}

.amigo-order-item__meta {
    font-size: 12px;
    color: #6b7280;
}

.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 */
.amigo-order-card__totals {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.amigo-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #4b5563;
}

.amigo-order-total-row--discount span:last-child {
    color: #16a34a;
    font-weight: 500;
}

.amigo-order-total-row--final {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.amigo-order-total-row--final span:last-child {
    color: #f59e0b;
    font-size: 18px;
}

/* PAYMENT METHOD */
.amigo-order-card__payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

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

.amigo-order-card__payment-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* SHIPPING CARD */
.amigo-shipping-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.amigo-shipping-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.amigo-shipping-card__icon {
    font-size: 20px;
}

.amigo-shipping-card__content {
    padding: 16px 20px;
}

.amigo-shipping-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.amigo-shipping-row:last-child {
    border-bottom: none;
}

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

.amigo-shipping-row__value {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

/* HIDE DEFAULT WOO ELEMENTS */
.amigo-thankyou-modern .woocommerce-thankyou-order-received,
.amigo-thankyou-modern .woocommerce-thankyou-order-details.order_details,
.amigo-thankyou-modern .woocommerce-order-details,
.amigo-thankyou-modern section.woocommerce-order-details {
    display: none !important;
}

/* Keep customer details visible but styled */
.amigo-thankyou-modern .woocommerce-customer-details {
    display: none !important;
}

/* ACTION BUTTONS */
.amigo-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.amigo-btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.amigo-btn--icon svg {
    flex-shrink: 0;
}

/* Стилі для wcrm кнопки в новому дизайні */
.amigo-thankyou-modern .wcrm-thankyou-remind {
    display: flex;
    justify-content: center;
    margin: 0 0 16px;
}

.amigo-thankyou-modern .wcrm-cta-remind {
    font-size: 15px;
    padding: 12px 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
    .amigo-thankyou-modern {
        padding: 12px;
    }
    
    .amigo-hero {
        padding: 30px 16px;
    }
    
    .amigo-hero__title {
        font-size: 22px;
    }
    
    .amigo-hero__icon svg {
        width: 64px;
        height: 64px;
    }
    
    .amigo-delivery-box {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    
    .amigo-delivery-box__method {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    .amigo-tracking-cta {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .amigo-order-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .amigo-order-card__total {
        text-align: left;
    }
    
    .amigo-order-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .amigo-order-item__details {
        flex: 1 1 calc(100% - 74px);
    }
    
    .amigo-order-item__qty,
    .amigo-order-item__price {
        font-size: 13px;
    }
    
    .amigo-shipping-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .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
   ----------------------------------------------------------------- */
.single-post .xts-single-post-title.xts-entities-title {
    display: none !important;
}

.single-post .xts-single-post-header {
    display: none !important;
}

/* -----------------------------------------------------------------
   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;
}

.single-post .xts-single-post-content {
    font-size: clamp(1.0625rem, 0.9vw + 0.8rem, 1.1875rem);
    line-height: 1.65;
    color: #1A1A1A;
}

.single-post .xts-single-post-content p {
    margin-bottom: 1.5em;
}

/* -----------------------------------------------------------------
   2. CONTENT WIDTH — title
   ----------------------------------------------------------------- */
.single-post .xts-page-title .xts-page-title-heading {
    max-width: 70ch;
    margin-inline: auto;
}

/* -----------------------------------------------------------------
   3. HEADINGS — spacing, sizing, balance
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content h2,
.single-post .xts-single-post-content h3,
.single-post .xts-single-post-content h4 {
    line-height: 1.25;
    text-wrap: balance;
    color: #1A1A1A;
}

.single-post .xts-single-post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
}

/* H2 decorative accent bar */
.single-post .xts-single-post-content > h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #ffba00;
    margin-top: 8px;
    border-radius: 2px;
}

.single-post .xts-single-post-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.single-post .xts-single-post-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Vet badge — green left border (medical/vet = green) */
.single-post .xts-single-post-content .blog-vet-badge {
    border-left: 4px solid #16a34a !important;
    background: #f0fdf4 !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 1rem 1.25rem !important;
    margin-block: 1.5rem !important;
}

/* "Головне" summary — green left border (div without a class, first child is h3 with green color) */
.single-post .xts-single-post-content > div[style*="border-left: 4px solid #2e7d32"],
.single-post .xts-single-post-content > div[style*="border-left:4px solid #2e7d32"] {
    border-left: 4px solid #16a34a !important;
    background: #f0fdf4 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 1.25rem 1.5rem !important;
    margin-block: 1.5rem !important;
}

/* "Зверніть увагу" info — blue left border */
.single-post .xts-single-post-content > div[style*="border-left: 4px solid #1565c0"],
.single-post .xts-single-post-content > div[style*="border-left:4px solid #1565c0"] {
    border-left: 4px solid #2563eb !important;
    background: #eff6ff !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 1.25rem 1.5rem !important;
    margin-block: 1.5rem !important;
}

/* "Порада" tip — amber left border */
.single-post .xts-single-post-content > div[style*="border-left: 4px solid #f9a825"],
.single-post .xts-single-post-content > div[style*="border-left:4px solid #f9a825"] {
    border-left: 4px solid #d97706 !important;
    background: #fffbeb !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 1.25rem 1.5rem !important;
    margin-block: 1.5rem !important;
}

/* Product recommendations block — keep original Clerk styling */
.single-post .xts-single-post-content .amg-clerk-recommendations {
    margin-block: 2rem !important;
}

/* -----------------------------------------------------------------
   5. TABLE OF CONTENTS — "Зміст"
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content .blog-toc {
    background: #f8f9fa !important;
    border: 1px solid #e2e2e2 !important;
    border-left: 3px solid #ffba00 !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 2rem !important;
}

.single-post .xts-single-post-content .blog-toc p {
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.05em;
}

.single-post .xts-single-post-content .blog-toc ul {
    margin: 0;
    padding-left: 0 !important;
    list-style: none;
    counter-reset: toc-counter;
}

.single-post .xts-single-post-content .blog-toc ul li {
    margin-bottom: 0.35rem;
    padding-left: 1.75em;
    position: relative;
    counter-increment: toc-counter;
}

.single-post .xts-single-post-content .blog-toc ul li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 1.25em;
}

.single-post .xts-single-post-content .blog-toc a {
    color: #1A1A1A !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 4px 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
    border-bottom: 1px solid transparent;
}

.single-post .xts-single-post-content .blog-toc a::before {
    content: "\2192\00a0";
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 0.85em;
}

.single-post .xts-single-post-content .blog-toc a:hover {
    color: #ffba00 !important;
    border-bottom-color: #ffba00;
}

.single-post .xts-single-post-content .blog-toc a:hover::before {
    opacity: 1;
}

/* -----------------------------------------------------------------
   6. RELATED POSTS — sidebar widget (clean up styling)
   Related posts live in off-canvas sidebar, keep as list
   ----------------------------------------------------------------- */
.single-post .widget_amg_related_posts .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1A1A1A;
}

/* -----------------------------------------------------------------
   7. IMAGES — rounded, subtle shadow (exclude product widgets)
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content > figure img,
.single-post .xts-single-post-content > p img,
.single-post .xts-single-post-content > img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-block: 1.5rem;
    height: auto;
}

.single-post .xts-single-post-content figure {
    margin-block: 1.5rem;
}

.single-post .xts-single-post-content figure img {
    margin-block: 0;
}

.single-post .xts-single-post-content figcaption {
    text-align: center;
    font-size: 0.8125rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Hero figure (first figure = full-width magazine feel) */
.single-post .xts-single-post-content > figure:first-of-type > img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* -----------------------------------------------------------------
   8. BLOCKQUOTES
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content blockquote {
    border-left: 4px solid #ffba00;
    background: #fffbf0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #374151;
    margin: 1.5rem 0;
}

.single-post .xts-single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------------------
   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(255, 186, 0, 0.5);
    color: #1A1A1A;
}

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

/* -----------------------------------------------------------------
   10. LISTS — spacing
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content ul,
.single-post .xts-single-post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.single-post .xts-single-post-content li {
    margin-bottom: 0.5em;
}

/* -----------------------------------------------------------------
   11. LINKS in content (exclude product widgets and callout boxes)
   ----------------------------------------------------------------- */
.single-post .xts-single-post-content > p a,
.single-post .xts-single-post-content > ul a,
.single-post .xts-single-post-content > ol a,
.single-post .xts-single-post-content > blockquote a {
    color: #b8860b;
    text-decoration: underline;
    text-decoration-color: rgba(184, 134, 11, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.single-post .xts-single-post-content > p a:hover,
.single-post .xts-single-post-content > ul a:hover,
.single-post .xts-single-post-content > ol a:hover,
.single-post .xts-single-post-content > blockquote a:hover {
    text-decoration-color: #b8860b;
}

/* -----------------------------------------------------------------
   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
   ----------------------------------------------------------------- */
.single-post .xts-single-post-footer {
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    border-top: 2px solid #f0f0f0;
    position: relative;
}

/* Accent dash on footer separator */
.single-post .xts-single-post-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ffba00;
}

/* -----------------------------------------------------------------
   13. MOBILE RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
    .single-post .xts-single-post-content {
        font-size: 1rem;
    }

    .single-post .xts-single-post-content h2 {
        font-size: 1.375rem;
        margin-top: 2rem;
    }

    .single-post .xts-single-post-content h3 {
        font-size: 1.1875rem;
        margin-top: 1.5rem;
    }

    .single-post .xts-single-post-content h4 {
        font-size: 1.0625rem;
        margin-top: 1rem;
    }

    /* Callout boxes: tighter padding on mobile */
    .single-post .xts-single-post-content .blog-vet-badge,
    .single-post .xts-single-post-content .blog-toc,
    .single-post .xts-single-post-content > div[style*="border-left: 4px solid"] {
        padding: 1rem 1.125rem !important;
    }

    /* TOC list items: slightly less indent on mobile */
    .single-post .xts-single-post-content .blog-toc ul li {
        padding-left: 1.5em;
    }

    /* Prevent content overflow */
    .single-post .xts-single-post-content img {
        max-width: 100%;
        height: auto;
    }

    .single-post .xts-single-post-content figure {
        margin-inline: 0;
    }
}

/* =================================================================
   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 #ffba00;
    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 #ffba00;
    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(:hover):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(:hover, .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(:hover):not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat {
    overflow: hidden !important;
    scrollbar-width: none;
}
.xts-sticky-cats:not(:hover):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(:hover):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(:hover):not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li {
    margin-left: 6px !important;
    margin-right: 6px !important;
}
.xts-sticky-cats:not(:hover):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(:hover):not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.amg-pet-preferred > .xts-nav-link,
.xts-sticky-cats:not(:hover):not(.xts-expanded):not(:focus-within) .xts-nav-sticky-cat > li.current-menu-item > .xts-nav-link,
.xts-sticky-cats:not(:hover):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(:hover):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 {
    transition: width 0.2s cubic-bezier(0.19, 1, 0.22, 1) 0s !important;
    will-change: width;
}
.xts-sticky-cats:not(:hover):not(.xts-expanded):not(:focus-within) {
    transition-delay: 0s !important;
}
.xts-sticky-cats:hover,
.xts-sticky-cats:focus-within {
    width: 450px !important;
}

/* Touch/hybrid devices: .xts-expanded mirrors :hover (click-to-toggle) */
.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;
}

/* === АКОРДЕОН: 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;
    transition: none !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;
    /* Close: fast and soft */
    transition: grid-template-rows 0.2s cubic-bezier(0.4, 0, 0.6, 1),
                visibility 0s linear 0.2s,
                opacity 0.15s ease !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-sticky-cats:not(:hover):not(.xts-expanded) .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(:hover, .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;
    /* Open: smooth and springy */
    transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s,
                opacity 0.2s ease !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(:hover, .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: підкатегорії (Їжа для собак, Амуніція, тощо) */
.xts-nav-sticky-cat .item-level-1 > .xts-nav-link {
    padding: 11px 34px 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) ---- */
.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: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 4px;
}
.xts-sticky-cats:is(:hover, .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(:hover, .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.12);
}
/* Стрілка на opener — чистий CSS chevron (не залежить від font-icon) */
.xts-nav-sticky-cat .menu-item-has-children > .xts-submenu-opener::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    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 рядок) */
.xts-nav-sticky-cat > .menu-item-has-children > .xts-submenu-opener {
    width: 42px;
    height: 46px;
}
.xts-sticky-cats:is(:hover, .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(:hover, .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(:hover, .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(:hover, .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(:hover, .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(:hover, .xts-expanded, :focus-within) .xts-nav-sticky-cat > li.menu-item-1158851,
.xts-sticky-cats:is(:hover, .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: 2px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.1);
    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(:hover, .xts-expanded, :focus-within) .amg-pet-toggle {
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease .12s;
}

/* Кнопки 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: rgba(25, 10, 3, 0.75);
    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(255, 255, 255, 0.35);
    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: solid white active state inside dark pill container */
.amg-pet-toggle .amg-pet-toggle__btn.is-active {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
/* 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,
.amg-pet-indicator--cat {
    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(:hover, .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;
}

.amg-qa__title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #767676;
    margin-bottom: 6px;
    font-weight: 600;
}
.amg-qa__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.amg-qa__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    min-height: 28px;
    background: rgba(var(--amg-accent-rgb), 0.1);
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.amg-qa__link:hover {
    background: var(--amg-accent);
    color: #fff;
    text-decoration: none;
}

/* 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;
}

/* Hide header toggle when sidebar expands (sidebar covers it at z:300 > z:200) */
body:has(.xts-sticky-cats:is(:hover, .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 */
@media (prefers-reduced-motion: reduce) {
    .xts-sticky-cats,
    .xts-sticky-cats *,
    .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;
    }
}

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

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

/* Clerk Elementor слайдери — більше повітря між ними */
.page-id-325130 .elementor-widget-html + .elementor-widget-html {
    margin-top: 24px;
}

/* Ангельські оченята — відступ зверху */
.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;
    }
    .page-id-325130 .elementor-widget-html + .elementor-widget-html {
        margin-top: 32px;
    }
    .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;
    }
    .page-id-325130 .elementor-widget-html + .elementor-widget-html {
        margin-top: 16px;
    }
}

/* Порожні плейсхолдери рекомендацій — не займають місце */
.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) {
    .xts-my-account-sidebar {
        margin-bottom: 0 !important;
        border-right: none !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .xts-my-account-sidebar .woocommerce-MyAccount-title {
        display: none !important;
    }
    /* 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;
    }
    .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        white-space: nowrap;
        padding: 0 40px 0 10px !important;
        margin: 0 !important;
        list-style: none !important;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(119,119,119,0.12);
    }
    .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: 12px 14px !important;
        font-size: 13px !important;
        border-bottom: 2px solid transparent;
        color: #6B7280 !important;
        text-decoration: none !important;
        transition: color 0.2s, border-color 0.2s;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a,
    .woocommerce-MyAccount-navigation ul li a:hover {
        color: #1F2937 !important;
        border-bottom-color: #FFBA00;
    }
    /* Hide logout from horizontal tabs */
    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
        display: none !important;
    }
}

/* MY ACCOUNT — desktop sidebar refinement */
@media (min-width: 768px) {
    .xts-my-account-sidebar {
        border-right: 1px solid #e5e7eb !important;
        padding-right: 20px !important;
    }
    .xts-my-account-sidebar .woocommerce-MyAccount-title h3 {
        font-size: 1.1em !important;
        font-weight: 700 !important;
        color: #1F2937 !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
    .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: #4B5563 !important;
        text-decoration: none !important;
        font-size: 0.95em !important;
        border-right: 3px solid transparent;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
        border-radius: 6px 0 0 6px;
    }
    .woocommerce-MyAccount-navigation ul li a:hover {
        color: #FFBA00 !important;
        background: #FFFBEB !important;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a {
        color: #FFBA00 !important;
        border-right-color: #FFBA00 !important;
        background: #FFFBEB !important;
        font-weight: 600 !important;
    }
    /* Padding between sidebar and content */
    .woocommerce-MyAccount-content {
        padding-left: 24px !important;
    }
}

/* =================================================================
   HEADER COUNTER BADGES — unified red
   ================================================================= */
.xts-header-cart.xts-design-count .xts-cart-count,
.xts-header-compare.xts-design-count .xts-compare-count,
.xts-header-wishlist.xts-design-count .xts-wishlist-count,
.xts-header-cart.xts-design-count-alt .xts-cart-count,
.xts-header-compare.xts-design-count-alt .xts-compare-count,
.xts-header-wishlist.xts-design-count-alt .xts-wishlist-count,
.xts-header-cart.xts-design-round .xts-header-el-icon > span,
.xts-header-compare.xts-design-round .xts-header-el-icon > span,
.xts-header-wishlist.xts-design-round .xts-header-el-icon > span {
    background-color: #e53935 !important;
}

/* =================================================================
   PERFORMANCE — skip rendering offscreen content
   ================================================================= */
body.woocommerce-checkout .xts-side-mobile.xts-side-hidden {
    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: 16px !important;
}
.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: 16px !important;
    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: 8px !important;
    }
    .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-slider.xts-full-height .xts-slide {
    min-height: 100vh;
    min-height: 100dvh;
}
.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);
}
