:root {
    --brand: #ba1752;
    --brand-dark: #8f123f;
    --green: #198754;
    --green-dark: #146c43;
    --bg: #f4f1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --line: #e8e4e6;
    --radius: 16px;
    --shadow: 0 2px 10px rgba(31, 41, 55, 0.06);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(186, 23, 82, 0.18);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Poppins, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
}

.wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 96px;
}

.brand-bar {
    background: var(--brand);
    color: #fff;
    padding: 14px 16px calc(14px + env(safe-area-inset-top));
}

.brand-bar h1,
.brand-bar h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-bar p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

h1, h2, h3, p {
    font-family: inherit;
}

h1 {
    font-size: 22px;
    margin: 0 0 8px;
}

h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

p {
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
}

.note {
    background: #fff4f7;
    border: 1px solid #f3cdd8;
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    margin: 0 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 0 0 14px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    padding: 14px 14px;
    min-height: 52px;
    border: 1px solid #d9d3d6;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    appearance: none;
}

textarea {
    min-height: 52px;
    resize: none;
    overflow: hidden;
}

.btn,
button,
input[type="submit"] {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    min-height: 52px;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-primary,
input.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:active {
    background: var(--brand-dark);
}

.btn-search,
input.kereses_gomb {
    background: var(--green);
    color: #fff;
}

.btn-search:active,
input.kereses_gomb:active {
    background: var(--green-dark);
}

.btn-reset {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #f3c0c8;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: #fde8ec;
    color: #a61e36;
    box-sizing: border-box;
}

.btn-reset:active {
    background: #f8d0d7;
}

.btn-ghost,
input.backgomb {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    margin: 0 0 16px;
}

.menu-link {
    display: block;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px 16px;
    min-height: 88px;
}

.menu-link strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.menu-link span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.menu-link:active {
    border-color: var(--brand);
    background: #fff7f9;
}

.chip-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
}

.chip input {
    width: 20px;
    height: 20px;
    min-height: 0;
    accent-color: var(--brand);
}

.chip:has(input:checked) {
    border-color: var(--brand);
    background: #fff7f9;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 15px;
}

.check-row input {
    width: 22px;
    height: 22px;
    min-height: 0;
    accent-color: var(--brand);
}

.result-count {
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0 12px;
}

.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 14px;
    box-shadow: var(--shadow);
}

.product a.photo {
    display: block;
    background: #f3f0f1;
}

.product img.photo {
    width: 100%;
    height: auto;
    max-height: 52vh;
    object-fit: cover;
    display: block;
}

.product .body {
    padding: 14px;
}

.product .body p {
    margin: 0 0 8px;
    font-size: 16px;
}

.product .name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.qr {
    text-align: center;
    margin: 0 0 12px;
}

.qr img {
    width: 112px;
    height: 112px;
    display: inline-block;
}

.prices {
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
}

.error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 12px;
    padding: 12px;
}

#scrollToTop {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: 16px;
    width: 52px;
    height: 52px;
    background-color: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 20;
    box-shadow: 0 4px 14px rgba(186, 23, 82, 0.35);
}

#scrollToTop.show {
    display: block;
}

#scrollToTop svg {
    width: 28px;
    fill: white;
    position: absolute;
    top: 12px;
    left: 12px;
}

.login-wrap {
    max-width: 430px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

@media (min-width: 600px) {
    .chip-group {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.card-compact {
    padding: 12px;
}

.stack-tight {
    gap: 8px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.input-compact,
select.select-compact {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 16px;
}

select.select-compact {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 34px;
}

.raktar-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.raktar-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.raktar-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    min-height: 0;
}

.raktar-opt:has(input:checked) {
    border-color: var(--brand);
    background: #fff7f9;
    color: var(--brand);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-row label {
    font-size: 13px;
    margin-bottom: 4px;
}
