/* Qupio Pizzeria – widget v0.2. Brändiväri: --qpz-accent (hallinnasta). */
.qpz-w {
    --qpz-accent: #C8102E; --qpz-ink: #14161F; --qpz-muted: #646B7C; --qpz-line: #E7E9F0; --qpz-bg: #F6F7FA; --qpz-card: #fff;
    --qpz-r: 16px; --qpz-shadow: 0 1px 2px rgba(20,22,31,.05), 0 8px 24px rgba(20,22,31,.06); --qpz-sb: 0px;
    position: relative; color: var(--qpz-ink); font-size: 16px; line-height: 1.5; text-align: left;
}
.qpz-w--full { width: calc(100vw - var(--qpz-sb)); margin-left: calc(50% - (50vw - var(--qpz-sb) / 2)); background: var(--qpz-bg); }
.qpz-w *, .qpz-w *::before, .qpz-w *::after { box-sizing: border-box; }
.qpz-w button { font: inherit; cursor: pointer; }
.qpz-w h2, .qpz-w h3, .qpz-w h4 { margin: 0; line-height: 1.2; color: inherit; letter-spacing: -.01em; }
.qpz-w a { text-decoration: none; }
.qpz-w svg { width: 1.1em; height: 1.1em; flex: none; }
.qpz-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.qpz-w__loading, .qpz-error { padding: 24px; color: var(--qpz-muted); }
.qpz-error { color: #B42318; padding: 0; margin: 8px 0; }
.qpz-muted { color: var(--qpz-muted); }

/* Painikkeet */
.qpz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--qpz-accent); color: #fff; font-weight: 700; transition: transform .15s, filter .15s, opacity .15s; }
.qpz-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.qpz-btn:disabled { opacity: .45; cursor: not-allowed; }
.qpz-btn--block { width: 100%; }
.qpz-btn--lg { padding: 16px 22px; font-size: 1.05rem; }
.qpz-btn--sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.qpz-btn--ghost { background: transparent; color: var(--qpz-ink); border: 1px solid var(--qpz-line); }
.qpz-link { border: 0; background: none; padding: 6px 0; color: var(--qpz-accent); font-weight: 600; }
.qpz-link--danger { color: #B42318; }

/* Hero */
.qpz-hero { position: relative; min-height: 360px; display: flex; flex-direction: column; color: #fff; background: #1a1a1a; overflow: hidden; }
.qpz-hero.has-cover { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7) 100%), var(--qpz-cover) center / cover no-repeat; }
.qpz-hero:not(.has-cover) { background: radial-gradient(1200px 400px at 20% 0%, color-mix(in srgb, var(--qpz-accent) 55%, transparent), transparent), #16171d; }
.qpz-hero__bar { display: flex; justify-content: space-between; padding: 16px 24px 0; max-width: 1400px; width: 100%; margin: 0 auto; }
.qpz-account { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-weight: 600; backdrop-filter: blur(6px); }
.qpz-account:hover { background: rgba(255,255,255,.22); }
.qpz-hero__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 24px 48px; max-width: 900px; margin: 0 auto; }
.qpz-hero__logo { width: 96px; height: 96px; object-fit: contain; border-radius: 20px; background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); margin-bottom: 16px; }
.qpz-hero__title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff !important; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.qpz-hero__tag { margin: 10px 0 0; font-size: 1.15rem; opacity: .95; }
.qpz-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 18px 0 24px; font-size: .95rem; }
.qpz-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.qpz-pill { padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.qpz-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.qpz-pill.is-open { background: #DCFCE7; color: #166534; }
.qpz-pill.is-closed { background: #FEE2E2; color: #991B1B; }
.qpz-btn--hero { padding: 15px 34px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* Näin tilaat */
.qpz-steps { padding: 56px 0 24px; text-align: center; }
.qpz-steps h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.qpz-sub { color: var(--qpz-muted); margin: 6px 0 34px; }
.qpz-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qpz-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 18px 24px; background: var(--qpz-card); border-radius: var(--qpz-r); box-shadow: var(--qpz-shadow); }
.qpz-steps__n { position: absolute; top: -14px; width: 30px; height: 30px; border-radius: 50%; background: var(--qpz-accent); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.qpz-steps__ico { color: var(--qpz-accent); }
.qpz-steps__ico svg { width: 48px; height: 48px; }
.qpz-steps small { color: var(--qpz-muted); font-size: .9rem; }

/* Kauppa: kategoriat | ruokalista | ostoskori */
.qpz-shop { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 32px; padding-bottom: 40px; scroll-margin-top: 16px; }
.qpz-cats, .qpz-side { position: sticky; top: 16px; }
.qpz-cats { background: var(--qpz-card); border-radius: var(--qpz-r); box-shadow: var(--qpz-shadow); padding: 8px; max-height: calc(100vh - 32px); overflow: auto; }
.qpz-cats__title { margin: 8px 12px 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qpz-muted); }
.qpz-cats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--qpz-ink); font-weight: 600; font-size: .95rem; }
.qpz-cats a small { color: var(--qpz-muted); font-weight: 500; }
.qpz-cats a i { font-style: normal; color: var(--qpz-muted); }
.qpz-cats a:hover { background: var(--qpz-bg); }
.qpz-cats a.is-active { background: color-mix(in srgb, var(--qpz-accent) 10%, #fff); color: var(--qpz-accent); }
.qpz-menu { min-width: 0; }
.qpz-alert { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-weight: 500; }
.qpz-menu__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; padding: 18px 20px; background: var(--qpz-card); border-radius: var(--qpz-r); box-shadow: var(--qpz-shadow); }
.qpz-menu__head h3 { font-size: 1.5rem; font-weight: 800; margin-right: auto; }
.qpz-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--qpz-line); border-radius: 12px; background: var(--qpz-bg); min-width: 240px; color: var(--qpz-muted); }
.qpz-search input { border: 0; background: none; padding: 11px 0; font: inherit; width: 100%; outline: 0; color: var(--qpz-ink); }
.qpz-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--qpz-bg); border: 1px solid var(--qpz-line); }
.qpz-seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--qpz-muted); }
.qpz-seg button[aria-pressed=true] { background: var(--qpz-card); color: var(--qpz-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.qpz-seg--full { display: flex; width: 100%; }
.qpz-seg--full button { flex: 1; }
.qpz-cat { margin-top: 18px; scroll-margin-top: 16px; }
.qpz-cat h3 { font-size: 1.3rem; font-weight: 800; padding: 0 4px; }
.qpz-cat__desc { margin: 4px 4px 0; color: var(--qpz-muted); font-size: .93rem; }
.qpz-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.qpz-item { position: relative; display: flex; gap: 14px; padding: 16px; min-height: 120px; background: var(--qpz-card); border-radius: var(--qpz-r); box-shadow: var(--qpz-shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.qpz-item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,22,31,.06), 0 14px 30px rgba(20,22,31,.1); }
.qpz-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qpz-item h4 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; }
.qpz-num { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--qpz-accent); color: #fff; font-size: .85rem; font-weight: 800; line-height: 1; letter-spacing: -.01em; box-shadow: 0 2px 6px color-mix(in srgb, var(--qpz-accent) 35%, transparent); }
.qpz-item__info > p { padding-left: 40px; }
.qpz-item__price { padding-left: 40px; }
.qpz-item__info:not(:has(.qpz-num)) > p, .qpz-item__info:not(:has(.qpz-num)) .qpz-item__price { padding-left: 0; }
.qpz-item p { margin: 4px 0 8px; color: var(--qpz-muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qpz-item__price { margin-top: auto; font-weight: 700; }
.qpz-item__img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; flex: none; }
.qpz-add { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--qpz-accent); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--qpz-accent) 40%, transparent); }
.qpz-item__img + .qpz-add { right: 20px; bottom: 20px; }
.qpz-add.is-added { background: #16A34A; font-size: 1rem; }
.qpz-noresults { padding: 24px; text-align: center; color: var(--qpz-muted); }

/* Sivupalkki */
.qpz-side { display: grid; gap: 16px; }
.qpz-card { background: var(--qpz-card); border-radius: var(--qpz-r); box-shadow: var(--qpz-shadow); padding: 20px; }
.qpz-card h4 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.qpz-count { margin-left: auto; min-width: 26px; height: 26px; border-radius: 999px; background: var(--qpz-accent); color: #fff; font-size: .82rem; display: inline-grid; place-items: center; padding: 0 8px; }
.qpz-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 0 22px; color: var(--qpz-muted); text-align: center; }
.qpz-empty svg { width: 44px; height: 44px; opacity: .5; margin-bottom: 6px; }
.qpz-empty b { color: var(--qpz-ink); }
.qpz-lines { list-style: none; margin: 0 0 8px; padding: 0; max-height: 46vh; overflow: auto; }
.qpz-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--qpz-line); }
.qpz-line__n { flex: 1; min-width: 0; font-weight: 600; font-size: .94rem; }
.qpz-line__n small { display: block; color: var(--qpz-muted); font-weight: 400; }
.qpz-line__p { font-weight: 700; white-space: nowrap; font-size: .94rem; }
.qpz-line__q, .qpz-step { display: inline-flex; align-items: center; gap: 6px; }
.qpz-line__q button, .qpz-step button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--qpz-line); background: #fff; line-height: 1; padding: 0; }
.qpz-line__q b { min-width: 14px; text-align: center; font-size: .9rem; }
.qpz-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 14px; }
.qpz-sum dt, .qpz-sum dd { margin: 0; color: var(--qpz-muted); }
.qpz-sum .qpz-sum__total { color: var(--qpz-ink); font-weight: 800; font-size: 1.15rem; }
.qpz-note { margin: 8px 0 0; font-size: .88rem; color: #8A5300; }
.qpz-hours { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.qpz-hours li { display: flex; justify-content: space-between; padding: 5px 0; color: var(--qpz-muted); }
.qpz-hours li span:first-child { font-weight: 600; color: var(--qpz-ink); }
.qpz-hours li.is-today { color: var(--qpz-accent); font-weight: 700; }
.qpz-hours li.is-today span:first-child { color: var(--qpz-accent); }
.qpz-help { text-align: center; }
.qpz-help h4 { justify-content: center; }
.qpz-help p { margin: 0 0 10px; color: var(--qpz-muted); font-size: .93rem; }
.qpz-help a { display: inline-flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 800; color: var(--qpz-accent); }

/* Mobiilin alapalkki */
.qpz-mbar { display: none; }

/* Dialogit */
.qpz-dlg { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--qpz-ink); background: #fff; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.qpz-dlg::backdrop { background: rgba(14,15,20,.6); backdrop-filter: blur(2px); }
.qpz-dlg__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; }
.qpz-dlg__img { width: 100%; height: 240px; object-fit: cover; display: block; }
.qpz-dlg__body { padding: 24px; }
.qpz-dlg__body h3 { font-size: 1.45rem; font-weight: 800; padding-right: 40px; }
.qpz-dlg__body > p { margin: 6px 0 0; }
.qpz-dlg__price { font-weight: 800; font-size: 1.1rem; }
.qpz-dlg fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.qpz-dlg legend, .qpz-form legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.qpz-dlg legend small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--qpz-bg); color: var(--qpz-muted); font-weight: 600; font-size: .75rem; }
.qpz-opt, .qpz-form label.qpz-opt { display: flex; align-items: center; gap: 10px; font-size: inherit; font-weight: 500; padding: 11px 14px; border: 1px solid var(--qpz-line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.qpz-opt:has(input:checked) { border-color: var(--qpz-accent); background: color-mix(in srgb, var(--qpz-accent) 6%, #fff); }
.qpz-opt input, .qpz-form .qpz-opt input { flex: none; accent-color: var(--qpz-accent); width: 18px; height: 18px; margin: 0; }
.qpz-opt span { flex: 1; }
.qpz-opt em { font-style: normal; color: var(--qpz-muted); font-size: .92rem; }
.qpz-dlg__foot { position: sticky; bottom: -24px; display: flex; gap: 14px; align-items: center; margin: 20px -24px -24px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--qpz-line); }
.qpz-dlg__foot .qpz-btn { flex: 1; min-width: 0; white-space: nowrap; padding: 13px 14px; }
.qpz-ok__short { display: none; }
@media (max-width: 380px) { .qpz-dlg__foot { gap: 10px; } .qpz-dlg__foot .qpz-btn { font-size: .9rem; padding: 12px 10px; } }
@media (max-width: 359px) { .qpz-ok__long { display: none; } .qpz-ok__short { display: inline; } }
.qpz-step button { width: 36px; height: 36px; font-size: 1.1rem; }
.qpz-step b { min-width: 22px; text-align: center; }

/* Sivupaneeli (ostoskori + kassa) */
.qpz-drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); border-radius: 0; }
.qpz-drawer[open] { animation: qpz-slide .25s ease-out; }
@keyframes qpz-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.qpz-drawer__in { padding: 26px 24px 32px; }
.qpz-drawer__in > h3 { font-size: 1.5rem; font-weight: 800; margin: 4px 0 14px; }
.qpz-drawer .qpz-lines { max-height: none; }
.qpz-loginhint { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; margin-bottom: 14px; border: 1px dashed color-mix(in srgb, var(--qpz-accent) 50%, #fff); border-radius: 12px; background: color-mix(in srgb, var(--qpz-accent) 5%, #fff); color: var(--qpz-ink); text-align: left; font-size: .93rem; }
.qpz-loginhint svg { color: var(--qpz-accent); width: 22px; height: 22px; }
.qpz-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.qpz-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.qpz-form input:not([type=radio]):not([type=checkbox]), .qpz-form textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 14px; border: 1px solid #D5D9E3; border-radius: 12px; font: inherit; font-weight: 400; background: #fff; color: var(--qpz-ink); }
.qpz-form input:focus, .qpz-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--qpz-accent) 40%, transparent); border-color: var(--qpz-accent); }
.qpz-form [aria-invalid=true] { border-color: #B42318 !important; }
.qpz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.qpz-hp { position: absolute !important; left: -9999px !important; }
.qpz-legal { font-size: .84rem; color: var(--qpz-muted); }
.qpz-legal a { color: inherit; text-decoration: underline; }
.qpz-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700 !important; }
.qpz-dlg--account { width: min(480px, calc(100vw - 24px)); }
.qpz-dlg--account h4 { margin: 20px 0 8px; font-weight: 800; }
.qpz-past { list-style: none; margin: 0; padding: 0; }
.qpz-past li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--qpz-line); }
.qpz-past li > div { flex: 1; min-width: 0; }
.qpz-past small { display: block; color: var(--qpz-muted); }
.qpz-acc__foot { display: flex; justify-content: space-between; margin-top: 18px; }

/* Tilauksen seuranta */
.qpz-statuswrap { padding-top: 40px; padding-bottom: 40px; }
.qpz-status { max-width: 640px; margin: 0 auto; text-align: center; padding: 34px; }
.qpz-status__check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #DCFCE7; color: #166534; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.qpz-status h3 { font-size: 1.7rem; font-weight: 800; }
.qpz-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 22px 0 14px; }
.qpz-track li { display: grid; justify-items: center; gap: 6px; font-size: .84rem; color: var(--qpz-muted); font-weight: 600; }
.qpz-track i { width: 100%; height: 6px; border-radius: 6px; background: var(--qpz-line); }
.qpz-track li.is-done i { background: #16A34A; }
.qpz-track li.is-current { color: var(--qpz-ink); }
.qpz-track li.is-current i { background: var(--qpz-accent); }
.qpz-lines--static { text-align: left; max-height: none; }
.qpz-line__qty { white-space: nowrap; }
.qpz-paid { font-weight: 700; }
.qpz-status .qpz-sum { text-align: left; }

/* Alaosa: linkit, maksutavat + Oiva, yrityksen tiedot */
.qpz-foot { background: var(--qpz-card); border-top: 1px solid var(--qpz-line); margin-top: 40px; padding: 36px 0 28px; }
.qpz-foot__grid { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 32px; }
.qpz-foot h4 { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; color: var(--qpz-ink); }
.qpz-foot ul { list-style: none; margin: 0; padding: 0; }
.qpz-foot__links li { margin: 0 0 8px; }
.qpz-foot__links a, .qpz-linkbtn { color: var(--qpz-muted); font: inherit; font-size: .95rem; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.qpz-foot__links a:hover, .qpz-linkbtn:hover { color: var(--qpz-accent); }
.qpz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qpz-chips li { border: 1px solid var(--qpz-line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; color: var(--qpz-ink); background: var(--qpz-bg); }
.qpz-oiva { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.qpz-oiva img { height: 48px; width: auto; display: block; }
.qpz-oiva__txt { display: inline-block; font-weight: 700; color: var(--qpz-accent); }
.qpz-oiva small { color: var(--qpz-muted); font-size: .8rem; line-height: 1.35; max-width: 220px; }
.qpz-foot__info li { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin: 0 0 8px; font-size: .95rem; color: var(--qpz-ink); }
.qpz-foot__info span { color: var(--qpz-muted); }
.qpz-foot__info a { color: var(--qpz-ink); }
@media (max-width: 860px) { .qpz-foot__grid { grid-template-columns: 1fr; gap: 24px; } .qpz-foot { padding-bottom: 90px; } .qpz-foot__bottom { flex-direction: column-reverse; align-items: flex-start; } }

.qpz-credit { display: flex; justify-content: center; padding: 22px 16px 26px; }
.qpz-foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--qpz-line); font-size: .85rem; color: var(--qpz-muted); }
/* Qupio-merkki: hillitty pilleri, logo + kaksirivinen teksti */
.qpz-qbadge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border: 1px solid var(--qpz-line); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(20,22,31,.04); transition: border-color .2s, box-shadow .2s, transform .2s; }
.qpz-qbadge img { width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: #F1F4FF; display: block; }
.qpz-qbadge span { display: flex; flex-direction: column; line-height: 1.15; }
.qpz-qbadge small { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--qpz-muted); }
.qpz-qbadge b { font-size: .88rem; font-weight: 800; color: var(--qpz-ink); letter-spacing: -.01em; }
.qpz-qbadge:hover { border-color: #1F51FF; box-shadow: 0 6px 18px rgba(31,81,255,.14); transform: translateY(-1px); }
.qpz-qbadge:hover b { color: #1F51FF; }

/* Tabletti: kategoriat yläpalkiksi */
@media (max-width: 1180px) {
    .qpz-shop { grid-template-columns: minmax(0, 1fr) 320px; }
    .qpz-cats { grid-column: 1 / -1; position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; max-height: none; padding: 8px; scrollbar-width: none; border-radius: 14px; }
    .qpz-cats__title { display: none; }
    .qpz-cats a { flex: none; padding: 9px 14px; border: 1px solid var(--qpz-line); border-radius: 999px; }
    .qpz-cats a i { display: none; }
    .qpz-cats a small { margin-left: 4px; }
    .qpz-list { grid-template-columns: 1fr; }
}
/* Puhelin: yksi sarake, ostoskori alapalkista */
@media (max-width: 820px) {
    .qpz-wrap { padding: 0 14px; }
    .qpz-hero { min-height: 300px; }
    .qpz-steps { padding-top: 40px; }
    .qpz-steps ol { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
    .qpz-shop { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; padding-bottom: calc(90px + var(--qpz-bottom, 0px)); }
    .qpz-side { position: static; }
    .qpz-cart { display: none; }
    .qpz-menu__head { padding: 14px; }
    .qpz-search { min-width: 0; flex: 1 1 100%; }
    .qpz-item__img { width: 88px; height: 88px; }
    .qpz-mbar:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--qpz-bottom, 0px)); z-index: 60; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 18px; border: 0; border-radius: 16px; background: var(--qpz-accent); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
    .qpz-mbar span { display: inline-flex; align-items: center; gap: 6px; }
    .qpz-dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
    .qpz-drawer { height: 100vh; max-height: 100vh; border-radius: 0; }
    .qpz-grid { grid-template-columns: 1fr; }
}

/* Suojaus teeman linkki- ja painiketyyleiltä */
.qpz-w a, .qpz-w a:hover, .qpz-w a:focus { text-decoration: none !important; box-shadow: none; }
.qpz-w .qpz-cats a { color: var(--qpz-ink); }
.qpz-w .qpz-cats a.is-active { color: var(--qpz-accent); }
.qpz-w .qpz-btn, .qpz-w a.qpz-btn { color: #fff; }
.qpz-w .qpz-btn--ghost, .qpz-w a.qpz-btn--ghost { color: var(--qpz-ink); }
.qpz-w .qpz-help a { color: var(--qpz-accent); }
.qpz-w .qpz-legal a { text-decoration: underline !important; }
/* Teeman kiinteä yläpalkki: --qpz-top lasketaan skriptissä */
.qpz-cats, .qpz-side { top: var(--qpz-top, 16px); }
.qpz-cats { max-height: calc(100vh - var(--qpz-top, 16px) - 16px); }
.qpz-cat, .qpz-shop { scroll-margin-top: var(--qpz-top, 16px); }
@media (max-width: 1180px) { .qpz-cats { top: calc(var(--qpz-top, 16px) - 8px); } }
.qpz-w .qpz-foot a { text-decoration: none !important; }
.qpz-w .qpz-foot h4 { margin: 0 0 14px; }

/* Teeman linkkivärien (myös :visited/:hover) eristys – linkit pysyvät widgetin väreissä */
.qpz-w .qpz-cats a, .qpz-w .qpz-cats a:visited, .qpz-w .qpz-cats a:hover, .qpz-w .qpz-cats a:focus { color: var(--qpz-ink) !important; }
.qpz-w .qpz-cats a.is-active, .qpz-w .qpz-cats a.is-active:visited, .qpz-w .qpz-cats a.is-active:hover { color: var(--qpz-accent) !important; }
.qpz-w a.qpz-btn, .qpz-w a.qpz-btn:visited, .qpz-w a.qpz-btn:hover, .qpz-w a.qpz-btn:focus, .qpz-w a.qpz-btn:active,
.qpz-w button.qpz-btn, .qpz-w .qpz-btn--hero { color: #fff !important; }
.qpz-w a.qpz-btn--ghost, .qpz-w a.qpz-btn--ghost:visited, .qpz-w a.qpz-btn--ghost:hover { color: var(--qpz-ink) !important; }
.qpz-w .qpz-help a, .qpz-w .qpz-help a:visited { color: var(--qpz-accent) !important; }
.qpz-w .qpz-foot__links a, .qpz-w .qpz-foot__links a:visited { color: var(--qpz-muted) !important; }
.qpz-w .qpz-foot__links a:hover { color: var(--qpz-accent) !important; }
.qpz-w .qpz-foot__info a, .qpz-w .qpz-foot__info a:visited { color: var(--qpz-ink) !important; }
.qpz-w a.qpz-qbadge, .qpz-w a.qpz-qbadge:visited, .qpz-w a.qpz-qbadge:hover { color: var(--qpz-ink) !important; text-decoration: none !important; }

/* v0.4 – oma tili: välilehdet, tilaushistoria, kuitit, rekisteröityminen */
.qpz-acc__tabs { margin: 6px 0 14px; }
.qpz-acc__switch { margin: 14px 0 0; text-align: center; font-size: .92rem; color: var(--qpz-muted); }
.qpz-past__acts { display: flex; gap: 14px; margin-top: 4px; }
.qpz-past__acts .qpz-link { padding: 2px 0; font-size: .88rem; }
.qpz-w a.qpz-link, .qpz-w a.qpz-link:visited, .qpz-w a.qpz-link:hover { color: var(--qpz-accent) !important; text-decoration: none !important; }
.qpz-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--qpz-bg); color: var(--qpz-muted); vertical-align: 1px; }
.qpz-pill--completed { background: #DCFCE7; color: #166534; }
.qpz-pill--cancelled { background: #FEE2E2; color: #991B1B; }
.qpz-pill--new, .qpz-pill--preparing, .qpz-pill--ready { background: #FFF4D6; color: #7A4B00; }

/* Tuote ilman omaa kuvaa: harmaa paikkamerkki */
.qpz-item__img--ph { display: block; background: #E5E7EB; }
