/*
 Theme Name:   AllFillers Child
 Theme URI:    https://allfillers.ru
 Description:  Child theme for Storefront — AllFillers cosmetic shop
 Author:       AllFillers
 Author URI:   https://allfillers.ru
 Template:     storefront
 Version:      3.0.0
 Text Domain:  allfillers-child
*/

/* ══════════════════════════════════════════════════════════════
   DESIGN SYSTEM
   Tone: Medical-luxe. Clean, trustworthy, precise.
   Font: Manrope — geometric, modern, excellent Cyrillic.
   Palette: Deep teal + warm coral accent + neutral slate.
   ══════════════════════════════════════════════════════════════ */

:root {
    --af-teal: #0d5c63;
    --af-teal-light: #e8f4f5;
    --af-teal-mid: #1a8a93;
    --af-coral: #e05a47;
    --af-coral-light: #fef0ee;
    --af-gold: #c9a84c;
    --af-slate-900: #1a1d23;
    --af-slate-700: #374151;
    --af-slate-500: #6b7280;
    --af-slate-300: #d1d5db;
    --af-slate-100: #f3f4f6;
    --af-slate-50: #f9fafb;
    --af-white: #ffffff;
    --af-success: #059669;
    --af-radius: 8px;
    --af-radius-lg: 12px;
    --af-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --af-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --af-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --af-transition: 0.2s ease;
}

/* ── Global Typography ───────────────────────────────────────── */
body,
.storefront-sorting,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering select {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--af-slate-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.woocommerce div.product .product_title {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700;
    color: var(--af-slate-900);
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

a {
    color: var(--af-teal);
    transition: color var(--af-transition);
}

a:hover {
    color: var(--af-teal-mid);
}

/* ── Top Header Bar (phone + messengers) ─────────────────────── */
.af-header-bar {
    background: var(--af-slate-900);
    color: var(--af-white);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

.af-header-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.af-header-contacts {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.af-phone {
    color: var(--af-white) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    transition: opacity var(--af-transition);
}

.af-phone:hover {
    opacity: 0.85;
    color: var(--af-white) !important;
}

.af-phone svg {
    opacity: 0.7;
}

.af-header-messengers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.af-header-messengers a {
    color: var(--af-white) !important;
    opacity: 0.7;
    transition: opacity var(--af-transition);
    display: flex;
    line-height: 1;
}

.af-header-messengers a:hover {
    opacity: 1;
}

/* ── Site Header (Storefront overrides) ──────────────────────── */
.site-header {
    border-bottom: 1px solid var(--af-slate-100) !important;
    box-shadow: var(--af-shadow-sm) !important;
    background: var(--af-white) !important;
}

.site-header .col-full {
    max-width: 1200px;
}

.site-branding .site-title a {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800;
    font-size: 1.4rem !important;
    color: var(--af-teal) !important;
    letter-spacing: -0.03em;
    text-transform: none;
}

.site-branding .site-description {
    font-size: 0.75rem;
    color: var(--af-slate-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Main Navigation ─────────────────────────────────────────── */
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a,
.storefront-primary-navigation .menu > li > a {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.01em;
    color: var(--af-slate-700) !important;
    padding: 0.6rem 0.65rem !important;
    transition: color var(--af-transition);
    white-space: nowrap;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover {
    color: var(--af-teal) !important;
}

.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current_page_item > a {
    color: var(--af-teal) !important;
}

/* Dropdown menus */
.main-navigation ul.menu ul,
.main-navigation ul.nav-menu ul {
    background: var(--af-white);
    border: 1px solid var(--af-slate-100);
    border-radius: var(--af-radius);
    box-shadow: var(--af-shadow-lg);
    padding: 0.5rem 0;
}

.main-navigation ul.menu ul li a,
.main-navigation ul.nav-menu ul li a {
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.25rem !important;
    color: var(--af-slate-700) !important;
}

.main-navigation ul.menu ul li a:hover {
    background: var(--af-teal-light);
    color: var(--af-teal) !important;
}

/* ── Storefront Primary Navigation Bar ───────────────────────── */
.storefront-primary-navigation,
#site-navigation {
    background: var(--af-white) !important;
    border-bottom: none !important;
}

/* Hide Storefront auto-generated pages list (duplicates the primary menu) */
#site-navigation > div.menu {
    display: none !important;
}

/* ── Sticky Header ──────────────────────────────────────────── */
.site-header.af-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: af-slideDown 0.3s ease;
    box-shadow: var(--af-shadow) !important;
}

.site-header.af-sticky + .site-content,
.site-header.af-sticky ~ .site-content {
    padding-top: 80px;
}

@keyframes af-slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ── Search Form ─────────────────────────────────────────────── */
.site-search .widget_product_search form,
.site-header .widget_product_search form {
    position: relative;
}

.site-search input[type="search"],
.site-header input[type="search"] {
    font-family: 'Manrope', sans-serif !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    padding: 0.55rem 1rem 0.55rem 2.5rem !important;
    font-size: 0.88rem !important;
    background: var(--af-slate-50) !important;
    transition: border-color var(--af-transition), background var(--af-transition);
}

.site-search input[type="search"]:focus,
.site-header input[type="search"]:focus {
    border-color: var(--af-teal) !important;
    background: var(--af-white) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1) !important;
}

/* ── Cart Widget ─────────────────────────────────────────────── */
.site-header-cart .cart-contents {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600;
    color: var(--af-slate-700) !important;
    font-size: 0.88rem;
}

.site-header-cart .count {
    background: var(--af-teal) !important;
    color: var(--af-white) !important;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 !important;
    width: 20px;
    height: 20px;
    display: none !important; /* Hidden by default — JS adds .af-cart-has-items */
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.site-header-cart .count.af-cart-has-items {
    display: inline-flex !important;
}

/* Hide cart price & item count text on desktop — show only icon + count badge */
.site-header-cart .cart-contents .woocommerce-Price-amount,
.site-header-cart .cart-contents del {
    display: none !important;
}

.site-header-cart .cart-contents .count {
    font-size: 0 !important;
}



/* Ensure cart link has no strikethrough */
.site-header-cart .cart-contents span,
.site-header-cart .cart-contents {
    text-decoration: none !important;
}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.woocommerce-breadcrumb {
    font-size: 0.82rem !important;
    color: var(--af-slate-500) !important;
    padding: 1rem 0 !important;
    margin-bottom: 0.5rem !important;
    border-bottom: none !important;
}

.woocommerce-breadcrumb a {
    color: var(--af-teal) !important;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CATALOG
   ══════════════════════════════════════════════════════════════ */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

/* Ensure product items fill grid cells properly */
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Popular products section — explicit grid */
.af-popular .woocommerce ul.products,
.af-popular ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

.af-popular ul.products::before,
.af-popular ul.products::after {
    display: none !important;
    content: none !important;
}

/* ── Catalog Filter Toggle Button (mobile) ─────────────────── */
.af-filter-toggle {
    display: none; /* Hidden on desktop by default */
}

/* ── Catalog Search + Filters ───────────────────────────────── */
.af-catalog-filters {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--af-slate-50);
    border-radius: var(--af-radius-lg);
    border: 1px solid var(--af-slate-100);
}

.af-filter-form {
    margin: 0;
}

.af-filter-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.af-filter-search {
    flex: 1;
    position: relative;
    display: flex;
}

.af-search-input {
    width: 100%;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.88rem !important;
    padding: 0.6rem 2.5rem 0.6rem 1rem !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    background: var(--af-white) !important;
    color: var(--af-slate-700);
    outline: none;
    transition: border-color var(--af-transition), box-shadow var(--af-transition);
}

.af-search-input:focus {
    border-color: var(--af-teal) !important;
    box-shadow: 0 0 0 3px rgba(13,92,99,0.1) !important;
}

.af-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--af-slate-500);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.af-search-btn:hover {
    color: var(--af-teal);
}

.af-filter-selects {
    display: flex;
    gap: 0.5rem;
}

.af-filter-select {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 2rem 0.55rem 0.75rem !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    background: var(--af-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center !important;
    appearance: none;
    -webkit-appearance: none;
    color: var(--af-slate-700);
    cursor: pointer;
    min-width: 140px;
    outline: none;
    transition: border-color var(--af-transition);
}

.af-filter-select:focus {
    border-color: var(--af-teal) !important;
}

/* Desktop: filters always visible, toggle button hidden */
@media (min-width: 769px) {
    .af-filter-toggle {
        display: none !important;
    }

    .af-catalog-filters,
    .af-catalog-filters.collapsed,
    .af-catalog-filters.expanded {
        display: block !important;
    }
}

/* Mobile: collapsible filters */
@media (max-width: 768px) {
    .af-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        height: 44px;
        background: var(--af-teal);
        color: var(--af-white);
        border: none;
        border-radius: var(--af-radius);
        font-family: 'Manrope', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 0.75rem;
        transition: background var(--af-transition);
    }

    .af-filter-toggle:hover {
        background: #0a4a50;
    }

    .af-filter-toggle.active {
        background: #0a4a50;
    }

    .af-filter-toggle svg {
        flex-shrink: 0;
    }

    .af-catalog-filters.collapsed {
        display: none;
    }

    .af-catalog-filters.expanded {
        display: block;
    }

    .af-filter-row {
        flex-direction: column;
    }

    .af-filter-selects {
        flex-direction: row;
    }

    .af-filter-select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .af-filter-selects {
        flex-direction: column;
    }

    .af-catalog-filters {
        padding: 0.75rem;
    }
}

/* ── Price Filter ──────────────────────────────────────────── */
.af-price-filter {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.af-price-filter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.af-price-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--af-slate-700);
}

.af-price-input {
    width: 90px;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius);
    font-size: 0.85rem;
    font-family: 'Manrope', sans-serif;
}

.af-price-input:focus {
    border-color: var(--af-teal);
    outline: none;
}

.af-price-dash {
    color: var(--af-slate-400);
}

.af-price-btn {
    background: var(--af-teal);
    color: white;
    border: none;
    border-radius: var(--af-radius);
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

.af-price-btn:hover {
    background: #0a4a50;
}

@media (max-width: 768px) {
    .af-price-filter-form {
        gap: 0.35rem;
    }
    .af-price-input {
        width: 70px;
        font-size: 0.82rem;
    }
}

/* ── Cart Upsell ───────────────────────────────────────────── */
.af-cart-upsell {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--af-slate-100);
}

.af-cart-upsell .af-section-title {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

/* ── Empty Cart Recommendations ───────────────────────────── */
.af-empty-cart-recs {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--af-slate-200);
}

.af-empty-cart-recs h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--af-slate-900);
}

.woocommerce ul.products li.product {
    position: relative;
    background: var(--af-white);
    border: 1px solid var(--af-slate-100);
    border-radius: var(--af-radius-lg);
    padding: 0.75rem;
    transition: box-shadow var(--af-transition), transform var(--af-transition);
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--af-shadow);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    border-radius: var(--af-radius);
    margin-bottom: 0.75rem !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--af-slate-900) !important;
    line-height: 1.35;
    padding: 0 !important;
    margin-bottom: 0.35rem;
}

.woocommerce ul.products li.product .price {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--af-teal) !important;
    margin-bottom: 0.5rem;
}

.woocommerce ul.products li.product .price del {
    color: var(--af-slate-500) !important;
    font-weight: 400;
    font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .price ins {
    color: var(--af-coral) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Add to Cart button (catalog) */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    font-family: 'Manrope', sans-serif !important;
    background: var(--af-teal) !important;
    color: var(--af-white) !important;
    border: none !important;
    border-radius: var(--af-radius) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.55rem 1rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: background var(--af-transition), transform var(--af-transition);
    width: 100%;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--af-teal-mid) !important;
    transform: translateY(-1px);
}

/* WooCommerce Block product buttons (cart page, shortcodes) */
.wp-block-button__link.add_to_cart_button,
.wc-block-grid__product .wp-block-button__link {
    background: var(--af-teal) !important;
    color: var(--af-white) !important;
    border: none !important;
    border-radius: var(--af-radius) !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.55rem 1rem !important;
    transition: background var(--af-transition);
}
.wp-block-button__link.add_to_cart_button:hover,
.wc-block-grid__product .wp-block-button__link:hover {
    background: var(--af-teal-mid) !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--af-coral) !important;
    color: var(--af-white) !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: var(--af-radius) !important;
    padding: 0.3rem 0.75rem !important;
    min-height: unset !important;
    min-width: unset !important;
    line-height: 1.4 !important;
}

/* ── Stock Badge (catalog cards) ──────────────────────────── */
.af-stock-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

.af-in-stock {
    background: #ecfdf5;
    color: #059669;
}

.af-out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

.af-low-stock {
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
}

.af-backorder {
    background: #eff6ff;
    color: #2563eb;
}

/* ── Product Badges ──────────────────────────────────────── */
.af-badge {
    position: absolute;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.af-badge-hit {
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--af-gold), #b8963e);
    color: #fff;
}

.af-badge-new {
    top: 8px;
    right: 8px;
    background: var(--af-teal);
    color: #fff;
}

/* When both hit and new exist, stack them */
.af-badge-hit + .af-badge-new {
    top: 32px;
}

/* Sale badge already exists as span.onsale — it's top-left by default from WC */
/* Make sure our badges don't overlap with sale badge (which is top-left) */

/* ── Sales Counter (catalog cards) ───────────────────────── */
.af-sales-count {
    display: block;
    font-size: 0.75rem;
    color: var(--af-slate-500);
    margin-top: 0.15rem;
    font-weight: 400;
}

.af-sales-count::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--af-teal);
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* ── Volume Discount Notice (product page) ───────────────── */
.af-volume-discount {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--af-teal);
    background: #ecfdf5;
    padding: 0.6rem 1rem;
    border-radius: var(--af-radius);
    margin-bottom: 1rem;
    border: 1px solid #d1fae5;
}

.af-volume-discount svg {
    flex-shrink: 0;
}

/* ── Free Shipping Progress Bar ──────────────────────────── */
.af-shipping-progress {
    background: var(--af-slate-50);
    border-radius: var(--af-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--af-slate-200);
}

.af-shipping-progress p {
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--af-slate-700);
}

.af-shipping-progress p strong {
    color: var(--af-teal);
}

.af-shipping-bar {
    height: 8px;
    background: var(--af-slate-200);
    border-radius: 4px;
    overflow: hidden;
}

.af-shipping-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--af-teal), #10b981);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.af-shipping-progress.af-shipping-free {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.af-shipping-progress.af-shipping-free p {
    color: #059669;
}

.af-shipping-progress.af-shipping-free .af-shipping-bar-fill {
    background: #059669;
}

/* ══════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ══════════════════════════════════════════════════════════════ */

.single-product div.product .product_title {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25;
}

.single-product .summary .price {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--af-teal) !important;
    margin-bottom: 1rem;
}

.single-product .summary .price del {
    color: var(--af-slate-500) !important;
    font-weight: 400;
    font-size: 1.2rem !important;
}

.single-product .summary .price ins {
    color: var(--af-coral) !important;
    text-decoration: none !important;
}

.single-product .stock {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--af-radius);
    display: inline-block;
}

.single-product .stock.in-stock {
    color: var(--af-success);
    background: #ecfdf5;
}

.single-product .stock.out-of-stock {
    color: var(--af-coral);
    background: var(--af-coral-light);
}

/* Add to Cart button (single product) */
.single-product .cart .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    font-family: 'Manrope', sans-serif !important;
    background: var(--af-coral) !important;
    color: var(--af-white) !important;
    border: none !important;
    border-radius: var(--af-radius) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.85rem 2rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: background var(--af-transition), transform var(--af-transition), box-shadow var(--af-transition);
}

.single-product .cart .single_add_to_cart_button:hover {
    background: #c9493a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 90, 71, 0.3);
}

/* Quantity input */
.single-product .quantity input[type="number"] {
    font-family: 'Manrope', sans-serif !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    font-weight: 600;
    text-align: center;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--af-slate-100) !important;
    padding: 0 !important;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    color: var(--af-slate-500) !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--af-transition), border-color var(--af-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--af-teal) !important;
    border-bottom-color: var(--af-teal);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--af-teal) !important;
}

/* Product description content */
.woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-tabs .panel {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--af-slate-700);
}

.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--af-slate-900);
}

/* Product gallery */
.single-product div.product .woocommerce-product-gallery {
    border-radius: var(--af-radius-lg);
    overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: var(--af-radius);
}

/* SKU & meta */
.single-product .product_meta {
    font-size: 0.82rem;
    color: var(--af-slate-500);
    border-top: 1px solid var(--af-slate-100);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.single-product .product_meta a {
    color: var(--af-teal);
}

/* ── Trust Block ─────────────────────────────────────────────── */
.af-trust-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--af-slate-100);
    margin: 2.5rem 0;
    clear: both;
}

/* Trust block inside product summary column — 2-col grid that fits the narrow column */
.single-product .summary .af-trust-block {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
}

.af-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: var(--af-radius);
    transition: background var(--af-transition);
}

.af-trust-item:hover {
    background: var(--af-slate-50);
}

.af-trust-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--af-teal-light);
    border-radius: var(--af-radius);
    color: var(--af-teal);
}

.af-trust-item h4 {
    font-family: 'Manrope', sans-serif !important;
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--af-slate-900);
}

.af-trust-item p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--af-slate-500);
    line-height: 1.45;
}

/* ── Messenger Buttons ───────────────────────────────────────── */
.af-messengers {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
}

.af-messengers a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--af-radius);
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--af-white) !important;
    transition: transform var(--af-transition), box-shadow var(--af-transition);
}

.af-messengers a:hover {
    transform: translateY(-1px);
}

.af-messengers .af-telegram {
    background: #0088cc;
}

.af-messengers .af-telegram:hover {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.af-messengers .af-whatsapp {
    background: #25d366;
}

.af-messengers .af-whatsapp:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ── Buy in 1 Click Button ──────────────────────────────────── */
.af-buy-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    margin-left: 0.5rem;
    background: var(--af-teal);
    color: var(--af-white) !important;
    border: none;
    border-radius: var(--af-radius);
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--af-transition), transform var(--af-transition), box-shadow var(--af-transition);
    white-space: nowrap;
}
.af-buy-now-btn:hover {
    background: var(--af-teal-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 92, 99, 0.3);
}
.af-buy-now-btn svg {
    flex-shrink: 0;
}

/* ── Buy Now Modal ─────────────────────────────────────────── */
.af-buynow-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.af-buynow-overlay.af-buynow-active {
    display: flex;
}
.af-buynow-modal {
    position: relative;
    background: var(--af-white);
    border-radius: var(--af-radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--af-shadow-lg);
    animation: afModalIn 0.25s ease-out;
}
@keyframes afModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.af-buynow-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--af-slate-500);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.af-buynow-close:hover {
    color: var(--af-slate-900);
}
.af-buynow-modal h3 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--af-slate-900);
    margin: 0 0 0.25rem;
}
.af-buynow-product {
    font-size: 0.9rem;
    color: var(--af-teal);
    font-weight: 600;
    margin: 0 0 1.25rem;
}
.af-buynow-field {
    margin-bottom: 0.85rem;
}
.af-buynow-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--af-slate-300);
    border-radius: var(--af-radius);
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.95rem;
    color: var(--af-slate-900);
    transition: border-color var(--af-transition), box-shadow var(--af-transition);
    box-sizing: border-box;
}
.af-buynow-field input:focus {
    outline: none;
    border-color: var(--af-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}
.af-buynow-field input::placeholder {
    color: var(--af-slate-500);
}
.af-buynow-submit {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.af-buynow-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--af-slate-500);
    margin: 0.75rem 0 0;
}
.af-buynow-success {
    text-align: center;
    padding: 1rem 0;
}
.af-buynow-success h4 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.2rem;
    color: var(--af-success);
    margin: 0.75rem 0 0.5rem;
}
.af-buynow-success p {
    color: var(--af-slate-700);
    font-size: 0.9rem;
    margin: 0;
}
.af-buynow-error p {
    text-align: center;
    color: var(--af-coral);
    font-size: 0.9rem;
}

/* ── Cross-sells ─────────────────────────────────────────────── */
.cross-sells {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--af-slate-100);
}

.cross-sells h2 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--af-slate-900);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.af-footer-trust {
    background: var(--af-slate-900);
    color: var(--af-slate-300);
    padding: 3rem 0;
}

.af-footer-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.af-footer-col h4 {
    font-family: 'Manrope', sans-serif !important;
    color: var(--af-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    letter-spacing: 0.01em;
}

.af-footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.4rem;
    color: var(--af-slate-300);
}

.af-footer-col a {
    color: var(--af-slate-300) !important;
    text-decoration: none;
    transition: color var(--af-transition);
}

.af-footer-col a:hover {
    color: var(--af-white) !important;
}

/* Storefront footer override */
.site-footer {
    background: var(--af-slate-900) !important;
    color: var(--af-slate-500) !important;
    border-top: none !important;
    padding: 1.25rem 0 !important;
}

.site-footer .site-info {
    color: var(--af-slate-500) !important;
    font-size: 0.78rem;
    text-align: center;
}

.site-footer .site-info a {
    color: var(--af-slate-500) !important;
}

/* Hide the default Storefront footer widgets if empty */
.footer-widgets {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   CART & CHECKOUT
   ══════════════════════════════════════════════════════════════ */

.woocommerce table.shop_table {
    border-radius: var(--af-radius-lg) !important;
    border: 1px solid var(--af-slate-100) !important;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700;
    color: var(--af-slate-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce table.shop_table td {
    font-size: 0.9rem;
    color: var(--af-slate-700);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    font-family: 'Manrope', sans-serif !important;
    border-radius: var(--af-radius) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--af-teal) !important;
    color: var(--af-white) !important;
    border: none !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--af-teal-mid) !important;
}

/* Checkout form */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    font-family: 'Manrope', sans-serif !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.9rem !important;
    transition: border-color var(--af-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--af-teal) !important;
    box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1) !important;
}

.woocommerce form .form-row label {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--af-slate-700);
}

/* ── Checkout Trust Strip ──────────────────────────────────── */
.af-checkout-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--af-slate-200);
}

.af-checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--af-slate-600);
    font-weight: 500;
}

.af-checkout-trust-item svg {
    color: var(--af-teal);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .af-checkout-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   WOOCOMMERCE NOTICES / MESSAGES
   ══════════════════════════════════════════════════════════════ */

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--af-teal) !important;
    background: var(--af-teal-light) !important;
    color: var(--af-teal) !important;
    border-radius: var(--af-radius) !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.88rem;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--af-teal) !important;
}

.woocommerce-error {
    border-top-color: var(--af-coral) !important;
    background: var(--af-coral-light) !important;
    border-radius: var(--af-radius) !important;
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600;
    border-radius: var(--af-radius) !important;
    border: 1px solid var(--af-slate-200) !important;
    color: var(--af-slate-700);
    min-width: 36px;
    padding: 0.4rem 0.75rem !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--af-teal) !important;
    color: var(--af-white) !important;
    border-color: var(--af-teal) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--af-teal-light) !important;
    color: var(--af-teal) !important;
    border-color: var(--af-teal) !important;
}

/* ══════════════════════════════════════════════════════════════
   SORTING & RESULTS COUNT
   ══════════════════════════════════════════════════════════════ */

.woocommerce-ordering select {
    font-family: 'Manrope', sans-serif !important;
    border: 1px solid var(--af-slate-300) !important;
    border-radius: var(--af-radius) !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    color: var(--af-slate-700);
}

.woocommerce-result-count {
    font-size: 0.82rem !important;
    color: var(--af-slate-500) !important;
}

/* ══════════════════════════════════════════════════════════════
   BLOG / ARTICLES
   ══════════════════════════════════════════════════════════════ */

.hentry .entry-header .entry-title a {
    font-family: 'Manrope', sans-serif !important;
    color: var(--af-slate-900);
    font-weight: 700;
}

.hentry .entry-header .entry-title a:hover {
    color: var(--af-teal);
}

.hentry .entry-content {
    font-size: 0.95rem;
    line-height: 1.75;
}

.hentry .entry-meta {
    font-size: 0.8rem;
    color: var(--af-slate-500);
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Shared section styles ──────────────────────────────────── */
.af-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.af-section-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--af-slate-900) !important;
    text-align: center;
    margin-bottom: 2.5rem !important;
    letter-spacing: -0.02em;
}

.af-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.af-section-header .af-section-title {
    text-align: left;
    margin-bottom: 0 !important;
    font-size: 1.5rem !important;
}

.af-section-link {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--af-teal) !important;
    text-decoration: none;
    white-space: nowrap;
}

.af-section-link:hover {
    color: var(--af-teal-mid) !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
.af-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--af-radius);
    text-decoration: none !important;
    transition: all var(--af-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.af-btn-primary {
    background: var(--af-coral);
    color: var(--af-white) !important;
}

.af-btn-primary:hover {
    background: #c9493a;
    color: var(--af-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 90, 71, 0.35);
}

.af-btn-outline {
    background: rgba(255,255,255,0.1);
    color: var(--af-white) !important;
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.af-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    color: var(--af-white) !important;
    border-color: rgba(255,255,255,0.9);
}

.af-btn-tg {
    background: #0088cc;
    color: var(--af-white) !important;
}

.af-btn-tg:hover {
    background: #006da5;
    color: var(--af-white) !important;
    transform: translateY(-1px);
}

.af-btn-wa {
    background: #25d366;
    color: var(--af-white) !important;
}

.af-btn-wa:hover {
    background: #1fb855;
    color: var(--af-white) !important;
    transform: translateY(-1px);
}

.af-btn-phone {
    background: var(--af-white);
    color: var(--af-slate-900) !important;
}

.af-btn-phone:hover {
    background: var(--af-slate-50);
    color: var(--af-slate-900) !important;
    transform: translateY(-1px);
}

/* ── Hero Section ───────────────────────────────────────────── */
.af-hero {
    background: linear-gradient(135deg, var(--af-teal) 0%, #0a4a50 60%, #083d42 100%);
    color: var(--af-white);
    padding: 4rem 0;
    position: relative;
}

.af-hero::before,
.af-hero::after {
    display: none;
}

.af-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.af-hero-content {
    flex: 1;
}

.af-hero-content h1 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--af-white) !important;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
}

.af-hero-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.95);
    margin: 0 0 2rem;
    max-width: 540px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.af-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.af-hero-trust {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

.af-hero-trust span {
    white-space: nowrap;
}

.af-hero-visual {
    flex: 0 0 40%;
    text-align: center;
}

.af-hero-visual img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

/* ── Professional Notice ────────────────────────────────────── */
.af-pro-notice {
    background: var(--af-coral-light);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(224, 90, 71, 0.15);
}

.af-pro-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.af-pro-notice-icon {
    flex-shrink: 0;
    color: var(--af-coral);
}

.af-pro-notice-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--af-slate-700);
    line-height: 1.5;
}

.af-pro-notice-inner strong {
    color: var(--af-slate-900);
}

/* ── Category Grid — Modern Overlay Cards ──────────────────── */
.af-categories {
    padding: 4rem 0;
    background: var(--af-slate-50);
}

.af-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.af-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    color: white;
    cursor: pointer;
}

.af-cat-card--featured {
    grid-column: span 2;
    min-height: 280px;
}

.af-cat-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.af-cat-card:hover .af-cat-card__img {
    transform: scale(1.08);
}

.af-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
    transition: background 0.3s ease;
}

.af-cat-card:hover .af-cat-card__overlay {
    background: linear-gradient(to top, rgba(13,92,99,0.85) 0%, rgba(13,92,99,0.2) 60%, rgba(13,92,99,0.05) 100%);
}

.af-cat-card__content {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem;
    width: 100%;
}

.af-cat-card__content h3 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.af-cat-card--featured .af-cat-card__content h3 {
    font-size: 1.75rem !important;
}

.af-cat-card .af-cat-count {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
}

/* Last card: span full width if alone in its row */
.af-cat-card:last-child:nth-child(3n - 2) {
    grid-column: 1 / -1;
    min-height: 200px;
}

/* 6 items with featured(2col): last is child 6, position 4 in grid cols = alone */
.af-cat-card:nth-child(6):last-child {
    grid-column: 1 / -1;
    min-height: 200px;
}

/* Mobile: 2-col grid */
@media (max-width: 768px) {
    .af-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .af-cat-card {
        min-height: 160px;
        border-radius: 12px;
    }

    .af-cat-card--featured {
        grid-column: span 2;
        min-height: 180px;
    }

    /* Last card alone: span full width on mobile */
    .af-cat-card:nth-child(6):last-child {
        grid-column: 1 / -1;
    }

    .af-cat-card__content {
        padding: 0.75rem 1rem;
    }

    .af-cat-card__content h3 {
        font-size: 1rem !important;
    }

    .af-cat-card--featured .af-cat-card__content h3 {
        font-size: 1.25rem !important;
    }

    .af-cat-card .af-cat-count {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .af-cat-card {
        min-height: 130px;
    }

    .af-cat-card--featured {
        min-height: 150px;
    }
}

/* ── Trust Strip (homepage) ─────────────────────────────────── */
.af-trust-strip {
    padding: 3.5rem 0;
    background: var(--af-white);
}

.af-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.af-trust-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.af-trust-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--af-teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--af-teal);
}

.af-trust-card h4 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--af-slate-900);
    margin: 0 0 0.5rem;
}

.af-trust-card p {
    font-size: 0.84rem;
    color: var(--af-slate-500);
    margin: 0;
    line-height: 1.55;
}

/* ── Popular Products ───────────────────────────────────────── */
.af-popular {
    padding: 4rem 0;
    background: var(--af-slate-50);
}

/* ── Brands Section ─────────────────────────────────────────── */
.af-brands {
    padding: 3.5rem 0;
    background: var(--af-white);
}

.af-brands-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    justify-items: center;
    align-items: center;
    flex-wrap: unset !important;
}

a.af-brand-item,
.af-brand-item {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b !important;
    background: var(--af-white);
    border: 1.5px solid #cbd5e1;
    border-radius: var(--af-radius);
    padding: 0.85rem 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.01em;
}

a.af-brand-item:hover,
.af-brand-item:hover {
    background: var(--af-teal);
    border-color: var(--af-teal);
    color: var(--af-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(13, 92, 99, 0.3);
}

/* Brand logos (when images are added) */
.af-brand-item img {
    max-height: 36px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--af-transition);
}

.af-brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Testimonials ───────────────────────────────────────────── */
.af-testimonials {
    padding: 4rem 0;
    background: var(--af-slate-50);
}

.af-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.af-review-card {
    background: var(--af-white);
    border: 1px solid var(--af-slate-100);
    border-radius: var(--af-radius-lg);
    padding: 1.75rem;
    transition: box-shadow var(--af-transition);
}

.af-review-card:hover {
    box-shadow: var(--af-shadow);
}

.af-review-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.af-review-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--af-slate-700);
    margin: 0 0 1.25rem;
    font-style: italic;
}

.af-review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--af-slate-100);
    padding-top: 0.75rem;
}

.af-review-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--af-slate-900);
}

.af-review-city {
    font-size: 0.82rem;
    color: var(--af-slate-500);
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.af-cta {
    padding: 3.5rem 0 1.5rem;
    background: var(--af-white);
}

/* Reduce whitespace between CTA and footer */
.af-cta + .af-footer-trust,
.af-cta:last-child {
    margin-top: 0;
}

.page-template-default .site-main,
.page-template-default #primary,
.page-template-default .content-area {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.page-template-default .site-content {
    padding-bottom: 0 !important;
}

.af-cta-inner {
    background: linear-gradient(135deg, var(--af-teal) 0%, #0a4a50 100%);
    background-size: cover;
    background-position: center;
    border-radius: var(--af-radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.af-cta-inner[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,92,99,0.75) 0%, rgba(10,74,80,0.8) 100%);
    z-index: 0;
}

.af-cta-inner > * {
    position: relative;
    z-index: 1;
}

.af-cta-text h2 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--af-white) !important;
    margin: 0 0 0.5rem;
}

.af-cta-text p {
    color: rgba(255,255,255,0.75);
    margin: 0;
    font-size: 0.95rem;
    max-width: 420px;
}

.af-cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Floating Messenger ─────────────────────────────────────── */
.af-float-messenger {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 998;
    display: none;
}

.af-float-tg,
.af-float-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    transition: all var(--af-transition);
}

.af-float-tg {
    background: #0088cc;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.af-float-wa {
    background: #25d366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.af-float-tg:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5);
}

.af-float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤992px) ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .af-hero-content h1 {
        font-size: 2rem !important;
    }

    .af-hero-inner {
        gap: 2rem;
    }

    .af-hero-visual {
        flex: 0 0 35%;
    }

    /* Product grid — 3 columns on tablet */
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .af-popular .woocommerce ul.products,
    .af-popular ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .af-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .af-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .af-testimonials-grid .af-review-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .af-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .af-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .af-cta-text p {
        max-width: none;
    }

    .af-cta-buttons {
        justify-content: center;
    }
}

/* ── Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* ── Mobile Header Bar — compact single line ── */
    .af-header-bar-inner {
        padding: 0.35rem 0.75rem;
    }

    .af-phone-mobile {
        display: none;
    }

    .af-phone {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .af-phone svg {
        display: none;
    }

    .af-header-messengers a svg {
        width: 16px;
        height: 16px;
    }

    .af-header-contacts {
        gap: 0.5rem;
    }

    /* ── Mobile Site Header — compact and clean ── */
    .site-header {
        padding: 0.35rem 0 !important;
        margin-bottom: 0 !important;
    }

    .site-header .col-full {
        padding: 0 0.75rem !important;
    }

    .site-branding {
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-branding .site-title {
        margin: 0 !important;
    }

    .site-branding .site-title a {
        font-size: 0 !important;
        font-weight: 800;
        overflow: hidden;
        white-space: nowrap;
        max-width: 220px;
        display: block;
    }

    /* Show only "AllFillers" on mobile, hide tagline from site title */
    .site-branding .site-title a::before {
        content: 'AllFillers';
        font-size: 1.1rem;
        font-weight: 800;
    }

    .site-branding .site-description {
        display: none;
    }

    /* Storefront handheld menu button — styled */
    .storefront-handheld-footer-bar,
    .handheld-navigation {
        z-index: 1000;
    }

    /* ── Mobile header layout: logo + cart + hamburger in one row ── */
    .site-header .col-full {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative;
    }

    /* Hamburger menu button — teal filled button with 3 bars */
    #site-navigation-menu-toggle,
    button.menu-toggle,
    .menu-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: var(--af-radius) !important;
        border: none !important;
        background: var(--af-teal) !important;
        color: var(--af-white) !important;
        font-size: 0 !important;
        line-height: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        overflow: hidden;
    }

    #site-navigation-menu-toggle span,
    button.menu-toggle span,
    .menu-toggle span {
        font-size: 0 !important;
        line-height: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }

    #site-navigation-menu-toggle::before,
    button.menu-toggle::before,
    .menu-toggle::before {
        content: '' !important;
        display: block !important;
        width: 20px;
        height: 2px;
        background: var(--af-white);
        box-shadow: 0 6px 0 var(--af-white), 0 -6px 0 var(--af-white);
        border-radius: 1px;
        position: absolute;
    }

    /* Move the hamburger into the header row via JS (see functions.php) */
    .af-mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    /* Show cart in mobile header actions */
    .af-mobile-actions .site-header-cart {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .af-mobile-actions .site-header-cart .cart-contents {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        background: var(--af-slate-100) !important;
        border-radius: var(--af-radius) !important;
        color: var(--af-teal) !important;
        text-decoration: none !important;
        position: relative;
    }

    /* Hide cart text (amount) on mobile, show only icon */
    .af-mobile-actions .site-header-cart .cart-contents .amount,
    .af-mobile-actions .site-header-cart .cart-contents span:not(.count) {
        display: none !important;
    }

    /* Cart icon via SVG background */
    .af-mobile-actions .site-header-cart .cart-contents::before {
        content: '' !important;
        display: block !important;
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5c63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }

    .af-mobile-actions .site-header-cart li {
        list-style: none;
        display: block !important;
    }

    /* Hide cart dropdown on mobile */
    .af-mobile-actions .site-header-cart .widget_shopping_cart {
        display: none !important;
    }

    /* Hide desktop search on mobile */
    .site-header .site-search,
    .site-header .widget_product_search {
        display: none !important;
    }

    /* Hide original nav container on mobile (button moved to .af-mobile-actions) */
    .main-navigation {
        position: static;
    }

    /* Remove default Storefront header spacing on mobile */
    .woocommerce-active .site-header {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Hide desktop search on mobile — will use dedicated search */
    .site-header .widget_product_search {
        display: none;
    }

    /* Compact cart on mobile */
    .site-header-cart {
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header-cart .cart-contents {
        font-size: 0.8rem;
        padding: 0.3rem 0 !important;
    }

    /* Reduce gap between header and content */
    .site-content {
        margin-top: 0 !important;
    }

    .woocommerce-breadcrumb {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.78rem !important;
    }

    /* Pro notice mobile */
    .af-pro-notice-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .af-pro-notice-inner p {
        font-size: 0.85rem;
    }

    /* Show floating messenger on mobile — raised to avoid covering CTAs */
    .af-float-messenger {
        display: block;
        bottom: 5rem !important;
    }

    /* On cart, checkout, and single product pages, hide floating telegram */
    .woocommerce-cart .af-float-messenger,
    .woocommerce-checkout .af-float-messenger,
    .single-product .af-float-messenger {
        display: none !important;
    }

    /* Buy Now button on mobile */
    .af-buy-now-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
    .af-buynow-modal {
        width: 95%;
        padding: 1.5rem;
    }

    /* ── Touch target fixes — min 44x44px ── */
    .af-header-messengers a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }

    .af-phone {
        padding: 0.5rem 0;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .af-search-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        padding: 0.7rem 1rem !important;
        min-height: 44px;
    }

    /* ── Sticky header padding for mobile ── */
    .admin-bar .site-header.af-sticky ~ .site-content,
    .site-header.af-sticky ~ .site-content {
        padding-top: 56px !important;
    }

    /* ── Cart count badge on mobile ── */
    .site-header-cart .cart-contents .count {
        font-size: 0 !important;
    }

    .site-header-cart .count {
        display: inline-flex !important;
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--af-coral);
        color: white;
        font-size: 0.65rem !important;
        font-weight: 700;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        line-height: 1;
    }

    .site-header-cart .cart-contents {
        position: relative;
    }

    /* ── Mobile navigation menu styling ── */
    .main-navigation ul.menu,
    .main-navigation ul.nav-menu,
    nav.woocommerce-MyAccount-navigation ul {
        background: var(--af-white);
    }

    .main-navigation ul li a,
    .handheld-navigation ul li a {
        font-family: 'Manrope', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: var(--af-slate-800);
        padding: 0.85rem 1.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--af-slate-100);
    }

    .main-navigation ul li a:hover,
    .handheld-navigation ul li a:hover {
        color: var(--af-teal);
        background: var(--af-slate-50);
    }

    .main-navigation ul li.current-menu-item > a,
    .handheld-navigation ul li.current-menu-item > a {
        color: var(--af-teal);
        font-weight: 600;
    }

    /* ── Hero mobile ── */
    .af-hero {
        padding: 3rem 0;
    }

    .af-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .af-hero-content h1 {
        font-size: 1.75rem !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .af-hero-sub {
        font-size: 1rem;
        max-width: none;
        text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }

    .af-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .af-hero-actions .af-btn {
        justify-content: center;
        width: 100%;
    }

    .af-hero-trust {
        justify-content: center;
    }

    .af-hero-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    .af-hero-visual img {
        max-height: 180px;
        margin: 0 auto;
        display: block;
    }

    .af-section-title {
        font-size: 1.35rem !important;
        margin-bottom: 1.75rem !important;
    }

    /* Trust mobile */
    .af-trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .af-trust-card {
        padding: 1rem 0.5rem;
    }

    /* Products mobile — 2 columns */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Remove Storefront pseudo-elements that break CSS grid */
    .woocommerce ul.products::before,
    .woocommerce ul.products::after {
        display: none !important;
        content: none !important;
    }

    .af-popular .woocommerce ul.products,
    .af-popular ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Product card text sizing on mobile */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 0.82rem !important;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.95rem !important;
        margin-bottom: 0.35rem;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 0.78rem !important;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        margin-bottom: 0.5rem !important;
    }

    .af-popular {
        padding: 3rem 0;
    }

    /* Testimonials mobile */
    .af-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .af-testimonials-grid .af-review-card:nth-child(3) {
        max-width: none;
    }

    /* Brands mobile */
    .af-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .af-brand-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }

    /* Empty cart recommendations — 2 columns on mobile */
    .af-empty-cart-recs ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* CTA mobile — reduce excessive whitespace before footer */
    .af-cta {
        padding: 2rem 0 0.75rem;
    }

    .af-cta-inner {
        padding: 2rem 1.5rem;
    }

    .af-cta-inner[style*="background-image"]::before {
        background: linear-gradient(135deg, rgba(13,92,99,0.88) 0%, rgba(10,74,80,0.92) 100%);
    }

    .af-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .af-cta-buttons .af-btn {
        justify-content: center;
        width: 100%;
    }

    /* Trust block (product page) */
    .af-trust-block {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .af-trust-item {
        padding: 0.5rem;
    }

    .af-trust-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .af-trust-icon svg {
        width: 18px;
        height: 18px;
    }

    .af-messengers {
        flex-direction: column;
    }

    .af-footer-trust-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-product div.product .product_title {
        font-size: 1.35rem !important;
    }

    .single-product .summary .price {
        font-size: 1.4rem !important;
    }

    /* Reduce whitespace around product gallery image on mobile */
    .single-product div.product .woocommerce-product-gallery {
        margin-bottom: 1rem !important;
        padding: 0 !important;
    }

    .single-product div.product .woocommerce-product-gallery .flex-viewport,
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
        margin: 0 !important;
    }

    .single-product div.product .images,
    .single-product div.product .woocommerce-product-gallery {
        margin-right: 0 !important;
        float: none !important;
        width: 100% !important;
    }

    .single-product div.product .summary {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Fix white gap between hero and categories on mobile */
    .af-hero {
        margin-bottom: 0 !important;
        padding-bottom: 2rem;
    }

    .af-categories {
        margin-top: -1px !important;
        padding-top: 2rem;
    }

    /* Storefront adds padding to content area — remove on mobile homepage */
    .page-template-default .site-main {
        padding-top: 0 !important;
    }

    /* Pagination: hide top pagination on mobile, only show below products */
    .woocommerce-pagination {
        order: 99;
        width: 100%;
        margin-top: 1.5rem;
    }

    /* Hide pagination and result count in the FIRST .storefront-sorting (above products) */
    .woocommerce-products-header + .storefront-sorting .woocommerce-pagination,
    .woocommerce-products-header + .storefront-sorting .woocommerce-result-count {
        display: none !important;
    }

    /* Show pagination in the SECOND .storefront-sorting (below products) */
    ul.products + .storefront-sorting .woocommerce-pagination {
        display: flex !important;
        justify-content: center;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce .woocommerce-result-count {
        width: 100%;
        text-align: center;
    }
}

/* ── Small mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    .af-hero {
        padding: 2.5rem 0;
    }

    .af-hero-content h1 {
        font-size: 1.45rem !important;
    }

    .af-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .af-hero-actions .af-btn {
        justify-content: center;
    }

    .af-hero-trust {
        gap: 1rem;
        font-size: 0.82rem;
    }

    .af-hero-visual img {
        max-height: 140px;
    }

    /* Product grid — 2 columns on small mobile */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }

    .af-popular .woocommerce ul.products,
    .af-popular ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }

    /* Tighter product card text on small mobile */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 0.78rem !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.88rem !important;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .add_to_cart_button {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.5rem !important;
    }

    .af-trust-grid {
        grid-template-columns: 1fr;
    }

    .af-trust-block {
        grid-template-columns: 1fr;
    }

    .af-header-contacts {
        gap: 0.5rem;
    }

    .af-phone {
        font-size: 0.78rem;
    }

    /* Even smaller site title on small mobile */
    .site-branding .site-title a {
        max-width: 160px;
    }

    .woocommerce ul.products li.product {
        padding: 0.5rem;
    }

    .af-section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    /* Badge overlap fix on narrow mobile cards */
    .af-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.45rem;
    }

    .af-stock-badge {
        font-size: 0.65rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   CONTENT AREA (max-width for readability)
   ══════════════════════════════════════════════════════════════ */

.col-full {
    max-width: 1200px !important;
}

/* Page / post content */
.page .hentry .entry-content,
.single-post .hentry .entry-content {
    max-width: 800px;
}

/* Constrain inline SVGs on content pages (Contacts, Certificates, etc.) */
.page .entry-content svg {
    max-width: 64px;
    max-height: 64px;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Also constrain SVGs inside paragraphs and divs */
.page .entry-content p svg,
.page .entry-content div svg {
    max-width: 48px;
    max-height: 48px;
}

/* Product description table styling */
.woocommerce div.product .woocommerce-tabs .panel table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.88rem;
    margin: 1rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce div.product .woocommerce-tabs .panel table td {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--af-slate-100);
    text-align: left;
}

.woocommerce div.product .woocommerce-tabs .panel table th {
    background: var(--af-slate-50);
    font-weight: 600;
    color: var(--af-slate-700);
}

/* ══════════════════════════════════════════════════════════════
   WIDGET AREA
   ══════════════════════════════════════════════════════════════ */

.widget h2,
.widget h3,
.widget .widget-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700;
    color: var(--af-slate-900);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.widget_product_categories ul li a,
.widget_categories ul li a {
    font-size: 0.88rem;
    color: var(--af-slate-700);
    padding: 0.35rem 0;
    display: block;
}

.widget_product_categories ul li a:hover,
.widget_categories ul li a:hover {
    color: var(--af-teal);
}

/* ══════════════════════════════════════════════════════════════
   ANIMATION — subtle entrance for product cards
   ══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
    .woocommerce ul.products li.product {
        animation: af-fadeUp 0.4s ease both;
    }

    .woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
    .woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.1s; }
    .woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
    .woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.2s; }
    .woocommerce ul.products li.product:nth-child(n+5) { animation-delay: 0.25s; }

    @keyframes af-fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ══════════════════════════════════════════════════════════════
   STATIC PAGES: Contacts, Certificates, CompanyInfo
   ══════════════════════════════════════════════════════════════ */

.af-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.af-page-intro {
    font-size: 1.1rem;
    color: var(--af-slate-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ── Contacts Grid ─────────────────────────────────────────── */
.af-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.af-contact-card {
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.5rem;
}

.af-contact-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--af-slate-500);
    margin: 0 0 0.75rem;
}

.af-contact-item {
    margin: 0.25rem 0;
    font-size: 1rem;
}

.af-contact-link {
    color: var(--af-teal);
    text-decoration: none;
    font-weight: 500;
}

.af-contact-link:hover {
    color: var(--af-teal-mid);
    text-decoration: underline;
}

/* ── CTA Block (shared across pages) ──────────────────────── */
.af-contact-cta {
    background: var(--af-teal-light);
    border-radius: var(--af-radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.af-contact-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--af-slate-900);
    margin: 0 0 0.5rem;
}

.af-contact-cta p {
    color: var(--af-slate-500);
    margin-bottom: 1.25rem;
}

.af-contact-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Yandex Map ───────────────────────────────────────────── */
.af-map {
    margin-top: 2rem;
}

.af-map iframe {
    border-radius: var(--af-radius-lg);
}

/* ── Certificates / Info Grid ─────────────────────────────── */
.af-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.af-info-card {
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.75rem;
}

.af-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--af-slate-900);
    margin: 0 0 0.5rem;
}

.af-info-card p {
    color: var(--af-slate-500);
    line-height: 1.6;
    margin: 0;
}

/* ── CompanyInfo Benefits ─────────────────────────────────── */
.af-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.af-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.25rem 1.5rem;
}

.af-benefit-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--af-teal);
    color: var(--af-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.af-benefit-item p {
    margin: 0;
    padding-top: 0.4rem;
    color: var(--af-slate-700);
    line-height: 1.5;
}

/* ── Mobile Search ─────────────────────────────────────────── */
.af-mobile-search-toggle {
    display: none;
}

.af-mobile-search-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .af-mobile-search-toggle {
        display: block;
    }

    .af-mobile-search-toggle .af-search-btn {
        background: var(--af-slate-100);
        border: none;
        color: var(--af-teal);
        padding: 0;
        width: 44px;
        height: 44px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--af-radius);
    }

    .af-mobile-search-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--af-white);
        padding: 0.75rem 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 9999;
        display: none;
    }

    .af-mobile-search-dropdown.af-search-open {
        display: block;
    }

    .af-mobile-search-dropdown form {
        display: flex;
        gap: 0.5rem;
    }

    .af-mobile-search-input {
        flex: 1;
        padding: 0.6rem 1rem;
        border: 1px solid var(--af-slate-300);
        border-radius: var(--af-radius);
        font-size: 0.9rem;
        font-family: 'Manrope', sans-serif;
    }

    .af-mobile-search-submit {
        background: var(--af-teal);
        color: white;
        border: none;
        border-radius: var(--af-radius);
        padding: 0.6rem 0.75rem;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    /* ── Mobile Navigation Menu (Storefront handheld nav) ─────── */
    .main-navigation ul.menu,
    .main-navigation ul.nav-menu,
    #site-navigation ul.menu {
        background: var(--af-white);
        font-family: 'Manrope', sans-serif;
    }

    .main-navigation.toggled-on ul.menu,
    .main-navigation.toggled-on ul.nav-menu,
    #site-navigation.toggled-on ul.menu {
        background: var(--af-white);
        padding: 0.5rem 0;
    }

    .main-navigation ul.menu li,
    .main-navigation ul.nav-menu li {
        border-bottom: 1px solid var(--af-slate-200);
    }

    .main-navigation ul.menu li:last-child,
    .main-navigation ul.nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation ul.menu li a,
    .main-navigation ul.nav-menu li a {
        color: var(--af-teal) !important;
        font-size: 1rem;
        font-weight: 500;
        font-family: 'Manrope', sans-serif;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .main-navigation ul.menu li a:hover,
    .main-navigation ul.menu li a:focus,
    .main-navigation ul.nav-menu li a:hover,
    .main-navigation ul.nav-menu li a:focus {
        background: var(--af-slate-50);
        color: var(--af-teal-dark, #0a4a50) !important;
    }

    .main-navigation ul.menu li.current-menu-item > a,
    .main-navigation ul.nav-menu li.current-menu-item > a {
        font-weight: 700;
        color: var(--af-teal) !important;
        background: var(--af-slate-50);
    }

    /* Sub-menus indent */
    .main-navigation ul.menu ul.sub-menu li a,
    .main-navigation ul.nav-menu ul.sub-menu li a {
        padding-left: 2rem;
        font-size: 0.95rem;
    }
}

/* ── Static Pages Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
    .af-page-content {
        padding: 0.5rem 0 2rem;
    }

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

    .af-contact-cta {
        padding: 1.5rem;
    }

    .af-contact-cta-buttons {
        flex-direction: column;
    }

    .af-contact-cta-buttons .af-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Payment Page ──────────────────────────────────────────── */
.af-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.af-payment-card {
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.5rem;
}

.af-payment-card h3 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--af-slate-900);
}

.af-payment-card p {
    margin: 0;
    color: var(--af-slate-700);
    line-height: 1.6;
}

/* ── Reviews Page ─────────────────────────────────────────── */
.af-reviews-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.af-review-platform {
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.5rem;
}

.af-review-platform h3 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--af-slate-900);
}

.af-review-platform p {
    margin: 0 0 1rem;
    color: var(--af-slate-700);
}

.af-btn-outline-teal {
    display: inline-block;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--af-teal) !important;
    border: 1px solid var(--af-teal);
    border-radius: var(--af-radius);
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    transition: background var(--af-transition), color var(--af-transition);
}

.af-btn-outline-teal:hover {
    background: var(--af-teal);
    color: var(--af-white) !important;
}

.af-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.af-review-card {
    background: var(--af-white);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    padding: 1.5rem;
}

.af-review-stars {
    color: var(--af-gold);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.af-review-card p {
    font-style: italic;
    line-height: 1.6;
    color: var(--af-slate-700);
    margin: 0 0 0.75rem;
}

.af-review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--af-slate-500);
}

@media (max-width: 768px) {
    .af-payment-methods,
    .af-reviews-platforms,
    .af-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS & INTERACTIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Scroll Reveal ─────────────────────────────────────────── */
.af-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.af-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .af-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Fallback: make af-reveal visible after 2s if JS hasn't kicked in */
@keyframes af-revealFallback {
    to { opacity: 1; transform: none; }
}

.af-reveal {
    animation: af-revealFallback 0s ease 2s forwards;
}

/* (Category card hover is now in the main overlay card section above) */

/* ── Product Card Hover ────────────────────────────────────── */
.woocommerce ul.products li.product {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce ul.products li.product .button {
    transition: background 0.25s ease, transform 0.15s ease !important;
}

.woocommerce ul.products li.product:hover .button {
    background: var(--af-teal-mid) !important;
}

/* ── Button Micro-interactions ─────────────────────────────── */
.af-btn,
.woocommerce .button,
.woocommerce a.button {
    transition: all 0.25s ease !important;
}

.af-btn:active,
.woocommerce .button:active,
.woocommerce a.button:active {
    transform: scale(0.97) !important;
}

/* ── Trust Card Stagger (children animate in sequence) ───── */
.af-trust-strip.af-reveal--visible .af-trust-card {
    animation: af-staggerIn 0.5s ease both;
}

.af-trust-strip.af-reveal--visible .af-trust-card:nth-child(1) { animation-delay: 0s; }
.af-trust-strip.af-reveal--visible .af-trust-card:nth-child(2) { animation-delay: 0.1s; }
.af-trust-strip.af-reveal--visible .af-trust-card:nth-child(3) { animation-delay: 0.2s; }
.af-trust-strip.af-reveal--visible .af-trust-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes af-staggerIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Parallax helpers ──────────────────────────────────────── */
.af-cta {
    will-change: background-position;
}

/* ── Smooth Scroll ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Sticky Header Enhancement ─────────────────────────────── */
.site-header.af-sticky {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
}

/* ── Blog Section ──────────────────────────────────────────── */
.af-blog-section {
    padding: 4rem 0;
    background: var(--af-white);
}

.af-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.af-blog-card {
    background: var(--af-white);
    border: 1px solid var(--af-slate-300);
    border-radius: var(--af-radius-lg);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--af-shadow-lg);
    color: inherit !important;
}

.af-blog-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--af-teal-light);
}

.af-blog-img--placeholder {
    background: linear-gradient(135deg, var(--af-teal-light) 0%, var(--af-slate-100) 100%);
}

.af-blog-card-body {
    padding: 1.25rem;
}

.af-blog-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--af-slate-900);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.af-blog-card-body p {
    font-size: 0.9rem;
    color: var(--af-slate-500);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .af-blog-grid {
        grid-template-columns: 1fr;
    }

    .af-blog-img {
        height: 160px;
    }
}

/* ── Mobile Bottom Navigation Bar ──────────────────────────────── */
.af-mobile-bar {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .af-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        z-index: 9999;
        padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    }

    .af-mobile-bar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        text-decoration: none;
        color: #64748b;
        font-size: 0.65rem;
        font-family: 'Manrope', sans-serif;
        font-weight: 600;
        padding: 0.25rem 0;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .af-mobile-bar-item.active {
        color: var(--af-teal);
    }

    .af-mobile-bar-item svg {
        width: 22px;
        height: 22px;
    }

    .af-bar-badge {
        position: absolute;
        top: 0;
        right: calc(50% - 16px);
        background: #e85d4a;
        color: white;
        font-size: 0.6rem;
        font-weight: 700;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        line-height: 1;
    }

    /* Add bottom padding to body so content isn't hidden behind the bar */
    body {
        padding-bottom: 60px !important;
    }

    /* Hide the floating Telegram button since we have it in the bottom bar */
    .af-float-messenger {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   LIVE SEARCH / AUTOCOMPLETE DROPDOWN
   ══════════════════════════════════════════════════════════════ */

.af-live-search-wrap {
    position: relative;
}

.af-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--af-white);
    border: 1px solid var(--af-slate-300);
    border-top: none;
    border-radius: 0 0 var(--af-radius-lg) var(--af-radius-lg);
    box-shadow: var(--af-shadow-lg);
    display: none;
    max-height: 480px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.af-live-search-results.af-ls-open {
    display: block;
    animation: af-lsFadeIn 0.15s ease;
}

@keyframes af-lsFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Single result item */
.af-ls-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    text-decoration: none !important;
    color: var(--af-slate-700) !important;
    transition: background var(--af-transition);
    border-bottom: 1px solid var(--af-slate-100);
    cursor: pointer;
}

.af-ls-item:last-child {
    border-bottom: none;
}

.af-ls-item:hover,
.af-ls-item.af-ls-active {
    background: var(--af-teal-light);
}

/* Thumbnail */
.af-ls-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--af-radius);
    object-fit: contain;
    background: var(--af-slate-50);
    border: 1px solid var(--af-slate-100);
}

/* Text block */
.af-ls-info {
    flex: 1;
    min-width: 0;
}

.af-ls-name {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--af-slate-900);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-ls-price {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--af-teal);
    margin-top: 0.1rem;
}

/* "Show all results" link */
.af-ls-all {
    display: block;
    text-align: center;
    padding: 0.7rem 0.85rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--af-teal) !important;
    text-decoration: none !important;
    background: var(--af-slate-50);
    border-top: 1px solid var(--af-slate-200);
    border-radius: 0 0 var(--af-radius-lg) var(--af-radius-lg);
    transition: background var(--af-transition), color var(--af-transition);
}

.af-ls-all:hover {
    background: var(--af-teal-light);
    color: var(--af-teal-mid) !important;
}

/* Loading spinner */
.af-ls-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    color: var(--af-slate-500);
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.af-ls-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--af-slate-300);
    border-top-color: var(--af-teal);
    border-radius: 50%;
    animation: af-lsSpin 0.6s linear infinite;
}

@keyframes af-lsSpin {
    to { transform: rotate(360deg); }
}

/* No results */
.af-ls-empty {
    padding: 1.2rem;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: var(--af-slate-500);
}

/* Highlight matched text */
.af-ls-highlight {
    background: rgba(13, 92, 99, 0.12);
    border-radius: 2px;
    padding: 0 1px;
}

/* ── Live Search: Mobile overrides ──────────────────────────── */
@media (max-width: 768px) {
    .af-live-search-results {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 60vh;
        border-radius: var(--af-radius-lg) var(--af-radius-lg) 0 0;
        border: none;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    }

    .af-ls-item {
        padding: 0.7rem 1rem;
    }

    .af-ls-thumb {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .af-ls-all {
        border-radius: 0;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
}
