
.product-card {
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-radius: 14px;
    border: 3px solid rgb(250, 81, 58);

    /* Soft radial gradient like Uiverse */
    /*background:*/
    /*    radial-gradient(*/
    /*        160% 110% at 20% 110%,*/
    /*        rgba(255, 247, 177, 0.55) 0%,*/
    /*        rgba(255, 255, 255, 0) 65%*/
    /*    ),*/
    /*    #ffffff;*/

    /*box-shadow:*/
    /*    0px 20px 25px rgba(0, 0, 0, 0.08),*/
    /*    0px 8px 15px rgba(0, 0, 0, 0.12);*/

    background: radial-gradient(160% 110% at 20% 110%, rgb(247 234 122) 0%, rgba(255, 255, 255, 0) 65%), #ffffff;
    box-shadow: 0px 5px 5px rgb(208 171 28 / 68%), 0px 8px 15px rgb(239 0 0 / 0%);
    transition: all 0.35s cubic-bezier(0.15, 0.83, 0.66, 1);
}

/* Hover effect */
.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0px 30px 40px rgba(0, 0, 0, 0.15),
        0px 15px 25px rgba(250, 81, 58, 0.35);
}

/* Keep content above glow */
.product-card > * {
    position: relative;
    z-index: 2;
}


    .product-card:hover {
        transform: translateY(-5px);
    }

    .product-img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        background: #fff;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .btn-cart {
        background-color: #28a745;
        color: #fff;
        border: none;
        width: 48%;
    }

    .btn-cart:hover {
        background-color: #218838;
    }

    .btn-buy-now {
        background-color: #c10000;
        color: #fff;
        border: none;
        font-weight: 600;
        padding: 10px 0;
    }

    .btn-buy-now:hover {
        background-color: #a00000;
    }

    .badge {
        font-size: 0.8rem;
    }

    .text-decoration-line-through {
        text-decoration: line-through;
    }

    /* Default 3D card look */
    .category-card {
    border: 3px solid rgb(250 81 58);
    background: rgb(18 32 86);
    border-radius: 0px 25px 0px 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    transform: translateZ(0);
    box-shadow: 5px 15px 25px rgba(0, 0, 0, 0.1);
    }


    /* Hover 3D effect with enhanced shadow, bg, and text color */
    /* Container hover effect (like Uiverse) */
    .row:hover .category-card {
        filter: blur(3px);
        transform: scale(0.95);
        opacity: 0.7;
    }
    
    /* Hovered card stays sharp & focused */
    .row .category-card:hover {
        filter: blur(0);
        transform: translateY(-10px) scale(1.08) rotateX(5deg);
        opacity: 1;
        z-index: 2;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    }

    .row .col-6:nth-child(1) {
        animation-delay: 0s;
    }

    .row .col-6:nth-child(2) {
        animation-delay: 0.1s;
    }

    .row .col-6:nth-child(3) {
        animation-delay: 0.2s;
    }

    .row .col-6:nth-child(4) {
        animation-delay: 0.3s;
    }

    /* Add more nth-child delays if you have more cards */

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Optional: Smooth image scaling inside card on hover */
    .category-card img {
        transition: transform 0.4s ease;
    }

    .category-card:hover img {
        transform: scale(1.1);
    }
    
    
    /* Related product card */
    .releted-product-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        border: 2px solid rgb(250, 81, 58);
        box-shadow: 6px 6px 10px rgba(250, 81, 58, 0.25);
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Image height reduced */
    .releted-product-img {
        width: 100%;
        height: 160px;            /* ⬅ reduced from 220 */
        object-fit: contain;
        background: #fff;
        padding: 8px;
    }
    
    /* Card body compact */
    .releted-product-card .card-body {
        padding: 12px;
    }
    
    /* Title limit to 2 lines */
    .releted-product-card .card-title {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 6px;
    
        display: -webkit-box;
        -webkit-line-clamp: 2;    /* ⬅ max 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Price section tighter */
    .releted-product-card del {
        font-size: 13px;
    }
    
    .releted-product-card h5 {
        font-size: 15px;
    }
    
    /* Button smaller */
    .releted-product-card .btn-buy-now {
        padding: 7px 0;
        font-size: 14px;
    }
    
    /* Hover effect */
    .releted-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(250, 81, 58, 0.35);
    }
    
    
        .btn-cart {
            background: #28a745;
            color: #fff;
            font-weight: 600
        }
    
        .btn-buy-now {
        background: #c10000;
        color: #fff;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    /* Hover effect */
    .btn-buy-now:hover {
        background: #9b0000;          /* slightly darker */
        color: #fff;
        box-shadow: 0 6px 15px rgba(193, 0, 0, 0.4);
        transform: translateY(-2px);
    }

    .product-image-box {
        border: 1px solid #eee;
        padding: 10px;
        background: #fff;
        text-align: center;
    }

    .product-title {
        font-size: 26px;
        font-weight: 600;
    }

    .product-category {
        color: #666;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 20px;
    }

    .original-price {
        text-decoration: line-through;
        color: #999;
        margin-right: 10px;
    }

    .discount-price {
    color: #f44336 !important;
    font-weight: 600;
}

   

    .product-description p {
        font-size: 15px;
        line-height: 1.7;
        color: #444;
    }

    .product-description h2,
    .product-description h3 {
        margin-top: 20px;
        font-weight: 600;
    }

    .product-keypoints ul {
        padding-left: 18px;
    }

    .product-keypoints li {
        margin-bottom: 8px;
        font-size: 12px;
    }
    .sub-section-heading {
        font-size: 20px;
        border-bottom: 2px solid #28a745;
        display: inline-block;
        padding-bottom: 4px;
        margin-bottom: 15px;
    }
    
    /* Cart Header */
.cart-header {
    display:flex;
    background:#f8f9fa;
    padding:10px;
    font-weight:100;
    border-radius:6px;
}
.cart-header div {
    flex:1; 
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    
}

/* Cart Row */
.cart-row {
    display:flex;
    align-items:center;
    border:2px solid #f44336;
    border-radius:10px;
    padding:12px;
    margin-bottom:12px;
    background:#fff;
}
.cart-row > div { 
    flex:1;    
    font-size: 17px;
    font-weight: bold; 
    text-align:center; 
    
}
.top-header-cart-heading{
        margin-top: 6.75rem !important;

}
/* Product Name */
.cr-name p {
    font-size:14px;
    font-weight:bold;
    color:#000;
}
.cr-name a { text-decoration:none; }

/* Quantity */
.cr-qty button {
    background:#f44336;
    color:#fff;
    border:none;
    padding:5px 10px;
    border-radius:6px;
    font-size:18px;
}
.cr-qty span {
    margin:0 10px;
    font-size:18px;
}

/* Action */
.cr-action button {
    background:red;
    color:#fff;
    border:none;
    padding:6px 10px;
    border-radius:6px;
}

/* Mobile View */
@media(max-width:768px){
    .cart-header{display:none;}
    .cart-row{
        flex-direction:column;
        text-align:left;
        gap:10px;
    }
    .cart-row div{text-align:left;}
}

    /* Image column */
.cr-img img{
    width:100px;
    height:100px;
    object-fit:contain;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

/* Header image */
.ch-img{ flex:0.6; }

/* Adjust row */
.cr-img{ flex:0.6; text-align:center; }
