﻿/* Shelf cards - list mode title with up to 2 lines and ellipsis */
body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Shelf cards - list mode short-description clamp */
body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-card-short-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    line-height: 1.45 !important;
}

/* Shelf cards - keep Cavalcante visual baseline with Felipe orange accents */
body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .product-card-title,
body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .product-card-title .product-item-link {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .product-card-title:is(:hover, :focus-visible),
body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .product-card-title:is(:hover, :focus-visible) .product-item-link {
    color: #f37022 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .price-box .price {
    font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif !important;
    color: #f37022 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .price-box .old-price .price {
    color: #94a3b8 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) :is(.payment-installments, .payment-discounts, .payment-info, .box-qty, .box-grade) {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    color: #f37022 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .bg-green-50 :is(p, span, .price) {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .bg-green-50 :is(.text-xl, .text-2xl) {
    font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

/* Compare is not used on Felipe (PLP/PDP) */
body:is(.catalog-category-view, .catalogsearch-result-index, .catalog-product-view) :is([data-addto="compare"], .action.tocompare) {
    display: none !important;
}

/* Shelf cards - list mode image should fill the media area */
body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-image-wpr--list {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-item-photo--list {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-item-photo--list img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (min-width: 768px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-image-wpr--list {
        flex: 0 0 clamp(220px, 31%, 340px) !important;
        max-width: clamp(220px, 31%, 340px) !important;
        aspect-ratio: auto !important;
        min-height: 100% !important;
    }
}

@media (max-width: 767px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-image-wpr--list {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-item-photo--list {
        aspect-ratio: 1 / 1 !important;
    }
}

/* Shelf cards - keep configurable swatches proportional inside product cards */
.product-item .swatch-attribute .swatch-attribute-options {
    min-height: 0 !important;
}

.product-item .swatch-attribute .swatch-attribute-options > .snap {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    gap: 0.35rem !important;
}

.product-item .swatch-attribute .swatch-option.product-option-value-label,
.product-item .swatch-attribute .swatch-option.pdp-swatch-item {
    width: 2.9rem !important;
    min-width: 2.9rem !important;
    height: 2.9rem !important;
    min-height: 2.9rem !important;
    padding: 0.15rem !important;
    border-radius: 0.4rem !important;
}

.product-item .swatch-attribute.grade_matriz .swatch-option.product-option-value-label,
.product-item .swatch-attribute.grade_matriz .swatch-option.pdp-swatch-item {
    width: auto !important;
    min-width: 5rem !important;
    height: 2.6rem !important;
    min-height: 2.6rem !important;
    padding: 0.2rem 0.32rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-item .swatch-attribute.grade_matriz .swatch-option .whitespace-nowrap {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.76rem !important;
    line-height: 1.05 !important;
}

/* Category page: toolbar card + filter panel (Figma-based layout) */
body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products.plp-toolbar-card {
    display: flex !important;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.75rem !important;
    border: 1px solid #d9dfe8 !important;
    border-radius: 0.75rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Hide duplicated top toolbar blocks (only first one should remain) */
body:is(.catalog-category-view, .catalogsearch-result-index) .column.main > .toolbar.toolbar-products.plp-toolbar-card ~ .toolbar.toolbar-products.plp-toolbar-card {
    display: none !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.16rem;
    border: 1px solid #c9d3df;
    border-radius: 0.55rem;
    background: #f8fafc;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes .modes-mode {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.4rem;
    color: #4b5563;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes .modes-mode:hover {
    background: #e2e8f0;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes .modes-mode.active {
    background: #f37022;
    color: #fff;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes .modes-mode svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products .toolbar-amount {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field {
    margin: 0;
    min-width: 0;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .label,
body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .sorter-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.form-select,
body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.sorter-options,
body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.limiter-options {
    width: 100%;
    min-height: 2.2rem;
    border: 1px solid #c8d2df;
    border-radius: 0.65rem;
    background-color: #fff;
    color: #01273c;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-block: 0.2rem;
    padding-inline: 0.55rem 2rem;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products.plp-toolbar-bottom {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-bottom__pager {
    width: 100%;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-bottom__pager .pages {
    justify-content: center;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter {
    border: 1px solid #d9dfe8 !important;
    border-radius: 0.95rem !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0.95rem 0.9rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .block-title,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .block-title {
    margin-bottom: 0.7rem;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .block-title strong,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .block-title strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .filter-options-item,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .filter-options-item {
    border-bottom: 1px solid #e5ebf0;
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .filter-options-title,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .filter-options-title {
    color: #01273c;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .filter-options-content .item,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .filter-options-content .item {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .column.sidebar .block.filter .filter-options-content .item a,
body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main .block.filter .filter-options-content .item a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

@media (max-width: 1023px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products.plp-toolbar-card {
        margin-bottom: 0.85rem;
        padding: 0.65rem !important;
        border-radius: 0.7rem !important;
        gap: 0.6rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products .toolbar-amount {
        font-size: 0.95rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__modes .modes-mode {
        width: 1.75rem;
        height: 1.75rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .label,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .sorter-label {
        margin-bottom: 0.2rem;
        font-size: 0.9rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.form-select,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.sorter-options,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.limiter-options {
        min-height: 2.1rem;
        font-size: 0.9rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter {
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 0 0.55rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .block-title,
    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .filter-title {
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .block-title button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: auto !important;
        min-height: 2.5rem !important;
        border: 0 !important;
        border-radius: 0.75rem !important;
        background: #f37022 !important;
        color: #fff !important;
        padding: 0.6rem 0.95rem !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .block-title button::after {
        content: "Filtros";
        font-size: 1rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 0;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .block-title button svg {
        order: -1;
        width: 0.95rem !important;
        height: 0.95rem !important;
        stroke-width: 2 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter .filter-content,
    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter #filters-content {
        border-radius: 0.75rem;
        border: 1px solid #d9dfe8;
        padding: 0.75rem;
        background: #fff;
        margin-top: 0.45rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-bottom__pager {
        padding-inline: 0.1rem;
    }
}

@media (max-width: 640px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.sidebar-main, .column.main) .block.filter {
        margin-bottom: 0.4rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products.plp-toolbar-card {
        margin-top: 0.25rem !important;
        margin-bottom: 0.55rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card__bottom {
        gap: 0.5rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .toolbar.toolbar-products .toolbar-amount {
        font-size: 0.9rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .label,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field .sorter-label {
        font-size: 0.86rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.form-select,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.sorter-options,
    body:is(.catalog-category-view, .catalogsearch-result-index) .column.main .plp-toolbar-card .field select.limiter-options {
        min-height: 2rem;
        font-size: 0.86rem;
    }
}

/* PLP compact spacing + mobile filter CTA (Figma parity, no logic changes) */
body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main {
    margin-block: 0.95rem 1.1rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container {
    row-gap: 0.45rem !important;
    margin-bottom: 0.15rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container > .page-title {
    margin-bottom: 0.45rem !important;
    line-height: 1.16 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .columns {
    row-gap: 0.7rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) #product-list {
    padding-top: 0.35rem !important;
    padding-bottom: 0.55rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] {
    margin: 0 0 0.55rem !important;
    padding: 0.72rem 0.75rem !important;
    border: 1px solid #d9dfe8 !important;
    border-radius: 0.85rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title {
    margin: 0 !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] #filters-content {
    padding-top: 0.55rem !important;
}

body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .filter-option.card {
    margin-block: 0.42rem !important;
    padding: 0.58rem 0.65rem !important;
    border: 1px solid #e4e9f0 !important;
    border-radius: 0.72rem !important;
    box-shadow: none !important;
}

@media (max-width: 1023px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        column-gap: 0.6rem !important;
        row-gap: 0.45rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container > .page-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: clamp(1.75rem, 6vw, 2.1rem) !important;
        line-height: 1.14 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main {
        margin: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] {
        margin: 0 0 0.42rem !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title {
        display: flex !important;
        justify-content: flex-end !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: auto !important;
        min-height: 2.35rem !important;
        margin: 0 0 0 auto !important;
        padding: 0.56rem 0.9rem !important;
        border: 1px solid #f37022 !important;
        border-radius: 0.7rem !important;
        background: #f37022 !important;
        color: #fff !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button > span.text-md {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button > span.text-md::after {
        content: "Filtros";
        display: inline-block;
        font-size: 0.95rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button > span[x-ref] {
        order: -1;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button > span[x-ref] svg {
        width: 1rem !important;
        height: 1rem !important;
        stroke-width: 2.15 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] #filters-content {
        margin-top: 0.45rem !important;
        padding: 0.72rem !important;
        border: 1px solid #d9dfe8 !important;
        border-radius: 0.75rem !important;
        background: #fff !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] #filters-content.hidden {
        margin-top: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .filter-option.card {
        margin-block: 0.35rem !important;
        padding: 0.52rem 0.58rem !important;
    }
}

@media (max-width: 640px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main {
        margin-block: 0.7rem 0.85rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container > .page-title {
        font-size: clamp(1.62rem, 8.2vw, 2rem) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button {
        min-height: 2.25rem !important;
        padding: 0.5rem 0.8rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .sidebar-main [aria-label="Product filters"] .block-title > button > span.text-md::after {
        font-size: 0.9rem;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list {
        padding-top: 0.2rem !important;
        padding-bottom: 0.45rem !important;
    }
}

/* PLP refinement v2: desktop title clamp + mobile grid/list parity with Figma */
@media (min-width: 768px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-card-title {
        max-width: 100% !important;
        min-height: calc(1.18em * 2) !important;
        line-height: 1.18 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.list .product-item--list .product-card-title .product-item-link {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 767px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container {
        margin-bottom: 0 !important;
        row-gap: 0.35rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .page-main > .container > .page-title {
        margin-bottom: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns {
        row-gap: 0.45rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main {
        margin-top: -2.95rem !important;
        margin-bottom: 0.05rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main [aria-label="Product filters"] {
        margin: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .column.main {
        margin-top: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
        padding-top: 0.3rem !important;
        padding-bottom: 0.65rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid {
        border-radius: 0.78rem !important;
        overflow: hidden !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .product-info {
        padding: 0.65rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .product-card-title {
        margin-bottom: 0.45rem !important;
        line-height: 1.2 !important;
        font-size: 1.02rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .product-card-title .product-item-link {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list > ul {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.75rem !important;
        padding-top: 0.3rem !important;
        padding-bottom: 0.7rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0.85rem !important;
        overflow: hidden !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-image-wpr--list {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-item-photo--list {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-info {
        width: 100% !important;
        padding: 0.78rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-card-title {
        margin-bottom: 0.45rem !important;
        font-size: 1.08rem !important;
        line-height: 1.2 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-card-title .product-item-link {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .product-info {
        min-width: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .bg-green-50 {
        padding: clamp(0.4rem, 1.35vw, 0.58rem) !important;
        margin-bottom: clamp(0.38rem, 1.3vw, 0.6rem) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) :is(.products.wrapper.mode-grid.products-grid .product-item--grid, .products.wrapper.mode-list.products-list .product-item--list) .bg-green-50 :is(p, span, .price) {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-xl,
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-2xl {
        font-size: clamp(1.12rem, 4.55vw, 1.46rem) !important;
        line-height: 1.06 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-\[10px\],
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-xs {
        font-size: clamp(0.67rem, 2.55vw, 0.78rem) !important;
        line-height: 1.2 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box,
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .price-container,
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .price-wrapper {
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .price {
        display: inline !important;
        font-size: clamp(1.02rem, 4.95vw, 1.88rem) !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .old-price .price {
        font-size: clamp(0.88rem, 3.8vw, 1.2rem) !important;
        line-height: 1.1 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid :is(.payment-installments, .payment-discounts, .payment-info) {
        font-size: clamp(0.66rem, 2.55vw, 0.82rem) !important;
        line-height: 1.22 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        max-width: 100% !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid :is(.payment-discounts ul, .payment-discounts li) {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid [data-addto="cart"] {
        margin-top: clamp(0.42rem, 1.5vw, 0.7rem) !important;
        min-height: clamp(2.35rem, 8.2vw, 2.8rem) !important;
        font-size: clamp(1rem, 3.65vw, 1.22rem) !important;
        line-height: 1 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .price-box .price {
        font-size: clamp(1.22rem, 5vw, 1.9rem) !important;
        line-height: 1.08 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list :is(.payment-installments, .payment-discounts, .payment-info) {
        font-size: clamp(0.78rem, 2.95vw, 0.92rem) !important;
        line-height: 1.24 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

/* PLP refinement v4: remove duplicated blue line in list + ensure side image fill */
body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-card-short-description {
    display: none !important;
}

@media (min-width: 768px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list {
        align-items: stretch !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-image-wpr--list {
        flex: 0 0 clamp(220px, 31%, 340px) !important;
        width: clamp(220px, 31%, 340px) !important;
        max-width: clamp(220px, 31%, 340px) !important;
        min-height: 100% !important;
        align-self: stretch !important;
        display: flex !important;
        overflow: hidden !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-item-photo--list {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        aspect-ratio: auto !important;
        display: block !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-list.products-list .product-item--list .product-item-photo--list img {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (max-width: 390px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-xl,
    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .bg-green-50 .text-2xl {
        font-size: clamp(0.98rem, 4.2vw, 1.22rem) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .price {
        font-size: clamp(0.92rem, 4.2vw, 1.2rem) !important;
        line-height: 1.08 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid .price-box .old-price .price {
        font-size: clamp(0.78rem, 3.5vw, 0.94rem) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) .products.wrapper.mode-grid.products-grid .product-item--grid :is(.payment-installments, .payment-discounts, .payment-info) {
        font-size: clamp(0.6rem, 2.2vw, 0.72rem) !important;
        line-height: 1.2 !important;
    }
}

/* PLP refinement v5: ensure mobile blue filter trigger in all category/search variants */
@media (max-width: 767px) {
    body.catalog-category-view main#maincontent.page-main .columns > .sidebar-main {
        margin-top: -2.55rem !important;
    }

    body.catalogsearch-result-index main#maincontent.page-main .columns > .sidebar-main {
        margin-top: -1.25rem !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main {
        position: relative !important;
        z-index: 4 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main :is([aria-label="Product filters"], .block.filter) {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        display: block !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main :is([aria-label="Product filters"], .block.filter) .block-title {
        margin: 0 !important;
        width: 100% !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main :is([aria-label="Product filters"], .block.filter) .block-title > button,
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main .block.filter .block-title > strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.42rem !important;
        min-height: 2.2rem !important;
        padding: 0.48rem 0.82rem !important;
        border: 1px solid #f37022 !important;
        border-radius: 0.72rem !important;
        background: #f37022 !important;
        color: #fff !important;
        box-shadow: none !important;
        text-transform: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        font-weight: 600 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main :is([aria-label="Product filters"], .block.filter) .block-title > button > span.text-md {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main :is([aria-label="Product filters"], .block.filter) .block-title > button > span.text-md::after,
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main .block.filter .block-title > strong::after {
        content: "Filtros";
        display: inline-block;
        font-size: 0.92rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 0;
        color: #fff;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main .block.filter .block-title > strong::before {
        content: "";
        display: inline-block;
        width: 0.9rem;
        height: 0.9rem;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 4h18M6 12h12m-9 8h6'/%3E%3C/svg%3E") center/contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 4h18M6 12h12m-9 8h6'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main .block.filter .block-content,
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main .block.filter .filter-content,
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns > .sidebar-main [aria-label="Product filters"] #filters-content {
        margin-top: 0.42rem !important;
        width: 100% !important;
    }
}

/* PLP refinement v6: mobile filter trigger parity with Figma (compact CTA + dropdown below) */
@media (max-width: 767px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] {
        display: block !important;
        width: 100% !important;
        margin: 0 0 0.4rem !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title > button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.42rem !important;
        width: fit-content !important;
        max-width: fit-content !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        min-height: 2.2rem !important;
        margin: 0 0 0 auto !important;
        padding: 0.48rem 0.82rem !important;
        border: 1px solid #f37022 !important;
        border-radius: 0.72rem !important;
        background: #f37022 !important;
        color: #fff !important;
        box-shadow: none !important;
        text-transform: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        font-weight: 600 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title > button > span.text-md {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title > button > span.text-md::after {
        content: "Filtros";
        display: inline-block;
        font-size: 0.92rem;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: #fff;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title > button > span[x-ref] {
        order: -1;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] .block-title > button > span[x-ref] svg {
        width: 0.95rem !important;
        height: 0.95rem !important;
        stroke-width: 2.1 !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] #filters-content {
        width: 100% !important;
        margin-top: 0.42rem !important;
        padding: 0.72rem !important;
        border: 1px solid #d9dfe8 !important;
        border-radius: 0.75rem !important;
        background: #fff !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) main#maincontent.page-main .columns :is(.sidebar-main, .column.main) [aria-label="Product filters"] #filters-content.hidden {
        display: none !important;
    }
}

/* Success page: keep primary button text in white for all payment flows (PIX/Boleto) */
body.checkout-onepage-success .checkout-success a.btn.btn-primary,
body.checkout-onepage-success .checkout-success a.btn.btn-primary span,
body.checkout-onepage-success .checkout-success button.btn.btn-primary,
body.checkout-onepage-success .checkout-success button.btn.btn-primary span,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:hover,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:hover span,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:focus,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:focus span,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:active,
body.checkout-onepage-success .checkout-success a.btn.btn-primary:active span,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:hover,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:hover span,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:focus,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:focus span,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:active,
body.checkout-onepage-success .checkout-success button.btn.btn-primary:active span,
body.checkout-onepage-success .actions-toolbar .action.primary.continue,
body.checkout-onepage-success .actions-toolbar a.action.primary.continue,
body.checkout-onepage-success .actions-toolbar button.action.primary.continue,
body.checkout-onepage-success .actions-toolbar .action.primary.continue span {
    color: #ffffff !important;
}

/* Hyva authentication popup: keep primary CTA labels white */
#authentication-popup .btn.btn-primary,
#authentication-popup .btn.btn-primary span,
#authentication-popup .btn.btn-primary:hover,
#authentication-popup .btn.btn-primary:hover span,
#authentication-popup .btn.btn-primary:focus,
#authentication-popup .btn.btn-primary:focus span,
#authentication-popup .btn.btn-primary:active,
#authentication-popup .btn.btn-primary:active span,
#authentication-popup .actions-toolbar .btn.btn-primary,
#authentication-popup .actions-toolbar .btn.btn-primary span,
#authentication-popup .actions-toolbar a.btn.btn-primary,
#authentication-popup .actions-toolbar a.btn.btn-primary span {
    color: #ffffff !important;
}

/* Hyva authentication popup: match Cavalcante layout with Felipe brand colors */
#authentication-popup {
    inline-size: min(420px, calc(100% - 2rem));
    max-inline-size: 420px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 1rem;
}

#authentication-popup > .pt-8,
#authentication-popup > .block-customer-login,
#authentication-popup > .block-new-customer {
    width: 100%;
    padding: 2rem !important;
}

#authentication-popup #authentication-popup-title,
#authentication-popup #authenticate-customer-login,
#authentication-popup #authenticate-new-customer {
    color: var(--color-secondary, #0f172a);
    white-space: normal;
    overflow-wrap: anywhere;
}

#authentication-popup .field label span {
    color: #475569;
    font-weight: 500;
}

#authentication-popup .form-input {
    border-color: var(--border-default, #d1d5db);
    border-radius: var(--form-radius, 0.375rem);
    min-height: 2.65rem;
}

#authentication-popup .form-input:focus {
    border-color: var(--color-secondary, #01273c);
    outline-color: var(--color-secondary, #01273c);
    box-shadow: 0 0 0 3px rgba(243, 112, 34, 0.18);
}

#authentication-popup .actions-toolbar .btn.btn-primary,
#authentication-popup .actions-toolbar a.btn.btn-primary,
#authentication-popup .btn.btn-primary {
    border-color: var(--color-accent-brand, #f37022) !important;
    background-color: var(--color-accent-brand, #f37022) !important;
    color: #ffffff !important;
    border-radius: var(--btn-radius, 0.5rem);
    min-height: 2.625rem;
}

#authentication-popup .actions-toolbar .btn.btn-primary:hover,
#authentication-popup .actions-toolbar a.btn.btn-primary:hover,
#authentication-popup .btn.btn-primary:hover {
    border-color: var(--color-accent-brand-hover, #da641e) !important;
    background-color: var(--color-accent-brand-hover, #da641e) !important;
}

#authentication-popup .actions-toolbar .underline {
    color: var(--color-secondary, #0f172a);
    text-decoration-color: var(--color-accent-brand, #f37022);
}

#authentication-popup .actions-toolbar .underline:hover {
    color: var(--color-accent-brand, #f37022);
}

#authentication-popup .block-new-customer {
    border-top-color: var(--border-default, #d1d5db);
}

#authentication-popup [x-data="initMage2SocialOtpLogin()"] .bg-gray-900 {
    border-color: var(--color-accent-brand, #f37022);
    background-color: var(--color-accent-brand, #f37022);
}

#authentication-popup [x-data="initMage2SocialOtpLogin()"] .text-sm.underline {
    color: var(--color-accent-brand, #f37022);
}

@media (max-width: 640px) {
    #authentication-popup {
        inline-size: calc(100% - 1rem);
        max-inline-size: calc(100% - 1rem);
    }

    #authentication-popup > .pt-8,
    #authentication-popup > .block-customer-login,
    #authentication-popup > .block-new-customer {
        padding: 1.25rem !important;
    }

    #authentication-popup .actions-toolbar {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #authentication-popup .actions-toolbar .btn.btn-primary,
    #authentication-popup .actions-toolbar a.btn.btn-primary {
        width: 100%;
        justify-content: center;
    }

    #authentication-popup .actions-toolbar .underline {
        text-align: center;
    }
}

/* Global button brand standardization (Felipe): orange CTA + white text */
:root {
    --color-secondary: #01273c !important;
    --btn-primary-bg: #f37022 !important;
    --btn-primary-border: #f37022 !important;
    --btn-primary-text: #ffffff !important;
    --btn-primary-hover-bg: #da641e !important;
    --btn-primary-border-hover: #da641e !important;
    --btn-primary-hover-text: #ffffff !important;
    --btn-secondary-bg: #f37022 !important;
    --btn-secondary-border: #f37022 !important;
    --btn-secondary-text: #ffffff !important;
    --btn-secondary-hover-bg: #da641e !important;
    --btn-secondary-border-hover: #da641e !important;
    --btn-secondary-hover-text: #ffffff !important;
}

:is(
    .btn-primary,
    .btn.btn-primary,
    .btn-secondary,
    .btn.btn-secondary,
    button.action.primary,
    a.action.primary,
    .action.primary
) {
    background-color: #f37022 !important;
    border-color: #f37022 !important;
    color: #ffffff !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 700 !important;
}

:is(
    .btn-primary,
    .btn.btn-primary,
    .btn-secondary,
    .btn.btn-secondary,
    button.action.primary,
    a.action.primary,
    .action.primary
) :is(span) {
    color: inherit !important;
}

:is(
    .btn-primary,
    .btn.btn-primary,
    .btn-secondary,
    .btn.btn-secondary,
    button.action.primary,
    a.action.primary,
    .action.primary
):is(:hover, :focus-visible, :active) {
    background-color: #da641e !important;
    border-color: #da641e !important;
    color: #ffffff !important;
}

/* Keep cart drawer CTA with the expected full-width appearance */
#cart-drawer :is(.btn.btn-primary, .btn.btn-secondary) {
    width: 100%;
}

/* Banner slider controls: keep Felipe brand colors without Tailwind rebuild dependency */
.mage2-banner-ultimate-wrapper .m2c-banner-nav-btn {
    background-color: rgba(243, 112, 34, 0.9) !important;
    color: #ffffff !important;
}

.mage2-banner-ultimate-wrapper .m2c-banner-nav-btn:hover {
    background-color: #da641e !important;
}

.mage2-banner-ultimate-wrapper .m2c-banner-nav-btn:focus-visible {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #01273c !important;
}

/* Unified shelves: standardize title behavior across catalog, home, brands and related vitrines */
body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) .product-card-title {
    display: block !important;
    margin-bottom: 0.45rem !important;
    font-size: clamp(1rem, 0.94rem + 0.24vw, 1.08rem) !important;
    line-height: clamp(1.18rem, 1.12rem + 0.28vw, 1.32rem) !important;
    min-height: clamp(2.36rem, 2.2rem + 0.55vw, 2.72rem) !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
}

body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) .product-card-title .product-item-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

@media (max-width: 767px) {
    body:is(
        .cms-index-index,
        .cms-page-view,
        .catalog-category-view,
        .catalogsearch-result-index,
        .catalog-product-view,
        .brands-index-view,
        .brands-index-index,
        .checkout-cart-index,
        .page-products
    )
    :is(
        .products.wrapper.mode-grid.products-grid .product-item--grid,
        .products.wrapper.mode-list.products-list .product-item--list,
        .widget-product-carousel .product-item,
        .mage2-autorelated .product-item,
        .related .product-item,
        .upsell .product-item,
        .crosssell .product-item,
        [data-testid="shopbybrand-brand-products"] .product-item,
        [data-testid="shopbybrand-widget-carousel"] .product-item
    ) .product-card-title {
        font-size: clamp(0.92rem, 0.82rem + 0.55vw, 1rem) !important;
        line-height: clamp(1.08rem, 1rem + 0.55vw, 1.2rem) !important;
        min-height: clamp(2.16rem, 2.02rem + 0.42vw, 2.4rem) !important;
    }
}

@media (max-width: 390px) {
    body:is(
        .cms-index-index,
        .cms-page-view,
        .catalog-category-view,
        .catalogsearch-result-index,
        .catalog-product-view,
        .brands-index-view,
        .brands-index-index,
        .checkout-cart-index,
        .page-products
    )
    :is(
        .products.wrapper.mode-grid.products-grid .product-item--grid,
        .products.wrapper.mode-list.products-list .product-item--list,
        .widget-product-carousel .product-item,
        .mage2-autorelated .product-item,
        .related .product-item,
        .upsell .product-item,
        .crosssell .product-item,
        [data-testid="shopbybrand-brand-products"] .product-item,
        [data-testid="shopbybrand-widget-carousel"] .product-item
    ) .product-card-title {
        font-size: clamp(0.88rem, 0.84rem + 0.45vw, 0.94rem) !important;
        line-height: clamp(1.04rem, 0.98rem + 0.45vw, 1.12rem) !important;
        min-height: clamp(2.08rem, 1.96rem + 0.34vw, 2.24rem) !important;
    }
}

/* Unified shelves: remove "A partir de" labels and strikethrough in card price area */
body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) .price-box .price-label {
    display: none !important;
}

body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) .price-box :is(.old-price, .price-from, .old-price .price, .price-from .price, .bg-green-50 .line-through) {
    color: #f37022 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) .bg-green-50 .line-through {
    display: none !important;
    color: #f37022 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Unified shelves: force all info rows below price to orange */
body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) :is(.payment-installments, .payment-discounts, .payment-info, .box-qty, .box-grade),
body:is(
    .cms-index-index,
    .cms-page-view,
    .catalog-category-view,
    .catalogsearch-result-index,
    .catalog-product-view,
    .brands-index-view,
    .brands-index-index,
    .checkout-cart-index,
    .page-products
)
:is(
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list,
    .widget-product-carousel .product-item,
    .mage2-autorelated .product-item,
    .related .product-item,
    .upsell .product-item,
    .crosssell .product-item,
    [data-testid="shopbybrand-brand-products"] .product-item,
    [data-testid="shopbybrand-widget-carousel"] .product-item
) :is(.payment-installments, .payment-discounts, .payment-info, .box-qty, .box-grade) * {
    color: #f37022 !important;
}

/* Home vitrines: show only one main price value (hide secondary/old price line) */
body.cms-index-index :is(
    .widget-product-carousel .product-item,
    .products.wrapper.mode-grid.products-grid .product-item--grid,
    .products.wrapper.mode-list.products-list .product-item--list
) .price-box :is(.old-price, .price-from) {
    display: none !important;
}





