/* Product page CSS */


@media screen and (min-width: 1024px) {
    /* Desktop */
    :root {
        --LargeImageWidth: min(600px, calc(var(--ContentWidth) * 0.45));
        --Column2Width: calc((var(--ContentWidth) - var(--Column1Width)) * 0.95);
    }
}

@media screen and (max-width: 1023px) {
    /* Mobile */
    :root {
        --LargeImageWidth: min(600px, calc(var(--ContentWidth) - 2px));
        --Column2Width: var(--ContentWidth);
    }
}

/* All */
:root {
    --Column1Width: calc(var(--LargeImageWidth) + 2px);
    --LargeImageHeight: calc(var(--LargeImageWidth) / 0.75);
    --SmallImageWidth: calc(var(--LargeImageWidth) / 8);
    --SmallImageHeight: calc(var(--LargeImageHeight) / 8);
    --LargeImageGapBelow: calc(var(--LargeImageHeight) / 50);
    --SmallImageSpacing: calc(var(--SmallImageWidth) / 8);
}


/* Page */

.product-page {
    width: var(--ContentWidth);
    margin: 30px auto;
    box-sizing: border-box;
    font-size: 0;
    overflow: visible;
    position: relative;
}


/* Product images */

#product-column1 {
    width: var(--Column1Width);
    height: calc(var(--LargeImageHeight) + var(--LargeImageGapBelow) + var(--SmallImageHeight) + 4px);
    float: left;
    overflow: auto;
    font-size: 0;
    line-height: 0;
    position: relative;
}

@media screen and (max-width: 1023px) {

    #product-column1 {
        float: none;
        margin: 0 auto 50px auto;
    }

}


/* Main image - MagicZoomPlus */

#product-column1 .product-image {
    width: calc(var(--LargeImageWidth) + 2px);
    height: calc(var(--LargeImageHeight) + 2px);
    border-radius: 10px;
    position: absolute;
    top: 0;
    right: 0;
}

#product-column1 .product-image img,
#product-column1 .product-image figure {
    width: var(--LargeImageWidth);
    height: var(--LargeImageHeight);
    border-radius: 10px;
}

#product-column1 .product-image .MagicZoom {
    width: calc(var(--LargeImageWidth) + 2px);
    height: calc(var(--LargeImageHeight) + 2px);
    border: 1px solid var(--GreyBorderColour);
    border-radius: 10px;
}

.mz-lens,
.mz-zoom-window {
    border-radius: 10px;
}


/* Percentage saving overlay */

#product-column1 .product-image .product-overlay-percent {
    position: absolute;
    top: 15px;
    left: 15px;
    line-height: 1;
    padding: 7px 12px 9px 12px;
    background-color: var(--RedTextColour);
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
}


/* Best seller overlay */

#product-column1 .product-image .product-overlay-bestseller {
    position: absolute;
    top: calc(var(--LargeImageWidth) * 1.12);
    right: 0;
    line-height: 1;
    padding: 7px 15px 9px 25px;
    background-color: var(--GreyTextColour);
    color: #ffffff;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
}


/* Thumbnails - MagicScroll */

#product-column1 .product-thumbnails {
    height: calc(var(--SmallImageHeight) + 2px);
    width: var(--Column1Width);
    position: absolute;
    top:  calc(var(--LargeImageHeight) + var(--LargeImageGapBelow) + 2px);
    left: 0;
    overflow: hidden;
}

#product-column1 .MagicScroll .product-thumbnail {
    display: block;
    height: calc(var(--SmallImageHeight) + 2px);
    width: calc(var(--SmallImageWidth) + 2px);
    margin: 1px var(--SmallImageSpacing) 0 0;
    box-sizing: border-box;
}

#product-column1 .MagicScroll img {
    box-shadow: none !important;
    padding-bottom: 0 !important;
    height: var(--SmallImageHeight);
    width: var(--SmallImageWidth);
    box-sizing: border-box;
    border-radius: 6px;
}

#product-column1 .MagicScroll .mz-thumb img {
    border: 1px solid var(--GreyBorderColour);
    transition: border .3s;
}

@media (hover: hover) {
    #product-column1 .MagicScroll .mz-thumb:hover img {
        border: 1px solid var(--GreyTextColour);
    }
}

#product-column1 .MagicScroll .mz-thumb.mz-thumb-selected img {
    border: 1px solid #000000;
}



/* Product main section */

#product-column2 {
    width: var(--Column2Width);
    height: auto;
    overflow: visible;
    float: right;
    clear: none;
    position: relative;
    font-size: 0;
}

@media screen and (max-width: 767px) {

    #product-column1 {
        float: none;
    }

}


/*

@media screen and (max-width: 1023px) {

    #product-column2 {
        width: calc(100% - 550px);
    }

}


@media screen and (max-width: 767px) {

    #product-column2 {
        width: 100%;
        float: none;
    }

}

*/

/* Brand logo, name and colour */

#product-column2 .product-logo {
    display: block;
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 200px;
    margin: 1px 0 10px 1px;
}


@media screen and (max-width: 479px) {

    #product-column2 .product-logo {
        max-height: 45px;
        max-width: 180px;
    }

}


/*
#product-column2 .product-name {
}
*/

#product-column2 .product-colour {
    margin: 5px 0 0 0;
}


/* Prices */

#product-column2 .product-prices {
    margin: 30px 0;
    display: flex;
    align-items: center;
    column-gap: 25px;
}

#product-column2 .product-prices .normal-price {
    text-decoration: line-through;
    color: var(--GreyTextColour);
    font-size: 20px;
    line-height: 1;
}

#product-column2 .product-prices .our-price-red {
    color: var(--RedTextColour);
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

#product-column2 .product-prices .our-price-black {
    color: #000000;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

#product-column2 .product-prices .save-price {
    color: var(--RedTextColour);
    font-size: 15px;
    line-height: 28px;
    padding: 0 12px 2px 12px;
    background-color: #f9e6e4;
    border-radius: 4px;
    margin-top: 3px;
}



/* Tailoring etc info */

#product-column2 .product-info {
    color: var(--GreyTextColour);
    font-size: 15px;
}

#product-column2 .product-info span {
    color: #000000;
}


/* Delivery */

#product-column2 .product-delivery {
    margin-top: 30px;
    display: flex;
    align-items: center;
    column-gap: 20px;
    border: 1px solid var(--GreyBorderColour);
    border-radius: 6px;
    padding: 12px 20px;
    background-color: var(--HeaderBackgroundColour);
}

#product-column2 .product-delivery img {
    display: block;
    height: 18px;
}

#product-column2 .product-delivery div h3 {
    margin: 0;
    font-weight: 400;
}

#product-column2 .product-delivery div p {
    margin: 0;
    font-size: 15px;
    color: var(--GreyTextColour);
}


/* Top review */

#product-column2 .product-top-review {
    margin-top: 25px;
    border: 1px solid var(--GoldStarColour);
    border-radius: 6px;
    padding: 12px 20px;
    background-color: var(--HeaderBackgroundColour);
}

#product-column2 .product-top-review i {
    color: var(--GoldStarColour);
    font-size: 18px;
    padding: 0 2px 3px 0;
}

#product-column2 .product-top-review p {
    margin: 0;
    font-size: 15px;
    color: var(--GreyTextColour);
}



/* Colour swatches */

#product-column2 .product-swatches-title {
    font-size: 15px;
    margin: 40px 0 8px 0;
}

#product-column2 .product-swatches-title span {
    color: var(--GreyTextColour);
}


#product-column2 .product-swatches {
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
}

#product-column2 .product-swatch a,
#product-column2 .product-swatch div {
    display: block;
    height: 80px;
    width: 60px;
    box-sizing: content-box;
    border-radius: 6px;
    position: relative;
}

#product-column2 .product-swatch a {
    border: 1px solid var(--GreyBorderColour);
    transition: border .3s;
}

@media (hover: hover) {
    #product-column2 .product-swatch a:hover {
        border: 1px solid var(--GreyTextColour);
    }
}

#product-column2 .product-swatch div {
    border: 1px solid #000000;
}

#product-column2 .product-swatch img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    transition: transform .3s;
}



@media screen and (max-width: 767px) {

    #product-column2 .product-swatches {
        gap: 8px 8px;
    }

    #product-column2 .product-swatch a,
    #product-column2 .product-swatch div {
        height: 75px;
        width: 50px;
    }

}


/* Size guide link */

#product-column2 .product-size-link {
    float: right;
    margin-bottom: -25px;
    margin-top: 15px;
    position: relative;
}

#product-column2 .product-size-link a {
    font-size: 15px;
    color: var(--RedTextColour);
    text-decoration: none;
}

#product-column2 .product-size-link a img {
    height: 15px;
    vertical-align: middle;
    padding-right: 1px;
}

@media (hover: hover) {
    #product-column2 .product-size-link a:hover {
        text-decoration: underline;
    }
}


/* Basket form */

#product-column2 #product-basket {
    width: 100%;
    vertical-align: top;
    position: relative;
    margin-bottom: 20px;
}

#product-column2 #product-basket .product-basket-row {
    width: 100%;
    overflow: auto;
    padding: 10px 0;
}

#product-column2 #product-basket .product-basket-row .product-basket-title {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    line-height: 20px;
    font-size: 15px;
    margin-bottom: 5px;
}

#product-column2 #product-basket .product-basket-row .product-basket-value {
    width: 100%;
    height: 30px;
    overflow: hidden;
    box-sizing: border-box;
}


/* Select input field */

#product-column2 #product-basket .product-basket-select {
    position: relative;
    width: 100%;
    height: 40px;
}

#product-column2 #product-basket .product-basket-select label {
    height: 40px;
}

#product-column2 #product-basket .product-basket-select label:after {
    line-height: 37px;
}


/* Tailoring select initially hidden */

#product-column2 #product-basket #product-tailoring {
    display: none;
}


/* Container for quantity box and add to basket button */

#product-column2 #product-basket .product-basket-qty-add {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    column-gap: 30px;
}

@media screen and (max-width: 767px) {
    #product-column2 #product-basket .product-basket-qty-add {
        column-gap: 25px;
    }
}

@media screen and (max-width: 479px) {
    #product-column2 #product-basket .product-basket-qty-add {
        column-gap: 20px;
    }
}


#product-column2 #product-basket .product-basket-qty-add div {
    width: 140px;
}


/* Quantity box with +/- buttons */

#product-column2 #product-basket .product-basket-qty-add .product-qty {
    height: 40px;
    width: 100%;
    display: inline-block;
    float: left;
    clear: left;
    flex-grow: 0;
}


/* Add to basket button */

#product-column2 #product-basket .product-basket-qty-add .add-to-basket {
    width: 250px;
    flex-grow: 1;
}


/* Bullet points (stock and returns) */

#product-column2 .product-bullets {
    margin-top: 30px;
    border: 1px solid var(--GreyBorderColour);
    border-radius: 6px;
    padding: 15px 20px;
    background-color: var(--HeaderBackgroundColour);
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
}

#product-column2 .product-bullets div {
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: 20px;
}

#product-column2 .product-bullets div svg {
    display: block;
    height: 18px;
}

#product-column2 .product-bullets div p {
    margin: 0;
    font-size: 16px;
}

@media screen and (max-width: 479px) {

    #product-column2 .product-bullets {
        padding: 12px 15px;
        row-gap: 8px;
    }

    #product-column2 .product-bullets div {
        column-gap: 15px;
    }

    #product-column2 .product-bullets div svg {
        height: 16px;
    }

    #product-column2 .product-bullets div p {
        font-size: 15px;
    }


}


/* Info dropdowns */

#product-dropdowns {
    clear: both;
    padding-top: 60px;
}


/* Tailoring info dropdown */

.product-tailoring-photos {
    width: 100%;
    margin: 20px 0;
    font-size: 0;
    display: flex;
    justify-content: flex-start;
    column-gap: 2.5%;
}

.product-tailoring-photo {
    box-sizing: border-box;
    border: 1px solid var(--GreyBorderColour);
    border-radius: 10px;
    flex-shrink: 1;
}

.product-tailoring-photo img {
    width: 100%;
    border-radius: 10px;
}

@media screen and (max-width: 479px) {

    .product-tailoring-photos {
        flex-wrap: wrap;
        row-gap: 15px;
    }

    .product-tailoring-photo {
        width: 100%;
    }

}


/* Sizes table info dropdown */

.product-table {
    border-collapse: collapse;
    font-size: 15px;
    margin: 5px 0 10px 0;
    color: var(--GreyTextColour);
}

.product-table th {
    line-height: 1.6;
    font-family: var(--TitleFontFamily), sans-serif;
}

.product-table td {
    border-top: 1px solid var(--GreyBorderColour);
    line-height: 1.6;
}

.product-table .product-table-size {
    text-align: left;
    padding: 2px 40px 4px 10px;
}

.product-table .product-table-stock {
    text-align: right;
    padding: 2px 10px 4px 40px;
}


/* Suggestions */

.product-suggestions-container {
    width: var(--ContentWidth);
    padding: 30px 0 15px 0;
    box-sizing: border-box;
    font-size: 0;
    overflow: auto;
    clear: both;
}

.product-suggestions-container #product-blocks {
    margin-top: 15px;
}

@media screen and (max-width: 1023px) {
    .product-suggestions-container .product-block:nth-child(n+4) {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .product-suggestions-container .product-block:nth-child(n+4) {
        display: block;
    }
}



/* Bottom reviews */

#product-reviews {
    width: 100%;
    padding-top: 10px;
    clear: both;
}

#product-reviews > h2 {
    text-align: center;
}

#product-reviews > p {
    text-align: center;
    font-size: 15px;
    color: var(--GreyTextColour);
}

#product-reviews #product-reviews-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 25px;
    margin-top: 40px;
}

#product-reviews #product-reviews-flex .product-review {
    width: 50%;
    flex-shrink: 1;
    padding-right: 30px;
    box-sizing: border-box;
}

#product-reviews #product-reviews-flex .product-review i {
    color: var(--GoldStarColour);
    font-size: 22px;
    padding-right: 3px;
}

#product-reviews #product-reviews-flex .product-review p {
    font-size: 15px;
    margin-top: 5px;
    color: var(--GreyTextColour);
}

#product-reviews #product-reviews-flex .product-review p strong {
    color: #000000;
}


@media screen and (max-width: 1023px) {

    #product-reviews #product-reviews-flex .product-review {
        width: 100%;
        padding-right: 0;
    }

}


@media screen and (max-width: 767px) {

    #product-reviews > p,
    #product-reviews #product-reviews-flex .product-review p {
        font-size: 14px;
    }

}



/* Featured In */

.product-featured {
    background-color: var(--FooterColour);
    margin: 0 0 0 0;
    text-align: center;
    padding: 15px 0 30px 0;
    clear: both;
}

.product-featured h2 {
    color: var(--FooterTextColour);
    font-size: 18px;
    font-weight: 500;
}

.product-featured-logos {
    width: var(--ContentWidth);
    max-width: 800px;
    margin: 15px auto 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    align-items: center;
    gap: 20px 50px;
}

.product-featured-logos img {
    flex-grow: 0;
    max-width: 160px;
    max-height: 60px;
}


@media screen and (max-width: 1023px) {

    .product-featured-logos {
        gap: 20px 30px;
    }

    .product-featured-logos img {
        max-width: 140px;
        max-height: 55px;
    }

}


@media screen and (max-width: 767px) {
    .product-featured-logos {
        max-width: 420px;
        gap: 20px 20px;
    }
}

@media screen and (max-width: 479px) {

    .product-featured-logos {
        gap: 15px 15px;
    }

    .product-featured-logos img {
        max-width: 130px;
        max-height: 50px;
    }

}
