/* Product Card Flat Design Override */

/* Remove ALL shadows and rounded corners from product cards */
.product-card-ultimate {
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card-ultimate:hover {
    box-shadow: none !important;
    transform: translateY(-5px) !important;
    border: none !important;
}

/* Remove rounded corners from all card elements */
.product-card-ultimate * {
    border-radius: 0 !important;
}

/* Image Container */
.card-image-container {
    border-radius: 0 !important;
    background: #ffffff;
    border: none !important;
}

/* Badges */
.card-badges {
    top: 10px;
    left: 10px;
}

.badge-sale,
.badge-new,
.badge-limited {
    border-radius: 0 !important;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-ultimate:hover .quick-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 5px;
}

.quick-action-btn:hover {
    background: #000 !important;
    color: white !important;
}

/* Card Content */
.card-content {
    padding: 20px;
    background: white;
}

/* Rating */
.card-rating {
    margin-bottom: 8px;
}

.stars i {
    color: #6c757d;
}

/* Product card rating stars - Consistent Size */
.product-card .rating {
    color: #6c757d !important;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.product-card .rating span,
.product-card .rating i {
    color: #6c757d !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
}

/* Filled stars */
.product-card .rating .star-filled,
.product-card .rating .fas.fa-star {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Empty stars - using opacity instead of stroke */
.product-card .rating .star-empty,
.product-card .rating .far.fa-star {
    color: #6c757d !important;
    opacity: 0.3 !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* Title */
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    min-height: 48px;
}

/* Price */
.card-price {
    margin-bottom: 15px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Add to Cart Button - BLACK */
.btn-add-to-cart,
.product-btn {
    background: #000000 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-to-cart:hover,
.product-btn:hover {
    background: #333333 !important;
}

.btn-add-to-cart:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
}

/* Loading state */
.btn-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Wishlist button in card */
.product-card-ultimate .btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.product-card-ultimate .btn-wishlist:hover {
    background: #000 !important;
    color: white !important;
}

.product-card-ultimate .btn-wishlist.active {
    background: #000 !important;
    color: white !important;
}

.product-card-ultimate .btn-wishlist i {
    font-size: 18px;
}

/* Remove any remaining shadows */
.product-card-ultimate,
.product-card-ultimate * {
    box-shadow: none !important;
}

/* Ensure white background throughout */
.product-card-ultimate,
.card-content,
.card-actions {
    background-color: #ffffff !important;
}

/* Grid adjustments for wider cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}