.swap-images,
.divis-parameters-wrapper {
    border: 1px solid #ccc;
    padding: 0.625rem;
    margin: 0.3125rem 0;
    transition: box-shadow 0.3s ease;
}

.divis-parameters-wrapper:hover {
    box-shadow: 0 0 0.625rem #4cb050;
}

.products-block>div {
    border: none;
}

.products-block>div:nth-child(2n) {
    border-right: none;
}
.p-code {
    top: 0.3125rem !important;
    right: 0.3125rem !important;
    font-size: 9px;
}






/*
VARIANTY
*/

.variant-thumbnails {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: absolute;
    right: 0.3125rem;
    top: 30px;
    bottom: 40px;
    background: transparent;
    z-index: 100;
    pointer-events: none;
    gap: 2px;
}

.variant-thumbnails.mobile {
    top: 40px;
    bottom: 30px;
}

.variant-thumbnail {
    width: 30px;
    height: 40px;
    object-fit: cover;
    object-position: center 80%;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    margin: 0;
    pointer-events: auto;
}

.variant-thumbnail.hover {
    border-color: #666;
    transform: scale(1.1);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.variant-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    height: 20px;
    width: 30px;
    pointer-events: auto !important;
    z-index: 1001;
}

.variant-nav-button.hover {
    background-color: #e0e0e0;
    border-color: #666;
}

.variant-counter {
    font-size: 10px;
    color: #666;
    margin-left: 4px;
}

.variant-top-container {
    height: 22px;
    margin-bottom: 2px;
}

.variant-container {
    position: relative;
}

.presun {
    position: relative;
    display: flex;
    flex-direction: column;
}

.name {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.name span {
    display: inline-block;
    max-width: 92%;
    line-height: 1.2;
    text-align: left;
    font-weight: bold;
}
.p .name {
    text-align: left;
    font-weight: bold;
}

.products-block.products .p .name {
    margin-bottom: 0;
}

.products-block .ratings-wrapper .availability {
    text-align: left;
} 
.availability {
    font-weight: bold;
} 

.ratings-wrapper {
    padding-top: 2px;
}

@media (max-width: 600px) {
    .availability {
        display: block;
        width: 100%;
    }
    .product-rating {
        display: block;
        width: 100%;
        margin-top: 2px; /* mezera pod dostupností, upravte dle potřeby */
        margin-left: 0;
    }
    /* Pokud jsou oba ve stejném řádku (např. flex), vynutíme zalomení */
    .availability + .product-rating {
        margin-left: 0;
    }
}

.divis-parameters-wrapper.tile-shadow,
.variant-container.tile-shadow {
    box-shadow: 0 0 0.625rem #4cb050;
    transition: box-shadow 0.3s;
    z-index: 10;
}
.divis-parameters {
    position: relative;
}


/* Skrytí obrázku pro úzké dlaždice */
.products-block .p {
    container-type: inline-size;
}

/*@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .product, .p[data-micro="product"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}*/
.free-png-absolute {
    width: 60px;
    height: auto;
    z-index: 1;
}

.p-bottom.single-button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: white;
}

.red-fullwidth-div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: red;
    z-index: 10;
    pointer-events: none;
    opacity: 0.7;
}
.prices {
    position: relative; /* aby absolutní pozicování fungovalo vůči cenovému bloku */
    font-size: 20px; /* nebo např. 18px */
}

.flag.flag-discount {
    width: 60px;
    background: #e53935;         
    color: #fff;                 
    border-radius: 0px;
    height: 20px !important;          
    display: inline-block;    
    margin-top: 7px;
}
.flag.flag-tip {
    background: #4b7866;         
    color: #fff;                 
    border-radius: 0px;
    height: 20px;
    display: inline-block;    
}
.products-block .p .flags-default {
    margin-top: 7px;  
}

/*Filtry*/

/* Odstraněno filtrování značek */

.show-more-brands {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.show-more-brands:hover {
    background: #e5e5e5;
}

.show-more-brands::after {
    content: '▼';
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.show-more-brands.expanded::after {
    transform: rotate(180deg);
}

/* Přidáme pozicování pro TD element */
.product table tr td:nth-child(2) {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* Upravte podle potřeby */
}

.products.products-block.homepage-products-1,
.products.products-block.homepage-products-2 {
    visibility: hidden !important;
}

.products.products-block.homepage-products-1.products-ready,
.products.products-block.homepage-products-2.products-ready {
    visibility: visible !important;
}

.stars-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.stars-wrapper::after {
    content: attr(data-micro-rating-value) "/5 (" attr(data-micro-rating-count) " hodnocení)";
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.p-info-wrapper .star-list .star:last-child::after {
    content: var(--rating);
    font-size: 16px;
    color: #999;
    margin-left: 30px;
}

.stars-label {
    padding-left: 70px;
}

@media (max-width: 1024px) {
    .sidebar-left {
        display: none !important;
    }
}

.p-detail-info .stars-wrapper::after,
.p-detail-info.stars-wrapper::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
}

.p-info-wrapper .stars-wrapper::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
}


/* Styly pro detail produktu */
.product-detail .variant-thumbnails {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    height: auto;
    max-height: 80%;
}

.product-detail .variant-thumbnail {
    width: 40px;
    height: 50px;
}

.product-detail .variant-nav-button {
    width: 40px;
    height: 25px;
}

.product-detail .variant-top-container {
    height: 27px;
}
.product-top .p-info-wrapper {
    background: #faf9ff;
    border: 1px solid #efeef7;
    padding: 40px 40px 20px 40px;
}
/*
.dopravax {
    position: absolute;
    width: 55px;
    height: 37px;
    background-image: url('https://divisaci.cz/shoptet/divis/zdarma.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    z-index: 1000;
}

.flag.flag-tip ~ .dopravax {
    margin-top: 25px;
    width: 55px;
    height: 37px;   
    background-image: url('https://divisaci.cz/shoptet/divis/zdarma.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}
.price-save ~ .dopravax  {  
margin-top: 8px;
width: 55px;
height: 37px;  
background-image: url('https://divisaci.cz/shoptet/divis/zdarma.png');
background-repeat: no-repeat;
background-position: left center;
background-size: cover;
margin-left: -8px;
}

.flag.flag-new ~ .dopravax {
    margin-top: 25px;
    width: 55px;
    height: 37px;    
    background-image: url('https://divisaci.cz/shoptet/divis/zdarma.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}*/

/* Přidáme position: relative pro rodičovský element */
.p-info-wrapper {
    position: relative;
}

.products-block .p {
    position: relative;
    min-height: 400px; /* Upravte podle potřeby */
    padding-bottom: 60px; /* Prostor pro p-bottom */
}