/* ==========================================================================
   Bargello.cz – vlastní styly šablony Shoptet Classic
   Umístění na e-shopu: /user/documents/upload/css/bargello-custom.css
   ========================================================================== */

.link:hover,
.link:focus {
    text-decoration: underline;
    color: #d63500;
}

/* Názvy produktů */
.products-block .p .p-name,
.product .name {
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-decoration: none;
}

.products-block .p .p-name span,
.product .name span {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

/* Menší název na mobilu */
@media (max-width: 767px) {
    .products-block .p .p-name,
    .product .name {
        font-size: 16px !important;
    }
}

/* Hodnocení zákazníků */
.vote-product-name,
.vote-title,
.vote-name {
    font-size: 12px;
    margin-bottom: 5px;
}

/* Zarovnání odkazů u bannerů */
.banner-category a .extended-banner-link,
.banner-wrapper a .extended-banner-link,
.banner a .extended-banner-link {
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Skrytí filtrů: Na skladě, Značky a cenový posuvník */
#filters .filter-section-boolean:has(#stock),
#filters form[action*="setStockFilter"],
#stock-filter,
#manufacturer-filter,
.filter-section-manufacturer,
#filters .slider-wrapper:has(.param-price-filter),
#filters #price-filter-form {
    display: none !important;
}

/* Související a podobné produkty vytažené pod obsah detailu */
.shp-tabs-row li:has(> a[href$="#productsRelated"]),
.shp-tabs-row li:has(> a[href$="#productsAlternative"]),
.shp-tabs-row a[href$="#productsRelated"],
.shp-tabs-row a[href$="#productsAlternative"] {
    display: none !important;
}

#tab-content {
    display: flex;
    flex-direction: column;
}

#productsRelated,
#productsAlternative {
    display: block !important;
    opacity: 1 !important;
}

#productsRelated {
    order: 98;
}

#productsAlternative {
    order: 99;
}

#productsRelated::before,
#productsAlternative::before {
    display: block;
    margin: 30px 0 16px;
    font-family: var(--template-headings-font, "Source Sans 3", sans-serif);
    font-size: 140%;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-tertiary-hover, #353432);
}

#productsRelated::before {
    content: "Související produkty";
}

#productsAlternative::before {
    content: "Podobné produkty";
}

/* Obdélník barvy výběru (filtry) */
.filter-label .swatch {
    display: inline-block;
    width: 50px;
    height: 25px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, .2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-label:hover .swatch {
    transform: scale(1.04);
}

input[name="pv[]"]:checked + .filter-label .swatch {
    outline: 2px solid #1C6774;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #fff;
}

input[name="pv[]"]:focus-visible + .filter-label .swatch {
    outline: 2px solid #EB6026;
    outline-offset: 2px;
}

/* Trochu odsadíme počty */
.filter-label .filter-count {
    margin-left: 6px;
}

/* Skrytí textového popisku u barevných vzorků (přístupné pro čtečky) */
.filter-label .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Ikona malířské palety pro starý mixér Ladění barev */
.link-icon.save-code::before {
    --palette-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000" fill-rule="evenodd" clip-rule="evenodd"><path d="M12 2c5.523 0 10 3.88 10 8.664C22 14.24 19.63 16 17.4 16H16c-.828 0-1.5.672-1.5 1.5S14.672 19 13.5 19h-1.2C7.148 19 2 15.523 2 10.664 2 6.08 6.477 2 12 2zM8.6 9a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2zm3.2-1a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2zM16 9.8a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2zM14.2 12.6a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></svg>');
    content: "";
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-right: 2px;
    background-color: currentColor;
    -webkit-mask: var(--palette-icon) no-repeat center / contain;
    mask: var(--palette-icon) no-repeat center / contain;
}

/* Ikony a loga výrobců na detailu produktu */
.product-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: 12px 0;
}

.product-icons > img {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

.product-icons .icon {
    position: relative;
    display: inline-block;
    cursor: default;
}

.product-icons .icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Tooltip u ikon */
.product-icons .icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* První ikona vlevo (když chybí logo výrobce) se zarovná doleva, aby se tooltip na mobilu neořezal */
.product-icons .icon:first-child::after {
    left: 0;
    transform: none;
}

/* Zobrazení tooltipu při najetí nebo fokusu */
.product-icons .icon:hover::after,
.product-icons .icon:focus-within::after {
    opacity: 1;
}

@media (max-width: 767px) {
    .product-icons > img {
        max-height: 45px;
        max-width: 130px;
    }
}

