/* Oswald - self-hosted (SIL OFL 1.1, viz fonts/OFL.txt).
   Variabilni rez, jeden soubor pokryva celou osu vah 200-700, kterou base.css pouziva.
   Subsety latin a latin-ext jsou disjunktni (latin konci na U+00FF, latin-ext tam zacina),
   takze jsou potreba oba; unicode-range zaridi, ze se latin-ext stahne jen kdyz je treba. */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url('../fonts/oswald-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #EB7823;
    --dark: #343A40;
    --gray: #808283;
    --light-gray: #CED4DA;
    --green: #28A745;
    --light: #F8F9FA;
    --red: #C82333;
    --blue: #58AAFF;

    --font-size-small: 15px;
    --line-height-small: 26px;

    --font-size-large: 28px;
    --line-height-large: 41px;

    --font-size-xlarge: 36px;
    --line-height-xlarge: 53px;

    --font-size-medium: 18px;
    --line-height-medium: 26px;

    --breakpoint-mobile: 495px;
    --breakpoint-tablet: 729px;
    --breakpoint-desktop-small: 1007px;
    --max-width: 1488px;
}

/* Remove default Chrome focus outline */
*:focus {
    outline: none;
}

/* Optional: Add custom focus style if desired */
*:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: -2px;
}

strong, b {
        font-weight: 400;
}

body{
    /*background: url('/2025-header.jpg') no-repeat top left fixed;*/
    background-color: #fff;
    line-height: var(--line-height-medium);
    font-size: var(--font-size-medium);
    color: var(--dark);
}
h1{
    font-size: var(--font-size-xlarge);
    line-height: var(--line-height-xlarge);
    font-weight: 400;
}
h2{
    font-weight: 400;
}
a{
    color: var(--primary);
}
.top-bar-wrapper{
    background-color: var(--dark);
}
.top-bar{
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--light);
    padding: 0 24px;
    line-height: 36px;
    display: flex;
    justify-content: space-between;
}
@media (max-width: 495px) {
    .top-bar {
        padding: 0 12px;
    }
}

.region-switch{
    cursor: pointer;
}
.region-switch img{
    display: inline-block;
    width: 24px;
    margin-right: 6px;
}
.region-switch svg{
    display: inline-block;
    width: 18px;
    height: 18px;
    color: var(--light);
    border: 1px solid var(--light);
    padding: 2px;
    margin-left: 6px;
    margin-bottom: -2px;
}

.shop-open{
    font-weight: 400;
    position: relative;
    padding-left: 15px;
    &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        background-color: var(--green);
        border-radius: 50%;
    }
}
.shop-open.is-closed::before {
    background-color: var(--red);
}
.footer-shop-opening {
    position: relative;
    padding-left: 15px;
}
.footer-shop-opening::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--green);
    border-radius: 50%;
}
.footer-shop-opening.is-closed::before {
    background-color: var(--red);
}
header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}
header .container{
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}
header .logo{
    display: inline-block;
    height: 24px;
    width: 130px;
}
header .cart-box, header .favorites-box{
    position: relative;
}
header .cart-box svg{
    margin-right: 6px;
}
header .favorites-box svg{
    margin-right: 6px;
}
header .favorites-box .cart-box-count{
  left: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 36px;
}
header .search{
    position: relative;
    border: 1px solid var(--light-gray);
    border-radius: 0 16px 16px 0;
    padding: 12px;
    height: 36px;
    line-height: 36px;
    display: flex;
    align-items: center;
}
header .search #searchType{
    -webkit-appearance: none;
    appearance: none;
    height: 28px;
    line-height: 28px;
    padding: 0 20px 0 0;
    border: 0;
    border-radius: 0;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23343A40' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 10px 6px;
    color: #000;
    cursor: pointer;
}
header .search button{
    background: none;
    border: none;
    cursor: pointer;
    height: 36px;
    line-height: 36px;
}
header .search input{
    padding-left: 12px;
    background: none;
    outline: none;
    border: none;
    width: 300px;
}



header .search svg{
    width: 22px;
    height: 20px;
    color: var(--dark);
}


.header-actions {
    display: flex;
    gap: 32px;
    align-items: center;
}
.header-actions a{
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
}
.header-actions a:hover{
    color: var(--primary);
}

header nav{
    max-width: var(--max-width);
    margin: 0 auto;
}

header nav>ul{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0 24px;
    font-size: 24px;
    line-height: 36px;
    margin-top: 4px
}
header nav>ul>li{
    position: relative;
    padding: 0 20px;
    margin-right: 8px;
    &::after {
        content: '';
        position: absolute;
        left: 0;
        top: 18px;
        width: 14px;
        height: 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m1.399 8.999 5.29-5.283L11.979 9' style='fill:none;stroke:%23EB7823;stroke-width:2px'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        color: var(--primary);
        transform: translateY(-50%) rotate(90deg);
    }
}
header nav a{
    color: var(--dark);
    text-decoration: none;
    font-weight: 400;
}
header nav a:hover{
    text-decoration: underline;

}
header nav div{
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 900px; /* pevná šířka */
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 sloupců */
    gap: 12px;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}

header nav div.dropdown-columns-4 {
    width: 720px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

header nav div.dropdown-columns-3 {
    width: 540px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

header nav h3{
   
    font-weight: 400;
}
header nav div ul{
    border-top: 1px solid var(--light-gray);
    padding-top: 6px;
}
header nav div a{
    line-height: 30px;
    font-weight: 200;
}
header nav li:hover div {
    display: grid !important;
}
@media (max-width: 1007px) {
    header nav li:hover div{
        display: none !important;
    }
}

.header-actions svg{
    height: 30px;
}
.header-actions .icon-cart{
    width: 32px;
}
.header-actions .icon-heart{
    width: 28px;
}
.header-actions .icon-user{
    width: 24px;
}

.cart-box-count{
    position: absolute;
    left: 34px;
    top: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
}

.hamburger {
    width: 36px;
    height: 36px;
    position: relative;
    top: -4px;
    cursor: pointer;
    display: inline-block;
    border: 1px solid var(--light-gray);
    margin-right: 12px;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 10px;
    width: 16px;
    height: 2px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: 10px;
}

.hamburger span {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::after {
    bottom: 10px;
}

/* Optional: Add hover effect */
.hamburger:hover::before,
.hamburger:hover::after,
.hamburger:hover span {
    background-color: var(--primary);
}

/* Optional: Add animation for when menu is open */
.hamburger.active::before {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span {
    opacity: 0;
}

.hamburger.active::after {
    transform: translateY(-11px) rotate(-45deg);
}


@media (max-width: 1007px) {
    header .container {
        flex-direction: column;
        padding: 18px;
    }

    .header-left {
        width: 100%;
        display: block;
    }

    header .logo {
        margin-bottom: 12px;
    }

    header .search {
        width: 100%;
        margin: 0;
        margin-top: 8px;
        border-radius: 16px;
    }

    header .search input {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .header-actions {
        position: absolute;
        right: 20px;
        top: 16px;
        gap: 12px;
        justify-content: flex-end;
    }

    .header-actions a {
        font-size: var(--font-size-small);
    }

    header nav {
        margin-left: 0;
        padding-right: 20px;
        margin-top: 0;
        padding-top: 5px;
        padding-left: 0px;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        overflow: scroll;
        list-style: none;
        position: fixed;
        height: auto;
        line-height: normal;
        display: block;
        top: 0;
        left: 0;
        z-index: 10;
    }
    header nav ul{
        position: relative;
        background: #fff;
        gap: 0;
        padding: 80px 0 12px 0;
        margin-top: 32px;
    }
    header nav li{
        width: 100%;
        text-align: left;
        float: none;
        border-top: 1px solid var(--light-gray);
        height: 48px;
        padding: 0;
    }
    header nav li a, header nav li strong{
        padding: 0 12px;
        display: block;
    }
    header nav>ul>li{
        color: var(--primary);
        padding: 0;
        margin-right: 0;
        &::after {
            left: auto;
            right: 16px;;
            color: var(--dark);
            top: 24px;
        }
    }
    header nav>ul>li a, header nav>ul>li strong{
        height: 48px;
        line-height: 48px;
    }
    header li.close-menu{
        position: absolute;
        right: 8px;
        top: 16px;
        border: 1px solid var(--light-gray);
        width: 36px;
        height: 36px;
        padding: 0;
        cursor: pointer;
        box-sizing: border-box;
    }
    header li.close-menu::after{
        display: none;
    }
    header li.close-menu span {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
        cursor: pointer;
    }
    header li.close-menu span::after {
        content: '×';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        line-height: 1;
        color: var(--dark);
    }

    header nav div{
        position: static;
        background: white;
        width: 100%;
        padding: 16px;
        
        font-size: var(--font-size-medium);
        line-height: var(--line-height-medium);
    }
    header nav div.dropdown {
        width: 100%;
    }
    .back-to-main-menu{
        display: none;
    }

    .submenu-open>li{
        display: none;
    }
    .submenu-open>li.close-menu{display: block !important;}
    .submenu-open>li.open{
        display: block !important;
        text-align: right;
    }
    .submenu-open>li.open>a{
        padding-right: 36px;
    }
    
    header nav li.open div, header nav li.open:hover div {
        display: block !important;
    }
    .back-to-main-menu{
        position: absolute;
        left: 12px;
        top: 80px;
        width: 36px;
        height: 36px;
        border: 0;
        z-index: 10;
    }
    .back-to-main-menu::after {
        transform: rotate(-90deg);
    }
    .back-to-main-menu span{
        display: none;
    }
    header nav ul ul{
        border-top:0;
        margin-top:0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
}

main{
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 495px) {
    main{
        padding: 0 ;
    }
}

.breadcrumbs{
    margin-top:12px;
}

.breadcrumbs li{
    display: inline-block;
    padding: 6px 12px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    position: relative;
}
.breadcrumbs li:first-child {
    padding-left: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '\\';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.breadcrumbs a{
    color: var(--dark);
    text-decoration: none;
}
.breadcrumbs a:hover{
    color: var(--primary);
    text-decoration: underline;
}
@media (max-width: 495px) {
    .breadcrumbs{
        padding: 0 12px;
        margin-top: 0;
        margin-bottom: 6px;
    }
}


.content {
    display: flex;
    gap: 24px;
}

/* styles for articles*/
.articles {
    padding: 24px 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.articles article {
    min-width: 0;
}
.articles article a {
    text-decoration: none;
    color: var(--dark);
}
.articles article h2{
    padding: 12px 0;
}
.articles article a span{
    text-decoration: underline;
}
.articles article a:hover span{
    text-decoration: none;
}
.articles article img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border: 1px solid var(--light-gray);
}

.article{
    padding-bottom: 24px;
    max-width: 770px;
    margin: 0 auto;
}
.article h2{
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    font-weight: 200;
    padding: 12px 0 24px 0;
}
.article p{
    padding: 8px 0;
}
.article ul{
    padding-left: 24px;
}
.article ul li{
    padding: 4px 0;
    list-style: disc;
}


/* homepage.css */
.main-carousel-wrap {
    position: relative;
    margin-bottom: 24px;
}
.main-carousel {
    height: 360px;
    width: 100%;
    margin-bottom: 0;
}
.carousel-cell {
    width: 100%;
    height: 360px;
    background: url('/imgs/front/slider-default.jpg') no-repeat center center;
    background-size: cover;
}
.carousel-cell article {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px;
    color: var(--light);
}
.carousel-cell article .banner-heading {
    display: block;
    margin-bottom: 16px;
    font-size: var(--font-size-xlarge);
    line-height: var(--line-height-xlarge);
    font-weight: 400;
}
.carousel-cell article p {
    margin-bottom: 24px;
    font-weight: 500;
    max-width: 600px;
}
.main-carousel a {
    display: inline-block;
    padding: 0 24px;
    line-height: 38px;
    color: var(--light);
    border: 1px solid var(--light);
    border-radius: 20px;
    text-decoration: none;
    height: 40px;
    font-weight: 500;
}
.main-carousel a:hover {
    background: var(--dark);
    border-color: var(--dark);
}
.homepage-slider-arrow,
.homepage-product-slider-arrow {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    cursor: pointer;
}
.homepage-slider-arrow:hover,
.homepage-product-slider-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.homepage-slider-arrow:disabled,
.homepage-product-slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
.homepage-slider-arrow svg,
.homepage-product-slider-arrow svg {
    width: 18px;
    height: 18px;
}
.homepage-slider-arrow {
    top: 50%;
    transform: translateY(-50%);
}
.homepage-slider-arrow-left {
    left: 16px;
}
.homepage-slider-arrow-right {
    right: 16px;
}
.homepage-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.homepage-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.homepage-slider-dot.is-active {
    background: #fff;
}
@media (max-width: 729px) {
    .carousel-cell article {
        padding: 56px 64px;
    }
}
@media (max-width: 495px) {
    .main-carousel,
    .carousel-cell {
        height: 320px;
    }
    .carousel-cell article {
        padding: 44px 52px;
    }
}


/* pas pismen P s benefity - fluidni, roztahuje se s sirkou stranky */
.benefits {
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}
/* 9 pismen P (7 + 2 oriznuta na okrajich) se stredy rovnomerne na osminach sirky pasu.
   P se pod 1488px NEzmensuji (fixne 134px = 9% z max sirky) - zmensuji se jen rozestupy
   a seda P prechazeji pod cerna (z-index). Grid: stredy sloupcu na 12.5%..87.5%
   -> padding W/16 = 6.25%, 7 sloupcu po 1fr, P centrovane (muze pretekat sloupec). */
.benefit-list {
    display: grid;
    /* minmax(0,1fr) - jinak ma 1fr minimum min-content (134px) a sloupce se nezmensi */
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-items: center;
    padding: 0 6.25%;
}
.benefit-item {
    position: relative;
    width: 134px;
    z-index: 1;
    /* pomer stran dle viewBoxu #big-p */
    aspect-ratio: 142 / 159;
}
.benefit-item.grey {
    z-index: 0;
}
.benefit-item svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
/* text vzdy uvnitr tmave hlavy P - kruh zabira horni cast (sirka 100%, vyska 87.8% viewBoxu) */
.benefit-item span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 87.8%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    font-weight: 400;
    line-height: 1.3;
    font-size: 15px;
}
.benefit-item.grey svg  {
    color: var(--light-gray);
}
/* oriznuta seda P na okrajich pasu - stred na hrane stranky */
.benefit-item.left,
.benefit-item.right {
    position: absolute;
    top: 10px;
    width: 134px;
    aspect-ratio: 142 / 159;
}
.benefit-item.left {
    left: -67px;
}
.benefit-item.right {
    right: -67px;
}

/* PhoneX 496-729px: 4 tmava P 2x2, sede P jako husty vzor na pozadi (oriznuty okraji) */
@media (min-width: 496px) and (max-width: 729px) {
    .benefits {
        padding: 10px 0;
    }
    .benefit-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
        padding: 20px 0 30px;
        /* seda P ve stejnych radach jako tmava: oriznute na krajich + uprostred.
           SVG obsahuje obe rady pod sebou (134px P + 12px mezera), 3 vrstvy = levy kraj / stred / pravy kraj */
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 331'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 341.437)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 331'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 341.437)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 331'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 341.437)'/%3E%3C/svg%3E");
        background-size: 134px 312px;
        background-repeat: no-repeat;
        background-position: -67px 20px, 50% 20px, calc(100% + 67px) 20px;
    }
    .benefit-list .benefit-item.grey,
    .benefit-item.left,
    .benefit-item.right {
        display: none;
    }
}

/* PhoneSm do 495px: stejny princip jako PhoneX, jen mensi P (110px) */
@media (max-width: 495px) {
    .benefits {
        padding: 10px 0;
    }
    .benefit-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
        padding: 16px 0 24px;
        /* seda P ve stejnych radach jako tmava: oriznute na krajich + uprostred.
           SVG obsahuje obe rady pod sebou (110px P + 12px mezera), 3 vrstvy = levy kraj / stred / pravy kraj */
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 334'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 344.237)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 334'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 344.237)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 334'%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 169.737)'/%3E%3Cpath d='M88.627 169.737c-39.065 0-70.735-31.276-70.735-69.832 0-1.966.132-3.914.295-5.843V11.307h53.355v20.905c5.465-1.344 11.174-2.139 17.085-2.139 39.053 0 70.734 31.269 70.734 69.832 0 38.556-31.681 69.832-70.734 69.832' fill='%23CED4DA' transform='matrix(1 0 0 -1 -17.892 344.237)'/%3E%3C/svg%3E");
        background-size: 110px 258px;
        background-repeat: no-repeat;
        background-position: -55px 16px, 50% 16px, calc(100% + 55px) 16px;
    }
    .benefit-item {
        width: 110px;
    }
    .benefit-item span {
        font-size: 13px;
    }
    .benefit-list .benefit-item.grey,
    .benefit-item.left,
    .benefit-item.right {
        display: none;
    }
}

.homepage-description {
    width: 100%;
    margin: 25px 0;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
}
.homepage-description h1 {
    padding-bottom: 10px;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
}
.homepage-description p {
    color: var(--gray);
    font-style: italic;
}

.promoted-products {
    padding: 24px 0;
}

.promoted-products.gray {
    background: var(--light);
}
.promoted-products.gray article:hover{
    background: #fff;
}
.promoted-products>h2 {
    font-size: var(--font-size-xlarge);
    line-height: var(--line-height-xlarge);
    font-weight: 200;
}
.promoted-products .products {
    padding: 0 8px;
}
.homepage-product-slider {
    container-type: inline-size;
    position: relative;
    padding: 0;
}
.promoted-products .homepage-product-slider-track {
    padding: 0;
}
.homepage .homepage-product-slider .products {
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
}
.homepage .homepage-product-slider .products article {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    margin-top: 0;
    box-sizing: border-box;
}
.homepage .homepage-product-slider .products article .image {
    flex: 0 0 auto;
}
.homepage .homepage-product-slider .products article h3 {
    font-weight: 400;
}
.homepage-product-buy-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.homepage-product-buy-box .price {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 36px;
    padding: 0;
}
.homepage .homepage-product-slider .products article .homepage-product-buy-box .add-to-cart {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 80px;
    right: auto;
    bottom: auto;
    line-height: 1;
}
.homepage .homepage-product-slider .products article .homepage-product-buy-box .add-to-cart .icon-cart-s {
    margin-top: 0;
}
.homepage-product-slider-arrow {
    top: 12.5cqw;
    transform: translateY(-50%);
}
.homepage-product-slider-arrow-left {
    left: -22px;
}
.homepage-product-slider-arrow-right {
    right: -22px;
}
.homepage-product-slider.is-static {
    padding: 0;
}
.homepage-product-slider.is-static .homepage-product-slider-arrow {
    display: none;
}
.promoted-products a.button {
    margin-top: 12px;
    
}
@media (max-width: 729px) {
    .homepage-product-slider {
        padding: 0;
    }
    .homepage-product-slider-arrow {
        top: 25cqw;
        width: 40px;
        height: 40px;
    }
    .homepage-product-slider-arrow-left {
        left: 8px;
    }
    .homepage-product-slider-arrow-right {
        right: 8px;
    }
}
@media (max-width: 495px) {
    .homepage-product-slider {
        padding: 0;
    }
    .homepage-product-slider-arrow {
        top: 50cqw;
    }
    .homepage-product-slider-arrow-left {
        left: 8px;
    }
    .homepage-product-slider-arrow-right {
        right: 8px;
    }
    .homepage .homepage-product-slider .products {
        flex-direction: row;
    }
}

.button{
    display: inline-block;
    padding: 0 24px;
    line-height: 38px;
    color: var(--dark);
    border: 1px solid var(--gray);
    border-radius: 20px;
    text-decoration: none;
    height: 40px;
    font-weight: 500;
}

/* catalog.css */

main .container{
    flex: 3;  /* Takes space of 3 products */
}

@media (max-width: 495px) {
    .content > .container {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
}

.products article {
    margin-top: 24px;
    position: relative;
    flex: 0 0 calc((100%) / 3); /* 48px accounts for 2 gaps between 3 items */
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark);
    
}
.products article a{
    text-decoration: none;
    color: var(--dark);
    padding:6px 0;
}

.products article:hover{
    background-color: var(--light);
}

.products article .image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.products article .image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products article span{
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.products article .price{
    font-weight: 400;
}

.products article .in-stock, .product .in-stock,
.products article .on-order, .product .on-order{
    color: var(--green);
    position: relative;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    padding-left: 15px;
    &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 60%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        background-color: var(--green);
        border-radius: 50%;
    }
}
.products article .on-order, .product .on-order{
    color: var(--blue);
    &::before {
        background-color: var(--blue);
    }
}
.product .unavailable {
    color: var(--red);
    position: relative;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    padding-left: 15px;
}
.product .unavailable::before {
    content: '';
    position: absolute;
    left: 0;
    top: 60%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--red);
    border-radius: 50%;
}

.products article .price{
    padding: 8px 0;
}

.products article button{
    position: absolute;
    right: 24px;
    bottom: 42px;
    width: 80px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 18px;
    height: 36px;
    line-height: 36px;
    cursor: pointer;
    /* nad textem dostupnosti (.in-stock je position:relative a v DOM pozdeji) - jinak prekryv blokuje kliknuti */
    z-index: 1;
}
.products article button:hover{
    border-color: var(--primary);
}
.products article button .icon-cart-s{
    display: inline-block;
    margin-top: 8px;
    width: 22px;
    height: 20px;
}
.products article button .icon-plus-xxs{
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 2px;
    position: relative;
    top: -4px;
    color: var(--primary);
}

.products article .wishlist-btn{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 32px;
    height: 32px;
    line-height: 28px;
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background: white;
    text-align: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 14'%3E%3Cpath d='m17.411 12.377-.63-.634-4.606-4.635-4.605 4.635-.629.63c-1.271 1.279-1.271 3.354 0 4.634 1.272 1.28 3.334 1.28 4.606 0l.627-.631.623.631c.61.616 1.439.96 2.302.959h.004c.864.002 1.693-.343 2.304-.959 1.272-1.277 1.274-3.35.004-4.63Z' style='fill:none;fill-rule:nonzero;stroke:%23000;stroke-width:2px' transform='matrix(1 0 0 -1 -4.67501 19.017)'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    cursor: pointer;
}
.products article .wishlist-btn:hover{
    border-color: var(--primary);
}
.products article:hover .wishlist-btn{
    display: block;
}

.products article .is-favorite{
    display: block;
    border-color: var(--primary);
}

@media (max-width: 375px) {
    .products article{
        padding: 0;
    }
}

/* list style */
.products.list {
    margin-top: 24px;
    flex-direction: column;
    gap: 0;
}
.products.list article {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    aspect-ratio: initial;
    max-height: none;
    margin-top: 0;
    padding: 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--light-gray);
}
/* obrazek vlevo, pevny ctverec */
.products.list article .image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    max-width: none;
    max-height: none;
    margin-right: 0;
    aspect-ratio: 1;
}
/* textovy odkaz (interpret / album / meta) zabira zbytek sirky.
   flex-basis 0 = nezalomi se pod obrazek, roste do zbytku radku */
.products.list article > a:not(.image) {
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
}
.products.list article h2 {
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    flex-grow: 0;
}
.products.list article a p {
    margin-top: 4px;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--gray);
}
/* heart vzdy viditelny ve vypisu */
.products.list article .wishlist-btn {
    display: block;
}
/* buy-box: desktop = cena + kosik na jednom radku, sklad pod tim, vpravo */
.products.list article .buy-box {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: end;
    column-gap: 16px;
    row-gap: 4px;
    text-align: right;
}
.products.list article .buy-box .price {
    padding: 0;
    text-align: right;
}
.products.list article .buy-box .add-to-cart {
    position: static;
    right: auto;
    bottom: auto;
    margin: 0;
}
.products.list article .buy-box .in-stock,
.products.list article .buy-box .on-order {
    grid-column: 1 / -1;
    justify-self: end;
}

/* mobile list: obrazek+text nahore, buy-box pres celou sirku pod tim */
@media (max-width: 729px) {
    .products.list article {
        flex-wrap: wrap;
    }
    .products.list article .buy-box {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        column-gap: 12px;
        row-gap: 4px;
        text-align: left;
    }
    .products.list article .buy-box .price {
        text-align: left;
    }
    .products.list article .buy-box .in-stock,
    .products.list article .buy-box .on-order {
        flex-basis: 100%;
        justify-self: auto;
    }
}


#ajaxFrame{
    position: relative;
}

.ajax-loading{
    display:none;position:absolute;top:0;left:0;z-index:2;background:rgba(255,255,255,0.7) url("/imgs/web/loadinfo.gif") center center no-repeat
}

@media (max-width: 495px) {
    .products {
        flex-direction: column;
    }
    .products article {
        flex: 0 0 100%;
        width: 100%;
    }
}
@media (min-width: 495px) and (max-width: 729px) {
    .products {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .products article {
        flex: 0 0 calc(50% - 12px);
        width: calc(50% - 12px);
    }
}

/* pagination */
.page-list{
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-list a{
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--light-gray);
    padding: 4px 12px;
    font-weight: 400;
}
.page-list a:hover{
    background-color: var(--light);
}
.page-list a.active{
    border-color: var(--primary);
}
.pagination{
    margin-bottom: 24px;
}

.filters {
    flex: 1;  /* Takes same width as one product */
    padding-right: 24px
}

.filter-close { display: none; }

@media (max-width: 1007px) {
    body:has(#filterAjax.filters:not(.t-hidden)) {
        overflow: hidden;
    }
    #filterAjax.filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        overflow: auto;
        z-index: 100;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    #filterAjax .divider {
        background: #fff;
        margin-top: 32px;
        padding: 80px 16px 24px 16px;
        border-right: 0;
        height: auto;
        min-height: calc(100% - 32px);
        box-sizing: border-box;
    }
    #filterAjax .filter-close {
        display: block;
        position: absolute;
        right: 8px;
        top: 48px;
        width: 36px;
        height: 36px;
        border: 1px solid var(--light-gray);
        background: #fff;
        z-index: 10;
        box-sizing: border-box;
        cursor: pointer;
    }
    #filterAjax .filter-close span {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }
    #filterAjax .filter-close span::after {
        content: '×';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 36px;
        line-height: 1;
        color: var(--dark);
    }
    #filterAjax .filter-switch.mobile {
        display: none;
    }
    #filterAjax #filtersContainer {
        display: block;
    }
    #filterAjax #filtersContainer.m-hidden {
        display: block !important;
    }
}

.filters .divider{
    border-right: 1px solid var(--light-gray);
    padding-right: 24px;
    height: 100%;
}

.filters .filter-cont {
    border-bottom: 1px solid var(--light-gray);
}

.filters button {
    /* pres celou sirku skupiny, aby slo sbaleni kliknout i do prazdneho mista za nazvem */
    width: 100%;
    padding: 12px 0;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
}

.filters button span{
    font-weight: 400;
}
.filters button svg{
    margin-right: 6px;
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease-in-out;
}
.filters .filter-cont.collapsed > button svg{
    transform: rotate(-90deg);
}

.filters .filter-cont div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
}

.filters a {
    padding: 2px 18px;
    color: var(--dark);
    text-decoration: none;
}
.filters a.checked{
    color: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 0;
}

.filters a:hover {
    color: var(--primary);
}

.filters a.selected {
    color: var(--primary);
}

.filters .filter-boxes a.checked{
    border: 1px solid var(--primary);
}

.filters .filter-cont div.filter-boxes {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.filters .filter-boxes a {
    padding: 4px;
    border: 1px solid var(--light-gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    text-align: center;
    width: 45px;
}

/* Sbalena skupina filtru - musi byt az za pravidly nastavujicimi display obsahu (napr. .filter-boxes),
   aby je pri shodne specificite prebilo */
.filters .filter-cont.collapsed > div {
    display: none;
}

.filters .filter-cont div.filter-search {
    position: relative;
    margin-bottom: 6px;
    padding-bottom: 0px;
}

.filters .filter-product-search {
    padding: 12px 0 6px;
}

.filters .filter-product-search > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
}

.filters .filter-product-search .filter-search {
    margin-bottom: 0;
}

.filters .filter-product-search .filter-search.is-loading .search-icon {
    display: none;
}

.live-filter-input-loading {
    display: none;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: url("/imgs/web/loadinfo.gif") center center / 18px 18px no-repeat;
}

.filters .filter-product-search .filter-search.is-loading .live-filter-input-loading {
    display: block;
}

/* Vypis produktu pod hledacim polem modelu (viz renderProductSuggest v AjaxHistoryHandler).
   Na desktopu je vypis vedle filtru videt, takze ho vykreslujeme jen v mobilnim modalu -
   proto je vychozi stav skryty a zobrazeni resi az media query nize.
   Selektor musi byt takhle konkretni, aby prebil display: flex z ".filters .filter-cont div". */
.filters .filter-cont .filter-product-suggest {
    display: none;
}

@media (max-width: 1007px) {
    .filters .filter-cont .filter-product-suggest.is-visible {
        display: block;
        margin-bottom: 12px;
        padding-bottom: 0;
        border: 1px solid var(--light-gray);
    }

    .filters .filter-product-suggest .filter-product-suggest-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-bottom: 1px solid var(--light-gray);
        color: var(--dark);
        text-decoration: none;
    }

    .filters .filter-product-suggest .filter-product-suggest-item:last-child {
        border-bottom: 0;
    }

    .filters .filter-product-suggest-image {
        flex: 0 0 44px;
        height: 44px;
    }

    .filters .filter-product-suggest-image img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .filters .filter-product-suggest-text {
        /* min-width kvuli ellipsis - flexova polozka se jinak nezmensi pod sirku obsahu */
        flex: 1 1 auto;
        min-width: 0;
        font-size: 14px;
        line-height: 18px;
    }

    .filters .filter-product-suggest-text strong,
    .filters .filter-product-suggest-text span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .filters .filter-product-suggest-text span {
        color: var(--gray);
    }

    .filters .filter-product-suggest-price {
        flex: 0 0 auto;
        font-size: 14px;
        white-space: nowrap;
    }

    .filters .filter-product-suggest-empty {
        padding: 12px 10px;
        color: var(--gray);
        font-size: 14px;
    }

    .filters .filter-product-suggest-all {
        display: block;
        width: 100%;
        padding: 12px 10px;
        border: 0;
        border-top: 1px solid var(--light-gray);
        background: var(--light);
        color: var(--dark);
        font-size: 14px;
        text-align: center;
        cursor: pointer;
    }
}

.product-list-live-loading {
    display: none;
    width: 32px;
    height: 32px;
    margin: 10px 0 0 auto;
    background: url("/imgs/web/loadinfo.gif") center center no-repeat;
}

.product-list-live-loading.is-loading {
    display: block;
}

.product-list-empty {
    margin: 32px 0;
    padding: 24px;
    background: var(--light);
    text-align: center;
}

.filters .filter-search input {
    width: 100%;
    padding: 8px 32px 8px 18px;
    background: var(--light);
    border: none;
}

.filters .filter-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.filters .filter-search .search-icon {
    position: absolute;
    right: 10px;
    top: 22px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 18px;
    color: var(--gray);
    pointer-events: none;
}

.filters .filter-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.filters .filter-scrollable::-webkit-scrollbar {
    width: 6px;
}

.filters .filter-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filters .filter-scrollable::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

.filters .filter-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

.filters .filter-scrollable a {
    transition: opacity 0.2s ease;
}

.filters .filter-scrollable a[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

/* Ensure filter items maintain proper spacing in scrollable containers */
.filters .filter-scrollable .filter-cont div {
    padding-bottom: 8px;
}

/* Velke skupiny filtru (interpreti, labely) - dotahovani hodnot z CatalogFilterWebApi */
.filters .filter-search-loading {
    display: none;
    position: absolute;
    top: 22px;
    right: 10px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: url("/imgs/web/loadinfo.gif") center center / 18px 18px no-repeat;
}

.filters .filter-cont.filter-loading .filter-search-loading {
    display: block;
}

.filters .filter-cont.filter-loading .filter-search .search-icon {
    display: none;
}

.filters .filter-scrollable .filter-show-all {
    margin-top: 4px;
    font-weight: 400;
    text-decoration: underline;
}

/* Special styling for format section */
.filters .filter-chips div {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.filters .filter-chips a {
    padding: 4px 12px;
    border: 1px solid var(--light-gray);
}

.filters a.selected {
    border-color: var(--primary);
    border: 1px solid var(--primary);
}

.filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.active-filters {
    display: flex;
    gap: 8px;
    margin-top:12px;
}

.active-filters span{
    line-height: 32px;
    padding-right: 8px;
}
.active-filters a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-small);
    text-decoration: none;
}

.active-filters a svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    color: white;
}

.sort-display-container {
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    flex-grow: 1;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
/* doladit že nechci rem*/
.sort-controls a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray);
}

.sort-controls a.active {
    color: var(--primary);
    border-color: var(--primary);
}

.sort-controls a svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.sort-controls .r180{
    transform: rotate(180deg);
}

.view-btn {
    padding: 9px;
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
}

.view-btn.active {
    
    border-color: var(--primary);
}
.view-btn.active svg{
    color: var(--primary);
}

.view-btn svg {
    color: var(--gray);
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

@media (max-width: 1007px) {
    .sort-display-container{
        
    }
   
    .mobile-sort-filter button{
        display: inline-block;
        background: #fff;
        border: 1px solid var(--light-gray);
        color: var(--dark);
        font-weight: 400;
        padding: 2px 16px;
        height: 36px;
        margin-right: 6px;
    }
    .mobile-sort-filter button svg{
        display: inline-block;
        width: 18px;
        height: 18px;
    }

    /* mobilni mini okno pro vyber razeni */
    body:has(#sortAjax.sort-controls:not(.t-hidden)) {
        overflow: hidden;
    }
    #sortAjax.sort-controls:not(.t-hidden) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 48px);
        max-width: 320px;
        max-height: calc(100% - 48px);
        overflow: auto;
        background: #fff;
        padding: 16px;
        border-radius: 4px;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
        z-index: 100;
        box-sizing: border-box;
    }
    #sortAjax.sort-controls:not(.t-hidden) > span {
        font-weight: 400;
        padding: 0 0 12px 0;
        border-bottom: 1px solid var(--light-gray);
        margin-bottom: 8px;
    }
    #sortAjax.sort-controls:not(.t-hidden) a.sort-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 14px 12px;
        border: 0;
        border-bottom: 1px solid var(--light-gray);
        box-sizing: border-box;
    }
    #sortAjax.sort-controls:not(.t-hidden) a.sort-btn:last-of-type {
        border-bottom: 0;
    }
    #sortAjax .sort-close {
        display: block;
        position: absolute;
        right: 8px;
        top: 8px;
        width: 36px;
        height: 36px;
        border: 1px solid var(--light-gray);
        background: #fff;
        z-index: 10;
        box-sizing: border-box;
        cursor: pointer;
    }
    #sortAjax .sort-close span {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }
    #sortAjax .sort-close span::after {
        content: '×';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 36px;
        line-height: 1;
        color: var(--dark);
    }
}



.homepage .products article, .favorites .products article{
    flex: 0 0 calc((100%) / 4);
}
footer{
    margin-top: 48px;
}
footer section{
    text-align: center;
    padding: 24px;
}
footer section div{
    max-width: var(--max-width);
    margin: 0 auto;
}

footer section h3{
    text-transform: uppercase;
    padding-bottom: 12px
}

footer section li{
    display: inline-block;
    padding: 0 12px;
}
footer section a{
    text-decoration: none;
    color: var(--dark);
}
footer section a:hover{
    text-decoration: underline;
}

footer section:nth-child(odd){
    background-color: var(--dark);
    color: var(--light);
}
footer section:nth-child(odd) a{
    color: var(--light);
}
footer section.delivery-payment h3{
    margin-bottom: 12px;
}
footer section.delivery-payment div{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 24px;
}
footer section.delivery-payment div img{
    height: 30px;
}


footer .footer-info{
    display: flex;
    justify-content: space-between;
    padding: 24px;
}
footer .footer-info-wrapper{
    background-color: var(--primary);
}
footer .footer-info{
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--light);
}

footer .footer-info h3{
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
}
footer .footer-info a{
    color: var(--light);
    text-decoration: none;
}
footer .footer-info a, footer .footer-info li, footer .footer-info p, footer .footer-info span{
    font-weight: 400;
}
footer .footer-info h3 a{
    font-weight: 200;
}
footer .footer-info a:hover{
    text-decoration: underline;
}
footer .footer-info li{
    padding: 6px 0;
}

footer .footer-info>div{
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 33.333%;
}
footer .footer-info svg{ display: inline-block; }

footer .footer-social-links{
    display: flex;
    align-items: center;
    gap: 12px;
}
footer .footer-social-links a{
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}
footer .footer-social-links a:hover{
    opacity: 0.75;
}
footer .footer-social-links svg{
    width: 28px;
    height: 28px;
    fill: currentColor;
}
footer .footer-social-links rect,
footer .footer-social-links circle:not(.footer-social-icon-dot){
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

footer .newsletter-subscription-submit{
    -webkit-appearance: none;
    appearance: none;
    background-image: none;
    border: 0;
}

.bottom-line{
    text-align: center;
    padding: 12px;
    background-color: var(--dark);
    color: var(--light);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

@media (max-width: 1007px) {
    footer section.delivery-payment div{
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 729px) {
    footer .footer-info{
        flex-direction: column;
        
    }
    footer .footer-info>div{
        margin-bottom: 24px;
    }
}


@media (max-width: 495px) {
    footer section.delivery-payment div img{
        height: 20px;
    }
    
    
}


/* Product detail page */
.product {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
}

.product .images {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
}

.product-gallery {
    width: 100%;
}

.product-gallery-main-wrap {
    position: relative;
    width: 100%;
}

.product-gallery-main {
    width: 100%;
}

.product-gallery-main .product-main-image {
    margin: 0;
}

.product .images img {
    display: block;
    width: 100%;
    height: auto;
}

.product .images figcaption {
    margin-top: 6px;
    font-size: var(--font-size-small);
    color: #666;
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    cursor: pointer;
    transform: translateY(-50%);
}

.product-gallery-arrow-left {
    left: 12px;
}

.product-gallery-arrow-right {
    right: 12px;
}

.product-gallery-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-gallery-arrow svg {
    width: 18px;
    height: 18px;
}

.product-gallery-thumbs {
    margin-top: 12px;
    cursor: grab;
}

.product-gallery-thumbs:active {
    cursor: grabbing;
}

.product-gallery-thumbs .product-image-thumb {
    width: 96px;
    min-width: 96px;
    height: 96px;
    min-height: 96px;
    padding: 0;
    border: 1px solid var(--light-gray);
    background: #fff;
    cursor: pointer;
}

.product-gallery-thumbs .product-image-thumb.is-active {
    border-color: var(--primary);
}

.product-gallery-thumbs .product-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product .data {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
}

.product h1{ margin-bottom: 12px;}

.product h1 a:hover{
    color: var(--primary);
}


.product .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.product .tags a {
    padding: 0 10px;
    background-color: var(--light);
    border-radius: 10px;
    font-size: var(--font-size-small);
    color: #666;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    text-decoration: none;
    text-transform: uppercase;
}

.product .tags a:hover {
    color: var(--primary);
}

.product .info{
    margin-bottom: 24px;
}

.product .info h2{
    font-weight: 200;
    font-size: 22px;
}

.product .info a{
    color: var(--dark);
}

.product .info a:hover{
    color: var(--primary);
}

.product .buybox{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0; 
}

.product .buybox p {
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    font-weight: 400;
}

.product .buybox button {
    display: inline-block;
    background-color: var(--dark);
    color: var(--light);
    padding: 16px 56px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 22px;
    line-height: 22px;
}

.product-admin-tools {
    margin-top: 12px;
    text-align: left;
}

.product-admin-link,
.product-stock-history a {
    color: var(--dark);
    text-decoration: underline;
}

.product-admin-link:hover,
.product-stock-history a:hover {
    color: var(--primary);
}

button.cart-add-loading {
    position: relative;
    color: transparent !important;
    cursor: wait !important;
}
.homepage .homepage-product-slider .products article .homepage-product-buy-box .add-to-cart.cart-add-loading,
.products.list article .buy-box .add-to-cart.cart-add-loading {
    position: relative;
}
button.cart-add-loading svg {
    visibility: hidden;
}
button.cart-add-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(128, 128, 128, 0.45);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cart-button-spinner 0.7s linear infinite;
}
@keyframes cart-button-spinner {
    to { transform: rotate(360deg); }
}

.product-stock-history {
    margin-top: 16px;
}

.product-stock-history-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-stock-history h2 {
    margin: 0;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}

.product-stock-current-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 8px;
    border: 1px solid var(--dark);
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.product-stock-history-table {
    overflow-x: auto;
}

.product-stock-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.product-stock-history td {
    padding: 5px 8px 5px 0;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
}

.product-stock-change {
    display: inline-block;
    min-width: 30px;
    padding: 2px 4px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.product-stock-change-minus {
    background-color: #c25b5b;
}

.product-stock-change-plus {
    background-color: var(--green);
}

.product .wishlist-btn{
    display: inline-block;
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    height: 36px;
    line-height: 32px;
    padding: 0 12px 0 12px;
    cursor: pointer;
   
}
.product .wishlist-btn.is-favorite, .product .wishlist-btn:hover{
    border-color: var(--primary);
}

.product .wishlist-btn-wrapper{
    padding-top: 24px;
    text-align: right;
}

.product .wishlist-btn svg {
    height: 20px;
    width: 22px;
    color: var(--dark);
    display:inline-block;
    position: relative;
    top: 2px;
    margin-right: 4px;
}

.product .product-watchdog-action {
    margin-top: 8px;
}

.product .product-watchdog-btn {
    display: inline-block;
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    min-height: 36px;
    line-height: 32px;
    padding: 0 12px;
    cursor: pointer;
}

.product .product-watchdog-btn:hover,
.product .product-watchdog-btn--saved {
    border-color: var(--primary);
}

.product .buybox button,
.product .wishlist-btn,
.product .product-watchdog-btn {
    box-sizing: border-box;
    width: 240px;
    max-width: 100%;
    text-align: center;
}

.product .product-watchdog-btn--saved {
    cursor: default;
}

.product .product-watchdog-btn .icon-remove-red-eye {
    margin-right: 4px;
}

.watchdog-product-subject {
    margin: 4px 0 12px;
    font-weight: 600;
}

.watchdog-product-scope {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    cursor: pointer;
}

.watchdog-product-scope input[type="radio"] {
    flex: 0 0 18px;
    transform: none;
}

.watchdog-product-scope span {
    display: inline-block;
}

.watchdog-product-modal .primary-button {
    margin-top: 8px;
}

.product .tabs {
    display: flex;
    border-top: 1px solid var(--light-gray);
    margin-top: 30px;
    
}

.product .tabs div {
    padding: 5px 30px 15px 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.product .tabs svg{
    width: 12px;
    height: 12px;
    color: var(--dark);
    transform: rotate(-90deg);
}

.product .tabs div:hover{
    color: var(--primary);
}

.product .tabs .active svg {
    transform: rotate(0deg);
    color: var(--primary);
}


.product .tabs .active {
    color: var(--primary);
}

.product .tab-icon {
    margin-right: 5px;
}

.product .tracklist table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 48px;
}

.product .tracklist table td{
    text-align: left;
    padding: 2px 0;
    border-bottom: 1px solid var(--light-gray);
}
.product .detail-info, .product .tracklist{
    text-align: left;
}
.product .detail-info table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 48px;
}
.product .detail-info table td, .product .detail-info table th{
    text-align: left;
    padding: 2px 0;
    border-bottom: 1px solid var(--light-gray);
}

.product-detail-content {
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.product-related-products {
    width: 100%;
    box-sizing: border-box;
}

.product-related-products + .product-related-products {
    border-top: 1px solid var(--light-gray);
}

.product-related-products > h2 a {
    color: var(--dark);
}

.product-related-products > h2 a:hover {
    color: var(--primary);
}

.product-related-products .homepage-product-slider .products {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
}

.product-related-products .homepage-product-slider .products article {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    aspect-ratio: auto;
    margin-top: 0;
    box-sizing: border-box;
}

.product-related-products .homepage-product-slider .products article .image {
    flex: 0 0 auto;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tabs .tab {
    cursor: pointer;
    padding: 10px 15px;
    display: inline-block;
}
@media (max-width: 495px) {
    .product{
        flex-direction: column;
        padding: 0 12px;
    }
    .product .images{
        flex: none;
        width: 100%;
        
    }
    .product .data{
        width: 100%;
    }
    .product-related-products {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* general show/hide mobile tablet pc styles*/


@media (min-width: 729px) {
    .mobile {
        display: none !important
    }
}

@media (max-width: 495px) {
    .m-hidden {
        display: none !important;
    }
}

@media (max-width: 1007px) {
    .t-hidden {
        display: none !important
    }
}

@media (min-width: 1007px) {
    .pc-hidden {
        display: none !important
    }
}

.brand-list-page .article.brand-list-intro {
    max-width: none;
    margin: 0;
    padding-bottom: 0;
}

.brand-list-page .article.brand-list-intro h1 {
    margin-bottom: 8px;
    text-align: left;
}

.brand-list-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 24px;
}

.brand-list-abc {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
}

.brand-list-style-filter {
    width: 100%;
}

.brand-list-abc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 4px 8px;
    border: 1px solid var(--light-gray);
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    font-size: var(--font-size-small);
    line-height: 1;
    font-weight: 400;
}

.brand-list-abc a:hover,
.brand-list-abc a.active {
    border-color: var(--primary);
    color: var(--primary);
}

.brand-list-style-filter form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: var(--gray);
    font-size: var(--font-size-small);
}

.brand-list-style-filter label {
    font-weight: 400;
}

.brand-list-style-filter select {
    padding: 6px 12px;
    border: 1px solid var(--light-gray);
    background: #fff;
    color: var(--dark);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    cursor: pointer;
}

.brand-list-style-filter select:focus {
    border-color: var(--primary);
    outline: none;
}

.brand-list{
    display: block;
}
.brand-list h2 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.brand-list-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-list li {
    line-height: 30px;
}

.brand-list a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 200;
}

.brand-list a:hover {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 729px) {
    .brand-list-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 495px) {
    .brand-list-items {
        grid-template-columns: 1fr;
    }
}

.all-genres-link {
    margin-top: 0;
}

.all-genres-link a,
.all-artists-link a {
    font-weight: 400;
}
.genre-list-page {
    padding-bottom: 32px;
}

.genre-list-page h1 {
    margin-bottom: 24px;
}

.genre-list-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.genre-list-layout--without-top {
    grid-template-columns: minmax(0, 1fr);
}

.genre-list-top {
    padding: 16px 20px 20px;
    border: 1px solid var(--primary);
    background: #fff3e9;
}

.genre-list-top h2,
.genre-list-group h2 {
    margin: 0 0 6px;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}

.genre-list-top ul,
.genre-list-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.genre-list-top li,
.genre-list-group li {
    line-height: 30px;
}

.genre-list-top a,
.genre-list-group a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 200;
}

.genre-list-top a:hover,
.genre-list-group a:hover {
    color: var(--primary);
}

.genre-list-alphabetical {
    padding: 16px 20px 20px;
    border: 1px solid var(--primary);
    background: #fff;
    column-count: 5;
    column-gap: 32px;
}

.genre-list-group {
    break-inside: avoid;
    margin-bottom: 22px;
}

@media (max-width: 1007px) {
    .genre-list-layout {
        grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
        gap: 24px;
    }

    .genre-list-alphabetical {
        column-count: 3;
    }
}

@media (max-width: 729px) {
    .genre-list-layout {
        grid-template-columns: 1fr;
    }

    .genre-list-alphabetical {
        column-count: 2;
    }
}

@media (max-width: 495px) {
    .genre-list-page h1 {
        margin-bottom: 16px;
    }

    .genre-list-alphabetical {
        column-count: 1;
    }
}



.search-autocompleter {
    width: 480px;
    position: absolute;
    z-index: 8;
    top: 34px;
    background-color: var(--light);
    line-height: normal;
    padding: 10px;
    border: 1px solid var(--light-gray);
    left: -1px;
}
.search-autocompleter div h4:first-of-type {
    margin-top: 0;
}
.search-autocompleter div h4 {
    margin-top: 5px;
}
.search-autocompleter div ul {
    padding-left: 5px;
    list-style-type: none;
}
.search-autocompleter div ul li {
    display: inline-block;
    width: 100%;
}
.search-autocompleter div ul li a {
    padding: 5px;
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: var(--dark);
}
.search-autocompleter div ul li a span.result-left {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}
.search-autocompleter div ul li.item-with-image a span.result-left .image {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-autocompleter div ul li.item-with-image a span.result-left .image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.search-autocompleter div ul li.item-with-image a span.result-left .text {
    display: flex;
    flex-direction: column;
}
.search-autocompleter div ul li.item-with-image a span.result-left .text strong {
    color: var(--gray);
}
.search-autocompleter div ul li a span.result-right {
    text-align: right;
    padding-left: 8px;
}

/* Checkout */

.order, .user-profile, .order-detail, .inner-container{
    max-width: 1000px;
    margin: 20px auto;
}

/* vyhledavani - interpreti/znacky nad produkty do mrizky */
.search-results-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.search-results-brands a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
}
.search-results-brands a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
@media (max-width: 495px) {
    .search-results-brands {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cart-header{
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    font-weight: 200;
    padding: 24px 0 24px 0;
    
}

.cart-back-to-store {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 6px 0;
    color: var(--dark);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: 400;
    text-decoration: none;
}

.cart-back-to-store-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    transform: rotate(90deg);
}

.cart-back-to-store:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cart-back-to-store + .cart-header {
    padding-top: 12px;
}

.cart-header h3, .cart-header span{
    display: inline-block;
    font-weight: 400;
    color: var(--gray);
}

.cart-header .cart-header-note {
    margin: 4px 0 0;
    color: var(--dark);
    font-size: 16px;
    line-height: 22px;
    font-weight: 300;
    padding-top: 10px;
}

.order-cart{
    width: 100%;
}

.order-cart tbody tr td{
    vertical-align: middle;
    padding: 10px 5px;  
}

.order-cart tbody tr.cart-product-row-odd td{
    background-color: var(--light);
}

.order-cart  tr td.price{
    text-align: right;
    padding-right: 10px;
    min-width: 90px;
}


.order-cart  tr td {
    vertical-align: middle;
    padding: 10px 5px;
}
.cart-product-image{
    max-width: 60px;
}

@media (min-width: 730px) {
    .order-cart.order-cart-editable,
    .order-cart.order-cart-editable tbody {
        display: block;
        width: 100%;
    }

    .order-cart.order-cart-editable tbody tr.cart-product-row {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 110px 80px 20px;
        grid-template-areas:
            "image info count price remove"
            "image info stock stock stock"
            "image info discount discount discount";
        align-items: start;
        column-gap: 10px;
        row-gap: 4px;
        box-sizing: border-box;
        width: 100%;
        min-height: 80px;
        padding: 8px 5px;
    }

    .order-cart.order-cart-editable tbody tr.cart-product-row-odd {
        background: var(--light);
    }

    .order-cart.order-cart-editable tbody tr.cart-product-row td {
        display: block;
        box-sizing: border-box;
        width: auto;
        padding: 0;
        background: transparent;
    }

    .order-cart.order-cart-editable .cart-product-image {
        grid-area: image;
        max-width: none;
    }

    .order-cart.order-cart-editable .cart-product-image span {
        display: block;
        width: 48px;
        aspect-ratio: 1;
        overflow: hidden;
        background: var(--light);
    }

    .order-cart.order-cart-editable .cart-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .order-cart.order-cart-editable .cart-product-info {
        grid-area: info;
        min-width: 0;
        padding-right: 8px;
    }

    .order-cart.order-cart-editable .cart-product-info a > span:first-child,
    .order-cart.order-cart-editable .cart-product-info > span:first-child {
        display: block;
        color: var(--dark);
        font-weight: 600;
        line-height: 1.28;
    }

    .order-cart.order-cart-editable .cart-product-info a > span + span,
    .order-cart.order-cart-editable .cart-product-info > span + span {
        display: block;
        margin-top: 6px;
        color: var(--gray);
        font-size: var(--font-size-small);
        font-weight: 300;
        line-height: var(--line-height-small);
    }

    .order-cart.order-cart-editable .cart-product-count-cell {
        grid-area: count;
        align-self: center;
    }

    .order-cart.order-cart-editable .cart-product-price {
        grid-area: price;
        align-self: center;
        min-width: 0;
        padding-right: 0;
        text-align: right;
        white-space: nowrap;
    }

    .order-cart.order-cart-editable .cart-product-stock {
        grid-area: stock;
        min-width: 0;
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
        text-align: right;
        white-space: nowrap;
    }

    .order-cart.order-cart-editable .cart-product-stock p {
        margin: 0;
    }

    .order-cart.order-cart-editable .cart-product-stock .avail-now .avail-stock,
    .order-cart.order-cart-editable .cart-product-stock .avail-fast .avail-stock {
        color: var(--green);
    }

    .order-cart.order-cart-editable .cart-product-stock .avail-slow .avail-stock {
        color: var(--blue);
    }

    .order-cart.order-cart-editable .cart-product-stock .avail-stock i {
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 6px;
        border-radius: 50%;
        background: currentColor;
        font-size: 0;
        vertical-align: middle;
    }

    .order-cart.order-cart-editable .cart-product-discount {
        grid-area: discount;
        min-width: 0;
        color: var(--primary);
        font-size: var(--font-size-small);
        text-align: right;
    }

    .order-cart.order-cart-editable .cart-product-remove {
        grid-area: remove;
    }

    .order-cart.order-cart-editable .cart-remove-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border: 1px solid var(--dark);
        border-radius: 50%;
        background: #fff;
        color: var(--dark);
        font-size: 0;
        line-height: 1;
    }

    .order-cart.order-cart-editable .cart-remove-item::before {
        content: "\00d7";
        font-family: Arial, sans-serif;
        font-size: 16px;
        font-weight: 300;
        line-height: 1;
    }

    .order-cart.order-cart-editable .cart-product-count {
        min-width: 0;
    }

    .order-cart.order-cart-editable .cart-product-count input {
        width: 50px;
        height: 28px;
        font-size: var(--font-size-small);
        line-height: 28px;
    }

    .order-cart.order-cart-editable .numberPlusMinus {
        width: 30px;
        height: 28px;
        color: var(--gray);
        line-height: 27px;
    }
}

@media (max-width: 729px) {
    .order {
        box-sizing: border-box;
        width: 100%;
        padding: 0 16px;
    }
    main > .inner-container {
        box-sizing: border-box;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }
    .order > .inner-container {
        margin: 0 auto;
    }
    .cart-header {
        padding: 18px 0 16px;
    }
    .order-cart,
    .order-cart tbody {
        display: block;
        width: 100%;
    }
    .order-cart.order-cart-editable tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas:
            "image info remove"
            "image count price"
            ". stock stock"
            ". discount discount";
        column-gap: 10px;
        row-gap: 8px;
        width: 100%;
        padding: 8px 0 12px;
        border-bottom: 1px solid var(--light-gray);
        box-sizing: border-box;
    }
    .order-cart.order-cart-editable tbody tr.cart-product-row-odd {
        background: var(--light);
    }
    .order-cart.order-cart-editable tbody tr.cart-product-row-odd td {
        background: transparent;
    }
    .order-cart.order-cart-editable tbody tr td {
        display: block;
        width: auto;
        padding: 0;
        box-sizing: border-box;
    }
    .order-cart.order-cart-editable tbody tr.item-willbe-changed-line {
        display: block;
        padding-left: 58px;
    }
    .order-cart.order-cart-editable tbody tr.item-willbe-changed-line td {
        width: 100%;
    }
    .order-cart.order-cart-editable .cart-product-image {
        grid-area: image;
        max-width: none;
    }
    .order-cart.order-cart-editable .cart-product-image span {
        display: block;
        width: 48px;
        aspect-ratio: 1;
        overflow: hidden;
        background: var(--light);
    }
    .order-cart.order-cart-editable .cart-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .order-cart.order-cart-editable .cart-product-info {
        grid-area: info;
        min-width: 0;
        padding-right: 8px;
    }
    .order-cart.order-cart-editable .cart-product-info a > span:first-child,
    .order-cart.order-cart-editable .cart-product-info > span:first-child {
        display: block;
        color: var(--dark);
        font-weight: 600;
        line-height: 1.28;
    }
    .order-cart.order-cart-editable .cart-product-info a > span + span,
    .order-cart.order-cart-editable .cart-product-info > span + span {
        display: block;
        margin-top: 6px;
        color: var(--gray);
        font-size: var(--font-size-small);
        font-weight: 300;
        line-height: var(--line-height-small);
    }
    .order-cart.order-cart-editable .cart-product-count-cell {
        grid-area: count;
        align-self: center;
    }
    .order-cart.order-cart-editable .cart-product-price {
        grid-area: price;
        align-self: center;
        min-width: 0;
        padding-right: 0;
        text-align: right;
        white-space: nowrap;
    }
    .order-cart.order-cart-editable .cart-product-stock {
        grid-area: stock;
        min-width: 0;
        font-size: var(--font-size-small);
        line-height: var(--line-height-small);
    }
    .order-cart.order-cart-editable .cart-product-stock p {
        margin: 0;
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-now .avail-stock,
    .order-cart.order-cart-editable .cart-product-stock .avail-fast .avail-stock {
        color: var(--green);
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-slow .avail-stock {
        color: var(--blue);
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-stock i {
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 6px;
        border-radius: 50%;
        background: currentColor;
        font-size: 0;
        vertical-align: middle;
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-now,
    .order-cart.order-cart-editable .cart-product-stock .avail-fast {
        text-align: right;
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-slow {
        text-align: left;
    }
    .order-cart.order-cart-editable .cart-product-shipping-date {
        display: block;
        margin-top: 3px;
        color: var(--gray);
        text-align: right;
    }
    .order-cart.order-cart-editable .cart-product-stock .avail-slow + .cart-product-shipping-date {
        color: var(--blue);
        text-align: left;
    }
    .order-cart.order-cart-editable .cart-product-discount {
        grid-area: discount;
        min-width: 0;
        color: var(--primary);
        font-size: var(--font-size-small);
    }
    .order-cart.order-cart-editable .cart-product-remove {
        grid-area: remove;
        align-self: start;
    }
    .order-cart.order-cart-editable .cart-remove-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border: 1px solid var(--dark);
        border-radius: 50%;
        background: #fff;
        color: var(--dark);
        font-size: 12px;
        line-height: 1;
    }
    .order-cart.order-cart-editable .cart-remove-item::before {
        content: "\00d7";
        font-family: Arial, sans-serif;
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
    }
    .order-cart.order-cart-editable .cart-product-count {
        justify-content: flex-start;
        min-width: 0;
    }
    .order-cart.order-cart-editable .cart-product-count input {
        width: 46px;
        height: 28px;
        font-size: var(--font-size-small);
        line-height: 28px;
    }
    .order-cart.order-cart-editable .numberPlusMinus {
        width: 34px;
        height: 28px;
        line-height: 27px;
        color: var(--gray);
    }
    .order-cart tfoot {
        display:block;
        width: 100%;
        padding-top: 12px;
    }
    .order-cart tfoot tr {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .order-cart tfoot tr td:first-child {
        width: 70%;
        flex: 0 0 70%;
    }
    .order-cart tfoot tr td:last-child {
        width: 30%;
        flex: 1 1 30%;
        text-align: right;
    }
}

@media (max-width: 495px) {
    .order {
        padding: 0 16px;
    }
}

.order-cart a{
    text-decoration: none;
    color: var(--dark);
}

.order-cart a:hover{
    color: var(--primary);
}

.order-cart a span{
    font-weight: 400;
}

.cart-product-count {
    min-width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-count-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.cart-stock-limit-tooltip {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 50%;
    display: none;
    box-sizing: border-box;
    width: max-content;
    max-width: 220px;
    padding: 7px 10px;
    transform: translateX(-50%);
    border-radius: 4px;
    background: var(--dark);
    color: #fff;
    font-size: var(--font-size-small);
    font-weight: 400;
    line-height: var(--line-height-small);
    text-align: center;
}

.cart-stock-limit-tooltip::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--dark);
    border-left: 6px solid transparent;
    content: "";
}

.cart-stock-limit-tooltip.is-visible {
    display: block;
}

.numberPlusMinus {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 40px;
    text-align: center;
    color: var(--dark);
    font-size: 16px;
    line-height: 23px;
    height: 30px;
    line-height: 29px;
    vertical-align: middle;
    margin: 0 ;
    border: 1px solid var(--light-gray);
    font-weight: 400;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    line-height: 36px;
    height: 36px;
    background-color: #fff;
    cursor: pointer;
}
.numberPlusMinus.minus{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.cart-product-count input{
    border: 1px solid var(--light-gray);
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    border-left: 0;
    border-right: 0;
    width: 60px;
}

.order-coupon-panel {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 22px;
    padding: 0;
    border: 0;
}

.order-coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(156px, auto);
    align-items: stretch;
    gap: 0;
    width: min(100%, 278px);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    border-radius: 0 18px 18px 0;
    background: #fff;
}

.order-coupon-form strong {
    display: none;
}

.order-coupon-form .error {
    grid-column: 1 / -1;
    padding: 8px 12px;
}

.order-coupon-form input[type="text"] {
    width: 100%;
    height: 34px;
    border: 0;
    border-right: 1px solid var(--light-gray);
    border-radius: 0;
    background: transparent;
    padding: 0 10px;
}

.order-coupon-form .coupon-submit {
    width: 100%;
    height: 34px;
    padding: 0 12px;
    border: 0;
    background: #fff;
    color: var(--dark);
    font-weight: 600;
}

.order-coupon-code {
    font-weight: 600;
}

.order-coupon-discount {
    color: var(--primary);
    font-weight: 600;
}

.order-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border-right: 1px solid var(--light-gray);
}

.order-goods-total-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 28px;
    padding: 14px 60px;
    background: var(--light);
}

.order-goods-total-values {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    min-width: 0;
    text-align: right;
}

.order-goods-total-values > strong {
    color: var(--dark);
    font-size: 24px;
    line-height: 30px;
    white-space: nowrap;
}

.order-goods-coupon-calculation {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    color: var(--gray);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    white-space: nowrap;
}

.order-goods-coupon-calculation > :last-child {
    color: var(--primary);
    font-weight: 400;
}

.order-summary {
    display: grid;
    gap: 0;
    margin: 28px 0 18px;
    padding: 14px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.order-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
    padding: 7px 6px;
}

.order-summary-row > :last-child {
    text-align: right;
    white-space: nowrap;
}

.order-summary-grand-total {
    margin-top: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--light-gray);
    color: var(--dark);
    font-size: var(--font-size-medium);
}

.order-form{
    display: flex;
    flex-direction: row;
    gap: 60px;
}
.order-onestep-right {
    width: calc(50% - 30px);
}

.order-onestep-left {
    width: calc(50% - 30px);
}
@media (max-width: 729px) {
    .order-coupon-panel {
        margin: 14px 0 24px;
    }

    .order-coupon-form {
        grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
        width: 100%;
    }

    .order-goods-total-panel {
        padding: 14px 12px;
    }

    .order-form{
        flex-direction: column;
    }
    .order-onestep-right {
        width: 100%;
    }
    .order-onestep-left {
        width: 100%;
    }
}

.country-selector {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.select-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    background: white;
    color: inherit;
    font: inherit;
    text-align: left;
}

.select-header:hover {
    border-color: var(--primary);
}

.country-flag {
    width: 24px;
    height: 16px;
    margin-right: 12px;
    object-fit: cover;
}

.selected-country {
    flex: 1;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}

.select-arrow {
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m1.399 8.999 5.29-5.283L11.979 9' style='fill:none;stroke:%23EB7823;stroke-width:2px'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg);
}

.select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.select-options.active {
    display: block;
}

.country-select-search {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px;
    border-bottom: 1px solid var(--light-gray);
    background: white;
}

.country-select-search input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--light-gray);
    border-radius: 3px;
    box-sizing: border-box;
    font: inherit;
}

.country-select-search input:focus {
    border-color: var(--primary);
    outline: none;
}

.select-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    cursor: pointer;
    background: white;
    color: inherit;
    font: inherit;
    text-align: left;
}

.select-option:hover {
    background-color: var(--light);
}

.select-option.selected {
    background-color: var(--light);
}

.country-option-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.country-delivery-status {
    margin-left: auto;
    padding-left: 12px;
    white-space: nowrap;
    font-size: var(--font-size-small);
}

.country-delivery-status--available {
    color: var(--green);
}

.country-delivery-status--unavailable {
    color: var(--red);
}

.country-delivery-status--header {
    flex-shrink: 0;
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 0;
}

.country-delivery-status__icon {
    display: inline-block;
    width: 1em;
    font-weight: 700;
    text-align: center;
}

.select-option[hidden] {
    display: none;
}

/* Nazev skupiny zpusobu dodani / platby. V sablone je to <span> primo v <ul>,
   proto display:block - bez nej by linka kopirovala jen sirku textu. */
.delivery-type-separator {
    display: block;
    font-size: var(--font-size-small);
    font-weight: 400;
    padding-bottom: 2px;
    margin: 18px 0 6px;
    border-bottom: 1px solid var(--light-gray);
}

.delivery-type-separator:first-child {
    margin-top: 0;
}

/* Vyzva k vyberu dopravy misto nabidky plateb */
.payment-placeholder {
    color: var(--gray);
    padding: 6px;
    margin: 0;
}

.delivery-types label, .payment-types label{
    cursor: pointer;
}

.delivery-types label, .payment-types label {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 6px;
    padding: 6px;
}

.delivery-types label > span:first-child, .payment-types label > span:first-child {
    flex-shrink: 0;
    padding-top: 6px;
}

.delivery-img, .payment-img {
    width: 30px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-name, .payment-name {
    flex: 1;
    min-width: 0;
}

.delivery-name-img {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.delivery-name span, .payment-name span{
    color: var(--gray);
}

.delivery-description, .payment-description {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.order-availability-delay {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 6px 0;
    color: var(--blue);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
}

.order-availability-delay i {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background-color: currentColor;
    font-size: 0;
}

.delivery-date-price, .payment-date-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

.delivery-date, .payment-date {
    font-size: 0.9em;
    color: var(--text-secondary);
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 18px;
    height: 18px;
    border:1px solid var(--dark);
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
  }
  
  input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
  }
  
  input[type="radio"]:checked::before {
    transform: scale(1);
  }

  .form-field {
    position: relative;
  }

  .form-field label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--dark);
  }

  .form-field input[type="text"]:focus ~ label,
  .form-field input[type="email"]:focus ~ label,
  .form-field input[type="tel"]:focus ~ label,
  .form-field input[type="password"]:focus ~ label,
  .form-field input[type="text"]:not(:placeholder-shown) ~ label,
  .form-field input[type="email"]:not(:placeholder-shown) ~ label,
  .form-field input[type="tel"]:not(:placeholder-shown) ~ label,
  .form-field input[type="password"]:not(:placeholder-shown) ~ label,
  .form-field textarea:focus ~ label,
  .form-field textarea:not(:placeholder-shown) ~ label {
    top: 14px;
    transform: translateY(-50%) scale(0.85);
    background: white;
    padding: 0;
    color: var(--gray);
  }
  
  .form-field input,
  .form-field textarea {
    width: 100%;
    padding: 30px 12px 4px;
    border: 1px solid var(--light-gray);
  }

  .form-field textarea{
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    letter-spacing: 0.05em;
  }
  .form-field{
    margin-bottom: 12px;
  }

  .address-city-postcode-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr);
    align-items: start;
    gap: 10px;
  }

  .address-city-postcode-row .form-field {
    min-width: 0;
  }

  .form-field input.error,
  .form-field input.availability-error,
  .form-field input.password-mismatch-error{
    border: 1px solid var(--red);
  }

  .form-field input.password-match-success {
    border-color: var(--green);
  }

  .registration-live-check input {
    padding-right: 40px;
  }

  .registration-live-spinner {
    display: none;
    position: absolute;
    top: 20px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: url("/imgs/web/loadinfo.gif") center center / 18px 18px no-repeat;
  }

  .registration-live-check.is-checking .registration-live-spinner {
    display: block;
  }

  .form-field .validationMessage{
    position: absolute;
    top: 0px; 
    right: 5px;
    color: var(--red);
    font-size: var(--font-size-small);
  }

  .minimal-width{
    max-width: 400px;
    margin: 0 auto;
  }
  .validation-error,
  .registration-live-error{
    position: absolute;
    top: 2px;
    right: 6px;
    color: var(--red);
    font-size: var(--font-size-small);
  }

  .registration-form-error-summary {
    margin: 0 0 20px;
    color: var(--red);
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
  }

  .order-validation-error {
    border-radius: 2px;
    outline: 2px solid var(--red);
    outline-offset: 8px;
  }

  .primary-button{
    background-color: var(--dark);
    color: #fff;
    border-radius: 40px;
    padding: 12px 40px;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
    margin: 12px 0;
    cursor: pointer;
  }

  .password-reset-title {
    margin-bottom: 20px;
    text-align: center;
  }

  .password-reset-intro {
    margin-bottom: 24px;
  }

  .password-reset-card {
    padding: 28px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    background: var(--light);
  }

  .password-reset-request-form,
  .password-reset-form {
    margin-top: 24px;
  }

  .password-reset-card .form-field input {
    background: #fff;
  }

  .password-reset-feedback {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid;
    border-radius: 10px;
  }

  .password-reset-feedback--success {
    border-color: var(--green);
    background: #effaf2;
  }

  .password-reset-feedback--error {
    border-color: var(--red);
    background: #fff3f4;
  }

  .password-reset-feedback-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }

  .password-reset-feedback--error .password-reset-feedback-icon {
    background: var(--red);
  }

  .password-reset-feedback h2 {
    margin: 0 0 6px;
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
  }

  .password-reset-feedback p {
    margin: 0;
  }

  .password-reset-action {
    display: inline-block;
    text-decoration: none;
  }

  .password-match-status {
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: var(--font-size-small);
  }

  .password-match-status.is-match {
    color: var(--green);
  }

  .password-match-status.is-mismatch {
    color: var(--red);
  }

  @media (max-width: 495px) {
    .password-reset-card {
      padding: 20px 16px;
    }

    .password-reset-feedback {
      padding: 18px 16px;
    }
  }

  .profile-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px;
  }

  .profile-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gray);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
  }

  .profile-option input[type="checkbox"]::before {
    content: "";
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 120ms ease-in-out;
  }

  .profile-option input[type="checkbox"]:checked {
    border-color: var(--primary);
    background: var(--primary);
  }

  .profile-option input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
  }

  .profile-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }

  .profile-option label {
    position: static;
    transform: none;
    line-height: 20px;
    font-weight: 400;
    cursor: pointer;
  }

  #userForm .user-form-container + .user-form-container {
    margin-top: 30px;
  }

  #userForm #deliveryInfo {
    margin-top: 8px;
  }

  .onestep-order-error-message-container{
    display: none;
    color: var(--red);
    border: 1px solid var(--red);
    padding: 12px;
    margin: 12px 0;
  }
  

/*  user profile */ 
.user-info-box{
    padding: 20px 0;
}
.user-info-box li{
    font-weight: 400;
} 
.user-info-box span{
    display: inline-block;
    width: 120px;
}

.user-profile-address-container{
    padding: 10px 0;
    display: flex;
    gap: 24px;
}
.user-profile-address-container ul {
    flex: 1 1 50%;
    max-width: 50%;
}
.user-profile-address-container span {
    font-weight: 400;
}

/* Customer account and order detail */
.account-page,
.order-detail-page {
    margin-top: 36px;
    margin-bottom: 64px;
}

.account-page-heading,
.order-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.account-page-heading h1,
.order-detail-header h1 { margin: 0; }

.account-eyebrow,
.account-card-label {
    margin: 0 0 2px;
    color: var(--primary);
    font-size: var(--font-size-small);
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 30px;
}

/* Flat sections and gray dividers, matching the product list. */
.profile-card-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    border-block: 1px solid var(--light-gray);
}

.profile-card-grid > .account-card {
    padding: 22px 24px;
    border-left: 1px solid var(--light-gray);
}

.profile-card-grid > .account-card:first-child {
    padding-left: 0;
    border-left: 0;
}

.profile-card-grid > .account-card:last-child { padding-right: 0; }
.profile-card-grid > :last-child:nth-child(2) { grid-column: span 2; }

.profile-data-list,
.order-data-list { margin: 0; }

.profile-data-list > div,
.order-data-list > div {
    display: grid;
    grid-template-columns: minmax(115px, .8fr) 1.2fr;
    gap: 12px;
    padding: 5px 0;
}

.profile-data-list dt,
.order-data-list dt { color: var(--gray); }

.profile-data-list dd,
.order-data-list dd {
    min-width: 0;
    margin: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.profile-address-card address,
.order-address-card address {
    font-style: normal;
    line-height: 1.6;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin: 18px 0 42px;
}

.button.button-primary,
input.button.button-primary {
    border-color: var(--dark);
    background: var(--dark);
    color: #fff;
}

.button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.button.button-primary:hover,
input.button.button-primary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.account-orders { margin-top: 8px; }

.account-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.account-section-heading h2 {
    flex: 0 0 auto;
    margin: 0;
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
}

.account-section-heading.compact h2 {
    font-size: 22px;
    line-height: 30px;
}

.account-section-line {
    width: 100%;
    height: 1px;
    background: var(--light-gray);
}

.order-detail .account-section-line {
    display: none;
}

.order-list-table,
.products-in-order {
    width: 100%;
    border-collapse: collapse;
}

.order-list-table th,
.order-list-table td,
.products-in-order th,
.products-in-order td {
    padding: 13px 10px;
    text-align: left;
    vertical-align: middle;
}

.order-list-table thead th,
.products-in-order thead th {
    border-bottom: 1px solid var(--gray);
    color: var(--gray);
    font-size: var(--font-size-small);
    font-weight: 400;
}

.order-list-table thead a {
    color: var(--gray);
    text-decoration: none;
}

.order-list-table thead a:hover { color: var(--primary); }

.order-list-table tbody tr,
.products-in-order tbody tr {
    border-bottom: 1px solid var(--light-gray);
}

.order-list-table tbody tr { cursor: pointer; }

.order-list-table tbody tr:hover,
.order-list-table tbody tr:focus-visible,
.products-in-order tbody tr:hover {
    background: var(--light);
}

.order-list-number { width: 110px; }
.order-list-date { width: 190px; }

.order-list-price,
.order-list-action { text-align: right !important; }

.order-list-status { width: 180px; }

.order-detail-link {
    font-weight: 400;
    white-space: nowrap;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    font-size: var(--font-size-small);
    font-weight: 400;
    white-space: nowrap;
}

.order-status-badge::before {
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.order-status-new,
.order-status-waiting,
.order-status-in_process { color: var(--primary); }

.order-status-accepted,
.order-status-ready { color: var(--blue); }

.order-status-finished { color: var(--green); }

.order-status-returned,
.order-status-canceled { color: var(--red); }

.order-status-large { font-size: var(--font-size-medium); }

.account-empty-state {
    padding: 24px 0;
    border-block: 1px solid var(--light-gray);
    color: var(--gray);
    text-align: center;
}

.order-back-link {
    display: inline-block;
    margin-bottom: 6px;
    font-size: var(--font-size-small);
    font-weight: 400;
    text-decoration: none;
}

.order-back-link:hover { text-decoration: underline; }

.order-detail-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    color: var(--gray);
}

.order-detail-meta strong { color: var(--dark); }

.order-complete {
    margin-top: 36px;
    margin-bottom: 64px;
}

.order-complete-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--light-gray);
}

.order-complete-check {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
}

.order-complete-check::before {
    width: 12px;
    height: 23px;
    margin-top: -5px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.order-affirmative-msg {
    margin: 0;
    font-size: 34px;
    line-height: 44px;
}

.order-affirmative-msg strong {
    color: var(--primary);
    font-weight: 400;
    white-space: nowrap;
}

.article-order-last-step {
    max-width: 820px;
    margin-top: 10px;
    color: var(--gray);
    font-size: var(--font-size-medium);
    line-height: 1.6;
}

.article-order-last-step p {
    margin: 0;
}

.order-complete-products {
    margin-bottom: 40px;
}

.order-complete-products .order-box > h3 {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
    font-size: 22px;
    line-height: 30px;
}

.order-overview-grid,
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 32px;
}

.order-overview-grid {
    border-bottom: 1px solid var(--light-gray);
}

.order-info-grid {
    border-block: 1px solid var(--light-gray);
    column-gap: 48px;
    row-gap: 24px;
}

.order-overview-grid > .account-card {
    padding: 22px 24px;
    border-left: 1px solid var(--light-gray);
}

.order-info-grid > .account-card {
    padding: 22px 0;
}

.order-overview-grid > .account-card:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
}

.order-overview-grid > .account-card:nth-child(even) { padding-right: 0; }

.order-timeline {
    margin: 0 0 0 5px;
    padding: 0 0 0 18px;
    border-left: 1px solid var(--light-gray);
    list-style: none;
}

.order-timeline li {
    position: relative;
    min-height: 45px;
    color: var(--gray);
}

.order-timeline-dot {
    position: absolute;
    top: 6px;
    left: -24px;
    width: 11px;
    height: 11px;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    background: var(--light);
}

.order-timeline li.is-done .order-timeline-dot {
    border-color: var(--primary);
    background: var(--primary);
}

.order-timeline li.is-exception .order-timeline-dot {
    border-color: var(--red);
    background: var(--red);
}

.order-timeline li.is-current strong { color: var(--primary); }
.order-timeline li.is-exception.is-current strong { color: var(--red); }

.order-timeline strong,
.order-timeline time { display: block; }

.order-timeline time {
    color: var(--gray);
    font-size: var(--font-size-small);
}

.order-ebooks-card,
.order-products-card,
.order-customer-note,
.order-note-box {
    margin-bottom: 32px;
    padding-top: 0;
}

.order-products-wrap { overflow-x: auto; }

.product-order-index {
    width: 34px;
    color: var(--gray);
}

.product-order-count {
    width: 75px;
    text-align: center !important;
}

.product-order-price {
    width: 125px;
    text-align: right !important;
    white-space: nowrap;
}

.product-order-name span {
    display: block;
    color: var(--gray);
    font-size: var(--font-size-small);
}

.voucher-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.voucher-downloads a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    color: var(--primary);
    font-size: var(--font-size-small);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.voucher-downloads a:hover {
    background: var(--primary);
    color: #fff;
}

.products-in-order tr.is-cancelled {
    color: #999;
    font-style: italic;
    text-decoration: line-through;
}

.products-in-order tfoot th,
.products-in-order tfoot td {
    padding: 6px 10px;
    text-align: right;
}

.products-in-order tfoot tr:first-child > * {
    padding-top: 16px;
    border-top: 1px solid var(--gray);
}

.products-in-order tfoot .order-grand-total > * {
    padding-top: 10px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 400;
}

.order-method-card h2 { margin-bottom: 8px; }

.order-method-card p,
.order-contact-lines {
    margin: 8px 0 0;
    color: var(--gray);
}

.order-note-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.order-note-form textarea {
    flex: 1 1 auto;
    min-height: 92px;
    padding: 10px;
    border: 1px solid var(--light-gray);
    background: transparent;
    resize: vertical;
}

.order-note-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.order-note-form .button {
    flex: 0 0 auto;
    cursor: pointer;
}

.order-notes {
    margin-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.order-note {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.order-note-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.order-note-heading time {
    color: var(--gray);
    font-size: var(--font-size-small);
}

.order-note p { margin: 5px 0 0; }

.payment-message {
    margin-bottom: 18px;
    padding: 14px 0;
    border-block: 1px solid;
}

.paymentOk {
    border-color: var(--green);
    color: var(--green);
}

.paymentPending {
    border-color: var(--primary);
    color: var(--primary);
}

.paymentError {
    border-color: var(--red);
    color: var(--red);
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 729px) {
    .account-page,
    .order-detail-page { margin-top: 24px; }

    .account-page {
        box-sizing: border-box;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-card-grid,
    .order-overview-grid,
    .order-info-grid { grid-template-columns: 1fr; }

    .profile-card-grid > :last-child:nth-child(2) { grid-column: auto; }

    .profile-card-grid {
        border-block: 0;
    }

    .profile-card-grid > .account-card,
    .profile-card-grid > .account-card:first-child,
    .profile-card-grid > .account-card:last-child,
    .order-overview-grid > .account-card,
    .order-overview-grid > .account-card:nth-child(n),
    .order-info-grid > .account-card,
    .order-info-grid > .account-card:nth-child(n) {
        padding: 18px 0;
        border-left: 0;
    }

    .profile-card-grid > .account-card,
    .profile-card-grid > .account-card:first-child,
    .profile-card-grid > .account-card:last-child {
        padding: 22px 0;
        border-top: 1px solid var(--light-gray);
    }

    .profile-card-grid > .account-card:last-child {
        border-bottom: 1px solid var(--light-gray);
    }

    .order-list-table,
    .order-list-table tbody { display: block; }

    .order-list-table thead { display: none; }

    .order-list-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px 16px;
        padding: 14px 0;
    }

    .order-list-table td,
    .order-list-number,
    .order-list-date,
    .order-list-price,
    .order-list-status,
    .order-list-action {
        display: block;
        width: auto;
        padding: 0;
        text-align: left !important;
    }

    .order-list-table td::before {
        display: block;
        color: var(--gray);
        content: attr(data-label);
        font-size: 13px;
        line-height: 19px;
    }

    .order-detail-header {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--light-gray);
    }

    .order-complete {
        box-sizing: border-box;
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 495px) {
    .account-page,
    .order-detail-page { margin-bottom: 40px; }

    .account-page-heading,
    .order-detail-header {
        gap: 14px;
        margin-bottom: 24px;
    }

    .account-page-heading h1,
    .order-detail-header h1 {
        font-size: 30px;
        line-height: 42px;
    }

    .order-complete-header {
        gap: 14px;
        margin-bottom: 30px;
        padding-bottom: 22px;
    }

    .order-complete-check {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .order-complete-check::before {
        width: 10px;
        height: 19px;
    }

    .order-affirmative-msg {
        font-size: 25px;
        line-height: 34px;
    }

    .profile-data-list > div,
    .order-data-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
        border-bottom: 1px solid var(--light);
    }

    .profile-data-list > div:last-child,
    .order-data-list > div:last-child { border-bottom: 0; }

    .profile-actions,
    .order-note-form,
    .payment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-actions .button,
    .order-note-form .button,
    .payment-actions .button {
        width: 100%;
        text-align: center;
    }

    .account-orders { margin-top: 48px; }

    .order-list-table tbody tr {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "number status"
            "date price"
            "action action";
        gap: 10px 18px;
        padding: 18px 0;
    }

    .order-list-number { grid-area: number; }
    .order-list-date { grid-area: date; }
    .order-list-price { grid-area: price; text-align: right !important; }
    .order-list-status { grid-area: status; text-align: right !important; }
    .order-list-action { grid-area: action; padding-top: 5px !important; }

    .order-list-number::before,
    .order-list-status::before,
    .order-list-action::before { display: none !important; }

    .order-overview-grid,
    .order-info-grid { margin-bottom: 40px; }

    .order-overview-grid > .account-card,
    .order-info-grid > .account-card {
        padding: 24px 0;
    }

    .order-ebooks-card,
    .order-products-card,
    .order-customer-note,
    .order-note-box {
        margin-bottom: 40px;
        padding-top: 24px;
    }

    .products-in-order thead,
    .product-order-index,
    .product-order-brand { display: none; }

    .products-in-order tbody,
    .products-in-order tbody tr { display: block; }

    .products-in-order tbody tr {
        position: relative;
        padding: 13px 96px 13px 0;
    }

    .products-in-order tbody td {
        display: block;
        width: auto;
        padding: 0;
        text-align: left;
    }

    .products-in-order tbody .product-order-count,
    .products-in-order tbody .product-order-price {
        position: absolute;
        right: 0;
        text-align: right !important;
    }

    .products-in-order tbody .product-order-count {
        top: 11px;
        color: var(--gray);
    }

    .products-in-order tbody .product-order-price { bottom: 11px; }
    .products-in-order tbody .product-order-count::before { content: "× "; }
    .products-in-order tfoot th { width: 65%; }
    .products-in-order tfoot td { width: 35%; }

    .order-note-heading {
        flex-direction: column;
        gap: 2px;
    }
}


/* modal window */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.modal-bg {
    background-color: rgba(0, 0, 0, 0.5);
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    inset: 0;
}

.modal-container {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 790px;
    margin-left: -395px;
    background: #fff;
    /* modal muze byt vnoreny napr. v .top-bar se svetlym pismem - nededit barvu */
    color: var(--dark);
    padding: 10px;
    z-index: 12;
    box-sizing: border-box;
}

body.modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.login-modal{
    padding: 10px;
}
.login-modal h3{
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    margin-bottom: 12px;
}

.cart-modal-img {
    width: 200px;
    height: 200px;
    float: left;
    margin: 10px;
    background: no-repeat center center;
}

.cart-modal-buttons {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-right: 10px;
}

.cart-modal-content {
    width: 530px;
    height: 220px;
    float: right;
    padding: 5px;
    text-align: left;
    font-size: 16px;
    line-height: 23px;
    position: relative;
}

.cart-modal-free-delivery-info {
    font-size: 16px;
    line-height: 22px;
    padding-top: 10px;
}

.cart-modal-buttons a {
    font-size: 16px;
    line-height: 23px;
    display: block;
    line-height: 36px;
    height: 36px;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 15px;
    text-decoration: none;
    border-radius: 20px;
}

.cart-modal-checkout {
    color: #fff;
    background: var(--primary);
    font-weight: 500;
    float: right;
    margin-right: 10px;
    text-transform: uppercase;
}

.cart-modal-back-to-store {
    color: var(--dark);
    border: 1px solid var(--dark);
    background: #fff;
    font-weight: 500;
    text-transform: uppercase;
    float: left;
}

.cart-modal-close-modal {
    display: inline-block;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 15px;
    right: 15px;
    text-decoration: none;
    font-size: 32px;
    color: #000;
}

.cart-error-modal {
    padding: 20px;
    text-align: center;
}
.cart-error-modal h3 {
    padding: 0 36px;
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
}
.cart-error-modal p {
    margin: 20px 0;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}
.cart-error-modal-action {
    min-width: 160px;
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 20px;
    background: var(--dark);
    color: var(--light);
    font-size: var(--font-size-medium);
    cursor: pointer;
}

@media (max-width: 1007px) {
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-container {
        position: absolute;
        top: 10px !important;
        left: 3%;
        width: 94% !important;
        margin: 0 !important;
        background: #fff;
        padding: 10px;
        z-index: 12;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .cart-modal-img {
        height: 200px;
        float: none;
        width: auto;
        background: none !important; 
        text-align: center;
    }
    .cart-modal-img img{
        max-height: 200px;
        width: auto;
    }
    .cart-modal-content {
        width: auto;
        height: auto;
        float: none;
        position: static;
        padding: 0 10px 10px 10px;
        vertical-align: top;
        text-align: left;
        font-size: 14px;
        line-height: 17px;
        margin-top: 10px;
    }
    .cart-modal-headline {
        display: block;
        font-size: 18px;
        line-height: 23px;
    }
    .cart-modal-inline-span {
        display: block;
        margin: 0;
    }
    .cart-modal-buttons {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        align-content: space-between;
        align-items: stretch;
        margin-right: -10px;
        position: static;
        padding: 0;
        width: auto;
    }
    .cart-modal-buttons a {
        flex: 1 0 auto;
        
        text-transform: uppercase;
        margin: 10px 10px 0 0;
        line-height: 30px;
        height: 30px;
        text-align: center;
        padding: 0 12px;
        font-size: 16px;
        text-decoration: none;
    }
}

.region-modal {
    padding: 12px;
    /* modal je v DOM uvnitr .top-bar (line-height 36px) - nededit */
    line-height: var(--line-height-medium);
}
.region-modal-title{
    font-size: var(--font-size-xlarge);
    line-height: var(--line-height-xlarge);
    font-weight: 300;
    margin-bottom: 8px;
    padding-right: 48px;
}
/* zaviraci krizek - stejny vzhled jako close-menu v mobilnim menu */
.region-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--light-gray);
    text-decoration: none;
}
.region-modal-close::after {
    content: '\00d7';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    line-height: 1;
    color: var(--dark);
}
.region-modal fieldset legend{ font-weight: 500;}
.region-modal-tabs {display: flex; flex-direction: column; gap: 0;}
.region-modal-tab {margin: 0; padding-top: 8px; border-top: 1px solid var(--light-gray); }

.radio-switch { display: flex; overflow: hidden; padding-right: 2px; gap: 12px; padding-top: 8px; padding-bottom: 12px; }
.radio-switch input { position: absolute !important; clip: rect(0, 0, 0, 0); height: 1px; width: 1px; border: 0; overflow: hidden;}
.radio-switch label {  line-height: 1; text-align: center; padding: 8px 12px; margin-right: -1px; border: 1px solid rgba(0, 0, 0, 0.2);  transition: all 0.1s ease-in-out; }
.radio-switch label:hover { cursor: pointer; }
.radio-switch input:checked + label { border-color: var(--primary); box-shadow: none;}

/* vyber zeme doruceni v region modalu */
.region-modal-delivery { padding-top: 8px; }
.region-modal-countries { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; margin-top: 8px; margin-bottom: 12px; }
/* uzsi modal (pod 1008px je na 94% sirky) - jen 2 sloupce, at se nazvy zemi vejdou na radek */
@media (max-width: 1007px) {
    .region-modal-countries { grid-template-columns: repeat(2, 1fr); }
}
.region-modal-country { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border: 1px solid transparent; cursor: pointer; }
.region-modal-country:nth-child(even) { background-color: var(--light); }
.region-modal-country input { position: absolute !important; clip: rect(0, 0, 0, 0); height: 1px; width: 1px; border: 0; overflow: hidden;}
.region-modal-country:has(input:checked) { border-color: var(--primary); }
@media (hover: hover) {
    .region-modal-country:hover { border-color: var(--primary); }
    .radio-switch label:hover { border-color: var(--primary); }
}
.region-modal-country .country-flag { width: 26px; flex-shrink: 0; }
.region-modal-country-name { min-width: 0; }
.region-modal-country-details { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; white-space: nowrap; }
.region-modal-country-price { font-size: var(--font-size-small); }
/* patka s potvrzovacim tlacitkem
   Sticky vuci scrollovacimu kontejneru (na desktopu .modal, pod 1008px .modal-container):
   dokud obsah presahuje vysku obrazovky, drzi se pruh u spodni hrany viewportu, po doscrollovani
   dosedne na konec modalu. Zaporne okraje ho roztahnou pres padding .region-modal (12px)
   i .modal-container (10px), aby sel bily podklad od kraje ke kraji. */
.region-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0 -22px -22px;
    padding: 12px 22px;
    background: #fff;
    border-top: 1px solid var(--light-gray);
}
.region-modal-confirm { display: block; margin-left: auto; }
/* vlastni odsazeni pruhu, aby nescital margin tlacitka */
.region-modal-footer .region-modal-confirm { margin: 0; }
.region-modal-status { margin: 0 auto 0 0; color: var(--red); font-size: var(--font-size-small); }
@media (max-width: 1007px) {
    /* tady scrolluje .modal-container - posun o jeho spodni padding, aby pod pruhem neprosvital obsah */
    .region-modal-footer { bottom: -10px; }
}
@media (min-width: 730px) {
    .region-modal-tabs { flex-direction: row; }
    .region-modal-tabs .region-modal-tab { flex: 1; }
    /* zebra po radcich (2 sloupce v gridu) */
    .region-modal-country:nth-child(even) { background-color: transparent; }
    .region-modal-country:nth-child(4n+3),
    .region-modal-country:nth-child(4n+4) { background-color: var(--light); }
}
@media (min-width: 1008px) {
    /* zebra po radcich (3 sloupce v gridu) */
    .region-modal-country:nth-child(4n+3),
    .region-modal-country:nth-child(4n+4) { background-color: transparent; }
    .region-modal-country:nth-child(6n+4),
    .region-modal-country:nth-child(6n+5),
    .region-modal-country:nth-child(6n+6) { background-color: var(--light); }
}
@media (max-width: 729px) {
    .region-modal-countries { grid-template-columns: 1fr; }
    .region-modal-title { font-size: 22px; line-height: 30px; }
    /* na uzke obrazovce je tlacitko pres celou sirku, at je jasne, ze je to hlavni akce */
    .region-modal-confirm { width: 100%; }
}

/* hlavicka vypisu - nadpis vlevo, akce (hlidaci pes / moje filtry) na desktopu vpravo */
.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0.67em 0 12px;
}
.list-header-title {
    min-width: 0;
}
.list-header-title h1 {
    margin: 0;
}
.list-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
/* na desktopu roleta vysouvaj doprava, aby nepretekala pres pravy okraj */
.list-header-actions .my-filters-menu {
    left: auto;
    right: 0;
}
@media (max-width: 729px) {
    .list-header {
        display: block;
    }
    .list-header-actions {
        margin-left: 0;
        margin-top: 12px;
        flex-wrap: wrap;
    }
    .list-header-actions .my-filters-menu {
        left: 0;
        right: auto;
    }
}

/* hlidaci pes nad filtrem - tlacitko vedle boxiku s aktivnimi filtry */
.list-header-actions .watchdog-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.1s ease-in-out, color 0.1s ease-in-out;
}
.list-header-actions .watchdog-save-btn svg { width: 15px; height: 14px; }
@media (hover: hover) {
    .list-header-actions .watchdog-save-btn:hover { background: var(--primary); color: #fff; }
}
.list-header-actions .watchdog-save-btn--saved {
    border-color: var(--green);
    color: var(--green);
    cursor: default;
}
.watchdog-save-msg { font-size: var(--font-size-small); }
.watchdog-save-msg--ok { color: var(--green); }
.watchdog-save-msg--err { color: var(--red); }

/* prihlasovaci / e-mailovy modal pro ulozeni psa */
.watchdog-login-lead { margin: 4px 0 12px; color: var(--gray); font-size: var(--font-size-small); }
.watchdog-login-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: var(--gray);
}
.watchdog-login-or::before,
.watchdog-login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}
.watchdog-login-or span { padding: 0 12px; }

/* modal "dobirka mimo CR jen v EUR" v kosiku */
.cod-currency-modal { padding: 10px; }
.cod-currency-modal-text {
    margin: 0 36px 20px 0;
    font-size: var(--font-size-medium);
    line-height: var(--line-height-medium);
}
.cod-currency-modal-error {
    margin: 0 0 12px;
    color: var(--red);
    font-size: var(--font-size-small);
}
.cod-currency-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.cod-currency-modal-cancel {
    min-height: 40px;
    padding: 0 24px;
    border: 1px solid var(--light-gray);
    background: none;
    color: var(--dark);
    font-size: var(--font-size-medium);
    cursor: pointer;
}
.cod-currency-modal-actions button[disabled] { opacity: .5; cursor: default; }
@media (max-width: 1007px) {
    .cod-currency-modal-actions { display: block; }
    .cod-currency-modal-actions > * { display: block; width: 100%; margin-bottom: 12px; }
}

/* roleta "Moje filtry" ve vypisu */
.my-filters { position: relative; display: inline-block; }
.my-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--light-gray);
    background: #fff;
    color: var(--dark);
    line-height: 1.2;
    cursor: pointer;
}
.my-filters-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.my-filters-toggle .icon-chevron-xs { transition: transform 0.15s ease-in-out; }
.my-filters-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    margin-top: 0;
    width: max-content;
    min-width: max(200%, max-content);
    max-width: 90vw;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-top: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.my-filters.open .my-filters-menu { display: block; }
@media (hover: hover) {
    .my-filters:hover .my-filters-menu { display: block; }
    .my-filters:hover .my-filters-toggle { border-bottom-color: transparent; }
    .my-filters:hover .my-filters-toggle .icon-chevron-xs { transform: rotate(180deg); }
}
.my-filters.open .my-filters-toggle { border-bottom-color: transparent; }
.my-filters.open .my-filters-toggle .icon-chevron-xs { transform: rotate(180deg); }
.my-filters-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    color: var(--dark);
    border-bottom: 1px solid var(--light);
}
.my-filters-item:last-child { border-bottom: none; }
.list-header-actions .my-filters-link {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0;
    background: #fff;
    color: var(--dark);
    border: none;
    font-size: inherit;
    text-decoration: none;
    white-space: nowrap;
}
@media (hover: hover) {
    .list-header-actions .my-filters-link:hover {
        background: #fff;
        color: var(--dark);
        text-decoration: underline;
    }
}
.my-filters-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    color: var(--gray);
    cursor: pointer;
}
.my-filters-remove svg { width: 12px; height: 12px; }
@media (hover: hover) {
    .my-filters-remove:hover { color: var(--red); }
}

/* seznam hlidacich psu (profil / oblibene) */
.watchdog-section { margin-top: 24px; }
.favorites-page h2 {
    margin: 24px 0 12px;
    font-size: var(--font-size-large);
    line-height: var(--line-height-large);
    font-weight: 400;
}
.favorites-page h2:first-of-type {
    margin-top: 0;
}
.favorites-intro {
    margin-bottom: 16px;
}
.favorites-empty {
    color: var(--gray);
}
.favorites-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.favorites-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--light-gray);
    background: #fff;
    color: var(--dark);
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    cursor: pointer;
    text-decoration: none;
}
.favorites-action-btn--primary {
    margin-left: auto;
    border-color: var(--primary);
    color: var(--primary);
}
@media (hover: hover) {
    .favorites-action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
}
.watchdog-items { list-style: none; margin: 12px 0; padding: 0; }
.watchdog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--light-gray);
}
.watchdog-item:last-child { border-bottom: 1px solid var(--light-gray); }
.watchdog-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.watchdog-item-name { color: var(--dark); }
.watchdog-item-link { color: var(--primary); font-size: var(--font-size-small); }
.watchdog-remove { flex-shrink: 0; cursor: pointer; }
.watchdog-empty { color: var(--gray); }
