.product-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease-in-out;
    position: relative;
}
.dark .product-card {
    background-color: #1f2937;
    border-color: #374151;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.product-image-container {
    background-color: #f3f4f6;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.dark .product-image-container {
    background-color: #111827;
}
.product-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.product-rarity-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
/* Colores de rareza */
.rarity-comun { background-color: #d1d5db; color: #1f2937; }
.rarity-raro { background-color: #60a5fa; color: white; }
.rarity-epico { background-color: #a78bfa; color: white; }

.product-info {
    padding: 1rem;
    text-align: left;
}
.product-title {
    font-size: 1.125rem;
    font-weight: 700;
}
.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    min-height: 40px;
    margin-top: 0.25rem;
}
.dark .product-description {
    color: #9ca3af;
}

.product-footer {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}
.product-buy-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Overlay para items comprados */
.purchased-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.dark .purchased-overlay {
    background-color: rgba(31, 41, 55, 0.8);
}
.product-card.is-purchased .purchased-overlay {
    opacity: 1;
    pointer-events: all;
}
.purchased-icon {
    font-size: 3rem;
    color: #22c55e;
}
.purchased-text {
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}