/* Ogólne resetowanie i typografia */
body {
    font-family: 'Cormorant Garamond', serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #5a4b41;
    font-weight: 500;
    margin-bottom: 10px;
}

p {
    font-size: 1.05rem;
    color: #444;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER I TOPBAR */
header {
    background-color: #ffffff;
    padding: 40px 0 20px;
    border-bottom: 1px solid #eaeaea;
}

.topbar {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    font-size: 18px;
    color: #5a4b41;
}

.social-icons a:hover {
    color: #8a6f58;
}

.slogan {
    flex: 1;
    text-align: center;
    font-size: 1.6rem;
    margin: 0;
}

/* MENU GŁÓWNE */
.menu {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu li {
    position: relative;
}

.menu a {
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.menu a:hover {
    color: #8a6f58;
    border-bottom: 2px solid #8a6f58;
}

/* MEGA MENU */
.mega-menu {
    display: none;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -10px);
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 800px;
    gap: 30px;
    border-radius: 8px;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mega-menu.visible,
.dropdown:hover .mega-menu {
    display: flex;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.mega-menu .mega-column {
    flex: 1;
}

.mega-menu .mega-column h3 {
    font-size: 15px;
    color: #5a4b41;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mega-menu ul {
    list-style: none;
    padding: 0;
}

.mega-menu ul li {
    margin-bottom: 8px;
}

.mega-menu ul li a {
    font-size: 13px;
    color: #444;
    transition: color 0.3s ease-in-out;
}

.mega-menu ul li a:hover {
    color: #8a6f58;
}

/* SEKCJA KATEGORII */
.category {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.category img {
    max-width: 250px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category div {
    flex: 1;
    padding: 0 20px;
}

.category h2 {
    font-size: 1.8rem;
}

.category p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* CTA BUTTON */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    background-color: #5a4b41;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #8a6f58;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: scale(0.95);
    background-color: #5a4b41;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#caption {
    color: white;
    margin-top: 15px;
    font-size: 18px;
    text-align: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    font-family: 'Cormorant Garamond', serif;
    color: #5a4b41;
    font-size: 0.95rem;
}
.footer-wrapper {
    width: 100%;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #5a4b41;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #444;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #8a6f58;
}

.footer-column p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.footer-column p strong {
    color: #5a4b41;
}

.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    margin-top: 30px;
    color: #777;
}

/* RESPONSYWNOŚĆ DLA STOPKI */
@media (max-width: 900px) {
    .footer-columns {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column ul {
        text-align: center;
    }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .category {
        flex-direction: column;
        text-align: center;
    }

    .category img {
        margin-bottom: 20px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu li {
        margin-bottom: 10px;
    }

    .mega-menu {
        flex-direction: column;
        width: 100%;
        padding: 10px;
        transform: none !important;
        left: 0 !important;
    }

    .dropdown:hover .mega-menu {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
}