/*!
 * CSS customization
 * Author: Vojtěch Pelouch
 * Website: https://peloucvo.eu
 * Created: 2025-10-10
 * License: MIT
 *
 * Redistribution or copying without preserving this license header is not allowed.
 */

/* Custom carousel */
#carousel {
    margin-bottom: 24px;
}

#carousel .carousel-inner {
    min-height: auto !important;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 24px;
    margin: 0;
    will-change: scroll-position;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: none;
}

#carousel .carousel-inner::-webkit-scrollbar {
    display: none;
}

#carousel .carousel-inner.grabbing {
    cursor: grabbing;
}

#carousel .carousel-inner>.item {
    display: block !important;
    position: relative !important;
    left: auto !important;
    float: none !important;
    transition: none !important;
}

#carousel .item {
    flex: 0 0 auto;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e5e5e5));
    background: linear-gradient(to bottom, #ffffff, #e5e5e5);
}

#carousel .item:first-child {
    aspect-ratio: 4 / 3;
}

#carousel .item:not(:first-child) {
    aspect-ratio: 2 / 3;
}

#carousel .item>img,
#carousel .item>a>img,
#carousel .item>a>video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
    background: transparent;
}

#carousel .item>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.carousel-control.hidden-control {
    display: none;
}

@media only screen and (min-width: 992px) {
    #carousel .item {
        height: 560px;
    }
}

@media (max-width: 992px) {
    #carousel .carousel-inner {
        gap: 20px;
    }

    #carousel .item {
        aspect-ratio: 2 / 3;
        height: auto;
        flex: 0 0 calc(100% - 40px);
    }
}

/* Menu */
@media only screen and (min-width: 768px) {
    .navigation-in>ul>li>a {
        font-size: 16px;
    }

    .navigation-in>ul>li.ext>ul>li>div>a {
        font-size: 15px;
    }
}

/* Watchdog */
.social-buttons-wrapper .watchdog::before {
    content: "";
}

/* Rating */
.stars .star.is-active:hover,
.stars .star.star-half:before,
.stars .star.star-on:before {
    color: #e9c501;
}

.stars a,
.stars span {
    height: 240x;
    width: 20px;
    line-height: 20px;
}

.stars a:before,
.stars span:before {
    height: 20px;
    line-height: 20px;
    font-size: 20px;
}

.stars {
    width: auto;
    height: 20px;
    margin-right: 8px;
}

.p-detail-inner-header .stars-wrapper {
    padding: 16px 0;
}

/* Contact us on PP */
.pp-contact-us {
    margin-top: 32px;
    margin-bottom: 32px;
    background-color: #f5f3fa;
    border: 1px solid #e6e6eb;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pp-contact-us .pp-contact-us-wrapper {
    display: flex;
    gap: 16px;
}

.pp-contact-us-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    align-items: flex-start;
}

.pp-contact-us-image {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-contact-us-image img {
    max-width: 130px;
}

.pp-contact-us-image>div p {
    white-space: nowrap;
    margin: 0;
}

.pp-contact-name {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
}

.pp-contact-us-tel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

@media only screen and (max-width: 350px) {
    .pp-contact-us .pp-contact-us-wrapper {
        flex-direction: column;
    }
}

/* Custom menu helper */
.menu-helper-custom {
    position: absolute;
    top: 98px;
    right: 0;
    z-index: 10;
    display: none;
    align-items: center;
}

.menu-helper-toggle {
    background: black;
    color: white;
    border: none;
    font-size: 24px;
    padding: 4px 8px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    font-family: 'shoptet';
    line-height: 1;
}

.menu-helper-toggle::before {
    content: "\e914";
    font-size: 20px;
    display: inline-flex;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-helper-custom.open .menu-helper-toggle::before {
    content: "\e912";
    transform: translate(-50%, -50%) rotate(0deg);
}


.menu-helper-list {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-helper-custom.open .menu-helper-list {
    display: block;
}

.menu-helper-list li {
    border-top: 1px solid #eee;
    list-style: none;
    position: relative;
}

.menu-helper-list li a {
    display: block;
    padding: 12px 16px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.menu-helper-list li a:hover {
    background: #f4f4f4;
}

.menu-helper-custom .submenu-arrow {
    display: inline-block;
    font-size: 10px;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.menu-helper-list li.open .submenu-arrow {
    transform: rotate(180deg);
}

.menu-helper-list ul.submenu {
    display: none;
    background: #f9f9f9;
    padding: 0;
    margin: 0;
}

.menu-helper-list ul.submenu.visible {
    display: block;
}

.menu-helper-list ul.submenu li a {
    padding-left: 32px;
}



@media only screen and (min-width: 768px) {

    .navigation-in .menu-item-29,
    .navigation-in .menu-item-726 {
        display: none;
    }

    .navigation-in.menu,
    ul.menu-level-1,
    .navigation-in>ul>li {
        height: 100%;
    }

    .navigation-in>ul>li>a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .menu-helper-custom {
        display: flex;
    }

    .navigation-wrapper .menu-helper {
        display: none !important;
    }

    .navigation-in ul li {
        visibility: visible !important;
    }

    .submenu-visible .navigation-in ul li.splitted {
        display: block !important;
    }


}

/* Hide blog & contacts */

@media only screen and (min-width: 768px) {

    .navigation-in .menu-item-29,
    .navigation-in .menu-item-726 {
        display: none !important;
    }
}

/* Zachran produkt button */
li.menu-item-1527 {
    background: linear-gradient(to top, #191166, #321a72, #47247e, #5a2e8b, #6e3997);
}

li.menu-item-1527>a {
    color: #ffffff !important;
}

/* Watchdog */
.link-icon.watchdog>span {
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    padding: 5px 15px;
    text-align: center;
    transition: all .3s ease-out;
    white-space: normal;
    border: 2px solid #7A42F4;
    color: #7A42F4;
    border-radius: 22px;
    text-transform: none;
}

.delivery-time-label {
    font-size: 16px;
    font-weight: bold;
}

.delivery-time {
    font-size: 16px;
}

.detail-parameters .availability-value {
    font-size: 22px;
    margin-bottom: 12px;
}

.shipping-options {
    font-size: 16px;
}

.categories .expanded>li>a {
    font-weight: normal;
}

/* Product card */
.products-block.products .p .name {
    font-weight: 600;
}

.product .flag[style*="background-color:#999999"] {
    display: none;
}

.product .p-in {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product .p-in .p-in-in {
    margin-bottom: auto;
}

.product-segments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    min-height: 26px;
}

.products-block.products .p:not(:has(.product-segments)) .name {
    margin-bottom: 30px;
}

.products-block.products .p .name {
    margin-bottom: 4px;
}

.product-segments .segment {
    background-color: #f4f1f0;
    color: #000;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}