@import "jp_custom.css";
@import "jp_deliveryOption.css";
@import "jp_select.css";
@import "jp_delivery.css";
@import "jp_summary.css";
@import "jp_checkbox.css";
@import "confirm.css";
@import "jp_cart.css";


.box-htop3 .leo-megamenu .navbar-nav::before{ border-top: 0 !important; border-bottom: 0 !important;}

@media (min-width:992px)
{  .box-htop3 .leo-megamenu .navbar-nav:before {border-top: 0 !important; border-bottom: 0 !important;}
   .border-bottom {border-bottom: 1px solid lightgray; height:1px;} 
}


/* Štítek Výprodej (modul am_productflags) */
.product-flags .product-flag.vyprodej { background: #000; color: #fff; }


/* Štítek Skladem ve výpisu produktů */
.product-miniature .product-price-and-shipping { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.product-miniature .product-in-stock { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #0c8a04; font-size: 13px; font-weight: 400; line-height: 1; }
.product-miniature .product-in-stock-icon { flex-shrink: 0; fill: none !important; }
.product-miniature .product-in-stock-icon path { fill: none !important; stroke: currentColor; }

/* Dlaždice produktu (výpis + carousel am_productlists): zaoblená fotka, zarovnání vlevo, rozestupy 20 px */
.product-miniature { container-type: inline-size; }
.product-miniature .product-image,
.product-miniature .product-thumbnail { border-radius: 5px; overflow: hidden; }
/* Mezery řeší margin jen mezi NEPRÁZDNÝMI prvky (prázdné wrappery z hooků by u flex gap přidaly další 20 px) */
.product-miniature .thumbnail-container { margin-bottom: 0; }
.product-miniature { margin-bottom: 50px; } /* mezera mezi řádky produktů */
.carousel-products .product-miniature { margin-bottom: 0; } /* v karuselu am_productlists žádná spodní mezera */
.product-miniature .thumbnail-container .product-image { margin-bottom: 0; padding-bottom: 0; }
.product-miniature .thumbnail-container .product-meta { display: block; margin: 20px 0 0; padding: 0; text-align: left; }
.product-miniature .thumbnail-container .product-meta > * { margin: 0 !important; padding-top: 0; padding-bottom: 0; }
.product-miniature .thumbnail-container .product-meta > :not(:empty) ~ :not(:empty) { margin-top: 12px !important; }
.product-miniature .thumbnail-container .product-title a { display: block; padding: 0; }
/* přebíjí .plist-vita .thumbnail-container .product-title { padding-top: 15px } ze styles.css */
.product-miniature .thumbnail-container .product-meta > .product-title { padding-top: 0 !important; padding-bottom: 0 !important; }
.product-miniature .product-thumbnail,
.product-miniature .product-thumbnail img { display: block; } /* odstraní inline mezeru pod obrázkem */
/* typografie prvků dlaždice */
.product-miniature .product-flags .product-flag { font-size: 13px; }
.product-miniature .product-title,
.product-miniature .product-title a { font-size: 14px; line-height: 20px; font-weight: 500; color: #000; }
.product-miniature .product-price-and-shipping .regular-price { font-size: 13px; font-weight: 400; color: #767676; text-decoration: line-through; }
.product-miniature .product-price-and-shipping .price { font-size: 16px; font-weight: 600; color: #000; }
/* úzká dlaždice: Skladem se zalomí pod cenu, vlevo, s odsazením 20 px */
@container (max-width: 240px) {
    .product-miniature .product-price-and-shipping { row-gap: 20px; }
    .product-miniature .product-in-stock { flex-basis: 100%; margin-left: 0; }
}

/* Perex (krátký popis) ve výpisu produktů */
.product-miniature .product-description-short { margin: 6px 0 0; color: #767676; font-size: 13px; font-weight: 400; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hodnocení ve výpisu produktů (přebíjí absolutní pozici z modulu ets_reviews) */
.product-miniature .product-list-reviews { position: static; top: auto; width: auto; background: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 6px; font-size: 12px; color: #767676; }
.product-miniature .product-list-reviews .ets-rv-grade-stars,
.product-miniature .product-list-reviews .comments-note,
.product-miniature .product-list-reviews .ets_rv_grade_stars { display: contents; }
.product-miniature .product-list-reviews .ets_svg_icon { order: 0; }
.product-miniature .product-list-reviews .ets-rv-percent { order: 1; }
.product-miniature .product-list-reviews .ets-rv-comments-nb { order: 2; margin-left: 0; color: #767676; font-size: 12px; }
.product-miniature .product-list-reviews .ets-rv-comments-nb::after { content: "x"; }

/* Hover ve výpisu: střídání fotek z galerie (jen zařízení s myší) */
.product-miniature .product-thumbnail { position: relative; }
.product-miniature .product-thumbnail .am-hover-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
@media (hover: hover) {
    .product-miniature .product-thumbnail .am-hover-img.am-hover-on { opacity: 1; }
}
/* šipky a tečky galerie */
/* vzhled šipek je vždy, zobrazení řídí jen display */
.product-miniature .product-thumbnail .am-nav { display: none; position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 1px solid #dedede; border-radius: 50%; background: #fff no-repeat center / 9px 16px; box-sizing: border-box; cursor: pointer; z-index: 3; }
.product-miniature .product-thumbnail .am-dots { display: none; }
.product-miniature .product-thumbnail .am-prev { left: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M7 1 1 7l6 6' fill='none' stroke='%231a1a1a' stroke-width='1.8'/%3E%3C/svg%3E"); }
.product-miniature .product-thumbnail .am-next { right: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%231a1a1a' stroke-width='1.8'/%3E%3C/svg%3E"); }
@media (hover: hover) {
    .product-miniature .product-thumbnail.am-gallery-on:not(.am-narrow) .am-nav { display: block; }
}
@media (hover: hover) {
    .product-miniature .product-thumbnail.am-gallery-on .am-dots { display: flex; position: absolute; left: 0; right: 0; bottom: 8px; justify-content: center; gap: 6px; z-index: 3; pointer-events: none; }
    .product-miniature .product-thumbnail .am-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); pointer-events: auto; cursor: pointer; }
    .product-miniature .product-thumbnail .am-dot.active { background: #222; }
}

/* Výpis kategorie: progress bar a stránkování nad tlačítkem Načíst další */
.dynamic-loading .af-pager { margin: 30px 0 25px; text-align: center; }
.dynamic-loading .af-progress { width: 380px; max-width: 100%; height: 6px; margin: 0 auto 30px; border-radius: 3px; background: #e0e0e0; overflow: hidden; display: none;}
.dynamic-loading .af-progress span { display: block; height: 100%; border-radius: 3px; background: #237980; transition: width .3s; }
.dynamic-loading .af-pages { display: flex; justify-content: center; align-items: center; gap: 14px; }
.dynamic-loading .af-page-num { min-width: 24px; color: #767676; font-size: 16px; font-weight: 500; line-height: 40px; text-align: center; text-decoration: none; }
.dynamic-loading .af-page-num:hover { color: #000; }
.dynamic-loading .af-page-num.active { color: #000; font-weight: 700; cursor: default; }
.dynamic-loading .af-page-arrow { position: relative; width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%; color: #000; }
.dynamic-loading .af-page-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.dynamic-loading .af-page-arrow.next::before { transform: translate(-65%, -50%) rotate(45deg); }
.dynamic-loading .af-page-arrow.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.dynamic-loading .af-page-arrow:hover { border-color: #000; }
.dynamic-loading .af-page-arrow.disabled { color: #bbb; pointer-events: none; }
.dynamic-loading .loadMore.next, .dynamic-loading .loadMore.next:focus { border: 1px solid #237980; background: #237980; color: #fff; }
.dynamic-loading .loadMore.next:hover { border-color: #0e8a5a; background: #0e8a5a; color: #fff; }

/* Výpis kategorie: 3 produkty vedle sebe jen pro 1200-1699 px (jinde beze změny) */
@media (min-width: 1200px) and (max-width: 1699px) {
    body#category .product_list.grid .ajax_block_product { width: 33.33333%; clear: none; }
    body#category .product_list.grid .ajax_block_product:nth-child(3n+1) { clear: both; }
}
