/* Modern Product Cards */
.product-card {
    position: relative;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Card Image Container */
.product-card .card-img-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f8f8f8;
}

.product-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 20px;
}

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

/* Product Tag */
.product-tag {
    position: absolute;
    top: 15px;
    left: 0;
    background: #FFD166;
    color: #333;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Product Colors */
.product-colors {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.color-option {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.2);
}

/* Card Body */
.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.product-card .card-category {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

/* Price and Button Row */
.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.product-card .btn-add-cart {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.product-card .btn-add-cart:hover {
    background-color: #FFD166;
    color: #333;
    border-color: #FFD166;
    transform: scale(1.05);
}

/* Rating Stars */
.product-rating {
    margin-bottom: 15px;
}

.stars {
    color: #FFD166;
    font-size: 0.9rem;
}

.reviews-count {
    font-size: 0.8rem;
    color: #999;
    margin-left: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .card-price {
        font-size: 1.2rem;
    }
    
    .product-card .btn-add-cart {
        width: 35px;
        height: 35px;
    }
}

/* Product Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
