/*
 * The shop's popups (pn-popups.js, partials/_popup.blade.php), in the site's own look: white card, the brand's six
 * stars, Roboto Condensed headings, green for prices and ticks, the orange order button, the light grey (#f5f5f3) of
 * the product pages. One product with a picture: picture on the left, text on the right (stacked on phones).
 * "Zöld" (green) style: a green band on top and a soft green picture panel; "Világos" (light): grey picture panel.
 */
.pn-popup {
    --pn-green: #587653;
    --pn-green-dark: #3f5a3b;
    --pn-green-soft: #eef2ea;
    --pn-orange: #c6460e;
    --pn-orange-dark: #a83a0b;
    --pn-ink: #2f352d;
    --pn-muted: #6b7168;
    --pn-grey: #f5f5f3;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(28, 33, 27, .58);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}
.pn-popup *, .pn-popup *::before, .pn-popup *::after { box-sizing: border-box; }
.pn-popup.is-open { opacity: 1; }
body.pn-popup-open { overflow: hidden; }

.pn-popup__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    color: var(--pn-ink);
    font-family: "Roboto Condensed", Roboto, sans-serif;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(20, 26, 19, .3);
    transform: translateY(14px) scale(.98);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.pn-popup.is-open .pn-popup__box { transform: none; }
.pn-popup--green .pn-popup__box { border-top: 6px solid var(--pn-green); }

.pn-popup__close {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--pn-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: color .15s, transform .15s;
}
.pn-popup__close:hover, .pn-popup__close:focus-visible { color: var(--pn-ink); transform: rotate(90deg); }

.pn-popup__body { padding: 2rem 1.9rem 1.75rem; text-align: center; }
.pn-popup__stars { display: block; margin-bottom: .6rem; color: #b9bdb6; font-size: .8rem; letter-spacing: .35em; }
.pn-popup__title {
    margin: 0 0 .5rem;
    color: var(--pn-green-dark);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.pn-popup__subtitle { margin: 0 0 1.25rem; color: var(--pn-muted); font-size: 1.05rem; line-height: 1.4; }

/* One product: its name and price under the text. */
.pn-popup__offer { margin: 0 0 1.25rem; padding: .85rem 1rem; background: var(--pn-grey); border-left: 3px solid var(--pn-green); text-align: left; }
.pn-popup__offer .pn-popup__name { margin: 0 0 .15rem; }
.pn-popup__offer .pn-popup__price { margin: 0; font-size: 1.6rem; }

/* Several products: cards side by side, in a wider card. */
.pn-popup--cards-2 .pn-popup__box { max-width: 600px; }
.pn-popup--cards-3 .pn-popup__box { max-width: 720px; }
.pn-popup__body > :last-child { margin-bottom: 0; }
.pn-popup__products { display: grid; gap: .9rem; margin: 0 auto 1.25rem; }
.pn-popup__products--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pn-popup__products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-popup__product { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .85rem .7rem 1rem; background: var(--pn-grey); }
.pn-popup__image { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }

.pn-popup__name { margin: 0; color: var(--pn-ink); font-size: 1rem; font-weight: 700; line-height: 1.25; }
.pn-popup__price { margin: 0 0 .25rem; color: var(--pn-green); font-size: 1.2rem; font-weight: 700; }
.pn-popup__price span { font-size: .85rem; font-weight: 400; }

.pn-popup__list { margin: 0 0 1.4rem; text-align: left; }
.pn-popup__list-title { margin: 0 0 .55rem; color: var(--pn-green-dark); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pn-popup__list ul { margin: 0; padding: 0; list-style: none; }
.pn-popup__list li { position: relative; margin-bottom: .45rem; padding-left: 1.85rem; font-family: "Open Sans", sans-serif; font-size: .92rem; line-height: 1.4; }
.pn-popup__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .08em;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--pn-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.pn-popup__actions { margin-top: .25rem; }
.pn-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 3.1rem;
    padding: .7rem 1.6rem;
    border: 0;
    border-radius: 2px;
    background: var(--pn-orange);
    color: #fff !important;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.pn-popup__actions .pn-popup__button::after { content: "→"; font-weight: 400; transition: transform .2s; }
.pn-popup__button:hover, .pn-popup__button:focus-visible { background: var(--pn-orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(198, 70, 14, .28); }
.pn-popup__actions .pn-popup__button:hover::after { transform: translateX(3px); }
.pn-popup__products .pn-popup__button { width: auto; min-height: 0; margin-top: auto; padding: .5rem 1rem; font-size: .9rem; }
.pn-popup__button:disabled { opacity: .7; }

.pn-popup__footer {
    margin: 0;
    padding: .75rem 1.25rem;
    background: var(--pn-grey);
    border-top: 1px solid #e6e8e3;
    color: var(--pn-green-dark);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

/* One product with a picture: picture panel on the left. */
.pn-popup--split .pn-popup__box { display: grid; grid-template-columns: 42% 1fr; max-width: 780px; }
.pn-popup--split .pn-popup__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at 50% 45%, #fff 0, var(--pn-grey) 70%);
}
.pn-popup--green.pn-popup--split .pn-popup__media { background: radial-gradient(circle at 50% 45%, #fff 0, var(--pn-green-soft) 70%); }
.pn-popup__media-img { width: 100%; max-width: 280px; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.pn-popup--split .pn-popup__body { padding: 2.25rem 2rem 1.9rem; text-align: left; }
.pn-popup--split .pn-popup__footer { grid-column: 1 / -1; }

@media (max-width: 767.98px) {
    .pn-popup--split .pn-popup__box { display: flex; max-width: 480px; }
    .pn-popup--split .pn-popup__media { padding: 1.25rem 1rem .5rem; }
    .pn-popup__media-img { max-width: 170px; }
    .pn-popup--split .pn-popup__body { text-align: center; }
    .pn-popup--split .pn-popup__offer { text-align: center; border-left: 0; border-top: 3px solid var(--pn-green); }
}
@media (max-width: 575.98px) {
    .pn-popup { padding: .6rem; }
    .pn-popup__body, .pn-popup--split .pn-popup__body { padding: 1.6rem 1.15rem 1.25rem; }
    .pn-popup__title { font-size: 1.3rem; }
    /* Cards as rows: picture on the left, name, price and button beside it. */
    .pn-popup__products--2, .pn-popup__products--3 { grid-template-columns: 1fr; gap: .6rem; }
    .pn-popup__products .pn-popup__product {
        display: grid;
        grid-template-columns: 84px 1fr;
        grid-template-rows: auto auto 1fr;
        column-gap: .85rem;
        row-gap: .15rem;
        align-items: start;
        padding: .6rem;
        text-align: left;
    }
    .pn-popup__products .pn-popup__image { grid-row: 1 / span 3; max-width: 84px; }
    .pn-popup__products .pn-popup__price { margin: 0; }
    .pn-popup__products .pn-popup__button { justify-self: start; margin-top: .3rem; padding: .4rem .85rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pn-popup, .pn-popup__box, .pn-popup__button, .pn-popup__close { transition: none; }
}
