/**
 * SHARPI Theme - Poprawki z raportu UX/UI
 * @version 2.0.5
 * 
 * Ten plik zawiera WSZYSTKIE wizualne poprawki z raportu:
 * 1. Ukrycie FOX v.1.4.4
 * 2. Sticky header kompaktowy
 * 3. Jednolite karty produktów
 * 4. Komunikaty zaufania
 * 5. Poprawki breadcrumbs (bez duplikacji)
 * 6. Usunięcie ikon odcisku palca
 * 7. Optymalizacje mobilne
 * 8. Ulepszona typografia
 */

/* ==========================================================================
   1. UKRYCIE FOX v.1.4.4 i innych elementów developerskich
   ========================================================================== */

/* Ukryj label FOXS/WOOCS currency switcher */
.woocs_style_1 .woocs-style-1-code:before,
.woocs_label,
.woocs-style-1-code:before,
[class*="woocs-label"],
[class*="fox-label"],
.fox-version,
.woocs-version,
.dd-selected:before,
.dd-container .dd-selected:before {
    display: none !important;
    content: none !important;
}

/* Ukryj wszelkie teksty "FOX" lub "v.1.4.4" */
body *[class*="fox-version"],
body *[class*="currency-label"],
.woocs_style_1::before,
.woocs_style_1::after {
    display: none !important;
}

/* ==========================================================================
   2. STICKY HEADER - wersja kompaktowa po przewinięciu
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    transition: all 0.3s ease;
}

/* Kompaktowy header po przewinięciu */
.site-header.is-scrolled {
    padding: 10px 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.site-header.is-scrolled .site-logo img {
    max-height: 40px !important;
}

.site-header.is-scrolled .header-content {
    gap: 15px;
}

/* Top bar ukrywany na scroll */
.top-bar {
    transition: all 0.3s ease;
}

body.scrolled .top-bar {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

/* ==========================================================================
   3. JEDNOLITE KARTY PRODUKTÓW - stałe proporcje i design
   ========================================================================== */

/* Siatka produktów */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
}

/* Reset WooCommerce domyślnych stylów */
ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* Karta produktu */
li.product {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 16px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: rgba(247, 148, 29, 0.3);
}

/* Obrazek produktu - stałe proporcje 1:1 */
li.product .woocommerce-loop-product__link img,
li.product a img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: linear-gradient(180deg, #fafafa, #f3f4f6);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 12px;
}

/* Nazwa produktu - max 2 linie */
li.product .woocommerce-loop-product__title,
li.product h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    color: #111 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* Cena */
li.product .price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #f7941d !important;
    margin: 0 0 12px !important;
}

li.product .price del {
    color: #999 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

li.product .price ins {
    text-decoration: none !important;
}

/* Przycisk Dodaj do koszyka */
li.product a.button,
li.product .add_to_cart_button,
li.product button.button {
    width: 100% !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #f7941d, #ff6b00) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 6px 15px rgba(247, 148, 29, 0.25) !important;
    margin-top: auto !important;
}

li.product a.button:hover,
li.product .add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(247, 148, 29, 0.35) !important;
}

/* Badge Nowość/Bestseller/Promocja */
li.product .onsale,
.woocommerce span.onsale {
    background: linear-gradient(135deg, #f7941d, #ff6b00) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3) !important;
}

/* ==========================================================================
   4. KOMUNIKATY ZAUFANIA przy produktach
   ========================================================================== */

.sharpi-trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.sharpi-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.sharpi-trust-badge i {
    color: #f7941d;
    font-size: 16px;
}

/* Komunikaty zaufania przy koszyku */
.woocommerce-checkout .sharpi-trust-badges,
.woocommerce-cart .sharpi-trust-badges {
    background: #fff;
    border: 2px solid #e8f5e9;
    padding: 20px;
}

/* ==========================================================================
   5. BREADCRUMBS - poprawka duplikacji
   ========================================================================== */

/* Ukryj zduplikowane breadcrumbs */
.woocommerce-breadcrumb + .woocommerce-breadcrumb,
nav.woocommerce-breadcrumb + nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Styl breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding: 12px 0;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-breadcrumb a:hover {
    color: #f7941d;
}

.woocommerce-breadcrumb i {
    margin: 0 8px;
    font-size: 10px;
    color: #ccc;
}

/* ==========================================================================
   6. USUNIĘCIE IKON ODCISKU PALCA / dziwnych dekoracji
   ========================================================================== */

/* Usuń wszelkie ikony odcisku palca, fingerprint, itp. */
[class*="fingerprint"],
[class*="odcisk"],
.fingerprint-icon,
.thumb-icon,
.decorative-thumb,
.product-thumb-icon:not(img) {
    display: none !important;
}

/* ==========================================================================
   7. OPTYMALIZACJE MOBILNE
   ========================================================================== */

@media (max-width: 992px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Siatka produktów - 2 kolumny */
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    /* Mniejsze karty */
    li.product {
        padding: 12px;
        border-radius: 12px;
    }
    
    li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 36px;
    }
    
    li.product .price {
        font-size: 16px !important;
    }
    
    /* Top bar na mobile */
    .top-bar {
        font-size: 11px;
    }
    
    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .top-bar-item {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    /* Header kompaktowy */
    .site-header {
        padding: 12px 0;
    }
    
    .site-logo img {
        max-height: 36px;
    }
    
    /* Ukryj niektóre elementy top-bar na mobile */
    .top-bar-item:nth-child(3),
    .top-bar-item:nth-child(4) {
        display: none;
    }
    
    /* Większe przyciski na touch */
    li.product a.button,
    li.product .add_to_cart_button {
        padding: 14px 16px !important;
        min-height: 48px;
    }
    
    /* Trust badges */
    .sharpi-trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* 2 kolumny też na bardzo małych ekranach */
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    li.product {
        padding: 10px;
    }
    
    li.product .woocommerce-loop-product__link img {
        padding: 8px;
    }
    
    /* Newsletter w stopce */
    .footer-newsletter form > div {
        flex-direction: column !important;
    }
    
    .footer-newsletter button {
        width: 100% !important;
    }
}

/* ==========================================================================
   8. ULEPSZONA TYPOGRAFIA - spójna w całym serwisie
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* Sekcje tytułowe */
.section-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #f7941d, #ff6b00);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   9. STICKY MOBILE BOTTOM BAR - informacje o dostawie i zwrotach
   ========================================================================== */

@media (max-width: 768px) {
    .sharpi-mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 15px;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid #eee;
    }
    
    .sharpi-mobile-bottom-bar .info-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #555;
        font-weight: 600;
    }
    
    .sharpi-mobile-bottom-bar .info-item i {
        color: #f7941d;
        font-size: 14px;
    }
    
    /* Dodaj padding na dole body żeby content nie był zakryty */
    body {
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   10. DODATKOWE POPRAWKI WIZUALNE
   ========================================================================== */

/* Animacja hover na linkach */
a {
    transition: color 0.2s ease;
}

/* Płynne przejścia dla przycisków */
button, .button, input[type="submit"] {
    transition: all 0.2s ease;
}

/* Lepsze fokus outline */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #f7941d;
    outline-offset: 2px;
}

/* Ładniejsze scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f7941d;
}

/* Ukryj puste sekcje */
.woocommerce-product-details__short-description:empty,
.product_meta:empty {
    display: none;
}

/* ==========================================================================
   11. OZNACZENIA PRODUKTÓW - Bestseller, Nowość
   ========================================================================== */

li.product {
    position: relative;
}

/* Badge Nowość */
li.product.new-product::before {
    content: 'NOWOŚĆ';
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4CAF50;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Bestseller */
li.product.bestseller::before {
    content: 'BESTSELLER';
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2196F3;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   12. FILTRY I SORTOWANIE - widoczniejsze
   ========================================================================== */

.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-ordering select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: #f7941d;
    outline: none;
}

/* Widget filtrów */
.widget_layered_nav,
.widget_price_filter {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.widget_layered_nav .widget-title,
.widget_price_filter .widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f7941d;
}

/* ==========================================================================
   13. UKRYCIE ZDUPLIKOWANYCH OPISÓW PRODUKTU
   ========================================================================== */

/* Ukryj zduplikowany opis nad tabami */
.woocommerce-product-details__short-description + .woocommerce-tabs .woocommerce-Tabs-panel--description .woocommerce-product-details__short-description {
    display: none !important;
}

/* Gdy opis pojawia się dwa razy - ukryj drugi */
.product .summary .woocommerce-product-details__short-description ~ .woocommerce-product-details__short-description {
    display: none !important;
}
