/* ============================================================ */
/* === KUL BUTTIK - ZOPTYMALIZOWANY CSS (NAJLEPSZE MOŻLIWE) == */
/* ============================================================ */

/* --- 1. USTAWIENIA PODSTAWOWE (BARDZO JASNE TŁO) --- */
:root {
    --color-primary: #00a326;
    --bg-body: #f8fcfb; /* Bardzo jasne, prawie białe, chłodne tło */
    --bg-footer: #1e293b;
    --royal-blue: #2563EB;
    --dark-text: #1e293b;
    --text-color-primary: #334155; /* Główny kolor tekstu */
}

body {
    background-color: var(--bg-body) !important;
    color: var(--dark-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- 2. ODBLOKOWANIE ZAZNACZANIA TEKSTU --- */
* {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* --- 3. MINIMALNE ODSTĘPY MIĘDZY ZDJĘCIAMI (1.5mm / 5px) --- */
.grid, .collection-list, .is-boxes, .row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px !important; /* Bardzo mały odstęp */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    justify-content: center; /* Wyśrodkowanie produktów */
}

.grid__item, .collection-item, .is-box, .product-item {
    padding: 10px !important;
    margin-bottom: 15px !important;
    background-color: #ffffff !important; /* Białe tło kafelka */
    border-radius: 4px !important;
}

/* --- 4. WYGLĄD PRODUKTÓW (CENY I NAZWY) --- */

/* Nazwy produktów */
.product-item .title, h3.title, .grid__item h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    color: var(--dark-text) !important; /* Użyj zmiennej dla spójności */
}

/* CENY - WIĘKSZE I GRUBSZE */
.product-price, .price, .current-price {
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #000000 !important; /* Czysta czerń dla ceny */
    display: block !important;
    margin-top: 2px !important;
}

/* Cena promocyjna (jeśli jest) */
.price--sale {
    color: #dc2626 !important; /* Czerwony */
}

/* --- 5. NAPRAWA MENU --- */
.nav-dropdown, .site-nav__dropdown, ul[x-show="open"] {
    min-width: 220px !important;
    white-space: nowrap !important;
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.nav-dropdown a, .site-nav__dropdown a, ul[x-show="open"] a {
    display: block !important;
    padding: 12px 25px !important;
    color: var(--text-color-primary) !important; /* Użyj zmiennej */
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-left: 3px solid transparent !important;
    transition: all 0.2s ease-in-out !important;
}

.nav-dropdown a:hover, .site-nav__dropdown a:hover, ul[x-show="open"] a:hover {
    background-color: #eff6ff !important;
    color: var(--royal-blue) !important; /* Użyj zmiennej */
    border-left: 3px solid var(--royal-blue) !important; /* Użyj zmiennej */
    padding-left: 30px !important;
    font-weight: 700 !important;
}

/* --- 6. NAPRAWA PRZYCISKÓW LOGOWANIA --- */
.login button, .login input[type="submit"], .login .btn {
    background-color: var(--royal-blue) !important; /* Użyj zmiennej */
    color: #ffffff !important;
    border: none !important;
    padding: 15px 0 !important;
    width: 100% !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer;
    margin-top: 10px !important;
}

.login a[href*="register"] {
    display: inline-block !important;
    width: auto !important;
    margin-top: 20px !important;
    padding: 10px 20px !important;
    background-color: #6c757d !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-size: 13px !important;
}

.login a[href*="recover"] {
    display: block !important;
    margin-bottom: 15px !important;
}

/* --- 7. STRZAŁKI NA ZDJĘCIACH (USUWANIE PODWÓJNYCH) --- */
.swiper-button-next::after, .swiper-button-prev::after {
    content: none !important;
}
.swiper-button-next, .swiper-button-prev {
    color: #2c3e50 !important;
    background: rgba(255,255,255,0.8) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ============================================= */
/* === GLOBALNA TYPOGRAFIA (PROFESJONALNA) ===== */
/* ============================================= */

/* 1. Ustawienie głównej czcionki */
body, p, a, li, div, input, button, h1, h2, h3, h4, h5, h6, span, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. Tekst podstawowy (czytelność) */
body, p, li, .rte {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--text-color-primary) !important;
}

/* 3. Nagłówki (Hierarchia) */
h1, .h1 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--dark-text) !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

h2, .h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--dark-text) !important;
    margin-bottom: 15px !important;
}

h3, .h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: var(--dark-text) !important; /* Dodany dla spójności */
}

/* 4. Linki i Menu */
a {
    text-decoration: none;
    transition: color 0.2s;
    color: var(--royal-blue); /* Domyślny kolor linków */
}
a:hover {
    color: var(--dark-text); /* Kolor linków po najechaniu */
}

.nav-dropdown a, .site-nav__dropdown a {
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* 5. Ceny (Muszą się wyróżniać!) */
.product-price, .price, .current-price {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    color: #000000 !important;
    letter-spacing: -0.5px;
}