/* --- GLOBALNE STYLE --- */

/* --- SKIP NAV (dostępność) --- */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

/* --- FOCUS STYLES (dostępność) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

:root {
    --fv-glass-bg: transparent;
    --fv-glass-blur: 0px;
    --fv-glass-border: transparent;
    --header-bg: #3E0013;
    --burgundy: #5D001E;
    --gold: #D4AF37;
    --gold-hover: #F2C94C;
    --dark-bg: #F7F4F2;
    --text-main: #1a1a1a;
    --drawer-bg: #0b2e1e;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F7F4F2;
    color: #1a1a1a;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; }
* { box-sizing: border-box; }

/* --- WSPÓLNY "GLASS" --- */
.fv-glass {
    background: var(--fv-glass-bg);
    border: 1px solid var(--fv-glass-border);
    backdrop-filter: blur(var(--fv-glass-blur));
    -webkit-backdrop-filter: blur(var(--fv-glass-blur));
}

/* --- BACKGROUND SLIDER (usunięty) --- */

/* --- MODALE SYSTEMOWE --- */
#modal-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 5500; backdrop-filter: blur(5px); }

/* WIEK */
#age-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 9999; display: none; justify-content: center; align-items: center; flex-direction: column; }
.age-box { background: white; color: #333; padding: 40px; border-top: 5px solid var(--gold); border-radius: 8px; text-align: center; max-width: 500px; width: 90%; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.age-btn { background: var(--burgundy); color: white; border: none; padding: 12px 40px; font-weight: bold; font-size: 1rem; border-radius: 5px; transition: 0.3s; margin-top: 20px; cursor: pointer; }
.age-btn:hover { background: var(--header-bg); }

/* COOKIES */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 1px solid var(--gold);
    padding: 20px;
    z-index: 9000;
    color: #ccc;
    font-size: 0.9rem;
    display: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
}
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;}
.cookie-link { color: var(--gold); text-decoration: underline; }
.cookie-btn { background: var(--gold); color: black; border: none; padding: 8px 25px; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.cookie-btn:hover { background: white; }

/* LOGOWANIE */
#login-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 40px; z-index: 6000; border-radius: 10px; text-align: center; width: 300px; color: #333; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.login-input { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; }

/* --- STYL MODALA B2B --- */
#b2b-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6000;
    width: 500px;
    max-width: 90%;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, #3E0013, #5D001E);
    color: white;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
}
.b2b-modal-header { background: var(--burgundy); padding: 20px; font-size: 1.5rem; font-weight: bold; color: var(--gold); text-align: center; }
.b2b-options { display: flex; gap: 20px; padding: 30px; }
.b2b-card { flex: 1; background: #333; padding: 20px; border-radius: 10px; cursor: pointer; transition: 0.3s; border: 1px solid #444; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-decoration: none; color: white; }
.b2b-card:hover { transform: translateY(-5px); border-color: var(--gold); background: #3a3a3a; }
.b2b-card i { font-size: 2.5rem; color: var(--gold); }
.b2b-card span { font-weight: bold; font-size: 1.1rem; }

/* --- HEADER --- */
header {
    background-color: var(--header-bg);
    background-image:
        linear-gradient(rgba(62,0,19,0.65), rgba(62,0,19,0.55)),
        url("../tlo.webp");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;

    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    width: 100%;
}
.logo-container img { height: 42px; width: auto; display: block; }
.header-right-actions { display: flex; align-items: center; gap: 12px; }
.login-trigger { display: flex; align-items: center; gap: 6px; color: var(--gold); cursor: pointer; font-weight: 500; font-size: 0.82rem; text-decoration: none; }
.login-trigger:hover { color: white; }

/* PRZYCISK B2B W NAGŁÓWKU */
.b2b-header-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 0;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
}
.b2b-header-btn:hover { background: var(--gold); color: black; }

/* --- MENU (MEGA MENU) --- */
nav.main-nav {
    background-image:
        linear-gradient(rgba(62,0,19,0.55), rgba(62,0,19,0.65)),
        url("../tlo.webp");
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 60px;
    z-index: 990;
    width: 100%;
}
.menu-bar { display: flex; justify-content: center; gap: 24px; padding: 0 20px; }
.menu-item { position: relative; padding: 8px 0; }
.menu-link { display: block; padding: 0 8px; color: #ccc; font-weight: 400; text-transform: none; font-size: 0.8rem; letter-spacing: 0; }
.menu-item:hover .menu-link { color: var(--gold); }

/* Dropdown Logic */
.dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #1f1f1f; padding: 18px 24px; border-top: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.9); z-index: 2000; width: 70vw; max-width: 800px; }
.menu-item:hover .dropdown { display: grid; }
.mega-grid { display: grid; gap: 18px; }
.column h4 { color: var(--gold); border-bottom: 1px solid #444; padding-bottom: 6px; margin-bottom: 10px; margin-top: 0; font-size: 0.8rem; }
.column ul li { margin-bottom: 5px; font-size: 0.82rem; color: #aaa; cursor: pointer; }
.column ul li:hover { color: white; padding-left: 5px; transition: 0.2s; }
.column ul li a { display: block; width: 100%; }

/* --- MESSAGES (ALERTY) --- */
.messages-container { position: fixed; top: 110px; right: 20px; z-index: 1100; max-width: 400px; }
.alert { padding: 15px 20px; margin-bottom: 10px; border-radius: 5px; color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: slideIn 0.5s ease-out; display: flex; align-items: center; gap: 10px; }
.alert-success { background-color: #27ae60; border-left: 5px solid #1e8449; }
.alert-error { background-color: #c0392b; border-left: 5px solid #922b21; }
.alert-info { background-color: #2980b9; border-left: 5px solid #1f618d; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- FOOTER --- */
footer { background: linear-gradient(135deg, #3E0013, #5D001E); color: #ccc; text-align: center; padding: 30px 20px; font-size: 0.8rem; border-top: 2px solid var(--gold); position: relative; z-index: 10; margin-top: auto; }
footer a { color: #ddd; }
footer a:hover { color: var(--gold); }

/* --- MOBILE BOTTOM NAV --- */
.fv-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: rgba(0,0,0,0.92);
    border-top: 1px solid rgba(212,175,55,0.35);
    z-index: 1200;
    align-items: center;
    justify-content: space-around;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
}
.fv-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    color: #cfcfcf;
    font-size: 0.72rem;
    letter-spacing: 0.2px;
    padding: 6px 6px;
    border-radius: 10px;
}
.fv-bottom-nav a i { font-size: 1.2rem; color: var(--gold); }
.fv-bottom-nav a:hover { color: white; background: rgba(255,255,255,0.06); }
.fv-bottom-nav a.active { color: white; background: rgba(255,255,255,0.08); }
.fv-bottom-nav a.active i { color: var(--gold-hover); }

/* --- UX FIXES --- */
@media (max-width: 900px) {
    #cookie-banner { padding-bottom: 90px; }
}
body.fv-hide-bottom-nav .fv-bottom-nav { display: none !important; }

@media (max-width: 900px) {
    nav.main-nav { display: none; }
    body { padding-bottom: 72px; }
    .messages-container { top: 95px; right: 10px; left: 10px; max-width: none; }
    .fv-bottom-nav { display: flex; }

    header { height: 56px; padding: 8px 14px; }
    .logo-container img { height: 52px; }
    .header-right-actions { gap: 10px; }
    .b2b-header-btn { padding: 7px 10px; border-radius: 16px; font-size: 0.85rem; margin-right: 0; }
    .login-trigger span { display: none; }
}
