/* ============================================
   Product Card
   ============================================ */

.product-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.product-card:active {
    background: var(--color-bg-glass);
}

.product-card + .product-card {
    border-top: 1px solid var(--color-border);
}

/* Product Image */
.product-card__image {
    flex-shrink: 0;
    width: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    /* background: var(--color-bg-glass); */
}

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

.product-card:active .product-card__image img {
transform: scale(1.05);
}

.product-card__image--placeholder {
display: flex;
align-items: center;
justify-content: center;
color: var(--color-text-muted);
}

/* Product Info */
.product-card__info {
    flex: 1;
    min-width: 0;
}

.product-card__name {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

/* Badges */
.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--space-xs);
}

.product-badge {
    display: inline-flex;
    gap: 8px;
    padding: 6px 6px 3px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.03em; */
    line-height: 10px;
}

.product-badge--new {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
}

.product-badge--popular {
    background: rgba(255, 152, 0, 0.2);
    color: var(--color-warning);
}

.product-badge--chef {
    background: rgba(200, 169, 126, 0.2);
    color: var(--color-primary);
}

/* Allergens */
.product-card__allergens {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.allergen-icon {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.allergen-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Price */
.product-card__price {
    flex-shrink: 0;
    text-align: right;
    min-width: 70px;
}

.product-card__price-value {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.product-card__variants {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}

.product-card__variant {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: var(--text-xs);
}

.product-card__variant-label {
    color: var(--color-text-muted);
}

.product-card__variant-price {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   Product List Section
   ============================================ */

.product-section {
    margin-bottom: var(--space-lg);
}

.product-section__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    color: var(--color-primary-light);
    position: sticky;
    top: 44px; /* Below category-tabs */
    background: var(--color-bg);
    z-index: 5;
}

.product-list {
    display: flex;
    flex-direction: column;
}

/* ============================================
   Similar Products (Horizontal Scroll)
   ============================================ */

.similar-products {
    padding: var(--space-lg) 0;
}

.similar-products__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    padding: 0 var(--space-md) var(--space-md);
}

.similar-products__scroll {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.similar-products__scroll::-webkit-scrollbar {
    display: none;
}

.similar-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.similar-card__image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-glass);
    margin-bottom: var(--space-sm);
}

.similar-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-card__name {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card__price {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2px;
}
