/* ============================================================================
   14. SEKCÍ VYHLEDÁVÁNÍ & ŠEPTANDA (BRAND GLASSMORPHISM, STŘED, BEZ PODTRŽENÍ)
   ============================================================================ */

/* NEPRŮSTŘELNÝ RESET DEKORACE PRO ODKAZY, SPANY A EM UVNITŘ VYHLEDÁVÁNÍ */
.search-window-in a,
.search-window-in a span,
.search-window-in a em,
.search-whisperer a,
.search-whisperer a span,
.search-whisperer a em {
    text-decoration: none !important;
}

/* Globální kontejner vyhledávacího okon */
.content-window-in.search-window-in {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: var(--section-padding-y) !important;
    padding-bottom: var(--section-padding-y) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Vnitřní container - symetrické lícování na mřížku webu */
.search-window-in .container {
    width: 100% !important;
    max-width: var(--content-max-width, 1600px) !important;
    padding-left: var(--content-padding-x, clamp(20px, 10vw, 160px)) !important;
    padding-right: var(--content-padding-x, clamp(20px, 10vw, 160px)) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Hlavní rodič vyhledávání */
.search {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Tlačítko "Zpět do obchodu" */
.search-window-in [data-testid="backToShop"].toggle-window {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-family: var(--template-headings-font) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    margin-bottom: clamp(24px, 4vw, 48px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.search-window-in [data-testid="backToShop"].toggle-window:hover {
    background-color: #ffffff !important;
    color: #1A6B9B !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hlavní nadpis */
.search h2 {
    font-size: clamp(2.1rem, 5vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-family: var(--template-headings-font) !important;
    margin-bottom: clamp(20px, 3vw, 40px) !important;
    text-align: center !important;
    width: 100% !important;
}

/* Vyhledávací formulář */
.search-form.js-search-main {
    position: relative !important;
    max-width: 960px !important;
    width: 100% !important;
    margin: 0 auto clamp(40px, 6vw, 80px) !important;
    float: none !important;
    display: block !important;
}
.search-form.js-search-main fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* Vyhledávací Input */
input[type="search"].js-search-input.lg {
    width: 100% !important;
    height: clamp(56px, 6vw, 72px) !important;
    background: #ffffff !important;
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    padding-left: clamp(24px, 3vw, 36px) !important;
    padding-right: clamp(70px, 7vw, 96px) !important;
    font-family: var(--template-font) !important;
    font-size: clamp(1.2rem, 1.35vw, 1.45rem) !important;
    color: #1A1A1A !important;
    box-shadow: 0 15px 45px rgba(13, 52, 76, 0.3) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}
input[type="search"].js-search-input.lg:focus {
    border-color: #3098C2 !important;
    box-shadow: 0 20px 55px rgba(13, 52, 76, 0.45) !important;
    outline: none !important;
}

/* Tlačítko lupy */
.search-form [data-testid="searchBtn"] {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: clamp(44px, 4.5vw, 52px) !important;
    height: clamp(44px, 4.5vw, 52px) !important;
    background-color: #1A6B9B !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    padding: 0 !important;
    z-index: 10 !important;
}
.search-form [data-testid="searchBtn"]:hover {
    background-color: #14567d !important;
    transform: translateY(-50%) scale(1.05) !important;
}
.search-form [data-testid="searchBtn"]::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* PREMIUM BRAND GLASSMORPHISM ŠEPTANDA */
body .search-whisperer.active {
    position: absolute !important;
    top: calc(100% + 16px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    
    background: rgba(18, 73, 105, 0.92) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
    backdrop-filter: blur(25px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 40px 100px rgba(10, 41, 60, 0.6) !important;
    padding: clamp(24px, 3.5vw, 40px) !important;
    z-index: 99999 !important;
    
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(24px, 4vw, 48px) !important;
}

@media (max-width: 991px) {
    body .search-whisperer.active {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
    }
}

.search-whisperer-documents::before,
.search-whisperer-products::before {
    display: block !important;
    font-family: var(--template-headings-font) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #3098C2 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 16px !important;
}

/* --- LEVÁ ČÁST: STRÁNKY A ČLÁNKY --- */
.search-whisperer-documents {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-right: clamp(16px, 2.5vw, 32px) !important;
    min-width: 0 !important;
}
@media (max-width: 991px) {
    .search-whisperer-documents {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-bottom: 28px !important;
    }
}

a.search-whisperer-document {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 12px 18px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
a.search-whisperer-document:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(6px) !important;
}
a.search-whisperer-document em {
    font-style: normal !important;
    font-family: var(--template-font) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}
a.search-whisperer-document.search-whisperer-category em {
    color: #00ff4c !important; 
    text-shadow: 0 0 10px rgba(0, 255, 76, 0.3);
}
a.search-whisperer-document span {
    font-family: var(--template-font) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* --- PRAVÁ ČÁST: PRODUKTY --- */
.search-whisperer-products {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
}
.search-whisperer-products li[data-testid="productItem"] {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.search-whisperer-products li[data-testid="productItem"] a {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.search-whisperer-products li[data-testid="productItem"] a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.search-whisperer-image {
    width: clamp(68px, 6vw, 84px) !important;
    height: clamp(68px, 6vw, 84px) !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.search-whisperer-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.search-whisperer-products .p-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.search-whisperer-products .p-name {
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.1rem, 1.25vw, 1.3rem) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

.search-whisperer-products .availability-label {
    font-family: var(--template-font) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #00ff4c !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-shadow: 0 0 10px rgba(0, 255, 76, 0.25);
}
.search-whisperer-products .availability-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
}

.search-whisperer-products .price-final {
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.2rem, 1.4vw, 1.5rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: right !important;
    white-space: nowrap !important;
    padding-left: 16px !important;
}

@media (max-width: 540px) {
    .search-whisperer-products li[data-testid="productItem"] a {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    .search-whisperer-products .price-final {
        width: 100% !important;
        text-align: left !important;
        padding-left: calc(clamp(68px, 6vw, 84px) + 20px) !important;
        margin-top: -6px !important;
    }
}

/* DOPORUČUJEME */
.search h3 {
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    font-family: var(--template-headings-font) !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    text-align: left !important;
}
.recommended-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* ============================================================================
   15. STRÁNKA S VÝSLEDKY VYHLEDÁVÁNÍ (BÍLÁ KARTA, PILL BUTTONS & BRAND BORDER)
   ============================================================================ */

/* STRIKTNÍ RESET DEKORACE ODKAZŮ */
body.type-search #content a,
body.type-search #content a span,
body.type-search #content a em,
body.type-search #content a strong {
    text-decoration: none !important;
}

/* Skrytí nativní drobečkové navigace */
body.type-search .breadcrumbs {
    display: none !important;
}

/* HLAVNÍ BÍLÁ KARTA OBSAHU VÝSLEDKŮ */
body.type-search #content.content {
    max-width: var(--content-max-width, 1600px) !important;
    margin: clamp(24px, 4vw, 40px) auto clamp(40px, 6vw, 80px) !important;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px) !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-radius: var(--radius-lg, 1.5rem) !important;
    box-shadow: 0 24px 60px rgba(17, 75, 110, 0.18) !important;
    font-family: var(--template-font, sans-serif) !important;
    float: none !important;
    width: 100% !important;
}

/* HRUBÁ SPECIFICITA: Vynucení tmavé barvy nadpisu výsledků na bílé kartě */
body.type-search #content h2,
body.type-search #content h2 span {
    font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
    font-family: var(--template-headings-font) !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-top: 0 !important;
    margin-bottom: clamp(24px, 4vw, 40px) !important;
    text-align: left !important;
}
body.type-search #content h2 strong.highlight {
    color: #1A6B9B !important;
}

/* ----------------------------------------------------------------------------
   1) DOPLŇKOVÉ SKUPINY VÝSLEDKŮ (Kategorie & Články)
   ---------------------------------------------------------------------------- */
body.type-search .search-results-groups {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: clamp(32px, 5vw, 56px) !important;
}

/* Karty s tenkým modrým borderem */
body.type-search #content .search-results-group {
    background: #f8fafc !important;
    border: 1px solid rgba(26, 107, 155, 0.25) !important; /* Tenký brandový border */
    border-radius: var(--radius-md, 1rem) !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
body.type-search #content .search-results-group:hover {
    border-color: #1A6B9B !important;
    box-shadow: 0 8px 24px rgba(26, 107, 155, 0.06) !important;
}

/* Agresivní specificita pro nadpisy skupin (Kategorie / Články) */
body.type-search #content .search-results-group h4 {
    font-family: var(--template-headings-font) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1A6B9B !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(26, 107, 155, 0.15) !important;
    padding-bottom: 8px !important;
}

body.type-search #content .search-results-group-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

/* Agresivní specificita pro textové řádky uvnitř skupin */
body.type-search #content .search-results-group-list li a,
body.type-search #content .search-results-group-list li a span {
    display: block !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e6edf3 !important;
    border-radius: var(--radius-sm, 0.5rem) !important;
    color: #1A1A1A !important; /* Oprava nečitelné bílé */
    font-family: var(--template-font) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
body.type-search #content .search-results-group-list li a:hover,
body.type-search #content .search-results-group-list li a:hover span {
    border-color: #1A6B9B !important;
    color: #1A6B9B !important;
    transform: translateX(4px) !important;
}

/* Tlačítko Zobrazit vše -> PILL SHAPE dle globálního CSS */
body.type-search #content .display-results-group {
    display: inline-flex !important;
    margin-top: 14px !important;
    font-family: var(--template-headings-font) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1A6B9B !important;
    background: transparent !important;
    border: 2px solid #1A6B9B !important; /* Outline styl z globálního CSS */
    padding: 8px 20px !important;
    border-radius: 999px !important; /* Striktní Pill Shape */
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}
body.type-search #content .display-results-group:hover {
    background: #1A6B9B !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(26, 107, 155, 0.2) !important;
}

/* ----------------------------------------------------------------------------
   2) SEKCE PRODUKTŮ & PRODUKTOVÉ KARTY
   ---------------------------------------------------------------------------- */

/* Nadpis sekce Produkty */
body.type-search #content h4.search-products-heading {
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Mřížka výpisu produktů (4 sloupce) */
body.type-search #products.products-block {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: clamp(16px, 2vw, 24px) !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

@media (max-width: 1200px) { body.type-search #products.products-block { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 820px)  { body.type-search #products.products-block { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; } }
@media (max-width: 580px)  { body.type-search #products.products-block { grid-template-columns: 1fr !important; } }

body.type-search #products .product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Samotné tělo karty s tenkým modrým borderem */
body.type-search #products .product .p {
    background: #ffffff !important;
    border: 1px solid rgba(26, 107, 155, 0.25) !important; /* Tenký brandový border */
    border-radius: var(--radius-md, 1rem) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
body.type-search #products .product .p:hover {
    transform: translateY(-5px) !important;
    border-color: #1A6B9B !important;
    box-shadow: 0 12px 28px rgba(26, 107, 155, 0.12) !important;
}

/* Náhledový box obrázku */
body.type-search #products .product .p > a.image {
    display: block !important;
    aspect-ratio: 1 / 1 !important;
    background: #FAFBFC !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}
body.type-search #products .product .p > a.image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: clamp(10px, 1.5vw, 16px) !important;
    box-sizing: border-box !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
body.type-search #products .product .p:hover > a.image img {
    transform: scale(1.04) !important;
}

/* Vnitřní textové boxy */
body.type-search #products .product .p .p-in {
    padding: clamp(14px, 1.8vw, 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: 0 !important;
}
body.type-search #products .product .p .p-in-in,
body.type-search #products .product .p .p-bottom,
body.type-search #products .product .p .p-bottom > div[data-micro="offer"] {
    display: contents !important;
}

/* Přesné vynucení tmavého názvu produktu (přebíjí globální bílou) */
body.type-search #products .product .p .name {
    display: block !important;
    order: 2 !important;
    margin: 0 0 4px 0 !important;
}
body.type-search #products .product .p .name span {
    color: #1A1A1A !important;
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.2rem, 1.35vw, 1.35rem) !important; 
    font-weight: 700 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.6em !important;
}
body.type-search #products .product .p:hover .name span {
    color: #1A6B9B !important;
}

/* Krátký popisek produktu */
body.type-search #products .product .p .p-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #6b7280 !important; 
    font-family: var(--template-font) !important;
    font-size: clamp(1.05rem, 1.1rem, 1.1rem) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    order: 3 !important;
    margin: 0 0 16px 0 !important; 
    height: 3em !important;
}

/* Skladová dostupnost */
body.type-search #products .product .p .availability {
    font-family: var(--template-font) !important;
    font-size: clamp(1.05rem, 1.1rem, 1.15rem) !important;
    order: 4 !important;
    margin: 0 0 12px 0 !important;
}
body.type-search #products .product .p .availability span {
    color: #16a34a !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.type-search #products .product .p .availability span::before {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: currentColor !important;
    border-radius: 50% !important;
}

/* Ceny (Kategorie layout) */
body.type-search #products .product .p .prices {
    display: flex !important;
    flex-direction: column !important;
    order: 5 !important;
    gap: 2px !important;
    margin: 0 0 16px 0 !important;
}
body.type-search #products .product .p .price.price-final {
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.35rem, 1.6vw, 1.5rem) !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1.1 !important;
    order: 1 !important;
}
body.type-search #products .product .p .price.price-final strong {
    font-weight: 800 !important;
    color: #1a1a1a !important;
}
body.type-search #products .product .p .price.price-final::after {
    content: " bez DPH" !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
}
body.type-search #products .product .p .price-additional {
    font-family: var(--template-font) !important;
    font-size: clamp(1.05rem, 1.2vw, 1.15rem) !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    line-height: 1.2 !important;
    order: 2 !important;
}

body.type-search #products .product .p .p-code {
    display: none !important;
}

/* ----------------------------------------------------------------------------
   3) NÁKUPNÍ TLAČÍTKA -> STRIKTNÍ PILL SHAPE (999px) DLE GLOBÁLNÍHO CSS
   ---------------------------------------------------------------------------- */
body.type-search #products .product .p .p-tools {
    order: 6 !important;
    margin-top: auto !important;
    width: 100% !important;
}
body.type-search #products .product .p .p-tools form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}

body.type-search #products .product .p .p-tools form .add-to-cart-button,
body.type-search #products .product .p .p-tools form .poptat-projekt-btn {
    width: 100% !important;
    padding: 11px 22px !important;
    font-family: var(--template-headings-font) !important;
    font-size: clamp(1.1rem, 1.15rem, 1.15rem) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 44px !important;
    
    /* DEFINITIVNÍ PILL SHAPE GLOBÁLNÍHO SOUBORU */
    border-radius: 999px !important;
}

/* Modré vyplněné Do košíku (.btn-blue-filled styl) */
body.type-search #products .product .p .p-tools form .add-to-cart-button {
    background: #1A6B9B !important;
    border: 2px solid #1A6B9B !important;
    color: #ffffff !important;
}
body.type-search #products .product .p .p-tools form .add-to-cart-button:hover {
    background: #14567d !important;
    border-color: #14567d !important;
    transform: translateY(-2px) !important;
}

/* Zelené vyplněné Poptat (.btn-green-filled / .poptat-projekt-btn styl) */
body.type-search #products .product .p .p-tools form .poptat-projekt-btn {
    background: #007A25 !important;
    border: 2px solid #007A25 !important;
    color: #ffffff !important;
}
body.type-search #products .product .p .p-tools form .poptat-projekt-btn:hover {
    background: #005f1d !important;
    border-color: #005f1d !important;
    transform: translateY(-2px) !important;
}

/* --- BADGES ŠTÍTKY NA OBRÁZKU (Novinka, Tip..) --- */
body.type-search #products .product .flags {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 3 !important;
    max-width: calc(100% - 24px) !important;
}
body.type-search #products .product .flag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 999px !important; /* Sjednoceno na pill tvar */
    font-family: var(--template-headings-font) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}
body.type-search #products .product .flag::before,
body.type-search #products .product .flag::after {
    display: none !important;
}
body.type-search #products .product .flag-action { background: #16a34a !important; }
body.type-search #products .product .flag-new { background: #1A6B9B !important; }
body.type-search #products .product .flag-tip { background: #ea580c !important; }
body.type-search #products .product .flag-sale { background: #dc2626 !important; }
body.type-search #products .product .flag-recommended { background: #ea580c !important; }