/* Premium Product Cards - DARK LUXURY THEME */

/* Product Card Container */
.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    /* Gold border on hover */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Quick Actions Floating */
.product-quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Specific button states */
.wishlist-btn.active,
.compare-btn.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* Image Section */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    /* Centering fix */
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 90%;
    /* Slight padding inside */
    height: 90%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    /* Shadow for transparent pngs */
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 24px 16px 16px;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.product-card:hover .image-overlay {
    transform: translateY(0);
}

.btn-view-details {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Product Info Section */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    /* Gold Brand */
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.rating-value {
    font-weight: 700;
    color: #ffd700;
}

.rating-count {
    color: rgba(255, 255, 255, 0.4);
}

.stars {
    color: #ffd700;
    letter-spacing: 2px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.product-old-price {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Product Actions */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 12px;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #000;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    background: #fff;
}

/* Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #ffd700;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-discount {
    background: #ef4444;
    /* Keep discount red for urgency */
    color: white;
    left: auto;
    right: 12px;
    top: auto;
    bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .quick-action-btn {
        background: rgba(20, 20, 30, 0.8);
    }

    .product-card:hover {
        transform: none;
    }
}