/* Product Overlay Buttons - Common Styles */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-overlay-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay-actions {
    opacity: 1;
    transform: translateY(0);
}

.overlay-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: var(--theme-text-primary, #333);
    text-decoration: none;
}

.overlay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: var(--theme-primary, #007bff);
}

.view-btn {
    background: white;
}

.cart-btn {
    background: var(--theme-primary, #007bff);
    color: white;
}

.cart-btn:hover {
    color: white;
    background: var(--theme-primary-dark, #0056b3);
}

/* Ensure product cards work with overlay */
.product-card {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 40px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    max-width: 275px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--theme-primary, #007bff);
}

.product-card .card-img-top {
    height: 250px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
    background: #fff;
}

.product-card:hover .card-img-top {
    transform: scale(1.02);
}

/* Product card content styling */
.product-title-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.product-title-link:hover {
    color: var(--theme-primary, #007bff);
    text-decoration: none;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-price {
    color: var(--theme-success, #28a745);
    font-weight: bold;
    font-size: 1.1rem;
}

.sale-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.theme-badge {
    background-color: var(--theme-badge-bg, #e9ecef);
    color: var(--theme-badge-text, #666);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
