/* MINIATURE */

.nav-pills .nav-item a{
    border: 1px solid var(--primary-color);
    color: var(--primary-text-color-inverse);
    padding-bottom: .5rem;
    padding-top: .5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.nav-pills .nav-item a.active{
    color: var(--primary-text-color);
    text-decoration: none;
    font-weight: 600;
}

.product-mini-title{
    color: var(--primary-color);
}

/* MINIATURE */

/* INDEX */

:root{
    --dark-color: #161616;
}

/*Tipografia responsive*/
:root{
    --h1-font-size: 1.5rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.75rem;
}
@media screen and (min-width: 768px){
    :root{
        --h1-font-size: 2rem;
        --normal-font-size: 1rem;
        --smaller-font-size: 0.813rem;
    }
}

h1{
    font-size: var(--h1-font-size);
}
.card__img img{
    width: 150px;
    height: 150px;
    object-fit: cover;
}
a{
    text-decoration: none;
}

/*-- LAYAOUT --*/
.main {
    padding: 2rem 0;
}

/*-- PAGES --*/
.title-shop{
    position: relative;
    margin: 0 2.5rem;
}
.title-shop::after{
    content: '';
    position: absolute;
    top: 50%;
    width: 72px;
    height: 2px;
    background-color: var(--dark-color);
    margin-left: .25rem;
}

/*-- COMPONENT --*/
.card{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.card.article{
    margin-bottom: 2rem;
}
.item-product:nth-child(3n+1) .card.article{
    background-color: var(--primary-color-opacity-60);
}

.item-product:nth-child(3n+2) .card.article{
    background-color: var(--secondary-color-opacity-60);
}

.item-product:nth-child(3n+3) .card.article{
    background-color: var(--tertiary-color-opacity-60);
}

.card__img{
    width: 180px;
    height: auto;
    padding: 3rem 0;
    transition: .5s;
}
.card__name{
    position: absolute;
    left: -25%;
    top: 0;
    width: 3.5rem;
    height: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    background-color: var(--dark-color);
    color: #fff;
    font-weight: bold;
    transition: .5s;
}

.card__name p{
    margin: 5px;
}
.card__icon{
    font-size: 1.5rem;
    color: var(--dark-color);
}
.card__icon:hover{
    color: var(--accent-color);
}
.card__precis{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transition: .5s;
}
.card__preci{
    display: block;
    text-align: center;
}
.card__preci--before{
    font-size: var(--smaller-font-size);
    margin-bottom: .25rem;
    text-decoration: line-through;
}
.card__preci--now{
    font-size: var(--h3-font-size);
    font-weight: bold;
}
/*Move left*/
.card:hover{
    box-shadow: 0 .5rem 1rem #D1D9E6;
}
.card:hover .card__name{
    left: 0;
}
.card:hover .card__img{
    transform: rotate(30deg);
    margin-left: 3.5rem;
}
.card:hover .card__precis{
    margin-left: 3.5rem;
    padding: 0 1.5rem;
}

/*-- MEDIA QUERIES --*/
@media screen and (min-width: 1200px){

    .title-shop{
        margin: 0 5rem;
    }
}

/* INDEX */

/* MINIATURE */

#modal-page, #modal-page .modal-content{
    background-color: transparent;
    border: none;
}
#modal-page  .modal-header, #modal-page  .modal-footer{
    display: none;
}
.product-price{
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
}
.product-price h2{
    font-weight: 800 !important;
    color: forestgreen;
}
.product-detail .subtext{
    font-size: 0.9rem;
    opacity: 0.8;
}
.product-detail .stock{
    padding: 0.3rem;
    font-size: 0.9rem;
}
.product-detail .stock .available{
    color: forestgreen;
}
.product-detail .stock .unavailable{
    color: red;
}

.gallery-product-image .owl-stage .owl-item .item img,
#modal-page-content #productos .left .item img  {
    height: 350px !important;
    border-radius: 5px;
}

.gallery-thums-image .owl-stage-outer, .gallery-thums-image .owl-nav{
    display: none;
}

/* MINIATURE */

/* SHOW */

.product-content{
    padding: 2rem 1rem;
}
.product-title{
    font-size: 3rem;
    text-transform: capitalize;
    font-weight: 700;
    position: relative;
    color: #12263a;
    margin: 1rem 0;
}
.product-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 80px;
    background: #12263a;
}
.product-link{
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    background: #256eff;
    color: #fff;
    padding: 0 0.3rem;
    transition: all 0.5s ease;
}
.product-link:hover{
    opacity: 0.9;
}

.product-price{
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 700;
}
.product-price span{
    font-weight: 400;
}
.last-price span{
    color: #f64749;
    text-decoration: line-through;
}
.new-price span{
    color: #256eff;
}
.product-detail h2{
    text-transform: capitalize;
    color: #12263a;
    padding-bottom: 0.6rem;
}
.product-detail p{
    font-size: 0.9rem;
    padding: 0.3rem;
    opacity: 0.8;
}
.product-detail ul{
    margin: 1rem 0;
    font-size: 0.9rem;
}
.product-detail ul li{
    margin: 0;
    list-style: none;
    background: url(https://fadzrinmadu.github.io/hosted-assets/product-detail-page-design-with-image-slider-html-css-and-javascript/checked.png) left center no-repeat;
    background-size: 18px;
    padding-left: 1.7rem;
    margin: 0.4rem 0;
    font-weight: 600;
    opacity: 0.9;
}
.product-detail ul li span{
    font-weight: 400;
}
.purchase-info{
    margin: 1.5rem 0;
}

.purchase-info .btn{
    border: 1.5px solid #ddd;
    border-radius: 25px;
    text-align: center;
    padding: 0.45rem 0.8rem;
    outline: 0;
    margin-right: 0.2rem;
    margin-bottom: 1rem;
}
.purchase-info input{
    width: 50px;
}
.purchase-info .btn{
    cursor: pointer;
    color: #fff;
}
.purchase-info .btn:first-of-type{
    background: #256eff;
}
.purchase-info .btn:last-of-type{
    background: #f64749;
}
.purchase-info .btn:hover{
    opacity: 0.9;
}

.owl-item{
    width: 800px;
}

@media screen and (min-width: 992px){
    .show.card{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 1.5rem;
    }
    .card-wrapper{
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-content{
        padding-top: 0;
    }
}

/* SHOW */
