/* AWA Round9 (post-themeoption): reassert custom UX after Rokanthemes ThemeOption custom_default.css + inline styles */

:root {
    --awa-post-themeoption-focus: 0 0 0 3px rgb(183 51 55 / 18%);
}

/* Root cause mitigation:
   ThemeOption emits custom_default.css + inline <style> after awa-round*.css, including broad !important rules:
   - html,body,* { color: ... !important }
   - .action.primary, button { background/border/color ... !important }
   This file loads after add_custom_theme_head and restores component-level visuals. */

/* B2B Unified Status Panel — override ThemeOption button resets */
body .page-wrapper .b2b-status-trigger {
    background: linear-gradient(135deg, rgba(183, 51, 55, 0.08) 0%, rgba(183, 51, 55, 0.04) 100%) !important;
    border-color: rgba(183, 51, 55, 0.15) !important;
    color: #1f2937 !important;
}

body .page-wrapper .b2b-status-trigger:hover,
body .page-wrapper .b2b-status-trigger:focus-visible {
    background: linear-gradient(135deg, rgba(183, 51, 55, 0.12) 0%, rgba(183, 51, 55, 0.08) 100%) !important;
    border-color: rgba(183, 51, 55, 0.25) !important;
    color: #111827 !important;
    outline: 0;
    box-shadow: var(--awa-post-themeoption-focus) !important;
}

body .page-wrapper .b2b-status-trigger[aria-expanded="true"] {
    background: var(--primary-color, #b73337) !important;
    border-color: var(--primary-color, #b73337) !important;
    color: #fff !important;
}

body .page-wrapper .b2b-status-panel .footer-link,
body .page-wrapper .b2b-status-panel .quick-action-link {
    background: transparent !important;
    border: none !important;
}

body .page-wrapper .b2b-logout-form .logout-link {
    background: transparent !important;
    border: none !important;
}

body .page-wrapper .block-search .block-content button.action.search {
    background: var(--primary-color, #b73337) !important;
    border-color: var(--primary-color, #b73337) !important;
    color: #fff !important;
    min-height: 44px !important;
}

body .page-wrapper .block-search .block-content button.action.search:hover,
body .page-wrapper .block-search .block-content button.action.search:focus-visible {
    background: var(--primary-hover, #8e2629) !important;
    border-color: var(--primary-hover, #8e2629) !important;
    color: #fff !important;
    outline: 0;
    box-shadow: var(--awa-post-themeoption-focus) !important;
}

body .page-wrapper .minicart-wrapper .action.showcart .counter.qty,
body .page-wrapper .minicart-wrapper .counter.qty {
    background: var(--primary-color, #b73337) !important;
    color: #fff !important;
}

body .page-wrapper .page_footer .velaFooterTitle {
    background: transparent !important;
    border: 0 !important;
    color: #111827 !important;
}

body .page-wrapper .page_footer .velaFooterTitle:hover,
body .page-wrapper .page_footer .velaFooterTitle:focus-visible {
    color: var(--primary-color, #b73337) !important;
    box-shadow: var(--awa-post-themeoption-focus) !important;
    outline: 0;
}

body .page-wrapper .page_footer .velaFooterLinks a,
body .page-wrapper .page_footer .aw-footer-legal a,
body .page-wrapper .page_footer .aw-footer-b2b-contact a,
body .page-wrapper .page_footer .aw-footer-social a {
    color: #334155 !important;
}

body .page-wrapper .page_footer .velaFooterLinks a:hover,
body .page-wrapper .page_footer .velaFooterLinks a:focus-visible,
body .page-wrapper .page_footer .aw-footer-legal a:hover,
body .page-wrapper .page_footer .aw-footer-legal a:focus-visible,
body .page-wrapper .page_footer .aw-footer-b2b-contact a:hover,
body .page-wrapper .page_footer .aw-footer-b2b-contact a:focus-visible,
body .page-wrapper .page_footer .aw-footer-social a:hover,
body .page-wrapper .page_footer .aw-footer-social a:focus-visible {
    color: var(--primary-color, #b73337) !important;
    outline: 0;
}

body .page-wrapper .awa-footer-trust-bar,
body .page-wrapper .awa-footer-payments-security,
body .page-wrapper .aw-footer-trust-b2b {
    color: #1f2937 !important;
}

body .page-wrapper .awa-footer-trust-icon,
body .page-wrapper .awa-payment-chip svg,
body .page-wrapper .awa-footer-security-badge svg,
body .page-wrapper .aw-footer-trust-b2b .trust-number {
    color: var(--primary-color, #b73337) !important;
}

body .page-wrapper .awa-payment-chip {
    color: #334155 !important;
    border-color: rgb(183 51 55 / 10%) !important;
    background: #fff !important;
}

body .page-wrapper .awa-payment-chip--priority {
    color: var(--primary-color, #b73337) !important;
    background: rgb(183 51 55 / 6%) !important;
    border-color: rgb(183 51 55 / 16%) !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .page_footer {
    display: none !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-page,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-page {
    color: #1f2937 !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-card,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-container {
    background: #fff !important;
    border-color: #dfe5ee !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-subtitle,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-field-note,
:is(body.b2b-auth-shell, body.b2b-register-index) .register-header .subtitle,
:is(body.b2b-auth-shell, body.b2b-register-index) .register-header .register-trust-note,
:is(body.b2b-auth-shell, body.b2b-register-index) .actions-primary-note {
    color: #64748b !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-password-toggle,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-password-toggle,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-benefits-toggle,
:is(body.b2b-auth-shell, body.b2b-register-index) .progress-step,
:is(body.b2b-auth-shell, body.b2b-register-index) .actions-toolbar .secondary,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-register,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-claim {
    background: #fff !important;
    color: #1f2937 !important;
    border-color: #dfe5ee !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-password-toggle:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-password-toggle:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-password-toggle:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-password-toggle:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-benefits-toggle:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-benefits-toggle:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .progress-step:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .progress-step:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .actions-toolbar .secondary:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .actions-toolbar .secondary:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-register:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-register:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-claim:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-claim:focus-visible {
    color: var(--primary-color, #b73337) !important;
    border-color: rgb(183 51 55 / 24%) !important;
    box-shadow: var(--awa-post-themeoption-focus) !important;
    outline: 0;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-entrar,
:is(body.b2b-auth-shell, body.b2b-register-index) .create-b2b-account {
    background: var(--primary-color, #b73337) !important;
    border-color: var(--primary-color, #b73337) !important;
    color: #fff !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-entrar:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-btn-entrar:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .create-b2b-account:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .create-b2b-account:focus-visible {
    background: var(--primary-hover, #8e2629) !important;
    border-color: var(--primary-hover, #8e2629) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 18%) !important;
    outline: 0;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-whatsapp {
    background: #fff !important;
    color: #166534 !important;
    border-color: rgb(34 197 94 / 24%) !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-whatsapp:hover,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-login-whatsapp:focus-visible {
    color: #15803d !important;
    border-color: rgb(34 197 94 / 36%) !important;
    box-shadow: 0 0 0 3px rgb(34 197 94 / 16%) !important;
    outline: 0;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-field input,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form .input-text,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form select,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form textarea {
    background: #fff !important;
    color: #1f2937 !important;
    border-color: #c7d2e1 !important;
}

:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-field input:focus,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-field input:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form .input-text:focus,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form .input-text:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form select:focus,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form select:focus-visible,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form textarea:focus,
:is(body.b2b-auth-shell, body.b2b-register-index) .b2b-register-form textarea:focus-visible {
    border-color: var(--primary-color, #b73337) !important;
    box-shadow: var(--awa-post-themeoption-focus) !important;
    outline: 0;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgb(15 23 42 / 4%) !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .toolbar-amount {
    color: #64748b !important;
    padding: 0 !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .modes .modes-mode,
:is(body.catalog-category-view, body.catalogsearch-result-index) .grid-mode-show-type-products a,
:is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item .page,
:is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item.current strong {
    background: #fff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .grid-mode-show-type-products a.actived,
:is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item.current strong {
    background: rgb(183 51 55 / 7%) !important;
    border-color: rgb(183 51 55 / 30%) !important;
    color: var(--primary-color, #b73337) !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .modes .modes-mode:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .modes .modes-mode:focus-visible,
:is(body.catalog-category-view, body.catalogsearch-result-index) .grid-mode-show-type-products a:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .grid-mode-show-type-products a:focus-visible,
:is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item .page:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item .page:focus-visible {
    color: var(--primary-color, #b73337) !important;
    border-color: rgb(183 51 55 / 24%) !important;
    box-shadow: var(--awa-post-themeoption-focus) !important;
    outline: 0;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) #layered-ajax-filter-block,
:is(body.catalog-category-view, body.catalogsearch-result-index) .block.filter {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .filter-options-title {
    color: #1f2937 !important;
    min-height: 44px !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .filter-options-title:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .filter-options-title:focus-visible {
    color: var(--primary-color, #b73337) !important;
    background: rgb(183 51 55 / 4%) !important;
    outline: 0;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .filter-options .count {
    color: #475569 !important;
    background: #f1f5f9 !important;
    border-radius: 999px;
    padding-inline: 6px;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .product-thumb,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .product-info {
    background: #fff !important;
    border-color: #e5e7eb !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-item-link {
    color: #111827 !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-item-link:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-item-link:focus-visible {
    color: var(--primary-color, #b73337) !important;
    outline: 0;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .quickview-link {
    background: rgb(255 255 255 / 96%) !important;
    border-color: rgb(183 51 55 / 14%) !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .quickview-link:hover,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .quickview-link:focus-visible {
    border-color: rgb(183 51 55 / 28%) !important;
    box-shadow: var(--awa-post-themeoption-focus) !important;
    outline: 0;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .b2b-login-to-see-price,
.searchsuite-autocomplete .b2b-login-to-see-price {
    color: var(--primary-color, #b73337) !important;
    background: rgb(183 51 55 / 7%) !important;
    border: 1px solid rgb(183 51 55 / 14%) !important;
}

.searchsuite-autocomplete {
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 14px 30px rgb(15 23 42 / 10%) !important;
    border-radius: 14px !important;
    left: 0 !important;
    width: min(720px, calc(100vw - 32px)) !important;
    margin-top: 8px !important;
}

.searchsuite-autocomplete .title {
    background: #f8fafc !important;
    color: #334155 !important;
    border-bottom: 1px solid #edf1f5 !important;
}

.searchsuite-autocomplete .title .see-all,
.searchsuite-autocomplete .qs-option-title a {
    color: var(--primary-color, #b73337) !important;
}

.searchsuite-autocomplete .title .see-all:hover,
.searchsuite-autocomplete .title .see-all:focus-visible,
.searchsuite-autocomplete .qs-option-title a:hover,
.searchsuite-autocomplete .qs-option-title a:focus-visible {
    color: var(--primary-hover, #8e2629) !important;
    outline: 0;
}

.searchsuite-autocomplete .suggest ul li a,
.searchsuite-autocomplete .product ul li,
.searchsuite-autocomplete .no-result {
    background: #fff !important;
    color: #1f2937 !important;
}

.searchsuite-autocomplete .suggest ul li a:hover,
.searchsuite-autocomplete .suggest ul li a:focus-visible,
.searchsuite-autocomplete .product ul li:hover,
.searchsuite-autocomplete .product ul li.selected {
    background: rgb(183 51 55 / 4%) !important;
    color: var(--primary-color, #b73337) !important;
    outline: 0;
}

body.checkout-cart-index .cart-empty {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgb(15 23 42 / 6%) !important;
}

body.checkout-cart-index .cart-empty p:first-child {
    color: #111827 !important;
}

body.checkout-cart-index .cart-empty a {
    color: var(--primary-color, #b73337) !important;
}

body.checkout-cart-index .cart-empty a:hover,
body.checkout-cart-index .cart-empty a:focus-visible {
    color: var(--primary-hover, #8e2629) !important;
    outline: 0;
}

body.checkout-cart-index .cart-summary input[type='text'] {
    height: auto !important;
    line-height: normal !important;
    min-height: 40px !important;
    border-radius: 10px !important;
}

@media (width <= 991px) {
    :is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .toolbar-amount {
        padding: 0 !important;
    }
}

@media (width <= 767px) {
    .searchsuite-autocomplete {
        left: -8px !important;
        right: auto !important;
        width: calc(100vw - 16px) !important;
        margin-top: 8px !important;
        border-radius: 12px !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .toolbar .modes .modes-mode,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .grid-mode-show-type-products a,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item .page,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .pages .item.current strong {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    body .page-wrapper .top-account ul.header.links > li.link.wishlist,
    body .page-wrapper .top-account ul.header.links > li[data-bind*='wishlist'],
    body .page-wrapper .top-account ul.header.links > li.awa-top-link-item--account,
    body .page-wrapper .top-account ul.header.links > li.awa-top-link-item--compare,
    body .page-wrapper .top-account ul.header.links > li.compare {
        display: none !important;
    }

    body .page-wrapper .top-account ul.header.links > li > a[href*='/wishlist/'],
    body .page-wrapper .top-account ul.header.links > li > a[href*='/customer/account/'] {
        display: none !important;
    }

    body .page-wrapper .header-control .action.nav-toggle {
        position: relative !important;
        z-index: 6 !important;
        pointer-events: auto !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .sections.nav-sections.category-dropdown,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .navigation.verticalmenu.side-verticalmenu,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .header-control .menu_left_home1 {
        display: none !important;
    }
}

/* Round10: AjaxSuite popup shell fix (hide static shell close + style real modal close) */
#ajaxsuite-popup-wrapper {
    position: static !important;
    inset: auto !important;
    width: 0 !important;
    height: 0 !important;
    z-index: auto !important;
    background: transparent !important;
    pointer-events: none !important;
}

#ajaxsuite-popup-wrapper > #ajaxsuite-close.ajaxsuite-close,
#ajaxsuite-close.ajaxsuite-close {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#ajaxsuite-popup-wrapper > #ajaxsuite-popup-content {
    border-radius: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.modal-popup.ajaxsuite-popup-wrapper._show .modal-header .action-close {
    top: 10px !important;
    right: 10px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgb(183 51 55 / 18%) !important;
    background: rgb(255 255 255 / 96%) !important;
    color: var(--primary-color, #b73337) !important;
    box-shadow: 0 6px 18px rgb(0 0 0 / 10%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

.modal-popup.ajaxsuite-popup-wrapper._show .modal-header .action-close::before {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    color: currentcolor !important;
}

.modal-popup.ajaxsuite-popup-wrapper._show .modal-header .action-close:hover,
.modal-popup.ajaxsuite-popup-wrapper._show .modal-header .action-close:focus-visible {
    background: var(--primary-color, #b73337) !important;
    border-color: var(--primary-color, #b73337) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

@media (width <= 767px) {
    .modal-popup.ajaxsuite-popup-wrapper._show .modal-header .action-close {
        top: 8px !important;
        right: 8px !important;
    }
}

/* Round10B: Newsletter popup ghost overlay failsafe */
body #newsletter_pop_up.newsletterpopup[style*='display: block'],
body #newsletter_pop_up.newsletterpopup[style*='display:block'],
body #newsletter_pop_up.newsletterpopup.nl-popup-fallback-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body #newsletter_pop_up.newsletterpopup {
    z-index: 100001 !important;
}

body #newsletter_pop_up .nl-popup-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

/* Round11: final wins for header search layout + PLP card flow after ThemeOption inline/custom_default */
body .page-wrapper #search_mini_form.form.minisearch,
body .page-wrapper .block.block-search .form.minisearch.search-content {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
}

body .page-wrapper .block.block-search .field.search,
body .page-wrapper .block.block-search .field.search .control {
    min-width: 0 !important;
    width: auto !important;
}

body .page-wrapper .block.block-search .field.search {
    flex: 1 1 auto !important;
    padding-right: 0 !important;
}

body .page-wrapper .header .top-search .block-search #search_mini_form {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

body .page-wrapper .block.block-search .actions {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    max-height: 44px !important;
    align-self: stretch !important;
}

body .page-wrapper .block.block-search .actions .action.search {
    position: static !important;
    inset: auto !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    height: 44px !important;
    max-height: 44px !important;
}

body .page-wrapper .block.block-search .actions .action.search > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

body .page-wrapper .block.block-search .actions .action.search[data-awa-search-submit='true'] {
    position: relative !important;
}

body .page-wrapper .block.block-search .actions .action.search[data-awa-search-submit='true']::before {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid currentcolor !important;
    border-radius: 50% !important;
    transform: translate(-58%, -58%) !important;
    pointer-events: none !important;
}

body .page-wrapper .block.block-search .actions .action.search[data-awa-search-submit='true']::after {
    content: '' !important;
    position: absolute !important;
    width: 7px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: currentcolor !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(35%, 185%) rotate(45deg) !important;
    pointer-events: none !important;
}

body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .menu_left_home1,
body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .sections.nav-sections.category-dropdown,
body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .navigation.verticalmenu.side-verticalmenu {
    display: none !important;
}

body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .action.nav-toggle,
body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header .logo,
body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header .logo a {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    transform: none !important;
}

body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header .logo img {
    transform: none !important;
    margin: 0 !important;
}

@media (width >= 768px) {
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .menu_primary {
        flex: 0 0 83.333333% !important;
        width: 83.333333% !important;
        max-width: 83.333333% !important;
    }
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .product-grid > li.item-product {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-row: auto !important;
    grid-column: auto !important;
    align-self: start !important;
    overflow: visible !important;
    height: auto !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .product-grid {
    align-items: start !important;
    align-content: start !important;
    grid-auto-rows: auto !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .product-thumb,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .product-info,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .content-item-product > .product-thumb,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product > .content-item-product > .product-info {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-image-container,
:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-image-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .wrapper.grid.products-grid .item-product .product-image-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

@media (width <= 767px) {
    body .page-wrapper .header .wp-header > [class*='col-']:first-child {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-inline: 0 !important;
        margin: 0 0 10px !important;
    }

    body .page-wrapper .header .wp-header > [class*='col-']:first-child .logo,
    body .page-wrapper .header .wp-header > [class*='col-']:first-child .logo a {
        position: static !important;
        float: none !important;
        inset: auto !important;
        margin: 0 auto !important;
        display: inline-flex !important;
    }

    body .page-wrapper .header .wp-header > [class*='col-']:first-child .logo img {
        width: auto !important;
        height: auto !important;
        max-height: 56px !important;
    }

    body .page-wrapper .header .wp-header > .top-search {
        margin-top: 0 !important;
        padding-inline: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    body .page-wrapper .header-wrapper-sticky .logo-sticky {
        display: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products {
        position: sticky !important;
        top: 68px !important;
        z-index: 8 !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .header-control .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .action.nav-toggle {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        float: none !important;
        clear: both !important;
        transform: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .header .top-search .logo,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .header .top-search .logo img {
        display: none !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search .logo,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search .logo img {
        display: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .page-wrapper .header-control .action.nav-toggle {
        display: none !important;
        position: static !important;
        float: none !important;
        clear: both !important;
        margin-top: 8px !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .action.nav-toggle {
        display: none !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .menu_left_home1,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .menu_left_home1,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .sections.nav-sections.category-dropdown,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .navigation.verticalmenu.side-verticalmenu,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .title-category-dropdown {
        display: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .sidebar .banner_left_sidebar,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .sidebar .top_rate,
    :is(body.catalog-category-view, body.catalogsearch-result-index) #layered-ajax-filter-block .banner_left_sidebar,
    :is(body.catalog-category-view, body.catalogsearch-result-index) #layered-ajax-filter-block .top_rate {
        display: none !important;
    }
}

/* Round20 final wins: search form row layout + non-home nav toggle suppression + home menu height guard */
body .page-wrapper .header .top-search .block-search form#search_mini_form,
body .page-wrapper .header .top-search .block-search form.form.minisearch {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
}

body .page-wrapper .header .top-search .block-search form#search_mini_form .field.search,
body .page-wrapper .header .top-search .block-search form.form.minisearch .field.search {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body .page-wrapper .header .top-search .block-search form#search_mini_form .actions,
body .page-wrapper .header .top-search .block-search form.form.minisearch .actions {
    position: static !important;
    inset: auto !important;
    float: none !important;
    margin: 0 !important;
    width: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    height: 44px !important;
    max-height: 44px !important;
    display: flex !important;
    align-items: stretch !important;
}

body .page-wrapper .header .top-search .block-search form#search_mini_form .action.search,
body .page-wrapper .header .top-search .block-search form.form.minisearch .action.search {
    width: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    height: 44px !important;
    max-height: 44px !important;
}

body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .action.nav-toggle,
body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header-control .nav-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 768px) {
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .header-control.header-nav-global.cms_home_1,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .header-control.header-nav-global.cms_home_1 > .container,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .header-control.header-nav-global.cms_home_1 > .container > .row {
        height: auto !important;
        min-height: 0 !important;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .header-control.header-nav-global.cms_home_1 .menu_left_home1 {
        max-height: min(480px, calc(100vh - 210px)) !important;
        overflow: hidden !important;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .header-control.header-nav-global.cms_home_1 .menu_left_home1 .list-category-dropdown {
        max-height: min(420px, calc(100vh - 270px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}

/* Round21 final wins: PLP first-fold compaction + mobile top-link priority + strict search heights */
:is(body.catalog-category-view, body.catalogsearch-result-index) .category-image {
    height: clamp(180px, 28vh, 280px) !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .category-image .image,
:is(body.catalog-category-view, body.catalogsearch-result-index) .category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

:is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products {
    margin-top: 4px !important;
}

@media (width <= 767px) {
    :is(body.catalog-category-view, body.catalogsearch-result-index) .category-image {
        display: none !important;
    }

    body .page-wrapper .top-account ul.header.links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 6px !important;
        row-gap: 6px !important;
        -webkit-overflow-scrolling: touch;
    }

    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links {
        flex-wrap: nowrap !important;
    }

    body .page-wrapper .top-account ul.header.links > li {
        display: none !important;
    }

    body .page-wrapper .top-account ul.header.links > li.awa-top-link-item--b2b-register,
    body .page-wrapper .top-account ul.header.links > li.awa-top-link-item--login,
    body .page-wrapper .top-account ul.header.links > li.awa-top-link-item--logout {
        display: inline-flex !important;
    }

    body .page-wrapper .top-account ul.header.links > li:not(.awa-top-link-item--b2b-register):not(.awa-top-link-item--login):not(.awa-top-link-item--logout) {
        display: none !important;
        visibility: hidden !important;
        max-width: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li.link.wishlist,
    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li.link.wishlist.awa-top-link-counter-zero,
    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li[data-bind*='wishlist'],
    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li.awa-top-link-item--account,
    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li.awa-top-link-item--compare,
    body .page-wrapper .top-header .top-bar-right .top-info .top-account ul.header.links > li.compare {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    body .page-wrapper .header .top-search > .block-search .actions,
    body .page-wrapper .header .top-search > .block-search .action.search,
    body .page-wrapper .header .top-search > .block-search .field.search input#search {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        box-sizing: border-box !important;
    }

    body .page-wrapper .header .top-search > .block-search .action.search {
        padding: 0 !important;
        line-height: 1 !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .modes,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .field.limiter,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .toolbar-amount {
        display: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .modes[data-awa-filter-toggle-ready='true'] {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .modes[data-awa-filter-toggle-ready='true'] .modes-mode {
        display: none !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .center {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: center !important;
        gap: 8px !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .modes[data-awa-filter-toggle-ready='true'] + .toolbar-sorter.sorter,
    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .modes[data-awa-filter-toggle-ready='true'] ~ .toolbar-sorter.sorter {
        width: 100% !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products.awa-filter-toggle-ready .center {
        grid-template-columns: auto 1fr !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .toolbar-sorter.sorter {
        width: 100% !important;
        margin: 0 !important;
    }

    :is(body.catalog-category-view, body.catalogsearch-result-index) .shop-tab-select .toolbar.toolbar-products .toolbar-sorter .sorter-options {
        width: 100% !important;
        min-height: 44px !important;
    }
}

/* Round21B fallback: internal-page mobile header logo/search row must not collapse */
@media (width <= 767px) {
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .header_main .wp-header,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .header-main .wp-header {
        display: grid !important;
        grid-template-columns: clamp(82px, 24vw, 108px) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header > [class*='col-']:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header > [class*='col-']:first-child .logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: static !important;
        inset: auto !important;
        width: clamp(82px, 24vw, 108px) !important;
        min-width: 82px !important;
        max-width: 108px !important;
        margin: 0 !important;
        float: none !important;
        transform: none !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header > [class*='col-']:first-child .logo a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
        transform: none !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header > [class*='col-']:first-child .logo img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 56px !important;
        margin: 0 !important;
        transform: none !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .wp-header > .top-search {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        grid-template-areas: "search cart" !important;
        grid-template-rows: 44px !important;
        align-items: center !important;
        gap: 8px !important;
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        margin: 0 !important;
        position: relative !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .block-search {
        grid-area: search !important;
        grid-column: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 0 !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .mini-cart-wrapper {
        display: block !important;
        position: static !important;
        inset: auto !important;
        grid-area: cart !important;
        grid-column: 2 !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        order: 0 !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .mini-cart-wrapper .mini-carts,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .mini-cart-wrapper .minicart-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        inset: auto !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
    }

    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .mini-cart-wrapper .showcart,
    body:not(.cms-index-index):not(.cms-home):not(.cms-homepage_ayo_home5) .page-wrapper .header .top-search > .mini-cart-wrapper .action.showcart {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        inset: auto !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }
}

/* =====================================================================
   Slider AWA Motos — slide-caption overlay
   Funciona com slides que possuem slide_text HTML + imagem de fundo SVG
   ===================================================================== */
.wrapper_slider .banner_item {
    position: relative;
    overflow: hidden;
}

.wrapper_slider .banner_item picture,
.wrapper_slider .banner_item > a picture {
    display: block;
    width: 100%;
}

.wrapper_slider .banner_item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.wrapper_slider .slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
    pointer-events: none;
}

.wrapper_slider .slide-content {
    color: #ffffff;
    max-width: 520px;
    pointer-events: auto;
}

.wrapper_slider .slide-content h2 {
    font-size: clamp(22px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #ffffff;
}

.wrapper_slider .slide-content p {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,0.88);
}

@media (max-width: 767px) {
    .wrapper_slider .slide-caption {
        padding: 0 5%;
        align-items: flex-end;
        padding-bottom: 24px;
    }

    .wrapper_slider .slide-content h2 {
        font-size: 20px;
    }

    .wrapper_slider .slide-content p {
        font-size: 13px;
    }
}
