/* ========== COMMON UNIFORM PRODUCT CARD STYLES ========== */

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1320px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Common Card Container */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

/* Wishlist Icon Button */
.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #ef4444;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-card .wishlist-btn:hover {
    transform: scale(1.15);
    background: #ffffff;
}

/* Image Wrapper with fixed height & flex centering */
.product-card .image-slider,
.product-card .card-img-wrapper {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
}

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

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

/* Product Info */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card h3,
.product-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
}

.product-card p.price,
.product-card .card-text p,
.product-card p {
    font-size: 16px;
    font-weight: 700;
    color: #d97706;
    margin: 4px 0 10px 0;
}

.product-card .text-muted,
.product-card p.text-muted {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b !important;
    font-style: italic;
}

/* Buttons */
.product-card .btn,
.product-card .btn-primary {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.25s ease;
    margin-top: auto;
}

.product-card .btn:hover,
.product-card .btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        height: 350px;
        padding: 12px;
    }
    
    .product-card .image-slider,
    .product-card .card-img-wrapper {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card h3 {
        font-size: 13.5px;
    }
}
