/* =========================================================
🔷 GŁÓWNE ZMIENNE KOLORÓW (motyw strony)
========================================================= */
:root {
    --grafit: #2B2B2B;
    --czerwony: #C0392B;
    --niebieski: #3498DB;
    --jasne-tlo: #F4F4F4;
}

/* =========================================================
🔹 RESET / PODSTAWY TYPOGRAFII I UKŁADU
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--jasne-tlo);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
}

section {
    word-wrap: break-word;
}

/* =========================================================
🔹 PRZYCISKI I TEKSTY OGÓLNE
========================================================= */
.btn-outline-primary {
    border-width: 1.5px;
}

.card-title {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* =========================================================
🔹 NAGŁÓWEK (HEADER)
========================================================= */
header {
    background-color: #1f1f1f;
    border-bottom: 3px solid #c32b27;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1000;
}

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span {
    border-left: 5px solid var(--niebieski);
    padding-left: 12px;
}

.logo-img {
    width: 250px;
    object-fit: contain;
}

@media (max-width: 420px) {
    .logo-img {
        width: 180px;
    }
}

/* ---------- SLOGAN PRZY LOGO ---------- */
.header-logo-slogan {
    gap: 2.5rem;
    transition: color 0.3s ease;
}

.header-logo-slogan a:hover {
    color: #c32b27 !important;
}

.header-slogan {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    color: #cccccc;
    font-style: italic;
}

/* =========================================================
🔹 MENU NAWIGACYJNE (NAVBAR)
========================================================= */
.menu {
    background: none;
    position: relative;
}

.navbar-nav .nav-item {
    margin: 0 0.4rem;
}

.navbar-nav .nav-link {
    color: #eaeaea !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease-in-out;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid transparent;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(195, 43, 39, 0.25);
    border-left: 3px solid var(--czerwony);
}

.navbar-toggler {
    border: 2px solid var(--czerwony);
    border-radius: 6px;
}

.navbar-toggler-icon {
    filter: invert(100%);
}

@media (max-width: 991px) {
    .menu .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background-color: rgba(43, 43, 43, 0.95);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .navbar-nav .nav-item {
        margin: 0.35rem 0;
    }
}

/* =========================================================
🔹 SEKCJA "HOT OFFERS"
========================================================= */
.hot-offers .row {
    display: flex;
    flex-wrap: wrap;
}

.hot-offers .row.justify-center {
    justify-content: center;
}

.hot-offers .card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-offers .card img.card-img-top {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hot-offers .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    padding: 1rem;
}

.hot-offers .card-body .btn {
    margin-top: auto;
}

.hot-offers .card .list-unstyled.small {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.hot-offers .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* SZERSZE KARTY */
.hot-offers .row.g-3>[class*="col-"] {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

@media (max-width: 991px) {
    .hot-offers .row.g-3>[class*="col-"] {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 576px) {
    .hot-offers .row.g-3>[class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================================
🔹 PANEL OPINII - FIXED HEIGHT Z SCROLLEM
========================================================= */
/* USUNIĘTE: wszystkie stare style dla panelu opinii */

.user-reviews {
    height: auto;
}

#reviews-container {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar WebKit */
#reviews-container::-webkit-scrollbar {
    width: 6px;
}

#reviews-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

#reviews-container::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 992px) {
    #reviews-container {
        max-height: 300px !important;
    }
}

@media (max-width: 576px) {
    #reviews-container {
        max-height: 250px !important;
    }
}

/* =========================================================
🔹 STOPKA (FOOTER)
========================================================= */
footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    background: #111;
    color: #ddd;
}

/* Responsywność dla panelu opinii */
@media (max-width: 991px) and (min-width: 768px) {
    .user-reviews {
        height: auto !important;
        min-height: 500px;
    }

    #reviews-container {
        height: 1460px !important;
        max-height: 1460px !important;
    }
}

@media (max-width: 767px) {
    .user-reviews {
        min-height: 250px;
    }

    #reviews-container {
        height: 250px !important;
        max-height: 250px !important;
    }
}

.horizontal-offers-list .offer-item {
    transition: background-color 0.3s ease;
}

.horizontal-offers-list .offer-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .horizontal-offers-list .offer-item {
        flex-direction: column;
        text-align: center;
    }

    .horizontal-offers-list .offer-image {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .horizontal-offers-list .offer-actions {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
}