@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
}

:root {
    --primary: #ffc107;
    /* �lt� (Akcent, Tla�idl�, �iara) */
    --accent: #d63384;
    /* Ru�ov�/�erven� pre ceny a ribbon */
    --dark: #1F456F;
    /* Tmavomodr� (pre tla�idl� a navig�ciu) */
    --dark-secondary: #002649;
    /* Najtmav� modr� podklad pre footer/hero */
    --bg: #f4f6f9;
    /* Svetl�c pozadie str�nky */
}

body {
    background-color: var(--bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 100px;
}

/* =========================================
   1. HERO HLAVI�KA
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(31, 69, 111, 0.4), rgba(0, 26, 51, 0.6)), url('../hastag_baner.jpg');
    background-image: linear-gradient(rgba(31, 69, 111, 0.4), rgba(0, 26, 51, 0.6)), image-set(url('../hastag_baner.webp') type('image/webp'), url('../hastag_baner.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px 100px 20px;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(rgba(31, 69, 111, 0.4), rgba(0, 26, 51, 0.6)), url('../hastag_baner-800.jpg');
        background-image: linear-gradient(rgba(31, 69, 111, 0.4), rgba(0, 26, 51, 0.6)), image-set(url('../hastag_baner-800.webp') type('image/webp'), url('../hastag_baner-800.jpg') type('image/jpeg'));
        background-size: cover;
        background-position: center;
    }
}


.logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--dark-secondary);
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    padding: 5px;
}

/* =========================================
   2. INFO KARTA & IKONY
   ========================================= */
.info-card {
    margin-top: -80px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 100;
    border-top: 5px solid var(--primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.about-pub {
    text-align: left;
}

.about-pub h2 {
    margin-top: 0;
}

.info-icons-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.info-icon-box {
    text-align: center;
    min-width: 70px;
}

.info-icon-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-icon-box div {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #444;
}

/* =========================================
   3. PROMO NOVINKA (FIX OREZANIA)
   ========================================= */
.promo-box {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.promo-media {
    height: 300px;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-media img,
.promo-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* FIX: Zabezpe�, �e sa ni� neore�e */
}

.promo-text {
    padding: 30px;
    text-align: center;
    /* FIX: Vycentrovan� text */
}

/* =========================================
   4. NAVIG�?CIA (STICKY TABS)
   ========================================= */
.cat-nav-wrapper {
    position: sticky;
    top: 10px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cat-nav {
    background: white;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 95%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-nav::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    border: 1px solid #eee;
    background: #f8f9fa;
    color: #555;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
    cursor: pointer;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: black;
    transform: scale(1.05);
    border-color: var(--primary);
}
.cat-btn-fav {
    color: #c92a2a;
}
.cat-btn-fav.active,
.cat-btn-fav:hover {
    background: #c92a2a;
    color: #fff;
    border-color: #c92a2a;
}

/* MOBILN�% �PRAVY PRE KATEG�"RIE (FIX: Grid namiesto scrollu) */
@media (max-width: 768px) {
    .cat-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        overflow-x: hidden;
        white-space: normal;
        padding: 10px;
        box-shadow: none;
        max-width: 95%;
        margin: 0 auto;
    }

    .cat-nav-wrapper {
        margin-top: 20px;
        max-width: 100%;
        display: block;
    }

    .cat-btn {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
}

/* =========================================
   5. KARTY PRODUKTOV
   ========================================= */
.menu-container {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.category-section.active {
    display: block;
}

.section-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    margin: 30px 0 20px;
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
}

.sub-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    margin: 20px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
}

.food-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--dark);
}

/* Karta */
.food-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fav-btn {
    position: static;
    z-index: 2;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #adb5bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 40px;
    appearance: none;
    line-height: 1;
    font-size: 1rem;
    vertical-align: middle;
}
.fav-btn:hover, .fav-btn.is-fav { color: #e03131; }
.fav-btn.is-fav { background: #fff5f5; border-color: #ffc9c9; }
.card-footer-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}
.card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.card-actions .btn-add {
    flex: 0 0 40px;
}

.food-card.closed-overlay {
    filter: none;
    opacity: 1;
}

.food-img-wrap {
    height: 200px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

/* Popis */
.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.food-desc {
    color: #545454;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.food-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stuha Novinka */
.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 35px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    letter-spacing: 1px;
}

/* =========================================
   6. MODAL & VARIANTY
   ========================================= */
.mod-group-title {
    color: var(--dark);
    border-bottom: 2px solid #eee;
}

.variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-label {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 12px 5px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    transition: 0.2s;
    font-size: 0.9rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* STACKED LAYOUT */
}

input[name="variant_id"]:checked+.variant-label {
    border-color: var(--primary);
    background: #fffbe6;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   7. PL�?VAJ�CI KO�ƛK & FOOTER
   ========================================= */
.footer {
    background: var(--dark-secondary);
    color: #dedede;
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 5px solid var(--primary);
}

.footer a {
    color: #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--primary);
}

.footer .text-secondary,
.footer .text-white-50,
.footer p,
.footer .small {
    color: #dedede !important;
}

.social-link {
    color: #f0f0f0;
    font-size: 1.8rem;
    margin-right: 15px;
    transition: 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.cart-icon-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1100;
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    border: 3px solid white;
    transition: transform 0.2s;
}

/* =========================================
   8. HORNÁ KONTAKTNÁ LIŠTA (TOP BAR)
   ========================================= */
.top-contact-bar {
    background: #091a2f;
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 2px solid var(--primary);
    position: relative;
    z-index: 1020;
}
.top-contact-bar a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
}
.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}
.topbar-logout-btn {
    background: #dc3545;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 13px;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.35);
    text-decoration: none;
}
.topbar-logout-btn:hover {
    background: #bb2d3b;
    transform: translateY(-1px);
    color: #fff !important;
}
.topbar-call-btn {
    background: #198754;
    color: #fff !important;
    padding: 4px 13px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.35);
    text-decoration: none;
}
.topbar-call-btn:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.55);
    color: #fff !important;
}
.topbar-contact-btn {
    background: var(--primary);
    color: #000 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 13px;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    cursor: pointer;
}
.topbar-contact-btn:hover {
    background: #ffcd39;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}
.topbar-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    transition: transform 0.2s, background 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
}
.topbar-social-btn:hover {
    transform: translateY(-1px) scale(1.08);
    color: #fff !important;
}
.topbar-social-btn.facebook:hover {
    background: #1877f2;
}
.topbar-social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
@media (max-width: 767.98px) {
    .top-contact-bar {
        padding: 6px 0;
    }
    .topbar-inner {
        gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .topbar-left,
    .topbar-actions {
        gap: 6px;
    }
    .topbar-label {
        display: none !important;
    }
    .topbar-name {
        display: inline;
        max-width: 6.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .topbar-call-btn,
    .topbar-contact-btn:not(.topbar-account-btn),
    .topbar-logout-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border-radius: 50%;
    }
    .topbar-account-btn {
        height: 36px;
        min-height: 36px;
        width: auto;
        max-width: 110px;
        padding: 0 8px;
        border-radius: 50px;
    }
    .topbar-social-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}
