/*
Theme Name: Tolarbox FSE
Version: 3.1 (Nav Arrow & Header Line Fix)
*/

/* =========================================
   1. GLOBÁLNÍ ZÁKLAD A POZADÍ
   ========================================= */
body {
    background: #0b0f14;
    color: #e5e7eb;
    font-family: 'Nunito', sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Exo 2', sans-serif; 
    margin: 0; 
}

/* Mřížka na pozadí */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(250,204,21,0.05) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(250,204,21,0.05) 1px, transparent 1px);
    background-size: 64px 64px; opacity: 0.35;
}


/* =========================================
   2. CHYTRÝ HOVER EFEKT (ODKAZY)
   ========================================= */
a {
    text-decoration: none !important;
    color: inherit;
    display: inline-block;
    transition: all 0.25s ease-in-out;
}

a:hover {
    color: #f5c400 !important;
    transform: scale(1.03) !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    color: #000000 !important; 
    transform: scale(1.05) !important; 
}

.wp-block-navigation a:hover,
.wp-block-navigation__submenu-container a:hover {
    color: #000000 !important;
}

.kategorie-pilulka a:hover {
    color: #000000 !important;
}


/* =========================================
   3. UNIVERZÁLNÍ NAVIGACE (VŠECHNY STRÁNKY)
   ========================================= */
header, 
.tolarbox-header, 
.wp-block-template-part-header {
    background: #facc15 !important;
    /* FIX: Zabití tenké bílé linky pod hlavičkou */
    border: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.wp-block-navigation a,
.wp-block-navigation span,
.wp-block-navigation-item__label,
.wp-block-navigation-item__content {
    color: #000000 !important;
    fill: #000000 !important;
    font-weight: 700 !important;
}

/* FIX PRO BÍLOU ŠIPKU (SVG) U PODMENU */
.wp-block-navigation__submenu-icon,
.wp-block-navigation__submenu-icon svg,
.wp-block-navigation-submenu__toggle,
.wp-block-navigation-submenu__toggle svg,
.wp-block-navigation svg,
.wp-block-navigation button {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

.wp-block-navigation__container {
    display: flex !important;
    align-items: center !important; 
    margin: 0 !important;
    gap: 30px !important; 
    flex-wrap: wrap !important;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container,
.wp-block-navigation__submenu-container {
    background-color: #facc15 !important; 
    border-radius: 0 0 8px 8px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
}

.wp-block-navigation__submenu-container a {
    color: #000000 !important;
    padding: 8px 20px !important;
}

.wp-block-navigation__submenu-container a:hover {
    background-color: rgba(0,0,0,0.08) !important;
    color: #000000 !important;
    transform: scale(1.03) !important;
}


/* =========================================
   4. KATEGORIE - PILULKY (OTTER BLOCKS FIX)
   ========================================= */
.kategorie-pilulka {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 55px !important;
    background-color: #facc15 !important;
    padding: 0 !important;
    position: relative !important;
}

.kategorie-pilulka .themeisle-block-advanced-column-inner,
.kategorie-pilulka .wp-block-themeisle-blocks-advanced-column,
.kategorie-pilulka > div,
.kategorie-pilulka > .wp-block-column__inner-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 100% !important;
}

.kategorie-pilulka p, 
.kategorie-pilulka h1, 
.kategorie-pilulka h2, 
.kategorie-pilulka h3, 
.kategorie-pilulka h4, 
.kategorie-pilulka a {
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important; 
    font-weight: 700 !important;
    text-align: center !important;
}


/* =========================================
   5. VLASTNÍ VYSOUVACÍ MENU (KATEGORIE HOVER)
   ========================================= */
.moje-podkategorie {
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%);
    background: #facc15; 
    min-width: 200px; 
    z-index: 9999; 
    padding: 10px 0 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    list-style: none !important; 
    margin: 0 !important;
}

.kategorie-pilulka:hover .moje-podkategorie { 
    display: block !important; 
}

.moje-podkategorie a {
    color: #000000 !important;
    padding: 8px 20px !important;
    display: block !important;
}


/* =========================================
   6. TLAČÍTKA A OSTATNÍ FIXY
   ========================================= */
.wp-block-button__link {
    background: #facc15 !important;
    color: #111 !important;
    border-radius: 8px !important;
}

[id="3dprint-lite"] { 
    position: relative !important; 
    z-index: 1; 
}
/* Roztáhnutí tlačítek v řádku na stejnou šířku */
.kategorie-rovnomerne {
    width: 100% !important;
}
.kategorie-rovnomerne > * {
    flex: 1 1 0% !important; /* Donutí položky růst rovnoměrně */
    justify-content: center !important; /* Vycentruje obsah uvnitř */
    text-align: center !important;
}
/* =========================================
   7. WOOCOMMERCE - TŘÍDĚNÍ (SORTING) - MENŠÍ ŽLUTÁ
   ========================================= */

.woocommerce-ordering select,
.wc-block-catalog-sorting select,
.wc-block-components-sort-select__select {
    background-color: #facc15 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important; /* Menší zakulacení */
    padding: 4px 30px 4px 12px !important; /* Razantně zmenšené okraje */
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important; /* Menší písmo */
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;

    /* Menší a posunutá šipka */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important; /* Šipka blíž k okraji */
    background-size: 12px !important; /* Zmenšení samotné šipky */
}

/* Hover efekt */
.woocommerce-ordering select:hover,
.wc-block-catalog-sorting select:hover,
.wc-block-components-sort-select__select:hover {
    transform: scale(1.03) !important;
    background-color: #fbd638 !important;
}
/* =========================================
   8. VYSOUVACÍ HLEDÁNÍ (LUPA)
   ========================================= */
.vysouvaci-lupa form {
    position: relative !important;
    width: 45px !important;
    height: 45px !important;
    background: #facc15 !important; /* Žluté kolečko v základu */
    border-radius: 25px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    display: flex !important;
    margin: 0 !important;
    border: 1px solid #facc15 !important;
}

/* Když do něj uživatel klikne, roztáhne se a zčerná */
.vysouvaci-lupa form:focus-within {
    width: 250px !important;
    background: #0b0f14 !important;
}

/* Samotné políčko pro text (roztažené přes celé kolečko) */
.vysouvaci-lupa input[type="search"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #facc15 !important; /* Žlutý text při psaní */
    padding: 0 45px 0 15px !important; /* Místo pro lupu napravo */
    outline: none !important;
    cursor: pointer !important; /* Než se klikne, tváří se jako tlačítko */
    z-index: 2 !important;
    box-shadow: none !important;
    font-family: 'Nunito', sans-serif !important;
}

/* Po kliknutí se kurzor změní na normální textový */
.vysouvaci-lupa form:focus-within input[type="search"] {
    cursor: text !important;
}

/* Skrytí "placeholder" textu (Hledat...), dokud se lupa nerozbalí */
.vysouvaci-lupa input[type="search"]::placeholder {
    color: transparent !important;
}
.vysouvaci-lupa form:focus-within input[type="search"]::placeholder {
    color: rgba(250, 204, 21, 0.5) !important;
}

/* =========================================
   8. VYSOUVACÍ HLEDÁNÍ (LUPA) - ŽLUTÁ VERZE S ODSTUPEM
   ========================================= */

/* 1. Hlavní obal (žluté kolečko s černým rámečkem a odstupem) */
.vysouvaci-lupa {
    position: relative !important;
    width: 45px !important;
    height: 45px !important;
    background-color: #facc15 !important; 
    border-radius: 25px !important;
    border: 2px solid #0b0f14 !important; 
    transition: width 0.4s ease-in-out !important;
    overflow: hidden !important; 
    margin: 0 20px 0 0 !important; /* Odstup 20px zprava */
    padding: 0 !important;
    display: block !important;
}

/* Po kliknutí roztáhneme */
.vysouvaci-lupa:focus-within {
    width: 250px !important;
}

/* 2. Textové pole */
.vysouvaci-lupa input[type="search"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #0b0f14 !important; /* Černý text psaní */
    padding: 0 45px 0 15px !important; 
    z-index: 5 !important; 
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 700 !important; 
}

.vysouvaci-lupa:focus-within input[type="search"] {
    cursor: text !important;
}

/* 3. Tlačítko (Lupa) schované dospod */
.vysouvaci-lupa button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 41px !important; 
    height: 41px !important;
    background: transparent !important;
    border: none !important;
    z-index: 1 !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.vysouvaci-lupa:focus-within button {
    z-index: 10 !important; 
    cursor: pointer !important;
}

/* 4. Obarvení samotné ikonky lupy na černo */
.vysouvaci-lupa button svg,
.vysouvaci-lupa button path,
.vysouvaci-lupa button::before {
    fill: #0b0f14 !important;
    color: #0b0f14 !important;
}

/* 5. Zneviditelníme zbytečné texty a zčernáme placeholder */
.vysouvaci-lupa label {
    display: none !important;
}

.vysouvaci-lupa input[type="search"]::placeholder {
    color: transparent !important;
}

.vysouvaci-lupa:focus-within input[type="search"]::placeholder {
    color: rgba(11, 15, 20, 0.5) !important; /* Ztlumený černý text "Hledat..." */
}
/* =========================================
   9. TLAČÍTKA KOŠÍK A POKLADNA - ŽLUTÝ STYL
   ========================================= */

.wc-block-cart .wc-block-components-checkout-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
    background-color: #facc15 !important;
    color: #0b0f14 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    padding: 15px !important; 
}

.wc-block-cart .wc-block-components-checkout-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    background-color: #eab308 !important;
    transform: scale(1.02) !important;
    cursor: pointer !important;
}
/* =========================================
   10. ODŘÁDKOVÁNÍ DPH V CENOVCE (Vylepšené)
   ========================================= */

.woocommerce-price-suffix {
    display: inline !important;      /* Zrušíme ten tvrdý blok, ať to může sedět vedle hlavní ceny */
    font-size: 14px !important;      /* Menší písmo */
    font-weight: 400 !important;     /* Normální tloušťka */
    color: #a1a1aa !important;       /* Decentní šedá barva */
}

/* Tohle vloží " s DPH" těsně za hlavní cenu a to \A funguje jako "Enter" pro zbytek */
.woocommerce-price-suffix::before {
    content: " s DPH \A ";
    white-space: pre;
}