/* ================= BODY & FONT ================= */
body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px;
}

/* ================= DARK MODE BASE ================= */
body.theme-dark {
    background: #121212;
    color: #eaeaea;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #ffffffcc;
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

body.theme-dark .navbar {
    background: rgba(20,20,20,0.9);
    box-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.navbar .btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0a1f44;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.3);
}

body.theme-dark .navbar-brand {
    color: #ffb400;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
}

.navbar-brand:hover {
    color: #1a3a7a;
}

body.theme-dark .navbar-brand:hover {
    color: #ffc83d;
}

/* ================= BUTTONS ================= */
.btn {
    border-radius: 50px !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

.btn-primary {
    background: #ffb400 !important;
    border: none !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #ffa000 !important;
}

.btn-outline-primary {
    border-color: #ffb400 !important;
    color: #ffb400 !important;
}

.btn-outline-primary:hover {
    background: #ffb400 !important;
    color: #fff !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:hover {
    background: #6c757d !important;
    color: #fff !important;
}

body.theme-dark .btn-outline-secondary {
    color: #ccc !important;
    border-color: #555 !important;
}

.btn-success {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

.btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* ================= SEKCIE ================= */
.section {
    padding: 80px 0;
}

.section h2 {
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

body.theme-dark .section h2 {
    color: #ffb400;
}

/* ================= KARTY PRODUKTOV ================= */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

body.theme-dark .card {
    background: #1e1e1e;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Logo výrobcu */
.logo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background: #fff;
    z-index: 10;
    padding: 5px;
}

body.theme-dark .logo-badge {
    background: #222;
    border-color: #333;
}

.card-body h5 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #0a1f44;
}

body.theme-dark .card-body h5 {
    color: #ffb400;
}

.card-body p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

body.theme-dark .card-body p {
    color: #bbb;
}

.card-footer {
    background: transparent;
    border-top: none;
}

/* ================= VÝHODY ================= */
.section.bg-white {
    background: #fff;
}

body.theme-dark .section.bg-white {
    background: #181818;
}

.section.bg-white h4 {
    color: #0a1f44;
}

body.theme-dark .section.bg-white h4 {
    color: #ffb400;
}

.section.bg-white p {
    color: #555;
}

body.theme-dark .section.bg-white p {
    color: #bbb;
}

/* ================= CTA ================= */
.section.bg-dark {
    background: #0a1f44;
    color: #fff;
    text-align: center;
}

body.theme-dark .section.bg-dark {
    background: #000;
}

/* ================= FOOTER ================= */
.footer {
    background: #0a1f44;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

body.theme-dark .footer {
    background: #000;
    color: #888;
}

/* ================= ANIMÁCIE ================= */
@keyframes fadeInDown {
    from {opacity:0; transform: translateY(-30px);}
    to {opacity:1; transform: translateY(0);}
}

@keyframes fadeInUp {
    from {opacity:0; transform: translateY(30px);}
    to {opacity:1; transform: translateY(0);}
}

/* ================= SHOP ================= */
.badge-typ{
    background: #1a73e8 !important;
    color:#fff !important;
    font-size:0.75rem !important;
    padding:0.35em 0.7em !important;
    border-radius:999px !important;
}

.small-muted{
    color: #6c757d !important;
    font-size:0.9rem !important;
}

body.theme-dark .small-muted{
    color: #aaa !important;
}

.empty-box{
    background: #fff !important;
    padding:60px !important;
    border-radius:20px !important;
    text-align:center !important;
    box-shadow:0 10px 25px rgba(0,0,0,.05) !important;
}

body.theme-dark .empty-box{
    background: #1e1e1e !important;
    box-shadow:0 10px 30px rgba(0,0,0,.8) !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    #product-list .row > .col-12,
    #product-list .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ================= RESPONSIVE - NAVBAR (MOBILE) ================= */
@media (max-width: 768px) {

    /* Zbalenie navbaru a rozloženie prvkov do dvoch riadkov */
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar .d-flex {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .navbar-brand {
        font-size: 2rem;
        flex: 0 0 100%;
        text-align: center;
    }

    /* Zmenšenie tlačidiel, aby sa zmestili */
    .navbar .btn {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.9rem !important;
    }

    /* Dropdown - aby nevyčnieval a text sa zalamoval */
    .dropdown-toggle {
        white-space: normal;
        text-align: center;
    }

    .dropdown-menu {
        min-width: 120px;
        max-width: 90vw;
        word-break: break-word;
    }

    /* Zmenšenie ikon v dropdown (ak treba) */
    .navbar .btn i {
        font-size: 1rem;
    }

    /* Theme button - aby sa text nezobrazoval príliš dlhý */
    #themeToggle {
        white-space: nowrap;
    }

    /* Dropdown flex fix */
    .dropdown {
        flex: 0 0 auto;
    }
}
