﻿/* PRODUCTS */
.product_category {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;

    margin-left: auto;
    margin-right: auto;
    
}

/* Fullscreen Product View */
#fullscreen_product {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.40);
}

.fullscreen_inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: auto;    
    height: auto;
    max-height: 90vh;
    min-width: 400px;

    padding: 2.2%;

    background: white;

    border-radius: 10px;
}

.fullscreen_inner a {
    display: inline-block;
    position: initial;
    float: right;
}

.fullscreen_inner a i {font-size: 1.2rem;}

.fullscreen_content {
    display: block;
    position: initial; 
}

.fullscreen_header {
    display: flex;
}

.fullscreen_title {
    flex: 1;
    
    padding: 0;

    font-size: 2rem;

    border: none;
}

.fullscreen_img {
    width: 60vw;
    min-width: 400px;
    max-width: 800px
}

.head_flex {flex: 0.5;}
.head_flex a {margin: 0;}

.fullscreen_img {
    margin: 2% 0;
    
    
}

.fullscreen_img img {
    display: block;
    width: calc(100% - 6px);

    border-radius: 0px 50px;
    border: 3px solid #D1D2EB;
}

.fullscreen_content p {

}

/* Product Card Components */
.product_card {
    display: flex;
    flex-direction: column;

    flex: 0 0 32%;
    margin: 12px 0 0 0;
    padding: 0;

    height: auto;    
    min-width: 0px;

    background-color: aliceblue;
    
}

.product_card_img {
    height: 250px;
    margin: 4%;
    border: 1px solid #D1D2EB;
}

.product_card_body {margin: 4% 4% 0}
.product_card_desc {margin: 8px 0 12px}
.product_card_content {flex: 1;}
.product_card_content img {
    width: calc(95% - 4px);
    margin: 2.5% 2.5% 0;
}

.product_buttons {
    flex: initial;

    margin: 0 4% 4% 4%;
}

.product_button {
    display: inline-block;

    margin: 2% 0 0 0;
    padding: 10px 20px;
    
    font-size: 1.75rem;
    font-weight: 500;
    color: #F95D66;

    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid #F95D66;
    border-radius: 0px;

    transition: 0.3s ease-in-out;
}

a.product_button:hover, a.product_button:focus {
    background: #F95D66;
    color: white;
}

a.product_button i {margin-right: 3px;}

a.booklet {
    float: none ;
    
    color: #F95D66;
}

a.booklet:hover {
    text-decoration: underline;
}

/* RESPONSIVENESS */
@media screen and (max-width: 1800px) {
    /* Desktop breakpoint*/

}

@media screen and (max-width: 1200px) {
    /* Tablet (landscape) breakpoint */
    
}

@media screen and (min-width: 901px) {
    /* Tablet (portrait) breakpoint */
    .product_card:nth-child(3n-1) {
        /*Applies a margin to every third child*/
        margin-left: 2%;
        margin-right: 2%;
    }
}

@media screen and (max-width: 900px) and (min-width: 370px) {
    /* Tablet (portrait) breakpoint */
    .product_card {flex: 0 0 48%;}
    .product_card:nth-child(2n-1) {margin-right: 4%;}

}

@media screen and (max-width: 629px) {
    .product_card a {
        display: block;
    }
    .product_button {
        padding: 8px 16px;
        font-size: 1.65rem;
    }
    .product_card_img {height: 200px;}
}

@media screen and (max-width: 450px) {
    .fullscreen_img {min-width: 350px;}

}

@media screen and (max-width: 450px) {
    /* Phone breakpoint */
    
    .product_card_body p {      
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        
        overflow: hidden;
    }

    .show_more {display: block;}
    .fullscreen_inner {min-width: 350px;}

    
    .fullscreen_inner a i {
        font-size: 1rem;
    }
}

@media screen and (max-width: 370px) {
    /* Small phone breakpoint*/
    .product_card {
        margin-left: 0px;
        margin-right: 0px;

        /* Calc needs to include borders */
        width: 100%;
        flex: none;
        max-width: none;
        min-width: 20px;
    }

    .fullscreen_inner {min-width: 320px;}
    .fullscreen_header a {padding: 8px 16px;}
    .fullscreen_title {font-size: 1.5rem; line-height: 2.2rem}

    .fullscreen_img {width: 100%; min-width: 280px;}
}
