body {
    background: #f5f5f5;
}

.grid-controls .btn {
    border: none;
    color: #999;          /* grey */
    background: transparent;
    padding: 2px 6px;   /* 🔥 button size chhota */
    margin: 0;          /* extra gap remove */
}

.grid-controls .btn.active {
    color: #000;          /* active black */
}

.grid-controls .btn:hover {
    color: #333;
}

.grid-controls {
    gap: 0px; /* 🔥 space kam */
}

/* 5 COLUMN */
.col-lg-5col {
    width: 20%;
}

/* 6 COLUMN */
.col-lg-6col {
    width: 16.66%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .col-lg-5col,
    .col-lg-6col {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .col-lg-5col,
    .col-lg-6col {
        width: 50%;
    }
}
/* 5 column custom */
.col-lg-5col {
    width: 20%;
}

@media (max-width: 992px) {
    .col-lg-5col {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .col-lg-5col {
        width: 50%;
    }
}

/* MOBILE 3 GRID FORCE */
@media (max-width: 768px) {

    .product-col {
        width: 50% !important;
        padding: 8px;
    }
@media (min-width: 992px) {
    .col-lg-4 .product-img { height: 220px; }
    .col-lg-3 .product-img { height: 180px; }
    .col-lg-5col .product-img { height: 150px; }
}
}

/* ===== NEW PRODUCT CARD ===== */

.product-card-new {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 6px;
    border-radius: 10px;

    /* 🔥 BORDER */
    border: 1px solid #e5e7eb;

    /* 🔥 SHADOW (SOFT) */
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);

    transition: all 0.25s ease;
}

.product-card-new:hover {
 /* box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px); */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
 /* transform: none; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);*/
}

/* IMAGE */
.product-img-box {
    position: relative;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: 0.3s;
    padding:10px;
    border-radius: 10px;
}

.product-card-horizontal:hover img {
    transform: scale(1.05);
}

.product-card-new:hover img {
    transform: scale(1.05);
}
.product-subtitle {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discount-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;   /* 🔥 pill shape */
}

/* DISCOUNT */
.badge-discount {
    position: absolute;
    top: 5px;
    left: 8px;
    background: #ff3f6c;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
}

/* WISHLIST */
.wishlist-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: #fff;
    border-radius: 50%;
    border: none;
    padding: 5px;
    font-size: 14px;
    color: #999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s
}

.wishlist-btn.active {
    color: red;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

/* CONTENT */
.product-content {
    padding: 0px 5px 5px 5px;
    text-align: left;
}

/* TITLE */
.product-title {
    font-size: 13px;
    font-weight: 600;           /* 🔥 bold */
    text-decoration: none;
    color: #222;
    line-height: 1.3;
    height: auto;
    overflow: hidden;
    display: block;
    transition: 0.2s;
    padding:0px;
    text-align:left ;
    margin:0px;
}

.product-title:hover {
    color: #0d6efd;             /* 🔥 deep blue */
}

/* RATING */
.rating {
    font-size: 11px;
    color: #f5a623;
    margin: 2px 0;      /* 🔥 tight spacing */
}

/* PRICE */
.price-box {
    margin-top: 0px;
    line-height:1;
}

.price {
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 3px;
}

/* MOBILE */
@media (max-width: 768px) {
    .product-img-box img {
        height: 120px;
    }
     .price {
        font-size: 14px;        /* 🔥 slightly smaller */
        width: 100%;
        display: block;
        font-weight: 600;
    }

    .old-price {
        font-size: 14px;
        display: inline-block;
    }
    .product-title {
    font-size: 12px;
    }

    .price-box {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .discount-badge {
        display: inline-block;
        white-space: nowrap;
        font-size: 12px;
    }
}

.product-card-new form {
    display: inline;
}
/* HOVER DETAILS (GLOBAL) */
.hover-details {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

/* CARD HOVER */
.product-card-new:hover .hover-details {
    max-height: 120px;
    margin-top: 5px;
}

/* ===== STEP 1: CARD FIX (GRID STABLE) ===== */
.product-card-new {
    height: 100%;
    position: relative;
    overflow: hidden;   /* hover panel ke liye important */
    transition: 0.3s ease;
}

/* ===== STEP 2: HOVER PANEL (PRICE KE NICHE SLIDE) ===== */
.hover-details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 8px;
    border-top: 1px solid #eee;
    transform: translateY(100%);
    transition: 0.3s ease;
}

/* 🔥 ONLY HOVERED CARD */
.product-card-new:hover .hover-details {
    transform: translateY(0);
}

/* ===== STEP 3: IMAGE SHRINK ===== */
.product-card-new:hover .product-img-box img {
    transform: scale(0.9);
}

@media(max-width:768px){
    #sidebarContent{
        position:fixed;
        top:150px; /* 🔥 yahi change hai */
        left:-100%;
        width:260px;
        height:calc(100% - 110px); /* 🔥 full screen minus header */
        background:#fff;
        z-index:1050;
        transition:0.3s;
        overflow-y:auto;
        padding:10px;
    }

    #sidebarContent.active{
        left:0;
    }
}

