/* ================================
   QN FLEX SHOP - Product Card
   ================================ */

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--qn-shop-surface);
    border-radius: var(--qn-shop-radius);
    box-shadow: var(--qn-shop-shadow-sm);
    overflow: hidden;
    transition: transform var(--qn-shop-transition), box-shadow var(--qn-shop-transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--qn-shop-shadow);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--qn-shop-surface-alt);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--qn-shop-text-muted);
    font-size: 0.9rem;
}

/* Awards Overlay - gestapelt bei mehreren */
.product-card-awards {
    position: absolute;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-card-awards-gold   { top: 10px; }
.product-card-awards-silver { top: 60px; }
.product-card-awards-bronze { top: 110px; }

.product-card-awards img {
    width: 45px;
    height: 45px;
    padding: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.product-card-title a {
    color: var(--qn-shop-text);
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--qn-shop-primary);
}

.product-card-vintage {
    font-weight: 400;
    color: var(--qn-shop-text-muted);
}

.product-card-taste,
.product-card-grape {
    font-size: 0.875rem;
    color: var(--qn-shop-text-muted);
    margin: 0.25rem 0;
}

.product-card-badges {
    display: flex;
    gap: 5px;
    margin: 0.5rem 0;
}

.product-card-badges .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge-vegan {
    background: var(--qn-shop-vegan);
    color: #fff;
}

.badge-bio {
    background: var(--qn-shop-bio);
    color: #fff;
}

.product-card-price-row {
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--qn-shop-primary);
}

.product-card-unit {
    font-size: 0.8rem;
    color: var(--qn-shop-text-muted);
}

/* Buttons in Produktkarte */
.product-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--qn-shop-border);
}

.product-card-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.add-to-cart-inline {
    flex: 1;
    display: flex;
}

.add-to-cart-inline button {
    width: 100%;
}

/* Grundpreis / Literpreis (PAngV) */
.product-card-base-price {
    display: block;
    font-size: 0.75rem;
    color: var(--qn-shop-text-muted);
    margin-top: 2px;
}

.product-card-base-price small {
    font-size: inherit;
}

/* Details Link */
.product-card-details {
    text-align: center;
}

.product-card-details .btn-outline-secondary {
    width: 100%;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .product-card-actions {
        flex-direction: column;
    }
}
