@if (product(); as p) {
@for (img of p.images; track img.id) { }
@if (activeImage()) { } @else { }
@if (p.isBestseller) { {{ 'products.bestsellerBadge' | translate }} } @if (p.averageRating) { }

{{ p.name }}

{{ (selectedVariant()?.price ?? p.price) | i18nCurrency }}

{{ 'products.lowestPrice30Days' | translate }} {{ p.lowestPrice30Days | i18nCurrency }}

@for (v of p.variants; track v.id) { }
{{ 'products.quantity' | translate }}
{{ quantity() }}
@if (!selectedVariant()?.isInStock) {

{{ 'products.outOfStock' | translate }}

}
@if (selectedVariant()?.isInStock) { {{ 'products.inStock' | translate }} } {{ 'products.deliveryTime' | translate: { hours: p.deliveryHours } }} {{ 'products.freeDeliveryFrom' | translate }}

{{ 'products.description' | translate }}

{{ p.description }}

{{ 'products.specs' | translate }}

@for (attr of p.attributes; track attr.name) { }
{{ attr.name }} {{ attr.value }}

{{ 'products.related' | translate }}

@for (item of related(); track item.id) { }

{{ 'products.reviews' | translate }}

@if (reviews(); as r) {
{{ r.averageRating | number: '1.0-1' }}/5 {{ 'products.reviewsCount' | translate: { count: r.totalCount } }}
@if (r.totalCount === 0) {

{{ 'products.reviewsEmpty' | translate }}

} @for (review of r.reviews; track review.id) {
{{ review.authorName }}

{{ review.content }}

} }

{{ 'products.yourRating' | translate }}

} @if (product(); as stickyProduct) {
{{ stickyProduct.name }} — {{ (selectedVariant()?.price ?? stickyProduct.price) | i18nCurrency }}
}