body {
    background: #f3f3f3;
}
.product_tilte{
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: .2cm;
    padding-top: 15px;
    padding-bottom: 10px;
}
.product_text{
    padding-right: 20px;
}

.product_description{
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .2cm;
}

.errorlist li {
    color: red;
    font-weight: bold;
}

.custom_div {
    margin-bottom: 20px !important;
}


/* ========================================
   PRODUCT GRID - EQUAL HEIGHT CARDS
   ======================================== */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.product-grid > [class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
    display: flex;
}

/* ✅ Product Card - Equal Height */
.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ✅ Image Wrapper - Fixed Height */
.product-image-wrapper {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    padding: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* ✅ Product Info - Flex to Fill Space */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 15px 15px;
    background: #fff;
}

/* ✅ Product Name - Fixed Height (2 lines) */
.product-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    min-height: 42px;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✅ SKU */
.product-sku {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 6px;
}

/* ✅ Price - Auto Margin Pushes to Bottom */
.product-price {
    margin-top: auto;
    font-size: 1.05rem;
    font-weight: 700;
    color: #17a2b8;
}

/* ========================================
   ✅ RESPONSIVE GRID
   ======================================== */

/* ✅ Mobile (phones) - 1 product per row */
@media (max-width: 575px) {
    .product-grid .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-image-wrapper {
        height: 280px; /* Larger image on mobile */
    }
    .product-name {
        font-size: 0.95rem;
        min-height: 44px;
    }
    .product-price {
        font-size: 1.1rem;
    }
}

/* ✅ Tablet - 2 products per row */
@media (min-width: 576px) and (max-width: 767px) {
    .product-grid .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .product-image-wrapper {
        height: 220px;
    }
}

/* ✅ Small Desktop/Tablet - 3 products per row */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    .product-image-wrapper {
        height: 220px;
    }
}

/* ✅ Desktop - 4 products per row */
@media (min-width: 992px) {
    .product-grid .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .product-image-wrapper {
        height: 250px;
    }
}

/* ✅ Large Desktop - 4 products per row */
@media (min-width: 1200px) {
    .product-image-wrapper {
        height: 280px;
    }
}



/* ========================================
   FLASH SALE BADGE
   ======================================== */

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.flash-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #dc3545;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: pulse 1.5s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Product price with flash sale */
.product-price .text-danger {
    font-weight: 700;
    font-size: 1.1rem;
}

.product-price .text-muted {
    font-size: 0.8rem;
    margin-left: 6px;
}

/* Responsive */
@media (max-width: 576px) {
    .flash-sale-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: 6px;
        right: 6px;
    }
}