/* Listing shell. Device metrics stay inline on the page. */
/* Empty listing (no products / no filter matches): configurable media + message */
.listing-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.listing-empty-state__media {
    margin-bottom: 1.25rem;
    max-width: 280px;
    width: 100%;
}
.listing-empty-state__video,
.listing-empty-state__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}
.listing-empty-state__text {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--grey-color, #444);
    letter-spacing: 0.01em;
}
.productlist-progressive #product-list-plp .listing-empty-state {
    max-width: 100%;
    grid-column: 1 / -1;
    padding: 2.5rem 1rem;
}
/* List placeholders keep the same row box as the filled cards so the swap does not shift the page. */
.plp-thumb-slot .plp-list__actions {
    min-height: 34px;
}
/* PLP view mode: two segment buttons (replaces select-box; same border/size feel as select.css) */
.plp-view-toggle {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 300;
    background-color: #fff;
    border: 1px solid var(--grey-color);
    border-radius: 5px;
    overflow: hidden;
    z-index: 997;
}
.plp-view-toggle:hover {
    box-shadow: 5px 5px 8px 4px rgb(0 0 0 / 18%);
}
.plp-view-toggle__option {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    min-width: 0;
    position: relative;
}
.plp-view-toggle__option + .plp-view-toggle__option {
    border-left: 1px solid var(--grey-color);
}
.plp-view-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.plp-view-toggle__face {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px;
    width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}
.plp-view-toggle__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: max-content;
    padding-right: 10px;
    font-weight: normal;
}
/* Narrow phones: icons only so Vista fits beside Orden */
@media (max-width: 767px) {
    .plp-view-toggle__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        min-width: 0;
    }
    .plp-view-toggle__face {
        gap: 0;
        padding: 3px 10px;
    }
}
.plp-view-toggle__option:hover .plp-view-toggle__face {
    background-color: #f9f9f9;
}
.plp-view-toggle__input:checked + .plp-view-toggle__face {
    background-color: #ececec;
    font-weight: 600;
}
.plp-view-toggle__input:focus + .plp-view-toggle__face {
    outline: 2px solid rgba(0, 0, 0, 0.15);
    outline-offset: -2px;
}
.plp-view-toggle.plp-view-toggle--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.plp-view-toggle.plp-view-toggle--disabled:hover {
    box-shadow: none;
}
.plp-view-toggle.plp-view-toggle--disabled .plp-view-toggle__option {
    cursor: not-allowed;
}

/* Per-view PLP: map grid vs list custom properties to shared --plp-title-* / --plp-price-* */
#product-list-plp.plp-view-grid {
    --plp-title-font-size: var(--plp-grid-title-font-size, 14px);
    --plp-title-line-height: var(--plp-grid-title-line-height, 1.25);
    --plp-title-font-weight: var(--plp-grid-title-font-weight, 400);
    --plp-title-color: var(--plp-grid-title-color, var(--black-color));
    --plp-price-font-size: var(--plp-grid-price-font-size, 20px);
    --plp-price-font-weight: var(--plp-grid-price-font-weight, bold);
    --plp-price-color: var(--plp-grid-price-color, var(--black-color));
    --plp-price-old-font-size: var(--plp-grid-price-old-font-size, 18px);
    --plp-price-old-font-weight: var(--plp-grid-price-old-font-weight, normal);
    --plp-price-old-color: var(--plp-grid-price-old-color, var(--grey-color));
}
#product-list-plp.plp-view-list {
    --plp-title-font-size: var(--plp-list-title-font-size, 14px);
    --plp-title-line-height: var(--plp-list-title-line-height, 1.25);
    --plp-title-font-weight: var(--plp-list-title-font-weight, 400);
    --plp-title-color: var(--plp-list-title-color, var(--black-color));
    --plp-price-font-size: var(--plp-list-price-font-size, 20px);
    --plp-price-font-weight: var(--plp-list-price-font-weight, bold);
    --plp-price-color: var(--plp-list-price-color, var(--black-color));
    --plp-price-old-font-size: var(--plp-list-price-old-font-size, 18px);
    --plp-price-old-font-weight: var(--plp-list-price-old-font-weight, normal);
    --plp-price-old-color: var(--plp-list-price-old-color, var(--grey-color));
}
/* PLP price typography (device vars from template / JS) */
/* .product_price: undiscounted price is plain text (no .price-new); with discount, .price-new/.price-old are inside */
.productlist-progressive #product-list-plp .product_price,
.productlist-progressive #product-list-plp .price-new {
    font-size: var(--plp-price-font-size, 1.15em);
    font-weight: var(--plp-price-font-weight, bold);
    color: var(--plp-price-color, var(--black-color));
}
.productlist-progressive #product-list-plp .price-old {
    font-size: var(--plp-price-old-font-size, 18px);
    font-weight: var(--plp-price-old-font-weight, normal);
    color: var(--plp-price-old-color, var(--grey-color));
}
.productlist-progressive #product-list-plp .plp-reward-cost {
    font-size: var(--plp-price-font-size, 1.15em);
    font-weight: var(--plp-price-font-weight, bold);
    color: var(--plp-price-color, var(--black-color));
}
.productlist-progressive #product-list-plp .plp-reward-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}
.productlist-progressive #product-list-plp .plp-reward-badge--ok {
    background: #e8f7ea;
    color: #1f6b2c;
}
.productlist-progressive #product-list-plp .plp-reward-badge--warn {
    background: #fff3e0;
    color: #9a5b00;
}
.plp-filter-redeemable {
    margin: 0 0 12px;
}
.plp-filter-redeemable label {
    font-weight: normal;
    cursor: pointer;
}

.plp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--plp-max-width, 300px), min(100%, var(--plp-min-width, 250px))), 1fr));
    gap: var(--plp-gap, 10px);
    width: 100%;
}
.plp-list.plp-view-list {
    display: grid;
    gap: var(--plp-list-gap, 10px);
    width: 100%;
    align-items: stretch;
}
/* Max width 0: cells grow with 1fr; otherwise cap track width for expansion between min and max */
.plp-list.plp-view-list.plp-list--max-none {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--plp-list-min-w, 320px)), 1fr));
}
.plp-list.plp-view-list:not(.plp-list--max-none) {
    grid-template-columns: repeat(auto-fill, minmax(min(var(--plp-list-max-w), 100%), min(100%, var(--plp-list-min-w, 320px))));
}
.plp-list.plp-view-list .plp-thumb-wrap {
    min-width: 0;
}
.plp-list.plp-view-list .product-thumb--plp-list {
    width: 100%;
}
.plp-thumbs-wrap {
    min-height: 80px;
}
.plp-loading,
.plp-error {
    margin: 1em 0;
    color: #666;
}
.plp-thumbs-wrap.plp-loaded .plp-loading {
    display: none;
}
.pagination-results-plp {
    margin-top: 1.5em;
    min-height: 3rem;
    contain: layout;
}
#pagination-plp .pagination {
    margin: 0;
}
.plp-thumb-wrap {
    min-height: 0;
    display: flex;
}
/* Both views live in the slot. The inactive one stays out of layout so toggling is CSS only. */
.plp-thumb-dual,
.plp-thumb-variant {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    min-height: 0;
}
#product-list-plp.plp-view-grid .plp-thumb-variant--list,
#product-list-plp.plp-view-list .plp-thumb-variant--grid {
    display: none;
}
/* calc(image + meta) matches AJAX thumbs; slots and real thumbs share the same floor to avoid CLS on replace */
.productlist-progressive .plp-grid.plp-view-grid > .plp-thumb-wrap {
    min-height: calc(var(--plp-thumb-image-h, 300px) + var(--plp-slot-below-min, 140px));
    contain: layout;
    box-sizing: border-box;
}
.productlist-progressive .plp-grid.plp-view-grid.plp-grid-thumb-h-auto > .plp-thumb-wrap {
    min-height: var(--plp-slot-below-min, 140px);
}
.productlist-progressive .plp-list.plp-view-list > .plp-thumb-wrap {
    min-height: max(var(--plp-list-row-min-h, 72px), calc(var(--plp-list-thumb-h, 80px) + 16px));
    contain: layout;
    box-sizing: border-box;
}
.product-thumb--plp-list {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;    
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
    box-sizing: border-box;
}
/*.productlist-progressive .plp-list.plp-view-list > .plp-thumb-wrap:nth-child(even) .product-thumb--plp-list {
    background-color: rgba(0,0,0,0.02);
}*/
.plp-list.plp-view-list .plp-list__media {
    flex: 0 0 auto;
    position: relative;
    width: var(--plp-list-thumb-w, 80px);
    height: var(--plp-list-thumb-h, 80px);
    min-width: var(--plp-list-thumb-w, 80px);
    min-height: var(--plp-list-thumb-h, 80px);
    overflow: hidden;
}
.plp-list.plp-view-list .plp-list__media > a {
    display: block;
    width: 100%;
    height: 100%;
}
.plp-list.plp-view-list .plp-list__img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    display: block;
    object-fit: var(--plp-list-thumb-object-fit, contain);
    object-position: center;
}
.plp-list.plp-view-list .plp-list__img.img-responsive {
    max-width: none;
    height: 100%;
}
.plp-list__main {
    flex: 1;
    flex-basis: 250px;
    min-width: 0;

}
.plp-list__title {
    margin: 0;
    font-size: var(--plp-title-font-size, 14px);
    line-height: var(--plp-title-line-height, 1.25);
    font-weight: var(--plp-title-font-weight, 600);
    color: var(--plp-title-color, inherit);
}
.plp-list__title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-weight: inherit;
}
.plp-list__price {
    flex: 1;
    text-align: right;
    font-size: 13px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 150px;
}
.plp-list__price:empty,
.plp-list__actions:empty {
    display: none;
    min-width: 0;
    flex: 0;
    width: 0;
    padding: 0;
    margin: 0;
}
.product-thumb--plp-list--compact {
    justify-content: flex-start;
}
.product-thumb .thumb_stickers.plp-list__discounts {
    padding: 4px 0 0 0;
}
.product-thumb .price-date-modified {
    position: static;
    width: auto;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
    text-align: inherit;
}
.plp-list__price .price-date-modified {
    text-align: right;
}
.plp-list__actions {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.plp-list__actions:not(:has(.btn_shopping_cart)):not(:has(a.edge-login-buy)),
.plp-list__actions:has(.edge-buy-live--pending):not(:has(.edge-buy-live:not(.edge-buy-live--pending))):not(:has(a.edge-login-buy)) {
    justify-content: center;
}
.plp-list__btn {
    white-space: nowrap;
    font-size: 1em;
}
.plp-list__wish {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    padding: 4px !important;
    margin: 0 !important;
    line-height: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--grey-color);
}
.plp-list__wish:focus,
.plp-list__wish:hover {
    color: var(--red-color);
}
.plp-list__wish i {
    font-size: 16px;
}
.plp-list__actions .plp-list__number-spinner {
    flex: 1;
    max-width: none;
    display: inline-flex;
    align-items: stretch;
}
.plp-list__actions .plp-list__number-spinner input.js-quantity-input.plp-list__qty-input {
    font-size: 1em;
}
.plp-list__actions .plp-list__number-spinner .data-dwn,
.plp-list__actions .plp-list__number-spinner .data-up {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plp-list__actions .plp-list__number-spinner .data-dwn .btn,
.plp-list__actions .plp-list__number-spinner .data-up .btn {
    padding: 2px 4px;
    min-width: 0;
    line-height: 1;
}
.plp-list__actions .plp-list__number-spinner .btn svg {
    height: 20px !important;
    width: 20px !important;
    display: block;
}
.plp-list__qty-input {
    box-sizing: border-box;
    min-width: 4ch;
    width: 4.5ch;
    max-width: 8ch;
    padding: 2px 4px !important;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    font-variant-numeric: tabular-nums;
    height: auto;
    -moz-appearance: textfield;
}
.plp-list__qty-input::-webkit-outer-spin-button,
.plp-list__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.plp-thumb-wrap.plp-thumb-slot {
    background-color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
}
/* PLP: lock image column height to the same value as slots (carousel + productthumb).
   Drop the 1/1 aspect-ratio from productthumb.css: Safari uses that ratio with the
   fixed height and paints a square wider than the column, so the photo looks zoomed. */
.productlist-progressive .plp-view-grid .product-thumb .image {
    height: var(--plp-thumb-image-h, 300px);
    min-height: var(--plp-thumb-image-h, 300px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    overflow: hidden;
}
.productlist-progressive .plp-grid.plp-view-grid.plp-grid-thumb-h-auto .product-thumb .image {
    height: auto;
    min-height: 0;
}
.productlist-progressive .plp-view-grid .product-thumb .image img:not(.sticker-preview-media) {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: var(--plp-thumb-object-fit, contain);
    -webkit-object-fit: var(--plp-thumb-object-fit, contain);
    object-position: center;
}
.productlist-progressive .plp-grid.plp-view-grid.plp-grid-thumb-h-auto .product-thumb .image img:not(.sticker-preview-media) {
    height: auto;
    min-height: 0;
}
/* Title: reserve up to 3 lines from PLP typography vars (matches server slot math) */
.productlist-progressive .plp-view-grid .product-thumb .product_caption h4 {
    font-size: var(--plp-title-font-size, 14px);
    line-height: var(--plp-title-line-height, 1.25);
    font-weight: var(--plp-title-font-weight, 400);
    color: var(--plp-title-color, var(--black-color));
    min-height: calc(var(--plp-title-max-lines, 3) * 1em * var(--plp-title-line-height, 1.25));
}
.productlist-progressive .plp-view-grid .product-thumb .product_caption h4 a {
    font-weight: inherit;
    color: inherit;
}
.plp-thumb-wrap .product-thumb {
    flex: 1;
    min-height: 0;
    width: 100%;
}
/* Hidden until IntersectionObserver adds .plp-visible (reduces in-viewport CLS from progressive paint) */
.plp-thumb-wrap:not(.plp-visible) {
    pointer-events: none;
}
/* Opacity-only: visibility:hidden was associated with extra layout/paint quirks in CLS traces */
.plp-thumb-effect-fadein {
    opacity: 0;
    transition: opacity var(--plp-effect-duration, 500ms) ease var(--plp-effect-delay, 0ms);
}
.plp-thumb-effect-fadein.plp-visible {
    opacity: 1;
}
.plp-thumb-effect-slideup {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--plp-effect-duration, 500ms) ease var(--plp-effect-delay, 0ms), transform var(--plp-effect-duration, 500ms) ease var(--plp-effect-delay, 0ms);
}
.plp-thumb-effect-slideup.plp-visible {
    opacity: 1;
    transform: translateY(0);
}
.plp-thumb-effect-none,
.plp-thumb-effect-none.plp-visible {
    opacity: 1;
}
