/* === Afitt Bistro Theme — Product Card === */
/* Aspect ratio: 2:3, internal split 1:1.5 (title ~40%, image ~60%) */

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--card-product-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    aspect-ratio: var(--card-product-ratio);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: scale(var(--scale-card-hover));
}

.product-card:focus-within {
    outline: var(--focus-ring-width) solid var(--color-brand-orange);
    outline-offset: 1px;
    outline-style: solid;
}

/* Title area — top ~40% */
.product-card__title-area {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    position: relative;
    color: var(--color-text-inverse);
}

.product-card__title {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: none;
    font-size: clamp(18px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    margin-top: var(--space-sm);
}

/* Info button — top-right */
.product-card__info {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    z-index: 2;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-ui);
}

/* Image area — bottom ~60% */
.product-card__image-area {
    flex: 1.5;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-cream);
}

.product-card__image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-area img {
    transform: scale(1.04);
}

/* Controls overlay at bottom of image */
.product-card__controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--space-sm);
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
}

.product-card__controls > * {
    pointer-events: auto;
}

/* Price pill */
.product-card__price {
    background: rgba(33, 26, 22, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text-inverse);
    font-family: var(--font-price);
    font-weight: 700;
    font-size: var(--text-price);
    text-transform: none;
    letter-spacing: normal;
    padding: var(--space-2xs) var(--space-md);
    border-radius: var(--radius-full);
    line-height: 1.2;
    font-variant-numeric:lining-nums tabular-nums;
}

/* Out of stock */
.product-card--unavailable {
    opacity: 0.65;
}

.product-card--unavailable .product-card__image-area img {
    filter: grayscale(0.7);
}

.product-card--unavailable .product-card__controls {
    justify-content: center;
}

.product-card__unavailable-badge {
    background: rgba(0, 0, 0, 0.78);
    color: var(--color-text-inverse);
    font-family: var(--font-ui);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-micro);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.product-card__price--range {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 700;
}
