﻿/* ===============================
   WRAPPER
================================= */
.product-wrapper-grid.custom-style {
    margin-top: 10px;
}
    /* =================================
   PRODUCT GRID CARD STYLE
================================= */

    .product-wrapper-grid.custom-style:not(.list-view) .basic-product {
        background: #f3f3f3;
        border-radius: 12px;
        border: 1px solid #e6e6e6;
        overflow: visible;
        transition: all 0.25s ease;
        box-shadow: 0 3px 10px rgba(0,0,0,0.06);
        display: flex;
        flex-direction: column;
    }

        /* Hover Effect */

        .product-wrapper-grid.custom-style:not(.list-view) .basic-product:hover  {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }


    /* =================================
   IMAGE SECTION
================================= */

    .product-wrapper-grid.custom-style:not(.list-view) .img-wrapper {
        width: 100%;
        height: 180px;
        background: #ffffff;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .product-wrapper-grid.custom-style:not(.list-view) .img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


    /* =================================
   PRODUCT DETAIL SECTION
================================= */

    .product-wrapper-grid.custom-style:not(.list-view) .product-detail {
        padding: 12px 14px 6px 14px;
        display: flex;
        flex-direction: column;
    }

        /* Product Title */

        .product-wrapper-grid.custom-style:not(.list-view) .product-detail h6 {
            font-size: 14px;
            font-weight: 600;
            color: #222;
            line-height: 1.4;
            margin-bottom: 4px;
        }


        /* Description */

        .product-wrapper-grid.custom-style:not(.list-view) .product-detail p {
            font-size: 12px;
            color: #777;
            margin-bottom: 6px;
        }


        /* Price */

        .product-wrapper-grid.custom-style .product-detail h4,
        .product-wrapper-grid.custom-style .product-detail .price {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 10px;
        }


        /* =================================
   BUTTON
================================= */

    .product-wrapper-grid.custom-style:not(.list-view) .product-detail .btn {
        width: auto;
        border-radius: 6px;
        font-weight: 500;
        margin-top: 2px;
    }
    .product-wrapper-grid.custom-style:not(.list-view) .price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 6px;
    }
    .product-wrapper-grid.custom-style:not(.list-view) .cart-btn {
        text-align: right!important;
    }
    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row {
        display: flex;
        align-items: center;
        margin-top: 6px;
    }
        .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row h5 {
            margin: 0;
            text-align: left;
        }

        .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row .btn {
            margin-left: auto; /* pushes button to right */
        }
    /* ===============================
   GRID VIEW (UNCHANGED SAFE)
================================= */

    /*.product-wrapper-grid.custom-style .basic-product {
        background: #ffffff;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.25s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .product-wrapper-grid.custom-style .img-wrapper {
        width: 100%;
        aspect-ratio: 1 / 1;*/ /* makes square */
        /*overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }

        .product-wrapper-grid.custom-style .img-wrapper img {
            max-height: 180px;
            object-fit: contain;
        }

    .product-wrapper-grid.custom-style .product-detail {
        padding: 12px;
    }*/

    /* ===========================================
   PROFESSIONAL LIST VIEW
=========================================== */

    .product-wrapper-grid.custom-style.list-view .col-grid-box {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Remove card styling */
    .product-wrapper-grid.custom-style.list-view .basic-product {
        border: 1px solid #e6e6e6;
        border-radius: 6px;
        padding: 8px 15px;
        box-shadow: none;
    }

    /* MAIN ROW LAYOUT */
    .product-wrapper-grid.custom-style.list-view .overflow-hidden {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    /* LEFT IMAGE */
    .product-wrapper-grid.custom-style.list-view .img-wrapper {
        width: 70px;
        min-width: 70px;
        padding: 4px;
        background: transparent;
    }

        .product-wrapper-grid.custom-style.list-view .img-wrapper img {
            max-height: 55px;
        }

    /*changes for tabular view*/
    .product-wrapper-grid.custom-style.list-view .product-detail {
        flex: 1;
        padding: 0;
        display: grid;
        grid-template-columns: 220px 1fr 120px auto;
        align-items: center;
    }

   
    /*.product-wrapper-grid.custom-style.list-view .product-detail {
        flex: 1;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 25px;*/ /* spacing between details */
    /*}*/

    /* Make text inline clean */
    .product-wrapper-grid.custom-style.list-view .product-title {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
        overflow: visible;
    }
   

    .product-wrapper-grid.custom-style.list-view .product-detail h6 {
        font-size: 12px;
        margin: 0;
        color: #555;
        white-space: nowrap;
    }

    .product-wrapper-grid.custom-style.list-view .product-detail h5 {
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        white-space: nowrap;
    }

    /* REMOVE extra margin wrapper */
    .product-wrapper-grid.custom-style.list-view .text-center {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end !important;
        margin-left: auto !important; /* PUSH BUTTON TO RIGHT */
    }

    /* Button compact */
    .product-wrapper-grid.custom-style.list-view .btn.btn-solid {
        padding: 5px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Hover subtle */
    .product-wrapper-grid.custom-style.list-view .basic-product:hover {
        background: #ced4da;
    }
    /*changed here 13/03*/
    .product-wrapper-grid.custom-style.list-view .price-cart-row {
        display: contents;
    }

    /* ===============================
   LIST VIEW IMAGE HOVER POPUP
================================= */
    /* hide popup in GRID VIEW */

    .product-wrapper-grid.custom-style:not(.list-view) .list-view-popup {
        display: none !important;
    }

    /* popup only LIST VIEW */

    .product-wrapper-grid.custom-style.list-view .img-hover-box {
        position: relative;
    }

    .product-wrapper-grid.custom-style.list-view .img-popup {
        position: fixed;
        left: 350px;
        top: 150px;
        width: 260px;
        height: 260px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        display: none;
        padding: 10px;
        z-index: 9999;
    }

        .product-wrapper-grid.custom-style.list-view .img-popup img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

    .product-wrapper-grid.custom-style.list-view .img-hover-box:hover .img-popup {
        display: flex;
    }
    

    /*.product-wrapper-grid.custom-style.list-view .img-hover-box {
        position: relative;
    }*/

    /* small image */

    /*.product-wrapper-grid.custom-style.list-view .list-small-img {
        max-height: 55px;
        cursor: pointer;
    }*/

    /* popup container */

    /*.product-wrapper-grid.custom-style.list-view .img-popup {
        position: fixed;
        left: 350px;
        top: 150px;
        width: 260px;
        height: 260px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 10px;
        z-index: 9999;
    }*/

        /* popup image */

        /*.product-wrapper-grid.custom-style.list-view .img-popup img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }*/

    /* show popup */

    /*.product-wrapper-grid.custom-style.list-view .img-hover-box:hover .img-popup {
        display: flex;
    }*/

/* ===========================================
   MOBILE RESPONSIVE
=========================================== */

@media (max-width: 768px) {

    .product-wrapper-grid.custom-style.list-view .overflow-hidden {
        gap: 10px;
    }

    .product-wrapper-grid.custom-style.list-view .product-detail {
        gap: 12px;
        flex-wrap: wrap;
    }

    .product-wrapper-grid.custom-style.list-view .img-wrapper {
        width: 55px;
        min-width: 55px;
    }

        .product-wrapper-grid.custom-style.list-view .img-wrapper img {
            max-height: 45px;
        }
/*new changes for mobile responsive */
    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row h5 {
        font-size: 13px;
        padding-left: 0;
        flex-shrink: 0;
    }

    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row .btn {
        width: 100%;
        padding: 5px 12px;
        font-size: 12px;
    }
    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }

        .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row h5 {
            font-size: 13px;
            margin: 0;
            white-space: nowrap;
        }

        .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row .btn {
            padding: 4px 10px;
            font-size: 12px;
            
        }

}

@media (max-width: 360px) {

    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row h5 {
        font-size: 12px;
    }

    .product-wrapper-grid.custom-style:not(.list-view) .price-cart-row .btn {
        padding: 3px 8px;
        font-size: 11px;
    }
}


