/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;800&family=Roboto:wght@400;500&display=swap');

/* BAZA - TYPOGRAFIA, TŁO I SZEROKOŚĆ */
h1, h2, h3, h4, h5, h6, .product_title { font-family: 'Inter', sans-serif !important; }
body, p, .tel-box, .woocommerce-product-details__short-description, .woocommerce-Tabs-panel { font-family: 'Roboto', sans-serif; }
#page.grid-container { max-width: 85% !important; }
body, .site, .site-content { background-color: #ffffff !important; }


/* CZARNY PASEK - EFEKT "RE:STORE" */
.replanet-top-bar { 
    background: #000; 
    color: #a1a1a6; 
    font-size: 11px; 
    font-weight: 500; 
    padding: 8px 0; 
}
.replanet-top-bar a { 
    color: #a1a1a6; 
    text-decoration: none; 
    margin-right: 20px; 
    transition: 0.2s; 
}
.replanet-top-bar a:hover { color: #fff; }
.replanet-top-bar .top-bar-right span { color: #fff; }

/* GŁÓWNY NAGŁÓWEK - LEPSZE PROPORCJE */
.replanet-header-main { 
    padding: 15px 0; 
    border-bottom: 1px solid #f5f5f7; 
}

/* BAZA */
#page.grid-container { max-width: 85% !important; }
.replanet-container { max-width: 85%; margin: 0 auto; width: 100%; display: flex; align-items: center; }

/* NAGŁÓWEK REPLANET */
.replanet-header-wrapper { background: #fff; border-bottom: 1px solid #d2d2d7; }
.replanet-header-main .replanet-container { padding: 15px 0; gap: 30px; }
.replanet-logo { font-size: 28px; font-weight: 800; color: #000; text-decoration: none; }
.replanet-search-box { flex-grow: 1; max-width: 400px; }
.replanet-search-box input { width: 100%; padding: 10px 20px; border-radius: 20px; border: 1px solid #d2d2d7; background: #f5f5f7; }
.replanet-top-links { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.replanet-top-links a { color: #000; text-decoration: none; }
.replanet-header-icons { display: flex; gap: 20px; font-size: 20px; }

/* MENU I DROPDOWN */
.replanet-main-menu { display: flex; gap: 30px; list-style: none; margin: 0; }
.replanet-main-menu > li > a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #000; text-decoration: none; }
.replanet-dropdown { position: absolute; background: #fff; border: 1px solid #d2d2d7; padding: 10px 0; opacity: 0; visibility: hidden; transition: 0.2s; }
.replanet-main-menu > li:hover .replanet-dropdown { opacity: 1; visibility: visible; }

/* PRODUKT GRID (używaj klasy replanet-row) */
.replanet-row { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; }
.replanet-row .row-text, .replanet-row .row-img { flex: 1; }
.replanet-row:nth-child(even) { flex-direction: row-reverse; }

@media (max-width: 768px) {
    .replanet-row { flex-direction: column-reverse; }
    .replanet-top-links { display: none; }
}

/* ... (reszta Twoich pozostałych stylów) */

/* WYSZUKIWARKA - WYŚRODKOWANIE */
.replanet-search-box { 
    flex-grow: 1; 
    max-width: 450px; 
    margin: 0 40px; 
}
.replanet-search-box input[type="search"] { 
    width: 100%; 
    padding: 10px 20px 10px 45px; 
    border-radius: 20px; 
    border: 1px solid #d2d2d7; 
    background: #fff; 
}
/* REPLANET NAGŁÓWEK - WYGLĄD */
.replanet-header-wrapper { width: 100%; background: #ffffff; border-bottom: 1px solid #d2d2d7; }
.replanet-container { max-width: 85%; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }

/* CZARNY PASEK */
.replanet-top-bar { background: #000; color: #a1a1a6; font-size: 11px; font-weight: 500; padding: 8px 0; }
.replanet-top-bar a { color: #a1a1a6; text-decoration: none; margin-left: 20px; transition: 0.2s; }
.replanet-top-bar a:hover { color: #fff; }
.top-bar-left span { color: #fff; margin-right: 15px; }

/* GŁÓWNY NAGŁÓWEK */
.replanet-header-main { padding: 20px 0; border-bottom: 1px solid #f5f5f7; }
.replanet-logo { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; color: #1d1d1f; text-decoration: none !important; letter-spacing: -1px; }

/* WYSZUKIWARKA */
.replanet-search-box { flex-grow: 1; max-width: 500px; margin: 0 40px; }
.replanet-search-box form { position: relative; display: flex; align-items: center; }
.replanet-search-box .search-icon { position: absolute; left: 16px; width: 18px; height: 18px; color: #86868b; }
.replanet-search-box input[type="search"] { width: 100%; padding: 12px 20px 12px 45px; border: none; border-radius: 24px; font-size: 14px; background: #f5f5f7; transition: 0.2s ease; }
.replanet-search-box input[type="search"]:focus { background: #e8e8ed; outline: none; }

/* IKONY KONTO/KOSZYK */
.replanet-header-icons { display: flex; gap: 20px; align-items: center; }
.replanet-icon-link { color: #1d1d1f; transition: 0.2s; display: flex; align-items: center; position: relative; }
.replanet-icon-link svg { width: 24px; height: 24px; }
.replanet-icon-link:hover { color: #0071e3; }
.replanet-cart-badge { position: absolute; top: -6px; right: -8px; background: #ff3b30; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; line-height: 1; }

/* MENU */
.replanet-header-nav { padding: 15px 0; }
.replanet-main-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.replanet-main-menu > li { position: relative; }
.replanet-main-menu > li > a { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; color: #1d1d1f; text-decoration: none !important; padding: 10px 0; display: block; transition: 0.2s; }
.replanet-main-menu > li:hover > a { color: #0071e3; }

/* DROPDOWN */
.replanet-dropdown { position: absolute; top: 100%; left: 0; background: #ffffff; border: 1px solid #d2d2d7; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 10px 0; list-style: none; min-width: 200px; border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.2s ease; z-index: 999; }
.replanet-main-menu > li:hover .replanet-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.replanet-dropdown li a { display: block; padding: 10px 20px; font-size: 14px; color: #1d1d1f; text-decoration: none !important; font-weight: 500; transition: 0.2s; }
.replanet-dropdown li a:hover { background: #f5f5f7; color: #0071e3; }

/* MOBILE */
@media (max-width: 1024px) {
    .replanet-container { max-width: 90%; flex-wrap: wrap; }
    .replanet-top-bar { display: none; } /* Na telefonie ukrywamy górny pasek dla czystości */
    .replanet-search-box { order: 3; max-width: 100%; margin: 15px 0 0 0; width: 100%; }
    .replanet-main-menu { gap: 20px; overflow-x: auto; padding-bottom: 5px; width: 100%; }
}

/* GŁÓWNY UKŁAD 2-KOLUMNOWY W PRODUKCIE (DESKTOP) */
@media (min-width: 769px) {
    .telectro-product-grid {
        display: grid;
        grid-template-columns: 55% 45%;
        grid-template-rows: auto auto;
        gap: 0 50px;
        background: #fff;
        border: none;
        margin-top: 40px;
        align-items: start;
        position: relative;
    }
    
    .product-video { 
        grid-column: 1; 
        grid-row: 1; 
        margin-bottom: 20px; 
        text-align: center; 
        background: #fbfbfd; 
        border-radius: 12px; 
        padding: 20px; 
    }
    .product-video video { 
        max-height: 500px; 
        width: auto; 
        border: none !important; 
        border-radius: 8px; 
    }
    
    /* Galeria domyślnie na górze (jeśli brak wideo) */
    .woocommerce-product-gallery { 
        grid-column: 1; 
        grid-row: 1; 
        width: 100% !important; 
        margin: 0 !important; 
        display: flex !important;
        flex-direction: row-reverse;
        gap: 20px;
    }
    /* Przesunięcie galerii w dół, jeśli jest wideo */
    .product-video ~ .woocommerce-product-gallery {
        grid-row: 2;
    }

    .woocommerce-product-gallery .woocommerce-product-gallery__wrapper { width: calc(100% - 100px); }
    .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-direction: column; width: 80px; margin: 0; padding: 0; }
    .woocommerce-product-gallery .flex-control-thumbs li { width: 100%; margin-bottom: 15px; float: none; }
    
    .summary.entry-summary { grid-column: 2; grid-row: 1; width: 100% !important; }
    .telectro-third-col { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }
}

/* TYTUŁ I CENA W PRODUKCIE */
.product_title { 
    font-size: 28px !important; 
    font-weight: 600 !important; 
    line-height: 1.2 !important; 
    letter-spacing: -0.5px; 
    margin-bottom: 15px !important; 
    color: #1d1d1f; 
}

.woocommerce div.product p.price { 
    font-size: 24px !important; 
    font-weight: 700 !important; 
    color: #1d1d1f; 
    padding-bottom: 20px !important; 
    border-bottom: 1px solid #eaeaea !important; 
    margin-bottom: 20px !important; 
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce div.product p.price del { 
    color: #86868b !important; 
    font-size: 16px !important; 
    font-weight: 500 !important;
}

.woocommerce div.product p.price ins { 
    text-decoration: none !important; 
    background: transparent !important; 
}

/* STAN MAGAZYNOWY */
.woocommerce div.product p.stock {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #008a00 !important;
    margin-bottom: 20px !important;
}

/* WARIANTY KAFELKI */
.custom-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.swatch { padding: 12px 24px; border: 1px solid #eaeaea; border-radius: 8px; cursor: pointer; font-size: 14px; background: #fff; }
.swatch.selected { border-color: #000; font-weight: 600; }

/* KOSZYK - 100% SZEROKOŚCI */
.woocommerce div.product form.cart { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.woocommerce div.product form.cart div.quantity { display: none; }
.woocommerce div.product form.cart .button { background: #000; color: #fff; border-radius: 8px; padding: 18px; font-weight: 600; font-size: 16px; border: none; transition: 0.2s; width: 100%; }
.woocommerce div.product form.cart .button:hover { background: #333; }

/* BOXY INFORMACYJNE ORAZ PLAKIETKI W STRONIE PRODUKTU */
.telectro-third-col { display: flex; flex-direction: column; }
.tel-box { padding: 20px 0; border-bottom: 1px solid #d2d2d7; font-size: 14px; line-height: 1.5; color: #1d1d1f; background: transparent; }
.tel-box:first-child { border-top: 1px solid #d2d2d7; }
.product_meta { font-size: 12px; color: #86868b; border-top: 1px solid #d2d2d7; padding-top: 20px; }
.product_meta a { color: #1d1d1f; }

.product-stan-badge {
    display: inline-block;
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.replanet-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.replanet-row .row-text, 
.replanet-row .row-img {
    flex: 1;
}

.replanet-row .row-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Szachownica na desktopie */
.replanet-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Na telefonach zawsze zdjęcie nad tekstem */
@media (max-width: 768px) {
    .replanet-row, 
    .replanet-row:nth-child(even) {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
}

/* ZAKŁADKI PREMIUM */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 40px 0; border-bottom: 1px solid #eaeaea; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: none !important; background: transparent !important; border-radius: 0; margin: 0 40px 0 0; padding: 0 0 15px 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid #000; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #999; font-weight: 600; font-size: 18px; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #000; }

/* POLECANE PRODUKTY KAFELKI */
.telectro-family-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.family-tile { border: 1px solid #d2d2d7; border-radius: 8px; padding: 10px; text-align: center; text-decoration: none !important; background: #fff; transition: 0.2s; }
.family-tile:hover { border-color: #000; }
.family-tile img { width: 100%; height: auto; margin-bottom: 8px; }
.tile-title { display: block; font-size: 11px; color: #1d1d1f; font-weight: 500; line-height: 1.3; }

.free-inpost-delivery {
    text-align: center;
    font-size: 13px;
    color: #1d1d1f;
    margin-top: 10px;
    font-weight: 500;
}

/* WIDOK LISTY PRODUKTÓW (GRID A'LA RE:STORE) */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 30px 20px !important; margin-top: 30px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; display: flex; flex-direction: column; text-align: center; background: #fff; padding: 20px 15px; border-radius: 16px; transition: box-shadow 0.3s ease; position: relative; border: 1px solid transparent; }
.woocommerce ul.products li.product:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.woocommerce ul.products li.product img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 20px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 500; color: #1d1d1f; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.woocommerce ul.products li.product .price { font-size: 18px; font-weight: 700; color: #1d1d1f; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.woocommerce ul.products li.product .price del { font-size: 13px; color: #86868b; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; background: none; }
.woocommerce ul.products li.product .button { display: block; width: 100%; background: #f5f5f7; color: #1d1d1f; border-radius: 8px; padding: 12px; font-size: 13px; font-weight: 600; transition: 0.2s; margin-top: auto; }
.woocommerce ul.products li.product .button:hover { background: #000; color: #fff; }

/* PLAKIETKI NA LIŚCIE PRODUKTÓW (Promocja / Stan) */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale { position: absolute !important; top: 15px !important; right: 15px !important; left: auto !important; margin: 0 !important; background: #ff3b30 !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; padding: 6px 10px !important; border-radius: 6px !important; min-height: auto !important; min-width: auto !important; line-height: 1 !important; text-transform: uppercase; box-shadow: none !important; z-index: 10; }
.woocommerce ul.products li.product .loop-stan-badge { position: absolute; top: 15px; left: 15px; background: #0071e3; color: #fff; font-size: 10px; font-weight: 700; padding: 6px 10px; border-radius: 6px; text-transform: uppercase; z-index: 10; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    body { padding-bottom: 90px; }
    .telectro-product-grid { display: flex; flex-direction: column; gap: 30px; }
    .woocommerce div.product form.cart { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; padding: 15px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 9999; margin: 0; border-top: 1px solid #eaeaea; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 15px 10px !important; }
    .woocommerce ul.products li.product { padding: 15px 10px; }
    .woocommerce ul.products li.product img { height: 140px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12px; }
    .woocommerce ul.products li.product .price { font-size: 15px; }
    .woocommerce ul.products li.product .button { padding: 10px; font-size: 12px; }
}