/* ==========================================
   LUXURY HOME DECOR PRODUCT PAGE
========================================== */

body.single-product{
    background:#f8f5f0;
}

/* ==========================================
   ASTRA FULL WIDTH
========================================== */

.single-product .site-content .ast-container,
.single-product .ast-container{
    max-width:1800px !important;
    width:100% !important;
    padding-left:30px !important;
    padding-right:30px !important;
}

.single-product .site-main{
    padding-top:20px;
}

/* ==========================================
   MAIN LAYOUT
========================================== */

.custom-product-layout{
    display:grid;
    grid-template-columns:minmax(0,58%) minmax(350px,42%);
    gap:35px;
    max-width:1800px;
    margin:20px auto 60px;
    align-items:start;
}

/* ==========================================
   GALLERY
========================================== */

.custom-gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.main-image{
    grid-column:span 2;
}

.main-image,
.gallery-image{
    background:#fff;
    border:1px solid #800020;
    overflow:hidden;
    transition:.3s ease;
}

.main-image:hover,
.gallery-image:hover{
    border-color:#800020;
}

.main-image img{
    width:100%;
    height:700px;
    object-fit:contain;
    display:block;
    background:#fff;
}

.gallery-image img{
    width:100%;
    height:350px;
    object-fit:contain;
    display:block;
    background:#fff;
}

.custom-gallery img{
    transition:.4s ease;
}

.custom-gallery img:hover{
    transform:scale(1.02);
}

/* ==========================================
   SIDEBAR
========================================== */

.custom-sidebar{
    position:sticky;
    top:30px;
}

.custom-title{
    font-size:42px;
    line-height:1.15;
    font-weight:600;
    color:#800020;
    margin-bottom:20px;
    letter-spacing:-0.5px;
}

/* ==========================================
   WHATSAPP BUTTON
========================================== */

.whatsapp-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:58px;
    background:#1e1e1e;
    color:#fff !important;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    letter-spacing:.5px;
    margin-bottom:20px;
    transition:.3s;
}

.whatsapp-btn:hover{
    background:#b08d57;
    color:#fff !important;
}

/* ==========================================
   BOXES
========================================== */

.description-box,
.contact-box,
.reviews-box{
    background:#fff;
    border:1px solid #800020;
    padding:30px;
    margin-bottom:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.04);
}

.description-box p,
.contact-box p,
.reviews-box p{
    color:#5a5a5a;
    line-height:1.9;
    font-size:15px;
}

.description-box h2,
.description-box h3,
.description-box h4{
    margin-top:25px;
    margin-bottom:15px;
    color:#1e1e1e;
}

.description-box ul{
    padding-left:20px;
}

.description-box li{
    margin-bottom:8px;
}

/* ==========================================
   CONTACT BOX
========================================== */

.contact-box{
    background:#f4eee6;
}

.contact-box h3{
    font-size:26px;
    color:#1e1e1e;
    margin-bottom:15px;
}

.contact-box a{
    color:#1e1e1e;
    text-decoration:none;
    font-weight:600;
}

/* ==========================================
   REVIEWS
========================================== */

.reviews-box input,
.reviews-box textarea{
    width:100%;
    border:1px solid #800020;
    padding:12px;
    background:#fff;
}

.reviews-box button{
    background:#1e1e1e;
    color:#fff;
    border:none;
    padding:12px 25px;
}

.reviews-box button:hover{
    background:#b08d57;
}

/* ==========================================
   RELATED PRODUCTS
========================================== */

.related-section{
    max-width:1800px;
    margin:60px auto;
}

.related.products > h2{
    text-align:center;
    font-size:40px;
    color:#1e1e1e;
    margin-bottom:50px;
}

.related.products > h2:after{
    content:"";
    width:80px;
    height:2px;
    background:#b08d57;
    display:block;
    margin:15px auto 0;
}

.related ul.products{
    display:grid !important;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.related ul.products li.product{
    background:#fff;
    border:1px solid #800020;
    padding:15px;
    transition:.3s;
}

.related ul.products li.product:hover{
    border-color:#800020;
    transform:translateY(-3px);
}

.related ul.products img{
    width:100%;
    height:260px;
    object-fit:contain;
}

.related .woocommerce-loop-product__title{
    font-size:15px;
    line-height:1.5;
    color:#1e1e1e;
}

.related .price,
.related .button{
    display:none !important;
}

/* ==========================================
   REMOVE DEFAULT WOOCOMMERCE
========================================== */

.single-product .price,
.single-product form.cart,
.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product .sku_wrapper,
.single-product .posted_in,
.single-product .tagged_as,
.single-product .woocommerce-product-rating{
    display:none !important;
}

/* ==========================================
   REMOVE RADIUS
========================================== */

.main-image,
.gallery-image,
.description-box,
.contact-box,
.reviews-box,
.whatsapp-btn,
.related ul.products li.product{
    border-radius:0 !important;
}

/* ==========================================
   TABLET
========================================== */

@media(max-width:1024px){

    .custom-product-layout{
        grid-template-columns:1fr;
    }

    .custom-sidebar{
        position:relative;
        top:auto;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){

    .single-product .ast-container{
        padding-left:15px !important;
        padding-right:15px !important;
    }

    .custom-product-layout{
        display:flex;
        flex-direction:column;
        gap:20px;
        margin-bottom:30px;
    }

    .custom-gallery{
        display:flex;
        overflow-x:auto;
        gap:10px;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
    }

    .custom-gallery::-webkit-scrollbar{
        display:none;
    }

    .main-image,
    .gallery-image{
        min-width:100%;
        width:100%;
        flex-shrink:0;
        scroll-snap-align:start;
    }

    .main-image img,
    .gallery-image img{
        height:350px;
    }

    .custom-title{
        font-size:28px;
        line-height:1.3;
    }

    .whatsapp-btn{
        height:52px;
        font-size:15px;
    }

    .description-box,
    .contact-box,
    .reviews-box{
        padding:20px;
    }

    .related ul.products{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .related ul.products img{
        height:160px;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:480px){

    .custom-title{
        font-size:24px;
    }

    .main-image img,
    .gallery-image img{
        height:280px;
    }

    .description-box,
    .contact-box,
    .reviews-box{
        padding:15px;
    }

    .related ul.products img{
        height:140px;
    }

}
/* ==========================================
RELATED PRODUCT CARD FIX
========================================== */

.related ul.products li.product{
    display:flex !important;
    flex-direction:column;
    height:100%;
}

.related ul.products li.product .woocommerce-loop-product__title{
    min-height:70px;
    margin:15px 0;
}

/* Buttons Wrapper */

.button-wrapper{
    display:flex;
    gap:10px;
    margin-top:auto;
}

.view-product-btn,
.wa-btn{
    flex:1;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:.3s;
}

/* View Product */

.view-product-btn{
    background:#1e1e1e;
    color:#fff;
}

.view-product-btn:hover{
    background:#b08d57;
    color:#fff;
}

/* WhatsApp */

.wa-btn{
    background:#25D366;
    color:#fff;
}

.wa-btn:hover{
    background:#1ebc5b;
    color:#fff;
}

/* ==========================================
PREMIUM CARD HOVER
========================================== */

.related ul.products li.product{
    overflow:hidden;
}

.related ul.products img{
    transition:.4s ease;
}

.related ul.products li.product:hover img{
    transform:scale(1.03);
}
/* ==========================================
RELATED PRODUCTS SECTION
========================================== */

.related-section{
    max-width:1800px;
    margin:60px auto;
}

.related.products > h2{
    text-align:center;
    font-size:40px;
    color:#1e1e1e;
    margin-bottom:40px;
}

.related.products > h2:after{
    content:"";
    width:80px;
    height:2px;
    background:#b08d57;
    display:block;
    margin:15px auto 0;
}

/* ==========================================
DESKTOP GRID
========================================== */

.related ul.products{
    display:grid !important;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.related ul.products li.product{
    display:flex !important;
    flex-direction:column;
    border:1px solid #800020;
    background:#fff;
    padding:15px;
    transition:.3s ease;
}

.related ul.products li.product:hover{
    border-color:#800020;
    transform:translateY(-3px);
}

.related ul.products img{
    width:100%;
    height:260px;
    object-fit:contain;
    transition:.3s ease;
}

.related ul.products li.product:hover img{
    transform:scale(1.03);
}

.related .woocommerce-loop-product__title{
    font-size:16px;
    line-height:1.5;
    text-align:center;
    color:#1e1e1e;
    margin:15px 0 20px;
    min-height:70px;
}

.related .price,
.related .button{
    display:none !important;
}

/* ==========================================
BUTTONS
========================================== */

.button-wrapper{
    display:flex;
    gap:10px;
    margin-top:auto;
}

.view-product-btn,
.wa-btn{
    flex:1;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:.3s;
}

.view-product-btn{
    background:#111;
    color:#fff !important;
}

.view-product-btn:hover{
    background:#b08d57;
}

.wa-btn{
    background:#25D366;
    color:#fff !important;
}

.wa-btn:hover{
    background:#1ebc5b;
}

/* ==========================================
TABLET
========================================== */

@media(max-width:1024px){

    .related ul.products{
        grid-template-columns:repeat(3,1fr);
    }

}

/* ==========================================
MOBILE RELATED PRODUCTS SLIDER
========================================== */

@media(max-width:768px){

    .related.products > h2{
        font-size:28px;
        margin-bottom:25px;
    }

    .related ul.products{
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto;
        overflow-y:hidden;
        gap:15px;
        padding-bottom:15px;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
    }

    .related ul.products li.product{
        width:280px;
        min-width:280px;
        flex-shrink:0;
        scroll-snap-align:start;
    }

    .related ul.products img{
        height:200px;
    }

    /* Scrollbar */

    .related ul.products::-webkit-scrollbar{
        height:6px;
    }

    .related ul.products::-webkit-scrollbar-track{
        background:#e5dbce;
    }

    .related ul.products::-webkit-scrollbar-thumb{
        background:#b08d57;
    }

    .related ul.products::-webkit-scrollbar-thumb:hover{
        background:#8d6c3f;
    }
}

/* ==========================================
SMALL MOBILE
========================================== */

@media(max-width:480px){

    .related ul.products li.product{
        width:240px;
        min-width:240px;
    }

    .related ul.products img{
        height:170px;
    }

    .view-product-btn,
    .wa-btn{
        height:42px;
        font-size:14px;
    }
}



