/* Napoli Pop layout v2 (body.np-v2, settings.storefront.layout_v2): loaded after the theme, before a skin's own file. */

/* The hero plate turns slowly (settings.storefront.hero_spin); the theme's reduced-motion rule stops it. */
@keyframes np-v2-spin { to { transform: rotate(360deg); } }
.np-plate--spin .np-plate__disc { animation: np-v2-spin 40s linear infinite; will-change: transform; }

/* A restaurant, not a sticker sheet: thin soft outlines, no hard offset shadows, buttons without the offset; a skin's colours and fonts stay.
   Set on the body so they win over the skin's :root values. */
body.np-v2 {
    --np-hs: 0;
    --np-bw: 1px;
    --np-bd: color-mix(in srgb, var(--np-ink) 14%, transparent);
    --np-sh: 0 10px 24px -18px color-mix(in srgb, var(--np-ink) 55%, transparent);
    --np-sh-lg: 0 18px 36px -22px color-mix(in srgb, var(--np-ink) 60%, transparent);
}
.np-v2 :is(.np-btn, .np-add, .np-prow .bt-quickadd, .npp-total button, .npp-sticky-add, .np-pzf, .np-pzf .np-btn, .np-bn__c, .npp-favorite, .npp-size.active,
    .npp-option.selected, .npp-option-row.selected, .npp-recommendation, .np-tip__icon, .sf-filters__apply, .sf-gallery__thumb[aria-current="true"]) { box-shadow: none; }
.np-v2 :is(.np-btn:not(.np-btn--alt), .np-add, .np-prow .bt-quickadd, .npp-total button, .npp-sticky-add) { border-color: transparent; }
.np-v2 :is(.np-srch, .np-pzf, .np-pzf input, .np-bn__c, .np-add, .np-prow .bt-quickadd, .npp-favorite, .npp-recommendation, .np-tip__icon, .sf-filters__apply) { border-width: 1px; }
.np-v2 :is(.np-pzf input, .np-srch, .np-tip input, .np-tip select, .np-form-grid input, .np-form-grid textarea, .sf-note textarea, .form-input):is(:focus, :focus-within) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--np-red) 25%, transparent);
}
.np-v2 .np-btn { font-weight: 700; }

/* The home page's "our restaurant" block: photo, a few lines, the week's hours and the address. */
.np-v2-about { display: grid; gap: 22px; align-items: center; }
.np-v2-about__im { border-radius: var(--np-r1, 22px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--np-tint); }
.np-v2-about__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-v2-eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--np-red); }
.np-v2-about h2 { font: var(--np-title-w, 800) clamp(28px, 4vw, 40px)/1.05 var(--np-fd); letter-spacing: var(--np-title-ls, -.02em); margin: 0 0 12px; }
.np-v2-about__text { color: var(--np-ink2, var(--np-ink)); font-size: 16.5px; line-height: 1.6; margin: 0 0 10px; max-width: 58ch; }
.np-v2-about__grid { display: grid; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--np-bd); }
.np-v2-about h3 { font: 700 13px/1.2 var(--np-fb); letter-spacing: .1em; text-transform: uppercase; color: var(--np-mute); margin: 0 0 10px; }
.np-v2-about__grid p { margin: 0 0 6px; }
.np-v2-hours { margin: 0; display: grid; gap: 4px; }
.np-v2-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.np-v2-hours dt { text-transform: capitalize; }
.np-v2-hours dd { margin: 0; color: var(--np-ink2, var(--np-ink)); font-variant-numeric: tabular-nums; text-align: right; }
.np-v2-hours .is-today { font-weight: 700; }
.np-v2-hours .is-today dd { color: var(--np-ink); }

/* The delivery check, moved down from the hero. */
.np-v2-deliver { display: grid; gap: 14px; align-items: center; padding: 22px; border: 1px solid var(--np-bd); border-radius: var(--np-r1, 22px); background: var(--np-paper); }
.np-v2-deliver h2 { font: var(--np-title-w, 800) 24px/1.15 var(--np-fd); margin: 0 0 6px; }
.np-v2-deliver p { margin: 0; color: var(--np-mute); }
.np-v2-deliver .np-pzf .np-btn { background: var(--np-red); color: var(--np-onred, #fff); }
.np-v2-deliver .np-pzf { margin: 0; border: 0; padding: 0; background: transparent; max-width: none; }
.np-v2 .np-hero .np-skiplink { color: inherit; opacity: .85; }

/* No floating cart bar on any screen: the header (computer) and the bottom bar (phone) have the cart. */
.np-v2 .np-cbar { display: none; }

/* Dish photos are square: the cards show them whole, not cut at the top and bottom. */
.np-v2 .np-fc__im { aspect-ratio: 1; }

/* Every hero photo but a pizzeria's turning plate is a rounded rectangle (4:3), not a disc. */
.np-v2 .np-plate:not(.np-plate--spin) { width: min(100%, 480px); }
.np-v2 .np-plate:not(.np-plate--spin) .np-plate__disc:not(.np-plate__disc--cutout) { aspect-ratio: 4 / 3; border-radius: var(--np-r2, 18px); }
.np-v2 .np-plate:not(.np-plate--spin) .np-plate__disc:not(.np-plate__disc--cutout) img { transform: none; }

@media (max-width: 55.99rem) {
    /* Phone hero: the photo first, the words and the buttons under it. */
    .np-v2 .np-hero__in { padding-top: 14px; }
    .np-v2 .np-plate { order: -1; width: min(62vw, 260px); margin: 4px auto 0; }
    .np-v2 .np-plate:not(.np-plate--spin) { width: 100%; }
    .np-v2 .np-hero__text { text-align: left; }
    /* Phone header: the language moves into the menu, the cart is in the bottom bar. */
    .np-v2 .np-hd .np-lg, .np-v2 .np-hd .np-ib--cart { display: none; }
}

@media (min-width: 56rem) {
    .np-v2-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
    .np-v2-about__grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
    .np-v2-deliver { grid-template-columns: 1fr minmax(0, 1fr); gap: 32px; padding: 28px 32px; }
    /* (Brand,) categories, company, visit us: as many equal columns as there are. */
    .np-v2 .npf-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
