/**
 * Rolex Our Rolex Selection PLP — Hyvä-only tweaks.
 * Layout, grid, toolbar: rolex-ourselection-plp.css. Card structure overrides below.
 */

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .vs-common-listingWrapper {
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.rolex-wrapper:not(.rolexrcpo) .boxOrient_vertical {
    -webkit-box-orient: vertical;
}

/* Flex wrap grid — 2-col mobile, 3-col desktop (vs-common.min.css width rules) */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .vs-common-listingContent .vs-common-listingPanel .vs-common-watchItemListing,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .vs-common-listingContent .vs-common-watchItemListing {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin: 0;
}

/* Card pseudo-elements from rolex.min — must not reserve space on PLP */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem::before,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem::after,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-infoWrapper::before,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-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:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem {
    text-decoration: none;
    color: inherit;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-imageWrapper,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .product-item-photo {
    display: block;
    position: relative;
    margin: 0;
    max-width: none;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-infoWrapper {
    display: block;
    position: relative;
    margin: 0;
    margin-top: -1px;
    max-width: none;
    text-align: left !important;
    top: auto !important;
    min-height: 0 !important;
    padding: 0 12px 20px;
}

@media only screen and (min-width: 768px) {
    .rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-infoWrapper {
        padding: 0 40px 40px;
    }
}

.rolex-ourRolexSelection-listingEmpty {
    max-width: 1620px;
    width: calc(100% - 48px);
    margin: 40px auto;
    padding: 24px 0;
    text-align: center;
    color: #472b20;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 111.7647058824% !important;
    position: relative;
    background-color: #f4efea;
}

@media only screen and (max-width: 767px) {
    .rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper {
        padding-top: 120% !important;
    }
}

/* Product image — rolex.min direct img (80% centered); avoid Hyvä image_with_borders 360px box */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper img,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper .product-image-photo {
    display: block !important;
    width: 80% !important;
    height: auto !important;
    max-width: none !important;
    position: absolute !important;
    left: 10% !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translate3d(0, -50%, 0);
    transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1);
}

@media only screen and (min-width: 1024px) {
    .rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem:hover .rolex-common-watchItem-imageWrapper .imageWrapper img,
    .rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem:hover .rolex-common-watchItem-imageWrapper .imageWrapper .product-image-photo {
        transform: translate3d(0, -50%, 0) scale3d(1.1, 1.1, 1);
    }
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

/* Load more — rolex.min .rolex-common-button-green + .rolex-common-buttonlabel */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn.active {
    padding: 10px 30px;
    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:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn {
    display: none !important;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn.active {
    display: inline-block !important;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn:hover,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .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:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-common-watchGridActions .loadmoreBtn {
        transition: none !important;
    }
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-infoWrapper > * {
    display: block;
    position: relative;
    z-index: 4;
    text-align: left;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-brandName,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productName,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc {
    display: block;
}

/* PLP card typography — rolex.min global utilities (.rolex-collection-headline16/24/body16) */
/* CON-5b: card typography sizes → rolex-typography.css */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-brandName.rolex-collection-headline16,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-brandName.rolex-collection-headline16 strong {
    color: #472b20;
    font-weight: 700;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productName.rolex-collection-headline24,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productName.rolex-collection-headline24 strong {
    color: #472b20;
    font-weight: 700;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc.rolex-collection-body16 {
    color: #212121;
    font-weight: 400;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    height: 2.6em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc:last-of-type {
    display: block;
    overflow: visible;
    height: auto;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc .price,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rolex-common-watchItem-productDesc .price * {
    color: #212121;
    font-weight: 400;
}

/* Hyvä renders empty review stars when getReviewsSummaryHtml is omitted — hide if any leak through */
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .product-reviews-summary,
.rolex-wrapper:not(.rolexrcpo) .rolex-ourRolexSelection .rolex-ourRolexSelection-watchItem .rating-summary {
    display: none !important;
}
