/**
 * RCPO Our Selection PLP — Hyvä-only tweaks.
 * Layout, grid, toolbar: rolex-rcpo-ourselection-plp.css. Card structure overrides below.
 */

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper {
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Grid (replaces vs-common flex + stretch); 3-col desktop, 2-col mobile — matches old PLP */
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-listingPanel .vs-common-watchItemListing,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-watchItemListing {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    margin: 0;
}

@media only screen and (min-width: 1024px) {
    .rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-listingPanel .vs-common-watchItemListing,
    .rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-watchItemListing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-watchItem:not(.active) {
    display: none !important;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingContent .vs-common-watchItem.active {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
}

/* vs-common aspect-ratio spacers on li / infoWrapper — must not reserve space */
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem::before,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem::after,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItem-infoWrapper::before,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItem-infoWrapper::after {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItemInner,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem a.product-item-info {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    width: calc(100% - 8px);
    height: 100%;
    min-height: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative;
    background-color: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none;
    color: inherit;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItem-imageWrapper,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .product-item-photo {
    display: block;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    max-width: none;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItem-infoWrapper,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .product-item-details {
    display: block;
    flex: 1 1 auto;
    position: relative;
    margin: 0;
    max-width: none;
    text-align: left !important;
    top: auto !important;
    min-height: 0 !important;
    background-color: #000;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .product-image-container,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .product-image-photo {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.rolexrcpo-ourSelection-listingEmpty {
    max-width: 1620px;
    width: calc(100% - 48px);
    margin: 40px auto;
    padding: 24px 0;
    text-align: center;
    color: #472b20;
}

/* Product image (rule in rolex.min is combined with landing selector) */
/* vs-common .rolex-wrapper uses padding-top:111.76% — old PLP uses 100% square */
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem .vs-common-watchItem-imageWrapper .imageWrapper,
.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .vs-common-watchItem .vs-common-watchItem-imageWrapper .imageWrapper {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 100% !important;
    position: relative;
    background-color: #000;
}

.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .vs-common-watchItem .vs-common-watchItem-imageWrapper .imageWrapper img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translate3d(0, -50%, 0) scale3d(1.02, 1.02, 1);
    transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1);
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem-addToWishlistBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem {
    position: relative;
}

/* Load more — legacy rolex.min .rolex-common-button-green + .rolex-common-buttonlabel */
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .rolex-common-watchGridActions .loadmoreBtn,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .rolex-common-watchGridActions .loadmoreBtn.active,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .rolex-common-watchGridActions .loadmoreBtn,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .rolex-common-watchGridActions .loadmoreBtn.active {
    padding: 10px 30px !important;
    font-size: 16px !important;
    line-height: 1.3em !important;
    font-weight: 700;
    background-color: #127749 !important;
    color: #fff !important;
    border-radius: 100px;
    border: 1px solid #127749 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    transition: all 0.2s ease-out;
}

.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .rolex-common-watchGridActions .loadmoreBtn:hover,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .rolex-common-watchGridActions .loadmoreBtn:hover:visited,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .rolex-common-watchGridActions .loadmoreBtn:hover,
.rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .rolex-common-watchGridActions .loadmoreBtn:hover:visited {
    background-color: #fff !important;
    color: #127749 !important;
    text-decoration: none;
}

@media only screen and (max-width: 1023px) {
    .rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .rolex-common-watchGridActions .loadmoreBtn,
    .rolex-wrapper.rolexrcpo .rolexrcpo-ourSelection .vs-common-listingWrapper .vs-common-listingContent .rolex-common-watchGridActions .loadmoreBtn {
        transition: none !important;
    }
}

/* Card typography — rolex-base resets collection utility sizes */
.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem-infoWrapper .rolexrcpo-list-card-item-label.rolex-collection-headline16,
.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem-infoWrapper .rolexrcpo-list-card-item-label.rolex-collection-body16 {
    font-size: clamp(0.75rem, calc(0.625rem + 0.3125vw), 1rem);
    line-height: 1.375;
}

.rolexrcpo .rolexrcpo-ourSelection .vs-common-watchItem-infoWrapper .rolexrcpo-list-card-item-label.rolex-collection-body24 {
    font-size: clamp(1.25rem, calc(1.15rem + 0.25vw), 1.5rem);
    line-height: 1.4;
    color: #fff;
}
