:root {
    --reda: #dc2a1f;
    --reda-dark: #b82218;
    --reda-light: #fff5f5;
}

/* === PANELY (ČISTÉ) === */
.panel-left,
.panel-katalogy,
#aktuality,
#tree {
    background: var(--reda-light);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: none;
    color: #333;
    transition: all 0.3s ease;
}

/* === NADPISY PANELŮ === */
.panel-left h2,
.panel-katalogy h2,
#aktuality h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--reda);
}

/* === ODKAZY (ZVIDITELNIT A VYČISTIT) === */
#tree a,
.panel-left a.mkt,
.panel-katalogy a,
#aktuality a {
    display: block !important;
    padding: 0.6rem 0.8rem !important;
    margin: 0.2rem 0 !important;
    border-radius: 0 !important;
    color: var(--reda-dark) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #ddd !important;
    transition: all 0.2s ease !important;
}

/* === HOVER EFEKT === */
#tree a:hover,
.panel-left a.mkt:hover,
.panel-katalogy a:hover,
#aktuality a:hover {
    background: var(--reda) !important;
    color: #fff !important;
    transform: translateX(5px) !important;
    border-bottom-color: transparent !important;
    text-decoration: none !important;
}

/* === Oprava <em> === */
.panel-left a.mkt em {
    font-style: normal;
}

/* === Vnitřní text aktualit === */
#akt {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

#akt .fl {
    font-size: 1.3rem;
    display: block;
    float: none;
    font-weight: bold;
    color: var(--reda);
    margin-bottom: 0.3rem;
}

#akt p {
    margin: 0 0 0.7rem 0;
    padding: 0;
    text-align: left;
    font-size: 1.4rem;
}

/* === VYMAZÁNÍ PODTRŽENÉ ORANŽOVÉ ČÁRY V AKTUALITÁCH === */
#aktuality a,
#aktuality a:hover,
#aktuality p,
#aktuality hr,
#aktuality * {
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* === PATIČKA === */
#footer {
    background-color: var(--reda); /* firemní barva */
    padding: 2rem 0;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

#footer .tc {
    margin: 0;
}

/* === STYL ŘAZENÍ A STRÁNKOVÁNÍ – BEZ ÚPRAV TPL === */
.fnpanel .sortPart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #ddd;
    background-color: var(--reda-light);
    border-radius: 8px;
}

/* Odkazy pro řazení */
.fnpanel .sortPart > a {
    display: inline-block;
    min-width: 8.5rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

.fnpanel .sortPart > a:hover {
    background-color: var(--reda);
    color: #fff;
    transform: translateX(5px);
    border-color: var(--reda);
}

.fnpanel .sortPart > a.active {
    background-color: var(--reda);
    color: #fff;
    border-color: var(--reda);
}

/* Stránkování vpravo */
.fnpanel .sortPart .fr {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.fnpanel .sortPart .fr a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.35rem 0.7rem;
    background-color: #eee;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    transition: all 0.25s ease;
}

.fnpanel .sortPart .fr a:hover,
.fnpanel .sortPart .fr a.active {
    background-color: var(--reda);
    color: #fff;
    transform: translateX(5px);
}
.fnpanel .sortPart {
    background-color: var(--reda-light);
    background-image: none;
    background: var(--reda-light) !important;
}

.fnpanel .sortPart[style] {
    background: var(--reda-light) !important;
    background-image: none !important;
}

body .fnpanel .sortPart {
    background: var(--reda-light) !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* === PRODUKTOVÉ BOXY === */

.produkt {
    padding: 1rem;
}

.prod {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Název produktu */
.prod h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.prod h3 a {
    color: #222;
    text-decoration: none;
}

.prod h3 a:hover {
    color: var(--reda);
}

.prod .inner h3 {
    font-size: 1.1rem;
    margin-top: 0.8rem;   /* 🍃 přidáváme mezeru shora */
    margin-bottom: 0.5rem;
    text-align: center;
    color: #222;
}

/* Obrázek produktu */
.prod .inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

/* Info sekce */
.prod .info {
    font-size: 0.95rem;
    padding: 0.5rem 1rem 1rem;
    color: #444;
}

.prod .info table {
    width: 100%;
    margin-bottom: 0.5rem;
}

.prod .info td {
    padding: 0.3rem 0;
}

.prod .info td.tr {
    text-align: right;
}

.prod .info .cena {
    font-size: 1.2rem;
    color: #000;
}

.prod .info .cena .lightblue {
    color: var(--reda);
    font-weight: bold;
}

/* Tlačítko koupit */
.prod .button {
    display: inline-block;
    background: var(--reda);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.prod .button:hover {
    background: var(--reda-dark);
}

/* === Styl pro "Přidat k oblíbeným" === */
.prod .info a[id^="oblibenePridat"],
.prod .info a[id^="oblibeneOdebrat"] {
    display: inline-block;
    background: #eee;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    margin: 0.2rem 0.3rem 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prod .info a[id^="oblibenePridat"]:hover {
    background: var(--reda);
    color: #fff;
}

.prod .info a[id^="oblibeneOdebrat"] {
    background: #ccc;
    color: #333;
}

.prod .info a[id^="oblibeneOdebrat"]:hover {
    background: #d9534f;
    color: #fff;
}

/* === DETAIL PRODUKTU === */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

/* Obrázek vlevo */
.product-detail .left,
.product-detail .product-image {
    flex: 1 1 40%;
    text-align: center;
}

.product-detail .product-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Info a akce vpravo */
.product-detail .right,
.product-detail .product-info {
    flex: 1 1 55%;
    font-size: 1rem;
    color: #333;
}

.product-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #222;
}

.product-detail table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.product-detail td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.product-detail td:first-child {
    font-weight: bold;
    color: #444;
}

.product-detail .price {
    font-size: 1.5rem;
    color: var(--reda);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Koupit tlačítko */
.product-detail form .button,
.product-detail .buy-button {
    padding: 0.6rem 1.2rem;
    background: var(--reda);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-detail form .button:hover {
    background: var(--reda-dark);
}

/* Oblíbené tlačítko */
.product-detail .favourite-button {
    display: inline-block;
    background: #eee;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.product-detail .favourite-button:hover {
    background: var(--reda);
    color: #fff;
}

/* === DETAIL PRODUKTU - ZVĚTŠENÉ PÍSMO A VYLEPŠENÝ STYL === */

.fill {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    background: var(--reda-light);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    font-size: 1.8rem; /* větší základní písmo */
}

/* Obrázek produktu */
#detailImg {
    flex: 1 1 40%;
    text-align: center;
}

#detailImg img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Informace o produktu */
.detailTable {
    flex: 1 1 55%;
    font-size: 1.05rem;
    color: #333;
    border-collapse: collapse;
    width: 100%;
}

.detailTable td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

.detailTable td:first-child {
    font-weight: bold;
    color: #444;
    width: 50%;
}

.detailTable td[colspan="2"] {
    padding-top: 1rem;
    line-height: 1.6;
    font-size: 1.4rem;
    color: #444;
}

/* Oblíbené tlačítko */
#favourite .button {
    background: #eee;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    margin: 1.2rem 0 0;
    transition: all 0.2s ease;
}

#favourite .button:hover {
    background: var(--reda);
    color: #fff;
}

/* Koupit formulář */
form[id^="basketId"] {
    margin-top: 1rem;
    width: 100%;
}

form[id^="basketId"] input.inp {
    padding: 0.5rem;
    font-size: 1.05rem;
    width: 70px;
    text-align: right;
    margin-right: 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

form[id^="basketId"] .button {
    background: var(--reda);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background;
}

/* === MODERNIZOVANÝ STYL GLOBÁLNÍCH TLAČÍTEK === */

    .button {
    background: var(--reda);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
}
    .button:hover {
   background: var(--reda-dark);
   color: #fff;
    }

    /* === MODERNÍ STYL PRO INPUT TLAČÍTKA === */

input.button {
        background: var(--reda);
        color: #fff;
        border: none;
        padding: 0.6rem 1.2rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }


/* === TLAČÍTKA === */
input.button,
.button {
        background: var(--reda);
        color: #fff;
        border: none;
        padding: 0.6rem 1.2rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-block;
        text-align: center;
        line-height: normal;
}

input.button:hover,
.button:hover {
        background: var(--reda-dark);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input.button:focus,
.button:focus {
        outline: 2px solid var(--reda);
        outline-offset: 2px;
}

input[type="button"],
input.button,
.button {
        box-shadow: none;
        transition: all 0.2s ease-in-out;
}

/* Zarovnání doprava pro tlačítka s .fr */
.button.fr,
input.button.fr {
        float: right;
        margin-left: 1rem;
}
/* === HLAVNÍ MENU === */
.menu-container {
        background-color: var(--reda);
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        border-radius: 0 0 12px 12px;
}

.menu-container a {
        color: #fff;
        font-weight: 500;
        font-size: 1rem;
        margin: 0 0.8rem;
        text-decoration: none;
        padding: 0.5rem 0.8rem;
        border-radius: 6px;
        transition: background 0.3s ease, transform 0.2s ease;
}

.menu-container a:hover {
        background-color: var(--reda-dark);
        transform: translateY(-2px);
}

/* === BANNER WRAPPER === */
#intro-banner {
        max-width: 100%;
        margin: 2rem auto;
        padding: 1rem;
        background: var(--reda-light);
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#intro-banner .obrCont {
        text-align: center;
        margin-bottom: 1rem;
}

#intro-banner .obrCont img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
}

#intro-banner .obrCont img:hover {
        transform: scale(1.015);
}

/* === NAVIGACE MEZI BANNERY === */
#introZalozky {
        text-align: center;
        margin-top: 1rem;
        padding: 0;
}

#introZalozky li {
        display: inline-block;
        margin: 0 0.25rem;
}

#introZalozky a.navigace {
        display: inline-block;
        width: 12px;
        height: 12px;
        background: #ddd;
        border-radius: 50%;
        text-indent: -9999px;
        transition: background 0.3s ease;
}

#introZalozky a.navigace.active,
#introZalozky a.navigace:hover {
        background: var(--reda);
}

/* === HLAVIČKA A HORNÍ PANEL === */
#top {
        display: block !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 2rem;
        background: var(--reda-light);
        border-bottom: 1px solid #ddd;
}

/* Login panel vlevo */
#servmenu {
        flex: 0 0 auto;
        text-align: left;
        font-size: 1.2rem !important;
        color: #444;
}

/* Vynulujeme absolutní pozicování */
#search {
    position: relative; /* nebo static */
    margin: 1rem auto;
    left: unset;
    top: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    padding: 0;
    z-index: 10;
}


/* Vzhled vstupního pole */
#search .inp {
        flex: 1;
        height: 42px;
        padding: 0 12px;
        font-size: 16px;
        color: #333;
        border: 2px solid var(--reda);
        border-right: none;
        border-radius: 10px 0 0 10px;
        background: #fff;
        box-sizing: border-box;
        outline: none;
}

/* Styl tlačítka hledání */
#search input.button {
        width: 50px;
        height: 42px;
        background: var(--reda) url("/img/ico-search.png") no-repeat center center;
        background-size: 24px;
        border: 2px solid var(--reda);
        border-left: none;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
}

#search input.button:hover {
        background-color: var(--reda-dark);
}

/* Reset pozadí */
#search input,
#search .input-group-addon {
        background: transparent;
        border: none;
}

#search input.inp {
    height: 42px;
    border-radius: 10px 0 0 10px;
}

#search input.button {
    height: 42px;
    border-radius: 0 10px 10px 0;
    background: var(--reda) url("/img/ico-search.png") no-repeat center center;
    background-size: 24px;
}
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*Srovnání vyhledávacího boxu s tlačítkem*/
#search {
    display: flex;
    align-items: center; /* <– zarovná na střed vertikálně */
    justify-content: center;
    gap: 0;
    width: auto !important;
    max-width: 450px;
}

#search input.inp {
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--reda);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #fff;
    line-height: 42px;
    box-sizing: border-box;
    font-size: 16px;
}

#search input.button {
    height: 42px;
    width: 50px;
    border: 2px solid var(--reda);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: var(--reda) url("/img/ico-search.png") no-repeat center center;
    background-size: 24px;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

/* === KOŠÍK A ROZPOČET === */
#kosikContainer {
        flex: 0 0 auto;
        text-align: right;
        font-size: 1.1rem;
}

#limity {
        margin-bottom: 0.3rem;
        font-size: 1.2rem;
}

#kosik a {
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        font-size: 1.3rem;
}

/* === LOGIN PANEL === */
#panel-login {
        font-weight: 500;
        color: #333;
}
#panel-login a {
        color: #000000;
        text-decoration: none;
        font-weight: bold;
}
#panel-login a:hover {
        text-decoration: underline;
}

/* === RESPONSIVITA VYHLEDÁVÁNÍ === */
@media only screen and (max-width: 920px) {
   #search {
            position: relative;
            margin: 10px auto;
            left: unset;
            top: unset;
            justify-content: center;
   }
}

/*Výpis přihlašené osoby*/
#servmenu {
    text-align: right;
    background-color: var(--reda-light);  /* světlý podklad */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #444;
}

#servmenu a {
    color: var(--reda);
    font-weight: bold;
    text-decoration: none;
}

#servmenu a:hover {
    text-decoration: underline;
}


/* OPRAVA VELIKOSTI PÍSMA */

/* Globální nastavení */
body {
    font-size: 15px;
    line-height: 1.5;
}

input,
.button {
    font-size: 1.2rem;
}

/* Nadpisy */
h2 {
    font-size: 1.6rem;
}

.panel-left h2,
.panel-katalogy h2,
#aktuality h4 {
    font-size: 1.8rem; /* cca 22px */
}

.product-detail h1 {
    font-size: 2rem; /* cca 32px */
}

/* Textové bloky */
table td {
    font-size: 1.4rem;
}

.product-detail .right,
.product-detail table td,
form[id^="basketId"] .button {
    font-size: 1.4rem; /* 16px */
}

/* Produktové karty */
.prod h3,
.prod .inner h3 {
    font-size: 1.6rem; /* cca 19px */
}

/* Speciální styly */
.lightblue,
.sortPart {
    font-size: 1.8rem; /* cca 22px */
}

.prod .info a[id^="oblibenePridat"],
.prod .info a[id^="oblibeneOdebrat"],
.product-detail .favourite-button {
    font-size: 1.3rem; /* nebo jiná vhodná velikost */
}


/*Zpět na výběr tlačíko speciál*/
input.button.fr[value="zpět na výběr"] {
    font-size: 1.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    background-color: var(--reda);
    color: #fff;
    font-weight: 600;
}


html,
body {
    background: var(--reda-light) !important;
}

/* hlavní layout wrappery */
#main,
#page,
#content,
#wrapper,
.container,
.cont-box {
    background: var(--reda-light) !important;
}

.menu-container,
#top,
#header {
    background: var(--reda) !important;
}

.button,
input.button {
    background: var(--reda) !important;
}

.button:hover {
    background: var(--reda-dark) !important;
}