/* =====================================================
   SPIRIT SÖRÖZŐ - A4 NYOMTATHATÓ ITALLAP
   Asztali PC + egyoldalas A4
===================================================== */

:root {
    --black: #080808;
    --dark: #111111;
    --gold: #d89b45;
    --gold-light: #e7b66a;
    --white: #ffffff;
    --gray: #cfcfcf;
    --line: rgba(216,155,69,.58);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@page {
    size: A4 portrait;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--white);
    font-family: 'Poppins', sans-serif;

    background:
        linear-gradient(rgba(0,0,0,.63), rgba(0,0,0,.72)),
        url("images/teglafal2-bg.png");

    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Az oldalt A4 arányban jelenítjük meg PC-n */
.menu-page {
    width: 210mm;
    min-height: 297mm;
    margin: 15px auto;
    padding: 7mm 8mm 5mm;

    background:
        linear-gradient(rgba(0,0,0,.66), rgba(0,0,0,.76)),
        url("images/teglafal2-bg.png");

    background-size: 700px;
    background-position: center top;
    background-repeat: repeat;

    box-shadow: 0 8px 35px rgba(0,0,0,.65);
}

/* =========================
   FEJLÉC
========================= */

.menu-header {
    text-align: center;
    padding: 0 0 4mm;
}

.menu-logo {
    display: block;
    width: 43mm;
    height: 24mm;
    object-fit: contain;
    margin: 0 auto 1mm;
}

.title-line {
    width: 34mm;
    height: .6mm;
    margin: 1mm auto 1.5mm;
    background: var(--gold);
    border-radius: 20px;
}

.menu-header h1 {
    font-size: 25pt;
    line-height: 1;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.subtitle {
    margin-top: 1.5mm;
    color: var(--gold-light);
    font-size: 7pt;
    letter-spacing: 3px;
}

/* =========================
   KATEGÓRIÁK
========================= */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    align-items: start;
}

.category {
    background: rgba(5,5,5,.84);
    border-radius: 2.5mm;
    padding: 3mm 3.2mm;

    box-shadow: 0 4px 12px rgba(0,0,0,.38);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1.7mm;
    min-height: 10mm;
    margin-bottom: 2mm;
    padding-bottom: 1.7mm;
    border-bottom: .25mm solid rgba(216,155,69,.38);
}

.category-title h2 {
    flex: 1;
    color: var(--gold-light);
    font-size: 10pt;
    line-height: 1.05;
    letter-spacing: .7px;
}

.category-icon-img {
    width: 10mm;
    height: 10mm;
    flex: 0 0 10mm;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    background: #050505;
}

.category-unit {
    color: var(--gold-light);
    font-size: 6.5pt;
    white-space: nowrap;
}

/* =========================
   ITAL SOROK
========================= */

.drink {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 1.5mm;
    align-items: baseline;
    padding: .8mm 0;
    min-height: 5.2mm;
}

.drink .name {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 1.2mm;
    font-size: 7.4pt;
    line-height: 1.1;
    color: #f4f4f4;
}

.drink .name::after {
    content: none;

}

.drink .size {
    color: #cfcfcf;
    font-size: 6.6pt;
    white-space: nowrap;
}

.drink .price {
    color: var(--white);
    font-size: 7.4pt;
    font-weight: 600;
    white-space: nowrap;
}

.wine-subtitle {
    margin: 2mm 0 .5mm;
    color: var(--gold-light);
    font-size: 6.7pt;
    letter-spacing: .7px;
}

.note {
    margin-top: 2mm;
    color: #999;
    font-size: 5.7pt;
    line-height: 1.35;
}

/* =========================
   LÁBLÉC
========================= */

.menu-footer {
    text-align: center;
    padding: 3mm 0 0;
}

.footer-line {
    width: 48mm;
    height: .45mm;
    margin: 0 auto 1.8mm;
    background: var(--gold);
}

.menu-footer p {
    color: var(--gold-light);
    font-size: 7.5pt;
    letter-spacing: 2.2px;
    font-weight: 500;
}

.menu-footer span {
    display: block;
    margin-top: 1mm;
    color: #888;
    font-size: 5.5pt;
}

/* =========================
   TOP GOMB
========================= */

#topBtn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(216,155,69,.7);
    border-radius: 50%;
    background: rgba(15,15,15,.92);
    color: var(--gold-light);
    font-size: 20px;
    cursor: pointer;
    z-index: 50;
}

/* =========================
   KÉPERNYŐN: A4 ELŐNÉZET
========================= */

@media screen {
    body {
        padding: 15px 0;
    }
}

/* =========================
   NYOMTATÁS
========================= */

@media print {

    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        background: #080808 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .menu-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0;
        padding: 7mm 8mm 5mm;

        box-shadow: none;

        page-break-after: avoid;
        page-break-inside: avoid;
    }

    .category {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    #topBtn {
        display: none !important;
    }
}

/* =========================
   ÉTELEK - SZERKESZTHETŐ
========================= */

.food-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2mm;
    align-items: baseline;
    padding: .9mm 0;
    min-width: 0;
}

.food-name {
    grid-column: 1;
    font-size: 7.4pt;
    line-height: 1.15;
    color: #f4f4f4;
    font-weight: 500;
    min-width: 0;
}

.food-description {
    grid-column: 1;
    margin-top: .4mm;
    color: #cfcfcf;
    font-size: 6.2pt;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-item .price {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--white);
    font-size: 7.4pt;
    font-weight: 600;
    white-space: nowrap;
    align-self: center;
}
/* =========================================
   ÉTELEK - KÜLÖNÁLLÓ ALSÓ BOX
   ========================================= */

.food-box {
    width: 100%;
    box-sizing: border-box;
    margin: 4mm auto 0;
    padding: 5mm 6mm;

    background: transparent;

    border: .35mm solid var(--line);
    border-radius: 12px;

   box-shadow: 0 4px 12px rgba(0,0,0,.38);

}

.food-box .category-title {
    justify-content: center;
    margin-bottom: 5mm;
}

.food-box .category-title h2 {
    font-size: 18px;
    letter-spacing: 2px;
}

.food-box .category-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.food-box .food-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;

    padding: 4mm 2mm;

    border-bottom: 1px solid rgba(212, 168, 79, 0.25);
}

.food-box .food-item:last-child {
    border-bottom: none;
}

.food-box .food-name {
    font-size: 14px;
    font-weight: 600;
}

.food-box .food-description {
    grid-column: 1;
    font-size: 10px;
    opacity: 0.75;
    margin-top: 1mm;
}

.food-box .price {
    grid-column: 2;
    grid-row: 1 / span 2;

    align-self: center;

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================
   3 FÜGGETLEN OSZLOPOS ITALLAP
   ========================================= */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    align-items: start;
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 3mm;
    min-width: 0;
}

.menu-column .category {
    width: 100%;
    height: auto;
    margin: 0;
}


/* =========================================
   EGYOLDALAS A4 - KOMPAKT NYOMTATÁSI NÉZET
   ========================================= */

@media print {

    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .menu-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0;
        padding: 4mm 5mm 3mm;
        box-shadow: none;
        overflow: hidden;
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    /* Fejléc tömörítése */
    .menu-header {
        padding-bottom: 2mm;
    }

    .menu-logo {
        width: 36mm;
        height: 18mm;
        margin-bottom: .5mm;
    }

    .title-line {
        width: 30mm;
        margin: .5mm auto 1mm;
    }

    .menu-header h1 {
        font-size: 21pt;
    }

    .subtitle {
        margin-top: 1mm;
        font-size: 6.2pt;
    }

    /* 3 oszlop - kisebb hézag */
    .menu-grid {
        gap: 2mm;
    }

    .menu-column {
        gap: 2mm;
    }

    /* Kategóriák tömörítése */
    .category {
        padding: 2mm 2.5mm;
        border-radius: 2mm;
    }

    .category-title {
        gap: 1.3mm;
        min-height: 8mm;
        margin-bottom: 1.2mm;
        padding-bottom: 1.2mm;
    }

    .category-title h2 {
        font-size: 8.6pt;
        letter-spacing: .5px;
    }

    .category-icon-img {
        width: 8mm;
        height: 8mm;
        flex-basis: 8mm;
    }

    /* Ital sorok */
    .drink {
        padding: .35mm 0;
        min-height: 4.2mm;
        column-gap: 1mm;
    }

    .drink .name {
        font-size: 6.8pt;
        line-height: 1.05;
    }

    .drink .size {
        font-size: 6pt;
    }

    .drink .price {
        font-size: 6.8pt;
    }

    .wine-subtitle {
        margin: 1mm 0 .3mm;
        font-size: 6pt;
    }

    .note {
        margin-top: 1mm;
        font-size: 5pt;
        line-height: 1.2;
    }

    /* Ételek kompaktabb */
    .food-box {
        margin: 2mm auto 0;
        padding: 2.5mm 4mm;
        border-radius: 2mm;
    }

    .food-box .category-title {
        margin-bottom: 2mm;
    }

    .food-box .category-title h2 {
        font-size: 12pt;
        letter-spacing: 1.2px;
    }

    .food-box .category-icon-img {
        width: 9mm;
        height: 9mm;
    }

    .food-box .food-item {
        padding: 1.3mm 1mm;
    }

    .food-box .food-name {
        font-size: 8pt;
    }

    .food-box .food-description {
        font-size: 6.5pt;
        margin-top: .3mm;
    }

    .food-box .price {
        font-size: 8pt;
    }

    /* Lábléc */
    .menu-footer {
        padding-top: 1.5mm;
    }

    .menu-footer p {
        font-size: 6.5pt;
        letter-spacing: 1.5px;
    }

    .menu-footer span {
        margin-top: .5mm;
        font-size: 5pt;
    }
}


/* =====================================================
   SPIRIT SÖRÖZŐ - VÉGLEGES 3 OSZLOPOS ITALLAP
   ===================================================== */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
    align-items: start;
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
    min-width: 0;
}

.menu-column .category {
    width: 100%;
    height: auto;
    margin: 0;
}

/* A képernyős előnézetnél is egységesen kompakt */
.menu-page {
    padding-left: 5mm;
    padding-right: 5mm;
}

/* A4 - egyetlen nyomtatási oldal */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    .menu-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0 !important;
        padding: 4mm 5mm 3mm !important;
        box-shadow: none;
        overflow: hidden;
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    .menu-header {
        padding-bottom: 2mm;
    }

    .menu-logo {
        width: 36mm;
        height: 18mm;
        margin-bottom: .5mm;
    }

    .title-line {
        width: 30mm;
        margin: .5mm auto 1mm;
    }

    .menu-header h1 {
        font-size: 21pt;
    }

    .subtitle {
        margin-top: 1mm;
        font-size: 6.2pt;
    }

    .menu-grid {
        gap: 2mm;
    }

    .menu-column {
        gap: 2mm;
    }

    .category {
        padding: 2mm 2.5mm;
        border-radius: 2mm;
    }

    .category-title {
        gap: 1.3mm;
        min-height: 8mm;
        margin-bottom: 1.2mm;
        padding-bottom: 1.2mm;
    }

    .category-title h2 {
        font-size: 9.6pt;
        letter-spacing: .5px;
    }

    .category-icon-img {
        width: 9mm;
        height: 9mm;
        flex-basis: 9mm;
    }

    .drink {
        padding: .35mm 0;
        min-height: 4.2mm;
        column-gap: 1mm;
    }

    .drink .name {
        font-size: 7.8pt;
        line-height: 1.05;
    }

    .drink .size {
        font-size: 6.6pt;
    }

    .drink .price {
        font-size: 7.5pt;
    }

    .wine-subtitle {
        margin: 1mm 0 .3mm;
        font-size: 6pt;
    }

    .note {
        margin-top: 1mm;
        font-size: 5pt;
        line-height: 1.2;
    }

    .food-box {
        margin: 2mm auto 0;
        padding: 2.5mm 4mm;
        border-radius: 2mm;
    }

    .food-box .category-title {
        margin-bottom: 2mm;
    }

    .food-box .category-title h2 {
        font-size: 12pt;
        letter-spacing: 1.2px;
    }

    .food-box .category-icon-img {
        width: 9mm;
        height: 9mm;
    }

    .food-box .food-item {
        padding: 1.3mm 1mm;
    }

    .food-box .food-name {
        font-size: 8pt;
    }

    .food-box .food-description {
        font-size: 6.5pt;
        margin-top: .3mm;
    }

    .food-box .price {
        font-size: 8pt;
    }

    .menu-footer {
        padding-top: 1.5mm;
    }

    .menu-footer p {
        font-size: 6.5pt;
        letter-spacing: 1.5px;
    }

    .menu-footer span {
        margin-top: .5mm;
        font-size: 5pt;
    }
}
/* =========================
   Vissza a főoldalra
   ========================= */

#topBtn {
    transform: rotate(-90deg);
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: var(--gold);
    color: white;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 20px rgba(216,155,69,.45);

    transition: .3s;

    z-index: 99999;
}

#topBtn:hover {
    transform: translateY(-4px) rotate(-90deg)
}
/* =========================================
   SPIRIT SÖRÖZŐ - MOBIL NÉZET
   ========================================= */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body {
        background:
            linear-gradient(rgba(0,0,0,.70), rgba(0,0,0,.78)),
            url("images/teglafal2-bg.png");

        background-size: 600px;
        background-position: center top;
        background-attachment: scroll;
        overflow-x: hidden;
    }

    /* =========================
       TELJES ITALLAP
    ========================= */

    .menu-page {
        width: 100%;
        min-width: 0;
        min-height: 100vh;

        margin: 0;
        padding: 18px 12px 30px;

        box-shadow: none;
    }

    /* =========================
       FEJLÉC
    ========================= */

    .menu-header {
        padding-bottom: 18px;
    }

    .menu-logo {
        width: 145px;
        height: auto;
    }

    .menu-header h1 {
        font-size: 25px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    /* =========================
       KATEGÓRIÁK
       EGYMÁS ALATT
    ========================= */

    .menu-grid {
        display: flex !important;
        flex-direction: column !important;

        width: 100%;
        min-width: 0;

        gap: 14px;
    }

    .menu-column {
        display: flex !important;
        flex-direction: column !important;

        width: 100%;
        min-width: 0;

        gap: 14px;
    }

    .menu-column .category,
    .menu-grid > .category {

        width: 100% !important;
        min-width: 0;

        grid-column: auto !important;
        grid-row: auto !important;

        margin: 0;
    }

    .category {
        width: 100% !important;
        min-width: 0;

        padding: 14px 12px;
        border-radius: 12px;
    }

    /* =========================
       KATEGÓRIA FEJLÉC
    ========================= */

    .category-title {
        min-height: auto;

        margin-bottom: 10px;
        padding-bottom: 9px;

        gap: 9px;
    }

    .category-title h2 {
        font-size: 17px;
        line-height: 1.1;
    }

    .category-icon-img {
        width: 40px;
        height: 40px;

        flex: 0 0 40px;
    }

    /* =========================
       NORMÁL ITALSOR
    ========================= */

    .drink {
        width: 100%;
        min-width: 0;

        padding: 5px 0;
        min-height: 30px;
    }

    .drink .name {
        min-width: 0;

        font-size: 13px;
        line-height: 1.2;
    }

    .drink .size {
        font-size: 11px;
        white-space: nowrap;
    }

    .drink .price {
        font-size: 13px;
        white-space: nowrap;
    }

    /* =========================
       2 ÁRAS SOR
       RÖVIDITAL / BOR
    ========================= */

    .drink-2-price {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            34px
            42px !important;

        column-gap: 2px;

        align-items: baseline;
    }

    /* =========================
       3 ÁRAS SOR
       CSAPOLT SÖR
    ========================= */

    .drink-3-price {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            30px
            30px
            40px !important;

        column-gap: 2px;

        align-items: baseline;
    }

    /* =========================
       OSZLOPFEJ - 2 ÁR
    ========================= */

    .size-header-2 {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            42px
            48px !important;

        column-gap: 6px;
    }

    /* =========================
       OSZLOPFEJ - 3 ÁR
    ========================= */

    .size-header-3 {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            42px
            42px
            48px !important;

        column-gap: 4px;
    }

    .size-header {
        font-size: 10px;
    }

    .size-header span:not(:first-child) {
        text-align: center;
        white-space: nowrap;
    }

    /* =========================
       ALKATEGÓRIÁK
    ========================= */

    .wine-subtitle {
        margin: 12px 0 5px;

        font-size: 12px;
        line-height: 1.2;
    }

    /* =========================
       MEGJEGYZÉSEK
    ========================= */

    .note {
        margin-top: 8px;

        font-size: 9px;
        line-height: 1.4;
    }

    /* =========================
       ÉTELEK
    ========================= */

    .food-box {
        width: 100%;
        min-width: 0;

        margin-top: 14px;
        padding: 14px;
    }

    .food-box .category-title h2 {
        font-size: 18px;
    }

    .food-box .category-icon-img {
        width: 40px;
        height: 40px;
    }

    .food-box .food-item {
        padding: 11px 4px;
    }

    .food-box .food-name {
        font-size: 14px;
    }

    .food-box .food-description {
        font-size: 10px;
    }

    .food-box .price {
        font-size: 14px;
    }

    /* =========================
       LÁBLÉC
    ========================= */

    .menu-footer {
        padding-top: 20px;
    }

    .menu-footer p {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .menu-footer span {
        font-size: 9px;
    }

}
