/* ============================================
   Product Detail Carousel
   ============================================ */

.product-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-glass);
}

.product-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.product-carousel__track::-webkit-scrollbar {
    display: none;
}

.product-carousel__slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.product-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Dots */
.product-carousel__dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.product-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    padding: 0;
}

.product-carousel__dot--active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   Product Detail
   ============================================ */

.product-detail {
    padding: var(--space-lg) var(--space-md);
    padding-bottom: calc(var(--nav-height) + var(--space-2xl) + var(--safe-bottom));
}

.product-detail__name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.product-detail__price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.product-detail__variants {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.variant-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.variant-chip__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.variant-chip__price {
    font-weight: 600;
    color: var(--color-primary);
}

.product-detail__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Meta info */
.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--color-bg-glass);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.meta-chip svg {
    width: 14px;
    height: 14px;
}

/* Allergens */
.product-detail__allergens {
    margin-bottom: var(--space-lg);
}

.product-detail__allergens-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
}

.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.allergen-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--color-bg-glass);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.allergen-tag img {
    width: 16px;
    height: 16px;
}
