/************ Single Product *************/
.page_banner {
    overflow: unset;
}

.page_banner h1 {
    z-index: 5;
}

.wine_bottle_image {
    position: absolute;
    width: 130px;
    height: 441px;
    z-index: 0;
    top: 50px;
    left: 50%;
    margin-left: -65px;
    -webkit-filter: drop-shadow(0px 0px 30px #00000057);
    filter: drop-shadow(0px 0px 30px #00000057); 
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.product_detail_wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 96px;
    margin-bottom: 96px;
}

.product_detail_wrapper:first-of-type {
    margin-bottom: 0;
}

.product_detail_wrapper:last-of-type {
    margin-top: 30px;
}

.column_left,
.column_right {
    width: calc((100% - 96px) / 2);
}

.product_images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}

.hero_image {
    display: flex;
    width: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    padding: 15px;
    box-sizing: border-box;
    background-color: var(--white);
    border: 2px solid var(--border-grey);
}

.hero_image_1 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
}

.hero_image_2 {
    aspect-ratio: 0.5;
    grid-row: span 2;
    height: 100%;
}

.hero_image_3,
.hero_image_4 {
    aspect-ratio: 1;
}

.hero_image:last-child {
    margin-bottom: 0;
}

#item-jump {
    position: absolute;
    margin-top: -150px;
}

.item_container {
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.item_container:last-of-type {
    margin-bottom: 0;
}

.item_card_separator {
    height: 2px;
    background-color: var(--border-grey);
    width: 100%;
    margin: 15px 0;
}

.display_flex {
    display: flex;
    align-items: center;
}

.display_flex .label_container {
    width: max-content;
}

.display_flex .label_container .label {
    position: relative;
    margin: 0;
    left: unset;
    top: unset;
}

.display_flex .label_container .new_popular {
    margin-right: 15px;
}

.item_details h3 {
    margin: 5px 0 0;
    line-height: 1.3;
    text-align: left;
    font-size: 48px;
}

.item_details h4 {
    margin: -5px 0 -10px;
}

.item_details h5 {
    margin: 0;
}

.item_details .fa-chevron-down {
    padding-top: 5px;
    color: var(--gold);
}

.item_details button i {
    margin-right: 8px;
}

.update-cart {
    width: 100%;
}

.discount_flex {
    display: flex;
}

.discounted {
    text-decoration: line-through;
    margin-left: 20px !important;
    opacity: 0.5;
}

.discount_flex h3:first-child,
.discount_flex h3:nth-child(2) {
    margin-top: 0;
}

.select_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select_flex .button {
    width: 220px;
}

.detail_heading {
    display: flex;
    justify-content: space-between;
}

.detail_heading i {
    cursor: pointer;
}

.product_information_hidden,
.cart_button,
.price_tag {
    display: none;
}

.product_information,
#product-description,
.show {
    display: block;
}

#product-description,
.product_information,
#delivery {
    margin-top: 15px;
    margin-bottom: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#product-description {
    margin-top: 0;
}

#product-description p,
.product_information p,
#delivery p {
    margin-top: 0;
}

.sold_out {
    opacity: 0.6;
    pointer-events: none;
}

.detail_separator {
    height: 2px;
    background-color: var(--border-grey);
    width: 100%;
    margin: 30px 0 0;
}

/************************ More Products ***************************/
.more_products {
    margin-top: 80px;
    margin-bottom: 96px;
}

.more_products .store_wrapper {
    margin-bottom: 0;
}

.more_products h2 {
    margin: 0 auto;
    text-align: center;
}

.more_products .more_button {
    margin: 30px auto 0;
}

.more_products .ProductSlider {
    display: none;
}

.more_products .secondary_cta {
    text-align: center;
    margin: 20px auto 10px;
}

@media (max-width: 1500px) and (min-width: 950px) {
    .select_flex {
        flex-direction: column;
    }

    .select_flex .button {
        width: 100%;
    }
}

@media (max-width: 1400px) {
    .column_left,
    .column_right {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 1400px) and (min-width: 1250px) {
    .product_images {
        display: block;
    }

    .hero_image {
        margin-bottom: 30px;
    }

    .hero_image_1 {
        width: 100%;
        aspect-ratio: 1;
    }
    
    .hero_image_2 {
        aspect-ratio: 0.75;
        height: unset
    }
    
    .hero_image_3,
    .hero_image_4 {
        aspect-ratio: 1;
    }
}

@media (max-width: 1350px) {
    .more_products .product:nth-of-type(4) {
        display: none;
    }
}

@media (max-width: 1150px) and (min-width: 950px) {
    .product_images {
        display: block;
    }

    .hero_image {
        margin-bottom: 30px;
    }

    .hero_image_1 {
        width: 100%;
        aspect-ratio: 1;
    }
    
    .hero_image_2 {
        aspect-ratio: 0.75;
        height: unset
    }
    
    .hero_image_3,
    .hero_image_4 {
        aspect-ratio: 1;
    }
}

@media (max-width: 950px) {
    .product_detail_wrapper {
        flex-direction: column-reverse;
    }

    .column_left,
    .column_right {
        width: 100%;
    }

    .column_right h2 {
        text-align: center;
    }

    #item-jump {
        margin-top: -60px;
    }

    .column_left {
        margin-top: 30px;
    }

    .page_banner .home_illustration {
        display: none;
    }
}

@media (max-width: 800px) {    
    .product_images {
        display: block;
    }

    .hero_image {
        margin-bottom: 30px;
    }

    .hero_image_1 {
        width: 100%;
        aspect-ratio: 1;
    }
    
    .hero_image_2 {
        aspect-ratio: 0.75;
        height: unset
    }
    
    .hero_image_3,
    .hero_image_4 {
        aspect-ratio: 1;
    }
}

@media (max-width: 750px) {
    .more_products .product:nth-of-type(4) {
        display: flex;
    }
}

@media (max-width: 700px) {
    .more_products .button {
        width: 100%;
    }
}

@media (max-width: 650px) {
    /* Add in sections below when more than 2 wines */
    /* .more_products .store_wrapper {
        display: none;
    } */

    .more_products .product:nth-of-type(4) {
        display: block;
    }

    /* .more_products .ProductSlider {
        display: block;
        width: calc(100% + 40px);
        margin-left: -20px;
    } */

    /* .more_products .product {
        margin: 30px 8px 0 !important;
    } */

    /* .more_products .product .product_thumbnail {
        height: 400px;
    } */

    /* .more_products .product .product_thumbnail img {
        width: unset;
        height: 100%;
        margin: 0 auto;
        object-fit: fill;
        object-position: 50% 50%;
        transition: 0.2s all ease-in-out;
    } */
}

@media (max-width: 600px) {
    .wine_bottle_image {
        margin-left: -60px;
        top: unset;
        bottom: -60px;
        height: 400px;
        width: 120px;
    }

    .select_flex {
        flex-direction: column;
    }

    .select_flex .button {
        width: 100%;
    }

    .item_details h3 {
        text-align: center;
    }

    .display_flex,
    .price_tag,
    .item_details .review_score {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .display_flex {
        flex-direction: column;
    }

    .display_flex,
    .display_flex .label_container {
        width: 100%;
        margin: 0;
    }

    .display_flex .label_container .label {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .display_flex .label_container:last-of-type .label {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .wine_bottle_image {
        margin-left: -50px;
        top: unset;
        bottom: -60px;
        height: 350px;
        width: 100px;
        bottom: -90px;
    }
}