/*
Theme Name: Platforma Matka (Tailwind)
Description: Motyw bazowy dla systemu Multitenant
Version: 1.0.0
Author: Ty
*/

.entry-header{
	display: none;
}

/* WordPress Menu Fix - bo WP generuje swoje <ul> i <li>, do których trudno dodać klasy Tailwinda bez ingerencji w PHP */
.main-navigation ul {
    @apply flex gap-6 list-none m-0 p-0; /* To zadziałałoby w kompilacji, ale dla CDN musimy użyć zwykłego CSS udającego Tailwinda */
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* =========================================
   SMOOTH SCROLL & HEADER FIX
   ========================================= */

/* 1. Włączamy płynne przewijanie dla całej strony */
html {
    scroll-behavior: smooth;
}

/* 2. Naprawiamy problem ucinania treści przez przyklejony nagłówek */
/* Działa to tak: każdy element z ID (np. #how-it-works) będzie miał wirtualny margines od góry */
section[id], 
div[id] {
    scroll-margin-top: 100px; /* 80px (wysokość nagłówka) + 20px (oddechu) */
}

/* Opcjonalnie: Jeśli użytkownik ma wyłączone animacje w systemie (Dostępność), szanujemy to */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   WOOCOMMERCE ACCOUNT & FORMS (Tailwind-like)
   ========================================= */

/* Kontener My Account */
.woocommerce-account .woocommerce {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Układ Kolumn na stronie logowania */
.woocommerce-account .u-columns, 
.woocommerce-account .u-column1, 
.woocommerce-account .u-column2 {
    width: 100%; 
    display: block;
}

@media (min-width: 768px) {
    .woocommerce-account .u-columns {
        display: flex;
        gap: 40px;
    }
    .woocommerce-account .u-column1, 
    .woocommerce-account .u-column2 {
        width: 48%;
    }
    /* Kreska oddzielająca (jeśli są dwie kolumny) */
    .woocommerce-account .u-column1 {
        border-right: 1px solid #eee;
        padding-right: 40px;
    }
}

/* Nagłówki formularzy */
.woocommerce h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* Pola tekstowe (Inputy) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px; /* Rounded-lg */
    background-color: #f9fafb; /* Gray-50 */
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); /* Ring effect */
    background-color: #fff;
}

/* Etykiety (Labels) */
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4b5563; /* Gray-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Przyciski (Logowanie / Rejestracja) */
.woocommerce button.button.woocommerce-form-login__submit,
.woocommerce button.button.woocommerce-form-register__submit {
    width: 100%;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
    padding: 15px;
    border-radius: 9999px; /* Rounded-full */
    margin-top: 10px;
    transition: background 0.3s;
}

.woocommerce button.button:hover {
    background-color: var(--color-accent);
}

/* Checkbox (Zapamiętaj mnie) */
.woocommerce-form-login__rememberme {
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Nawigacja w panelu klienta (Dashboard) */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #eee;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 15px 20px;
    color: var(--color-primary);
    font-weight: 600;
    transition: background 0.2s;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
    background-color: #f3f4f6;
    color: var(--color-accent);
}

/* Komunikaty błędów Woo */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    list-style: none;
}
.woocommerce-error { background-color: #ef4444; } /* Red */
.woocommerce-info { background-color: #3b82f6; } /* Blue */
.woocommerce-message { background-color: #10b981; } /* Green */

/* =========================================
   MENU GŁÓWNE - STYLIZACJA PREMIUM
   ========================================= */

/* 1. Reset i układ */
#primary-menu ul {
    display: flex;
    gap: 40px; /* Odstęp między linkami */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 2. Wygląd linków (Tekst) */
#primary-menu a {
    position: relative; /* Konieczne dla animacji kreski */
    display: inline-block;
    padding: 10px 0;    /* Obszar kliknięcia */
    
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;     /* Szary (Slate-500) - wyjściowy */
    text-transform: none; /* Brak wymuszonego uppercase dla elegancji */
    letter-spacing: 0.01em;
    
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 3. Hover (Zmiana koloru tekstu) */
#primary-menu a:hover {
    color: var(--color-primary); /* Zmienia się na Ciemny Granat */
}

/* 4. ANIMACJA KRESKI (Underline) */
#primary-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;          /* Kreska na samym dole */
    width: 0;           /* Start: szerokość 0% */
    height: 2px;        /* Grubość kreski */
    
    background-color: var(--color-accent); /* Kolor Akcentu (Niebieski/Złoty) */
    
    transition: width 0.3s ease-in-out; /* Płynna animacja */
    border-radius: 2px;
}

/* Po najechaniu kreska rośnie do 100% */
#primary-menu a:hover::after {
    width: 100%;
}

/* 5. Stan aktywny (np. jesteś w zakładce Sklep) */
#primary-menu .current-menu-item > a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Kreska jest widoczna na stałe dla aktywnej strony */
#primary-menu .current-menu-item > a::after {
    width: 100%;
    background-color: var(--color-primary); /* Opcjonalnie: inny kolor dla aktywnego */
    opacity: 0.3; /* Delikatniejsza kreska dla aktywnego */
}


/* =========================================
   SIATKA PRODUKTÓW (WOOCOMMERCE)
   ========================================= */

/* 1. Kontener Siatki (Grid) */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile: 1 kolumna */
    gap: 24px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 kolumny */
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 kolumny */
    }
}

/* 2. Karta Produktu (Pojedynczy kafel) */
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid #f3f4f6; /* Gray-100 */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 !important; /* Reset marginesów Woo */
    width: 100% !important; /* Reset szerokości Woo */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* 3. Zdjęcie Produktu */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 300px; /* Stała wysokość dla równych kafelek */
    object-fit: cover; /* Obrazek wypełni obszar bez rozciągania */
    margin: 0 !important;
    display: block;
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05); /* Lekki zoom po najechaniu */
}

/* Link obejmujący obrazek (żeby zoom nie wychodził poza ramkę) */
.woocommerce ul.products li.product a:first-child {
    overflow: hidden;
    display: block;
}

/* 4. Tytuł Produktu */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937; /* Gray-800 */
    padding: 16px 16px 4px 16px;
    margin: 0;
}

/* 5. Cena */
.woocommerce ul.products li.product .price {
    padding: 0 16px;
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 16px;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af; /* Gray-400 */
    font-weight: normal;
    font-size: 0.85rem;
    margin-right: 5px;
    opacity: 0.7;
}

/* 6. Przycisk "Dodaj do koszyka" */
.woocommerce ul.products li.product .button {
    margin: auto 16px 16px 16px; /* Popycha przycisk na sam dół karty */
    display: block;
    text-align: center;
    background-color: #f3f4f6 !important; /* Szare tło domyślnie */
    color: #1f2937 !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

/* Ikona ładowania przycisku (gdy dodajesz do koszyka) */
.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Naprawa "Sale!" (Promocja) badge */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto; /* Reset */
    background-color: #ef4444; /* Red-500 */
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 10;
    min-height: auto;
    min-width: auto;
    line-height: normal;
}

/* =========================================
   TOOLBAR WOOCOMMERCE (Licznik + Sortowanie)
   ========================================= */

/* Kontener na pasek narzędzi */
/* Woo wrzuca te elementy luzem, więc używamy tricku z 'display: flex' na wrapperze (jeśli go dodaliśmy) 
   LUB po prostu floatujemy elementy, co jest standardem Woo. */

/* 1. Licznik wyników (Lewa strona) */
.woocommerce-result-count {
    float: left;
    margin: 0 0 30px 0;
    padding: 10px 0;
    color: #6b7280; /* szary */
    font-size: 0.9rem;
    font-weight: 500;
}

/* 2. Sortowanie (Prawa strona) */
.woocommerce-ordering {
    float: right;
    margin: 0 0 30px 0;
}

.woocommerce-ordering select {
    appearance: none; /* Usuwa domyślny styl przeglądarki */
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    transition: border 0.2s;
}

.woocommerce-ordering select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* =========================================
   TOOLBAR WOOCOMMERCE (Poprawka wyrównania)
   ========================================= */

/* 1. Licznik wyników (Lewa strona) */
.woocommerce-result-count {
    float: left;
    margin: 0;
    padding: 12px 0; /* Centrowanie względem dropdowna */
    color: #6b7280; 
    font-size: 0.9rem;
    font-weight: 500;
}

/* 2. Sortowanie (Prawa strona) */
.woocommerce-ordering {
    float: right;
    margin: 0 0 30px 0;
}

/* =========================================
   SIATKA PRODUKTÓW (GRID FIX - OSTATECZNY)
   ========================================= */

.woocommerce ul.products {
    /* KLUCZOWE ZMIANY: */
    clear: both;            /* Zmuś do zejścia pod floaty */
    width: 100% !important; /* Zmuś do zajęcia całej szerokości (to naprawi dziurę) */
    float: none !important; /* Wyłącz pływanie samej listy */
    display: block;         /* Reset dla pewności przed Gridem */
    
    /* Ustawienia Grida */
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-pagination{
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.page-numbers {
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.page-numbers .current{
	opacity: 0.75;
}

.page-numbers a:hover{
	color: var(--color-accent);
}


/* Responsywność kolumn */
@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}



/* =========================================
   SIDEBAR SIATKA SKLEPOWA
   ========================================= */
/* Przycisk resetu filtrów */
.wc-block-product-filters__overlay .wp-block-button__link{
	font-size: 14px !important;
}
.wc-block-product-filters__overlay .wp-block-button__link:hover{
	background-color: var(--color-primary) !important;
}

/* Usuwalne filtry - chips */
.wc-block-product-filter-removable-chips__item{
	border-radius: 8px !important;
}
.wc-block-product-filter-removable-chips__item button{
	 border-radius: 4px !important;
}




/* =========================================
   SINGLE PRODUCT PAGE STYLES
   ========================================= */

/* 1. Galeria Zdjęć */
.product-gallery-wrapper .woocommerce-product-gallery__image img {
    border-radius: 16px; /* Zaokrąglone rogi zdjęcia */
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* Ukrywamy zbędną lupkę Woo, jeśli chcemy czysty look (opcjonalnie) */
.woocommerce-product-gallery__trigger {
    display: none;
}

/* 2. Formularz Dodawania do Koszyka */
.custom-add-to-cart-wrapper form.cart {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Input Ilości (Quantity) */
.custom-add-to-cart-wrapper .quantity input.qty {
    width: 80px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Przycisk "Dodaj do koszyka" */
.custom-add-to-cart-wrapper button.single_add_to_cart_button {
    flex-grow: 1;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    border-radius: 8px;
    transition: all 0.3s;
}

.custom-add-to-cart-wrapper button.single_add_to_cart_button:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
}

/* Warianty (Jeśli masz produkt z wariantami np. Rozmiar) */
.variations td {
    padding-bottom: 15px;
}
.variations label {
    font-weight: bold;
    color: #6b7280;
    margin-right: 10px;
}
.variations select {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    min-width: 200px;
}

/* =========================================
   STRONA KOSZYKA (CART PREMIUM LAYOUT)
   ========================================= */

/* 1. GŁÓWNY UKŁAD (Desktop: Lewa/Prawa, Mobile: Pionowo) */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1024px) {
    .woocommerce-cart .woocommerce {
        flex-direction: row;
        align-items: flex-start; /* Ważne dla sticky */
    }
    
    /* Lewa kolumna (Lista produktów) */
    .woocommerce-cart .woocommerce-cart-form {
        flex: 1 1 65%; /* Zajmuje 65% szerokości */
        width: 100%;
    }
    
    /* Prawa kolumna (Podsumowanie) */
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 35%; /* Zajmuje 35% szerokości */
        position: sticky;
        top: 120px; /* Przykleja się pod nagłówkiem */
        width: 100%;
    }
}

/* 2. TABELA PRODUKTÓW */
.shop_table.cart {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 20px; /* Odstęp między wierszami */
    width: 100%;
}

/* Nagłówki tabeli (Ukrywamy na mobile dla czystości) */
.shop_table.cart thead {
    display: none; 
}
@media (min-width: 768px) {
    .shop_table.cart thead {
        display: table-header-group;
    }
    .shop_table.cart th {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #9ca3af; /* Gray-400 */
        font-weight: 700;
        letter-spacing: 0.05em;
        padding-bottom: 10px;
        border-bottom: 1px solid #f3f4f6;
    }
}

/* Wiersz produktu (Karta) */
.shop_table.cart tr.cart_item {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    display: block; /* Mobile: Karta */
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

@media (min-width: 768px) {
    .shop_table.cart tr.cart_item {
        display: table-row;
        background: transparent;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    .shop_table.cart td {
        padding: 20px 0;
        border-top: 1px solid #f3f4f6; /* Linia oddzielająca */
    }
    .shop_table.cart tr.cart_item:first-child td {
        border-top: none;
    }
}

/* Zdjęcie produktu */
.shop_table.cart td.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Nazwa produktu */
.shop_table.cart td.product-name a {
    font-weight: 700;
    color: #1f2937; /* Gray-800 */
    text-decoration: none;
    font-size: 1rem;
    display: block;
}
.shop_table.cart td.product-name a:hover {
    color: var(--color-accent);
}

/* Ilość (Input) */
.shop_table.cart .quantity input.qty {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Usuwanie (X) */
.shop_table.cart td.product-remove {
    width: 30px;
}
.shop_table.cart a.remove {
    color: #ef4444 !important; /* Red */
    background: #fee2e2;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    text-decoration: none;
}
.shop_table.cart a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

/* 3. KUPONY (Actions) */
td.actions {
    padding-top: 30px !important;
    border: none !important;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.coupon {
    display: flex;
    gap: 10px;
}
.coupon input.input-text {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 150px !important;
    outline: none;
}
.coupon button.button {
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s;
}
.coupon button.button:hover {
    background-color: #e5e7eb;
}

/* Przycisk "Zaktualizuj koszyk" - ukrywamy go domyślnie, bo Woo sam aktualizuje przy zmianie ilości, ale jeśli się pojawi, to stylujemy */
button[name="update_cart"] {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
button[name="update_cart"]:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* 4. PODSUMOWANIE (PRAWA KOLUMNA) */
.cart-collaterals .cart_totals {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.cart-collaterals h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 15px;
}

.cart-collaterals table.shop_table {
    width: 100%;
    margin-bottom: 25px;
}

.cart-collaterals table.shop_table th {
    text-align: left;
    padding: 15px 0;
    color: #6b7280;
    font-weight: 500;
}

.cart-collaterals table.shop_table td {
    text-align: right;
    padding: 15px 0;
    font-weight: 700;
    color: #1f2937;
}

.cart-collaterals .order-total th,
.cart-collaterals .order-total td {
    border-top: 1px solid #e5e7eb;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding-top: 20px;
}

/* Przycisk "Przejdź do płatności" */
.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 16px;
    border-radius: 99px; /* Pill shape */
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* PUSTY KOSZYK */
.cart-empty.woocommerce-info {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
    color: #6b7280;
    font-size: 1.2rem;
}

.return-to-shop a.button {
    margin-top: 20px;
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}


.wp-block-woocommerce-cart {
    max-width: 1535px;
    margin: 0 auto;
    padding-left: 15px; /* Odstęp od lewej krawędzi na mobile */
    padding-right: 15px; /* Odstęp od prawej krawędzi na mobile */
    width: 100%;
}

.wc-block-cart__submit-container a{
	 background-color: var(--color-primary) !important;
	color: white;
	border-radius: 14px;
}

.wc-block-cart__submit-container a:hover{
	 background-color: var(--color-accent) !important;
}

/* =========================================
   STRONA Kontakt
   ========================================= */

/* Fix dla hovera w Contact Form 7 */
p .custom-cf7-btn{
	 background-color: var(--color-primary) !important;
}
.custom-cf7-btn:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-2px); 
}


/* =========================================
   STRONA Kontakt
   ========================================= */
.woocommerce-MyAccount-content .woocommerce-Button{
	background-color: none !important;
}

.woocommerce-account .woocommerce {
    flex-direction: row;
}

@media (min-width: 768px) {
	.woocommerce-MyAccount-content{
		width: 75%;
	}
}

/* =========================================
   STRONA Zamówienie
   ========================================= */


.wp-block-woocommerce-checkout .wc-block-checkout{
    max-width: 1535px;
    margin: 0 auto;
    padding-left: 15px; /* Odstęp od lewej krawędzi na mobile */
    padding-right: 15px; /* Odstęp od prawej krawędzi na mobile */
    width: 100%;
}

.wc-block-components-checkout-place-order-button{
	 background-color: var(--color-primary) !important;
	color: white;
	border-radius: 14px;
}

.wc-block-components-checkout-place-order-button:hover{
	 background-color: var(--color-accent) !important;
}

/* =========================================
   STRONY PRAWNE (TYPOGRAFIA)
   ========================================= */

.legal-content {
    font-size: 1.05rem; /* Nieco większy tekst dla czytelności */
    line-height: 1.8;
    color: #374151; /* Gray-700 */
}

/* --- Nagłówki --- */
.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Paragrafy --- */
.legal-content p {
    margin-bottom: 20px;
}

/* --- Listy (Ważne w regulaminach) --- */
.legal-content ul, 
.legal-content ol {
    margin-bottom: 25px;
    padding-left: 25px; /* Wcięcie */
}

.legal-content ul {
    list-style-type: disc; /* Kropki */
}

.legal-content ol {
    list-style-type: decimal; /* Numerki */
}

.legal-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Zagnieżdżone listy */
.legal-content ul ul,
.legal-content ol ol {
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- Linki w tekście --- */
.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--color-primary);
}

/* --- Pogrubienia i wyróżnienia --- */
.legal-content strong, 
.legal-content b {
    font-weight: 700;
    color: #111827; /* Prawie czarny */
}

/* --- Tabele (jeśli wystąpią) --- */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.9rem;
}

.legal-content th {
    background-color: #f3f4f6;
    font-weight: 700;
    text-align: left;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.legal-content td {
    padding: 12px;
    border: 1px solid #e5e7eb;
}

/* =========================================
   SOCIAL LOGIN (Nextend Social Login)
   ========================================= */

/* Kontener przycisków */
.nsl-container[data-align="left"] {
    text-align: center !important;
/*     margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6; */
}

/* Układ przycisków */
.nsl-container-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stylizacja samego przycisku */
div.nsl-container .nsl-button {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important; /* Zaokrąglenie zgodne z Twoim inputami */
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    transition: transform 0.2s, opacity 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 0 !important;
}

/* Efekt hover */
div.nsl-container .nsl-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Google Button (Biały z ramką) */
div.nsl-container .nsl-button-google {
    background-color: #fff !important;
    color: #374151 !important; /* Szary tekst */
    border: 1px solid #e5e7eb !important;
	padding-left: 20px !important;
}

/* Facebook Button (Niebieski) */
div.nsl-container .nsl-button-facebook {
    background-color: #1877f2 !important;
    color: #fff !important;
    border: 1px solid #1877f2 !important;
}

/* Ikony wewnątrz przycisków */
div.nsl-container .nsl-button-svg-container {
    padding: 0 !important;
    margin-right: 10px !important;
    flex: 0 0 auto !important;
}



.object-cover {
    object-fit: contain !important;
}