/* FILAMAG TEST – posouvání obchodních podmínek ve FancyBoxu */
#fancybox-content {
    max-height: 70vh !important;
    overflow: auto !important;
}
/* FILAMAG - velikost loga */
.container-header .navbar-brand img {
    width: 140px;
    height: auto;
}
/* FILAMAG - svetle zahlavi */
.container-header {
    background: #f7f7f7;
    background-image: none;
}
/* FILAMAG - kompaktni zahlavi */
.container-header .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.container-header .grid-child {
    padding-top: 0;
    padding-bottom: 0;
}

/* FILAMAG - automaticky slider */
.filamag-slider {
    display: grid;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

.filamag-slider img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: filamag-slide 15s infinite;
}

.filamag-slider img:nth-child(1) {
    animation-delay: 0s;
}

.filamag-slider img:nth-child(2) {
    animation-delay: -10s;
}

.filamag-slider img:nth-child(3) {
    animation-delay: -5s;
}

@keyframes filamag-slide {
    0%, 30% {
        opacity: 1;
    }
    33.33%, 96.67% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .filamag-slider img {
        animation: none;
        opacity: 0;
    }

    .filamag-slider img:first-child {
        opacity: 1;
    }
}

/* FILAMAG – náhodné produkty na úvodní stránce */
.filamag-random-products ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 45px;
  list-style: none;
    padding: 0;
    margin: 0;
}

.filamag-random-products ul > li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.filamag-random-products img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .filamag-random-products ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FILAMAG – mezery mezi řádky náhodných produktů */
.filamag-random-products .vmgroupfilamag-random-products > ul {
    margin-bottom: 45px;
}

.filamag-random-products .vmgroupfilamag-random-products > ul:last-of-type {
    margin-bottom: 0;
}

/* FILAMAG – vycentrování náhodných produktů */
.filamag-random-products ul > li {
    text-align: center;
}

.filamag-random-products ul > li img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.filamag-random-products ul > li .productdetails {
    text-align: center;
}

/* FILAMAG – vycentrování cen náhodných produktů */
.filamag-random-products .product-price,
.filamag-random-products .PricesalesPrice,
.filamag-random-products .productdetails {
    text-align: center !important;
}

/* FILAMAG – zarovnání cen náhodných produktů */
.filamag-random-products .product-price,
.filamag-random-products .PricesalesPrice.vm-price-value {
    width: 100%;
    float: none !important;
    text-align: center !important;
    justify-content: center !important;
}

/* FILAMAG – zarovnání vnitřního prvku ceny */
.filamag-random-products .product-price .vm-price-value {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.filamag-random-products .product-price .vm-price-value span {
    display: block;
    text-align: center !important;
}

/* FILAMAG – vycentrování modulu NOVÉ ZBOŽÍ */
.filamag-new-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filamag-new-products ul > li {
    text-align: center;
    margin-bottom: 25px;
}

.filamag-new-products ul > li img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.filamag-new-products .productdetails,
.filamag-new-products .product-price,
.filamag-new-products .vm-price-value,
.filamag-new-products .vm-price-value span {
    display: block;
    width: 100%;
    text-align: center !important;
}

/* FILAMAG – jednotná plocha pro obrázky náhodných produktů */
.filamag-random-products ul > li img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* FILAMAG – menší nadpisy postranních modulů */
.container-sidebar-left .card-header,
.container-sidebar-right .card-header {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    padding: 8px 12px;
}
/* FILAMAG – nadpisy obsahu úvodní stránky */
.com-content-featured h3,
.com-content-featured__items h3,
.blog-featured h3 {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 14px;
    margin-bottom: 8px;
}
/* FILAMAG – skrytí grafického indikátoru skladové dostupnosti */
.vm-stock-status {
    display: none !important;
}
/* Mensi mezery mezi produkty v radkovem vypisu */
.vm-product-grid .product.pb-4 {
    padding-bottom: 0.25rem !important;
}
/* Radkovy vypis - mensi mezera pod cenou */
.vm-product-grid .product-price.pb-3 {
    padding-bottom: 0 !important;
}
/* FILAMAG – množství a tlačítko vedle sebe */
.vm-product-grid .addtocart-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.vm-product-grid .addtocart-bar > .row {
    flex: 0 0 auto;
    margin: 0;
}

.vm-product-grid .vm-addtocart-button-col {
    flex: 0 0 auto;
    width: auto !important;
}

.vm-product-grid .addtocart-button {
    width: auto !important;
}
/* FILAMAG – mensi svisle mezery mezi produkty */
.vm-product-grid > .row > .product {
    margin-top: 5px !important;
}
/* FILAMAG – stridave podbarveni radku produktu */
.vm-product-grid > .row > .product:nth-child(odd) {
    background-color: #f3f4f5;
}
.vm-product-grid > .row > .product:nth-child(even) {
    background-color: #e8f0f5;
}
/* FILAMAG – responzivni rozlozeni postrannich panelu */
@supports (display: grid) {

    /* Siroke obrazovky – tri sloupce */
    @media (min-width: 1600px) {
        .site-grid {
            grid-template-columns:
                [full-start] minmax(0, 1fr)
                [main-start] 240px
                minmax(0, 400px)
                minmax(0, 400px)
                240px [main-end]
                minmax(0, 1fr) [full-end];
        }
    }

/* Stredni obrazovky – dva sloupce */
@media (min-width: 992px) and (max-width: 1599px) {
    .site-grid {
        grid-template-columns:
            [full-start] minmax(0, 1fr)
            [main-start] 240px
            minmax(0, 400px)
            minmax(0, 400px)
            [main-end] minmax(0, 1fr) [full-end];

        grid-template-areas:
            ". banner banner banner ."
            ". top-a top-a top-a ."
            ". top-b top-b top-b ."
            ". side-l comp comp ."
            ". side-r comp comp ."
            ". bot-a bot-a bot-a ."
            ". bot-b bot-b bot-b .";
    }

    .container-sidebar-right {
        align-self: start;
    }
}
}

/* FILAMAG – logo a menu zarovnane s obsahem webu */
@media (min-width: 992px) {
    .container-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        gap: 24px;
    }

    .container-header .container-nav {
        flex: 0 1 auto;
        width: auto;
        margin-left: auto;
    }
}

/* FILAMAG – tmave odkazy navigace na svetlem pozadi */
.container-header .mod-menu,
.container-header .mod-menu a,
.container-header .navbar-toggler {
    color: #253746;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus {
    color: #0066a1;
}

/* FILAMAG – obchodni podminky bez obrazku prodejce */
body.layout-tos .vendor-details-view .vendor-image {
    display: none;
}

body.layout-tos .vendor-details-view .row > .col-lg-3 {
    display: none;
}

body.layout-tos .vendor-details-view .row > .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* FILAMAG – skryti nadbytecneho nadpisu VirtueMartu na strance podminek */
body.layout-tos .vendor-details-view > h1 {
    display: none;
}


