
/*
|--------------------------------------------------------------------------
| ESHOP-SPORT 6.0.0
| Header V6
|--------------------------------------------------------------------------
|
| Moderní responzivní hlavička
|
| Barevnost:
|   zelená  #46a935
|   tmavší  #419133
|   žlutá  #FFD700
|   šedá    #999999
|   bílá    #ffffff
|
| Zásada:
|   - fluidní šířky
|   - %, rem, em, clamp()
|   - minimum pevných rozměrů
|   - desktop / notebook / tablet / mobil
|
|--------------------------------------------------------------------------
*/


/* ========================================================================
   ZÁKLAD
   ======================================================================== */

.header-v6 {
    width: 100%;
    background: #46a935;
    color: #ffffff;
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
}

.header-v6 *,
.header-v6 *::before,
.header-v6 *::after {
    box-sizing: border-box;
}


/* ========================================================================
   HLAVNÍ KONTEJNER
   ======================================================================== */

.header-v6-inner {
    width: 96%;
    max-width: 1220px;
    min-height: 6.25rem;
    margin: 0 auto;

    display: flex;
    align-items: stretch;
    justify-content: space-between;

    gap: 1rem;
}


/* ========================================================================
   LOGO
   ======================================================================== */

.header-v6-logo {
    flex: 0 1 19%;
    min-width: 11rem;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-v6-logo a {
    display: flex;
    align-items: center;

    width: 100%;
    height: 100%;

    color: #ffffff;
    text-decoration: none;
}

.header-v6-logo img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 5rem;
    height: auto;

    object-fit: contain;
}


/* ========================================================================
   STŘEDNÍ ČÁST
   ======================================================================== */

.header-v6-main {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 0.45rem;
}


/* ========================================================================
   HORNÍ ODKAZY
   ======================================================================== */

.header-v6-links {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 0.35rem;

    line-height: 1.2;
    font-size: 0.85rem;
}

.header-v6-links a {
    color: #FFD700;
    text-decoration: none;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}

.header-v6-links a:hover,
.header-v6-links a:focus {
    color: #ffffff;
}

.header-v6-links-separator {
    color: #FFD700;
    user-select: none;
}


/* ========================================================================
   VYHLEDÁVÁNÍ
   ======================================================================== */

.header-v6-search {
    position: relative;

    width: 100%;
    max-width: 42rem;
}

.header-v6-search form {
    width: 100%;

    display: flex;
    align-items: stretch;

    margin: 0;
    padding: 0;

    background: #ffffff;
    border: 1px solid #999999;

    min-height: 2.75rem;
}

.header-v6-search input[type="search"] {
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;

    height: 2.65rem;

    margin: 0;
    padding: 0.55rem 0.8rem;

    border: 0 !important;
    outline: none;

    background: #ffffff;
    color: #444444;

    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;

    box-shadow: none;
}

.header-v6-search input[type="search"]::placeholder {
    color: #999999;
    opacity: 1;
}

.header-v6-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}


/* ========================================================================
   TLAČÍTKO VYHLEDÁVÁNÍ
   ======================================================================== */

.header-v6-search-button {
    flex: 0 0 auto;

    min-width: 3.25rem;
    min-height: 2.65rem;

    margin: 0;
    padding: 0.45rem 0.85rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.4rem;

    border: 0;
    border-left: 1px solid #999999;

    background: #FFD700;
    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 0.85rem;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.header-v6-search-button:hover,
.header-v6-search-button:focus {
    background: #e8c500;
    color: #ffffff;
}

.header-v6-search-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

.header-v6-search-button i {
    font-size: 1rem;
}

.header-v6-search-button-text {
    white-space: nowrap;
}


/* ========================================================================
   VYHLEDÁVÁNÍ – NAŠEPTÁVAČ
   ======================================================================== */

.header-v6-search .search-result {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    width: 100%;

    z-index: 1100;

    background: #ffffff;
    color: #444444;

    border: 1px solid #999999;
    border-top: 0;

    box-shadow:
        0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);

    font-size: 0.8rem;
}

.header-v6-search .search-result-01 {
    border: 1px solid #999999;
}

.header-v6-search .search-result-container {
    width: 100%;

    min-height: 3rem;

    padding: 0.45rem 0.6rem;

    display: flex;
    align-items: center;

    gap: 0.6rem;

    background: #ffffff;

    transition:
        background-color 0.15s ease;
}

.header-v6-search .search-result-container:hover {
    background: #f7f7f7;
}

.header-v6-search .search-result a {
    color: #444444;
}

.header-v6-search .search-result a:hover {
    color: #46a935;
}


/* ========================================================================
   PRAVÁ ČÁST
   ======================================================================== */

.header-v6-actions {
    flex: 0 1 37%;

    min-width: 20rem;

    display: flex;
    align-items: stretch;
    justify-content: flex-end;

    position: relative;
}


/* ========================================================================
   UŽIVATEL
   ======================================================================== */

.header-v6-user {
    flex: 1 1 50%;

    min-width: 9rem;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    padding: 0.6rem 0.75rem;

    color: #ffffff;

    transition:
        background-color 0.15s ease;
}

.header-v6-user:hover {
    background: #419133;
}

.header-v6-user a {
    color: #FFD700;
    text-decoration: none;
}

.header-v6-user a:hover,
.header-v6-user a:focus {
    color: #ffffff;
}

.header-v6-icon {
    flex: 0 0 auto;

    width: 3.5rem;
    height: 3.5rem;

    border: 2px solid #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
}

.header-v6-icon i {
    font-size: 1.65rem;
}

.header-v6-action-text {
    min-width: 0;

    color: #FFD700;

    text-align: left;

    font-size: 0.82rem;
    line-height: 1.35;
}

.header-v6-action-text .b {
    font-weight: 700;
}


/* ========================================================================
   KOŠÍK
   ======================================================================== */

.header-v6-cart {
    flex: 1 1 50%;

    min-width: 9rem;

    position: relative;

    display: flex;
    align-items: stretch;

    color: #ffffff;
}

.header-v6-cart > .shopping-cart {
    width: 100%;

    min-height: 6.25rem;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    padding: 0.6rem 0.75rem;

    color: #ffffff;

    cursor: pointer;

    transition:
        background-color 0.15s ease;
}

.header-v6-cart > .shopping-cart:hover {
    background: #419133;
}

.header-v6-cart .shopping-cart .text {
    color: #FFD700;

    text-align: right;

    font-size: 0.82rem;
    line-height: 1.35;
}

.header-v6-cart .shopping-cart .text .b {
    font-weight: 700;
}

.header-v6-cart .shopping-cart a {
    color: #ffffff;
    text-decoration: none;
}

.header-v6-cart .shopping-cart a:hover {
    color: #FFD700;
}


/* ========================================================================
   KRUH IKONY KOŠÍKU
   ======================================================================== */

.header-v6-cart .ring {
    flex: 0 0 auto;

    width: 3.5rem;
    height: 3.5rem;

    border: 2px solid #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-v6-cart .ring .fa,
.header-v6-cart .ring .fas {
    color: #ffffff;
}

.header-v6-cart .ring .fa-shopping-basket,
.header-v6-cart .ring .fa-shopping-cart {
    font-size: 1.55rem;
}


/* ========================================================================
   DETAIL KOŠÍKU
   ======================================================================== */

.header-v6-cart > #shopping-cart_detail {
    position: absolute;

    top: 100%;
    right: 0;

    width: min(34rem, 94vw);

    height: auto;

    padding: 0.75rem;

    background: #f8f8f8;
    color: #444444;

    visibility: hidden;
    opacity: 0;

    z-index: 1200;

    border: 1px solid #dddddd;

    box-shadow:
        0 0.6rem 1.5rem rgba(70, 169, 53, 0.25);

    transform: translateY(-0.25rem);

    pointer-events: none;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}


/*
 * Detail košíku zobrazíme při najetí na samotný košík
 * nebo přímo na detail.
 */

.header-v6-cart:hover > #shopping-cart_detail,
.header-v6-cart > #shopping-cart_detail:hover {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


/* ========================================================================
   ŠIPKA KOŠÍKU
   ======================================================================== */

.header-v6-cart > #shopping-cart_detail .arrow {
    position: absolute;

    top: -0.55rem;
    right: 2.8rem;

    width: 0;
    height: 0;

    border-left: 0.55rem solid transparent;
    border-right: 0.55rem solid transparent;
    border-bottom: 0.55rem solid #f8f8f8;

    z-index: 1201;
}


/* ========================================================================
   POLOŽKY V KOŠÍKU
   ======================================================================== */

.header-v6-cart .shopping_cart_container {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 0.5rem;

    padding: 0.35rem 0;

    border-bottom: 1px solid #999999;
}

.header-v6-cart .shopping_cart_item {
    min-width: 0;
}

.header-v6-cart .shopping_cart_item img {
    max-width: 100%;
    height: auto;
}

.header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(1) {
    flex: 0 0 4rem;
}

.header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(2) {
    flex: 1 1 auto;

    overflow: hidden;

    font-size: 0.78rem;
}

.header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(3) {
    flex: 0 0 2.5rem;

    text-align: center;
}

.header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(4) {
    flex: 0 0 5.5rem;

    text-align: right;
}


/* ========================================================================
   DOPRAVA V KOŠÍKU
   ======================================================================== */

.header-v6-cart .shopping_cart_transport {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 0.5rem;

    padding: 0.65rem 0;

    font-size: 0.78rem;

    line-height: 1.35;
}

.header-v6-cart .shopping_cart_transport svg {
    flex: 0 0 auto;

    width: 2.5rem;
    height: 2.5rem;
}

.header-v6-cart .shopping_cart_transport .fa-truck {
    color: #46a935;
}


/* ========================================================================
   CELKOVÁ CENA KOŠÍKU
   ======================================================================== */

.header-v6-cart .shopping_cart_container_price {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 0.75rem;

    padding-top: 0.75rem;

    border-top: 1px solid #999999;
}

.header-v6-cart .shopping_cart_container_price .shopping_cart_item {
    flex: 1 1 50%;
}

.header-v6-cart .shopping_cart_container_price .price {
    margin: 0;

    font-size: 1.25rem;
    font-weight: 700;

    line-height: 1.2;
}

.header-v6-cart .shopping_cart_container_price .info {
    margin: 0;

    color: #999999;

    font-size: 0.7rem;
    font-style: italic;
}

.header-v6-cart .shopping_cart_container_price input[type="button"] {
    width: 100%;

    padding: 0.6rem 0.75rem;

    border: 1px solid #515151;

    background: #515151;
    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 0.8rem;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.header-v6-cart .shopping_cart_container_price input[type="button"]:hover {
    background: #46a935;
    border-color: #46a935;
}


/* ========================================================================
   SKRYTÝ LABEL
   ======================================================================== */

.header-v6 .sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* ========================================================================
   NOTEBOOK
   ======================================================================== */

@media screen and (max-width: 1199px) {

    .header-v6-inner {
        width: 96%;

        gap: 0.75rem;
    }

    .header-v6-logo {
        flex-basis: 18%;
        min-width: 9rem;
    }

    .header-v6-logo img {
        max-height: 4.5rem;
    }

    .header-v6-actions {
        flex-basis: 40%;

        min-width: 18rem;
    }

    .header-v6-user,
    .header-v6-cart {
        min-width: 8.5rem;
    }

    .header-v6-icon,
    .header-v6-cart .ring {
        width: 3rem;
        height: 3rem;
    }

    .header-v6-action-text,
    .header-v6-cart .shopping-cart .text {
        font-size: 0.76rem;
    }

    .header-v6-search-button-text {
        display: none;
    }

    .header-v6-search-button {
        width: 3rem;
        min-width: 3rem;

        padding: 0;
    }
}


/* ========================================================================
   TABLET
   ======================================================================== */

@media screen and (max-width: 991px) {

    .header-v6-inner {
        width: 94%;

        min-height: auto;

        flex-wrap: wrap;

        padding: 0.75rem 0;
    }

    .header-v6-logo {
        flex: 0 0 30%;
        min-width: 0;

        order: 1;
    }

    .header-v6-main {
        flex: 1 1 70%;

        order: 2;

        gap: 0.35rem;
    }

    .header-v6-actions {
        flex: 1 1 100%;

        order: 3;

        min-width: 0;

        min-height: 4.5rem;
    }

    .header-v6-user,
    .header-v6-cart {
        min-height: 4.5rem;
    }

    .header-v6-cart > .shopping-cart {
        min-height: 4.5rem;
    }

    .header-v6-search {
        max-width: none;
    }

    .header-v6-links {
        justify-content: flex-end;

        font-size: 0.8rem;
    }

    .header-v6-cart > #shopping-cart_detail {
        width: min(34rem, 92vw);
    }
}


/* ========================================================================
   VELKÝ MOBIL
   ======================================================================== */

@media screen and (max-width: 767px) {

    .header-v6-inner {
        width: 94%;

        padding: 0.6rem 0;
    }

    .header-v6-logo {
        flex: 0 0 36%;
    }

    .header-v6-logo img {
        max-height: 3.8rem;
    }

    .header-v6-main {
        flex: 1 1 64%;
    }

    .header-v6-links {
        justify-content: flex-end;

        font-size: 0.72rem;

        white-space: nowrap;
    }

    .header-v6-search input[type="search"] {
        height: 2.45rem;

        padding:
            0.45rem
            0.65rem;

        font-size: 0.85rem;
    }

    .header-v6-search-button {
        min-height: 2.45rem;
        width: 2.75rem;
        min-width: 2.75rem;
    }

    .header-v6-actions {
        min-height: 4rem;
    }

    .header-v6-user,
    .header-v6-cart {
        min-height: 4rem;

        padding:
            0.45rem
            0.5rem;
    }

    .header-v6-cart > .shopping-cart {
        min-height: 4rem;

        padding:
            0.45rem
            0.5rem;
    }

    .header-v6-icon,
    .header-v6-cart .ring {
        width: 2.75rem;
        height: 2.75rem;
    }

    .header-v6-icon i {
        font-size: 1.25rem;
    }

    .header-v6-cart .ring .fa-shopping-basket,
    .header-v6-cart .ring .fa-shopping-cart {
        font-size: 1.25rem;
    }

    .header-v6-action-text,
    .header-v6-cart .shopping-cart .text {
        font-size: 0.7rem;
    }

    .header-v6-cart > #shopping-cart_detail {
        position: fixed;

        top: auto;
        right: 3%;

        width: 94vw;

        max-height: 75vh;

        overflow-y: auto;
    }
}


/* ========================================================================
   MOBIL
   ======================================================================== */

@media screen and (max-width: 575px) {

    .header-v6-inner {
        width: 94%;

        display: grid;

        grid-template-columns:
            minmax(7rem, 32%)
            minmax(0, 68%);

        gap: 0.5rem;
    }

    .header-v6-logo {
        width: 100%;

        grid-column: 1;
        grid-row: 1;
    }

    .header-v6-logo img {
        max-height: 3.25rem;
    }

    .header-v6-main {
        width: 100%;

        grid-column: 2;
        grid-row: 1;
    }

    .header-v6-links {
        justify-content: flex-end;

        gap: 0.2rem;

        font-size: 0.65rem;
    }

    .header-v6-search form {
        min-height: 2.35rem;
    }

    .header-v6-search input[type="search"] {
        height: 2.3rem;

        font-size: 0.8rem;
    }

    .header-v6-search-button {
        width: 2.5rem;
        min-width: 2.5rem;

        min-height: 2.3rem;
    }

    .header-v6-actions {
        width: 100%;

        grid-column: 1 / -1;
        grid-row: 2;

        min-height: 3.8rem;
    }

    .header-v6-user,
    .header-v6-cart,
    .header-v6-cart > .shopping-cart {
        min-height: 3.8rem;
    }

    .header-v6-icon,
    .header-v6-cart .ring {
        width: 2.5rem;
        height: 2.5rem;
    }

    .header-v6-action-text,
    .header-v6-cart .shopping-cart .text {
        font-size: 0.65rem;
    }

    .header-v6-cart > #shopping-cart_detail {
        right: 3%;

        width: 94vw;

        padding: 0.6rem;
    }

    .header-v6-cart .shopping_cart_container {
        gap: 0.3rem;
    }

    .header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(1) {
        flex-basis: 3.5rem;
    }

    .header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(3) {
        flex-basis: 2rem;
    }

    .header-v6-cart .shopping_cart_container .shopping_cart_item:nth-child(4) {
        flex-basis: 4.5rem;
    }

    .header-v6-cart .shopping_cart_container_price {
        flex-direction: column;
        align-items: stretch;
    }

    .header-v6-cart .shopping_cart_container_price .shopping_cart_item {
        width: 100%;
    }
}


/* ========================================================================
   EXTRA MALÉ MOBILY
   ======================================================================== */

@media screen and (max-width: 400px) {

    .header-v6-inner {
        width: 95%;
    }

    .header-v6-logo img {
        max-height: 2.8rem;
    }

    .header-v6-links {
        font-size: 0.58rem;
    }

    .header-v6-user,
    .header-v6-cart,
    .header-v6-cart > .shopping-cart {
        padding:
            0.35rem
            0.25rem;
    }

    .header-v6-icon,
    .header-v6-cart .ring {
        width: 2.25rem;
        height: 2.25rem;
    }

    .header-v6-action-text,
    .header-v6-cart .shopping-cart .text {
        font-size: 0.58rem;
    }
}


/* ========================================================================
   PŘÍSTUPNOST – REDUKOVANÉ ANIMACE
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {

    .header-v6 *,
    .header-v6 *::before,
    .header-v6 *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}




