/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra Child Theme
Version: 1.0.0
Text Domain: astra-child
Template: astra
*/

/**
 * MST Product Extra Info
 */

/* Wrapper */
.mst-product-extra{
    margin:70px 0;
}

/* Grid */
.mst-two-column{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
    margin-bottom:45px;
}

@media (max-width:768px){
    .mst-two-column{
        grid-template-columns:1fr;
    }
}

/* Cards */
.mst-card{
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:16px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s ease;
    height:100%;
}

.mst-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.14);
}

.mst-card-title{
    margin:0 0 25px;
    text-align:center;
    font-size:28px;
    font-weight:700;
    color:#222;
    position:relative;
}

.mst-card-title:after{
    content:"";
    width:70px;
    height:4px;
    background:#e30613;
    display:block;
    margin:15px auto 0;
    border-radius:50px;
}

/*==================================================
Features
==================================================*/

.mst-features{
    list-style:none;
    margin:0;
    padding:0;
    border:1px solid #ececec;
    border-radius:10px;
    overflow:hidden;
}

.mst-features li{
    position:relative;
    padding:16px 20px 16px 50px;
    margin:0;
    line-height:1.8;
    border-bottom:1px solid #ececec;
}

.mst-features li:last-child{
    border-bottom:none;
}

.mst-features li:nth-child(odd){
    background:#ffffff;
}

.mst-features li:nth-child(even){
    background:#f5f5f5;
}

.mst-features li:before{
    content:"✓";
    position:absolute;
    left:18px;
    top:18px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#16a34a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
}

/*==================================================
Specification Table
==================================================*/

.mst-spec-table{
    width:100%;
    border-collapse:collapse;
}

.mst-spec-table tr:nth-child(even){
    background:#fafafa;
}

.mst-spec-table th,
.mst-spec-table td{
    border:1px solid #ececec;
    padding:14px;
    text-align:left;
}

.mst-spec-table th{
    width:40%;
    background:#f5f5f5;
    font-weight:700;
}

/*==================================================
FAQ
==================================================*/

.mst-section-title{
    text-align:center;
    font-size:34px;
    font-weight:700;
    margin:60px 0 35px;
    position:relative;
}

.mst-section-title:after{
    content:"";
    width:80px;
    height:4px;
    background:#e30613;
    display:block;
    margin:15px auto 0;
    border-radius:50px;
}

.mst-faq-column{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.mst-accordion{
    border:1px solid #e6e6e6;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 6px 20px rgba(0,0,0,.06);
}

.mst-accordion summary{
    list-style:none;
    cursor:pointer;
    padding:18px 68px 18px 20px;
    position:relative;
    font-weight:600;
    background:#f5f5f5;
    transition:.3s;
}

.mst-accordion summary::-webkit-details-marker{
    display:none;
}

.mst-accordion summary:hover{
    background:#ececec;
}

.mst-accordion summary::after{
    content:"+";
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border-radius:50%;
    background:#e30613;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:400;
}

.mst-accordion[open] summary::after{
    content:"−";
}

.mst-answer{
    border-top:1px solid #e5e5e5;
    padding:20px;
    line-height:1.8;
    background:#ffffff;
}

/*==================================================
 Product Hover Image
==================================================*/

.woocommerce ul.products li.product .woocommerce-LoopProduct-link{

    position:relative;

    display:block;

    overflow:hidden;

}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link img{

    transition:
        opacity .45s ease,
        transform .45s ease;

}

/* Second Image */

.mst-secondary-image{

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    transform:scale(1.05);

    pointer-events:none;

}

/* Hover */

.woocommerce ul.products li.product:hover .mst-secondary-image{

    opacity:1;

    transform:scale(1);

}

/* Hide Featured Image */

.woocommerce ul.products li.product:hover img:first-child{

    opacity:0;

    transform:scale(1.05);

}

/* Image Container */

.woocommerce ul.products li.product .woocommerce-loop-product__link{

    overflow:hidden;

}

/* Keep Images Same Height */

.woocommerce ul.products li.product img{

    display:block;

    width:100%;

    height:auto;

}