/**
 * Rolex family PLP — product grid (F5).
 * Migrated from rolex.min.css (.rolex-collection-productListWrapper, .rolex-common-watchGrid).
 */

.rolex-wrapper .boxOrient_vertical {
    -webkit-box-orient: vertical;
}

.rolex-wrapper .rolex-collection-headline16 {
    color: #472b20;
    font-weight: 700;
    font-size: clamp(1rem, calc(0.9375rem + 0.1563vw), 1.125rem);
    line-height: 1.3;
}

.rolex-wrapper .rolex-collection-headline24 {
    color: #472b20;
    font-weight: 700;
    font-size: clamp(1.125rem, calc(1.0625rem + 0.1563vw), 1.25rem);
    line-height: 1.2;
}

.rolex-wrapper .rolex-collection-body16 {
    color: rgba(71, 43, 32, 0.8);
    font-size: 16px;
    line-height: 1.3;
}

.rolex-wrapper .rolex-collection-productListWrapper {
    max-width: 1216px;
    width: calc(100% - 48px);
    margin: 0 auto;
    text-align: center;
}

@media only screen and (min-width: 768px) {
    .rolex-wrapper .rolex-collection-productListWrapper {
        width: calc(100% - 80px);
    }
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-collection-productList .rolex-common-watchGrid {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

@media only screen and (min-width: 768px) {
    .rolex-wrapper .rolex-collection-productListWrapper .rolex-collection-productList .rolex-common-watchGrid {
        max-width: unset;
    }
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-collection-productList .rolex-common-watchGrid.singleItem {
    justify-content: center;
}

.rolex-wrapper .rolex-common-watchItem {
    display: block;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    text-decoration: none;
    background-color: #f4efea;
    width: calc((100% - 8px) / 2);
}

@media only screen and (min-width: 768px) {
    .rolex-wrapper .rolex-common-watchItem {
        width: calc((100% - 16px) / 3);
    }
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-common-watchItem.hidden {
    display: none !important;
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-common-watchItem.invisible {
    display: block;
    opacity: 0;
    transform: translate3d(0, 30%, 0);
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-common-watchItem.visible {
    opacity: 1;
    transform: none;
    transition: all 0.25s ease-out;
}

.rolex-wrapper .rolex-common-watchItem::after {
    content: "";
    width: 100%;
    height: 100%;
    margin-top: 150%;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: -1px;
    transition: all 0.2s ease-out;
    z-index: 3;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-imageWrapper,
.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper {
    display: block;
    position: relative;
    transition: all 0.2s ease-out;
    z-index: 4;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper {
    display: block;
    overflow: hidden;
    width: 100%;
    padding-top: 111.7647058824%;
    position: relative;
    background-color: #f4efea;
}

@media only screen and (max-width: 767px) {
    .rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper {
        padding-top: 120%;
    }
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-imageWrapper .imageWrapper img {
    display: block;
    width: 80%;
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    transition: transform 0.7s cubic-bezier(0, 0, 0.2, 1);
}

.rolex-wrapper .rolex-common-watchItem:hover .rolex-common-watchItem-imageWrapper img {
    transform: translate3d(0, -50%, 0) scale3d(1.1, 1.1, 1);
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper {
    margin-top: -1px;
    padding: 0 12px 20px;
}

@media only screen and (min-width: 768px) {
    .rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper {
        padding: 0 40px 40px;
    }
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #f4efea;
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.2s ease-out;
    z-index: 3;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper > * {
    display: block;
    position: relative;
    z-index: 4;
    text-align: left;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-infoWrapper strong {
    font-weight: 700;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-productDesc {
    display: -webkit-box;
    overflow: hidden;
    height: 2.6em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
}

.rolex-wrapper .rolex-common-watchItem .rolex-common-watchItem-productDesc.havePrice {
    height: 3.9em;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.rolex-wrapper .rolex-common-watchItem .price {
    color: #212121;
}

.rolex-wrapper .rolex-collection-productListWrapper .rolex-common-watchGridActions {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

/* Load more — legacy rolex.min .rolex-common-button-green + .rolex-common-buttonlabel */
.rolex-wrapper .rolex-collection-productListWrapper .rolex-common-watchGridActions .loadmoreBtn {
    display: inline-block !important;
    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 .rolex-collection-productListWrapper .rolex-common-watchGridActions .loadmoreBtn:hover,
.rolex-wrapper .rolex-collection-productListWrapper .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 .rolex-collection-productListWrapper .rolex-common-watchGridActions .loadmoreBtn {
        transition: none !important;
    }
}

/* Hide Hyvä PLP toolbar if any remnant in family wrapper */
body.rolex-family-body .rolex-listingFilterWrapper .toolbar,
body.rolex-family-body .rolex-listingFilterWrapper .products.wrapper {
    display: none !important;
}
