/*
 * Premium Ecológica
 * Search Results Polish R2
 *
 * Scope exclusivo:
 * body.catalogsearch-result-index
 */

/* ---------------------------------------------------------
   ADD TO CART
   --------------------------------------------------------- */

body.catalogsearch-result-index
.product-item
button.btn.btn-primary[data-addto="cart"],
body.catalogsearch-result-index
.product-item
.action.tocart,
body.catalogsearch-result-index
.product-item
button.tocart {
    background: #006b42 !important;
    border-color: #006b42 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

body.catalogsearch-result-index
.product-item
button.btn.btn-primary[data-addto="cart"]:hover,
body.catalogsearch-result-index
.product-item
.action.tocart:hover,
body.catalogsearch-result-index
.product-item
button.tocart:hover {
    background: #005536 !important;
    border-color: #005536 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(0, 83, 53, .16) !important;
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   SECONDARY ACTIONS
   --------------------------------------------------------- */

body.catalogsearch-result-index
.product-item
button[data-addto="wishlist"],
body.catalogsearch-result-index
.product-item
button[data-addto="compare"] {
    background: #f4f8f6 !important;
    border: 1px solid #dce9e3 !important;
    color: #315b4d !important;
}

body.catalogsearch-result-index
.product-item
button[data-addto="wishlist"]:hover,
body.catalogsearch-result-index
.product-item
button[data-addto="compare"]:hover {
    background: #eaf4ef !important;
    border-color: #bcd7ca !important;
    color: #006b42 !important;
}

/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

body.catalogsearch-result-index
.product-item
.price-box .price {
    color: #064d37 !important;
    font-weight: 800 !important;
}

/* Proteção contra conteúdo decorativo indevido */
body.catalogsearch-result-index
.product-item
.price-box .price::before,
body.catalogsearch-result-index
.product-item
.price-box .price::after {
    content: none !important;
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */

body.catalogsearch-result-index
.products-grid
.product-item {
    border-radius: 16px;
}

body.catalogsearch-result-index
.products-grid
.product-item-info,
body.catalogsearch-result-index
.products-grid
form.product-item {
    border-radius: 16px;
}

/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

body.catalogsearch-result-index
.page-title-wrapper
.page-title {
    color: #103d31;
    font-weight: 800;
}

/* ---------------------------------------------------------
   TOOLBAR / FILTER
   --------------------------------------------------------- */

body.catalogsearch-result-index
.toolbar-products select,
body.catalogsearch-result-index
.filter-options-title {
    border-radius: 10px;
}

/* ---------------------------------------------------------
   FAIL-SAFE: nenhuma superfície estrutural da busca preta
   --------------------------------------------------------- */

body.catalogsearch-result-index,
body.catalogsearch-result-index .page-wrapper,
body.catalogsearch-result-index main,
body.catalogsearch-result-index .page-main,
body.catalogsearch-result-index .columns,
body.catalogsearch-result-index .column.main,
body.catalogsearch-result-index .products.wrapper {
    background-color: transparent;
}

/* =========================================================
   PREMIUM SEARCH R3
   Custom option / Voltage chips
   Same visual language used by category cards
   ========================================================= */

body.catalogsearch-result-index
.premium-card-config {
    margin-top: 10px;
    margin-bottom: 4px;
}

body.catalogsearch-result-index
.premium-card-config__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

body.catalogsearch-result-index
.premium-card-config__fieldset legend {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    color: #284d40;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

body.catalogsearch-result-index
.premium-card-config__choices {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 6px;
    width: 100%;
}

/*
 * Hide native radio visually, but keep it accessible
 * and inside the native Magento Add to Cart form.
 */
body.catalogsearch-result-index
.premium-card-config__choice {
    position: relative;
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

body.catalogsearch-result-index
.premium-card-config__choice input[type="radio"] {
    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;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

body.catalogsearch-result-index
.premium-card-config__choice span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 5px 10px;

    background: #fff !important;
    border: 1px solid #d8e3de !important;
    border-radius: 999px !important;

    color: #31574a !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;

    box-shadow: none !important;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

body.catalogsearch-result-index
.premium-card-config__choice:hover span {
    border-color: #8ab7a4 !important;
    background: #f7fbf9 !important;
    color: #006b42 !important;
}

body.catalogsearch-result-index
.premium-card-config__choice input[type="radio"]:checked + span {
    background: #edf8f3 !important;
    border-color: #00734b !important;
    color: #00633f !important;
    box-shadow: inset 0 0 0 1px #00734b !important;
}

body.catalogsearch-result-index
.premium-card-config__choice input[type="radio"]:focus-visible + span {
    outline: 2px solid #00734b;
    outline-offset: 2px;
}

/* price additions, if some option has surcharge */
body.catalogsearch-result-index
.premium-card-config__choice span small {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 700;
    color: inherit;
}

/* Keep configuration area compact and aligned between cards */
body.catalogsearch-result-index
.product-item
.premium-card-config--quick {
    min-height: 50px;
}

/* Mobile */
@media (max-width: 767px) {
    body.catalogsearch-result-index
    .premium-card-config__choice span {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 11px !important;
    }
}

