/* =========================
   PG ARROWS – main product image
   ========================= */
.p-main-image,
.p-image {
    position: relative;
}

.product-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,182,237,.45);
    border: 0;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    opacity: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-gallery-arrow:hover {
    background: rgba(0,182,237,.65);
    transform: translateY(-50%) scale(1.05);
}

.product-gallery-arrow::before {
    font-family: shoptet, 'Open Sans', sans-serif;
    font-size: 15px;
    color: #fff;
    line-height: 1;
}

/* levá / pravá šipka – VŽDY uvnitř obrázku */
.product-gallery-arrow.prev {
    left: 0;
}

.product-gallery-arrow.prev::before {
    content: '\e90f'; /* shoptet šipka doleva */
}

.product-gallery-arrow.next {
    right: 0;
}

.product-gallery-arrow.next::before {
    content: '\e910'; /* shoptet šipka doprava */
}


/* ========================= 
   PG BacktoTop button 
   ========================= */
#pgtopback{
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,182,237,.65);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity .25s ease, background .25s ease, transform .2s ease, bottom .3s ease;
    z-index: 1100;
}

#pgtopback:hover{
    background: rgba(0,182,237,.85);
    transform: translateY(-2px);
}

#pgtopback i{
    position: relative;
    width: 18px;
    height: 18px;
    display:block;
}

#pgtopback i::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:10px;
    height:10px;
    border-left:2px solid #fff;
    border-top:2px solid #fff;
    transform:translate(-50%,-30%) rotate(45deg);
    border-radius:1px;
}

/* nezobrazovat při otevřených překryvech */
body.modal-open #pgtopback,
body.menu-open #pgtopback,
body.cart-open #pgtopback,
.ordering-process #pgtopback{
    opacity:0 !important;
    pointer-events:none !important;
}

/* Media queries */
@media (max-width: 767px) {
    #pgtopback {
        bottom: 80px;
    }
}


/* =========================
   PG StickyAddToCartBar
   ========================= */
#coder-sticky-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#coder-sticky-bar.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.plugin-fixed-header__container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 15px; 
    height: 64px;
}

/* pro PC */
@media (min-width: 768px) {
    #coder-sticky-bar { top: 0; transform: translateY(-100%); }
    
    .plugin-fixed-header__image { width: 50px; height: 50px; margin-right: 15px; flex-shrink: 0; }
    .plugin-fixed-header__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
    
    .plugin-fixed-header__name { 
        display: flex !important; 
        align-items: baseline !important; 
        gap: 15px !important;
        flex-grow: 1; 
        font-weight: bold; 
        font-size: 14pt; 
        color: #4D4D4D;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        margin-right: 20px;
    }
    
    .plugin-fixed-header__availability { 
        display: inline-block !important; 
        font-size: 10pt !important; 
        font-weight: normal; 
        color: #28a745; 
        white-space: nowrap; 
        flex-shrink: 0;
    }
    
    .plugin-fixed-header__price { 
        font-size: 14pt; 
        font-weight: 800; 
        margin: 0 30px !important; 
        white-space: nowrap; 
        color: #4D4D4D; 
        flex-shrink: 0;
    }

    .plugin-fixed-header__basket { flex-shrink: 0; }
}

/* pro Mobil */
@media (max-width: 767px) {
    #coder-sticky-bar { bottom: 0; transform: translateY(100%); border-top: 1px solid #eee; }
    .plugin-fixed-header__image, .plugin-fixed-header__name, .plugin-fixed-header__price { display: none; }
    .plugin-fixed-header__container { padding: 8px 10px; height: 64px; justify-content: center; }
    .plugin-fixed-header__basket { width: 100%; display: flex; justify-content: center; }
    
    #sticky-add-to-cart { 
        width: 100% !important; 
        height: 48px; 
        border-radius: 4px; 
        margin: 0; 
        font-size: 1.1rem; 
        text-transform: uppercase;
        display: flex; 
        align-items: center; 
        justify-content: center;
    }
}


/* =========================
   PG products on Blog Pages
   ========================= */
.pgproducts.products-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* vždy 3 sloupce */
  gap: 24px;
  margin: 40px 0;
}

/* placeholder bloky neviditelné, ale zachovávají layout */
.pgproducts .product.placeholder {
  visibility: hidden;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* PG-products kontejner */
.pgproducts {
  min-height: 200px;
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pgproducts.done {
  min-height: unset;
}

/* jednotlivá karta */
.pgproduct {
  display: flex;
  gap: 20px;
  border: 1px solid #e4e4e4;
  padding: 15px;
  background: #fff;
}

/* obrázek */
.pgproduct-image img {
  max-width: 160px;
  height: auto;
  display: block;
}

/* tělo karty */
.pgproduct-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pgproduct-name {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
}

.pgproducts .name {
  text-align: center;
}

/* Cena */
.pgproducts .price-final {
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-top: 8px;
}

/* Shoptet struktura */
.pgproducts .product {
  width: 100%;
  border: 1px solid #e4e4e4 !important;
  box-sizing: border-box !important;
}

.pgproducts .p {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pgproducts .p-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pgproducts .image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pgproducts .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pgproducts .p-image {
  position: relative;
}

/* === CTA tlačítko === */
.pgproducts .btn-cart::before,
.pgproducts .btn-cart i,
.pgproducts .btn-cart svg,
.pgproducts .btn-cart .icon,
.pgproducts .btn-cart .cart-icon {
  display: none !important;
  content: none !important;
}

.pgproducts .btn-cart {
  display: inline-block;               /* menší šířka */
  width: 80px;                          /* fixní šířka */
  margin: 15px auto 0 auto;             /* vycentrované */
  text-align: center;
  background-color: #009901 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: normal !important;
  padding: 6px 0;                       /* menší padding */
  cursor: pointer;
  transition: background-color 0.3s;
}

.pgproducts .btn-cart:hover {
  background-color: #022283 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
}

/* Vycentrování CTA tlačítka */
.pgproducts .p-bottom {
  display: flex;
  justify-content: center;
}

/* === Flag discount === */
.pgproducts .flag-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  background-color: #00B6ED;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}

/* Text ve flagu přímo */
.pgproducts .flag-discount .flag-text {
  color: #ffffff !important;   /* bílé písmo */
  text-align: center;
  font-weight: 600;
}

.pgproducts .price-save {
  color: #ffffff !important;   /* bílé písmo */
}

/* Media queries */
@media (max-width: 767px) {

  .pgproducts.products-block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 24px;
  }

  .pgproducts.products-block .product {
    width: 100%;
    max-width: 100%;
  }
  
  .pgproducts.products-block .product .p-bottom {
    margin-bottom: 15px;
  }

  /* placeholdery na mobilu nemají smysl */
  .pgproducts.products-block .product.placeholder {
    display: none !important;
  }

}


/* =========================
   PG Collapsible
   ========================= */
/* Hlavní kontejner */
.collapssize-table {
    border: 2px solid #00B6ED;
    background-color: rgba(0,182,237,.45);
    padding: 14px 16px;
    transition: background-color 0.3s ease;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.collaps-wrapper p:empty {
    display: none;
}

.collaps-wrapper > p {
    margin: 0;
}

/* Hover efekt na celý blok */
.collapssize-table:hover {
    background-color: rgba(0,182,237,.45);
}

/* Řádek s nadpisem */
.collapssize-table .collapssummary {
    cursor: pointer;
    font-size: 12pt;
    font-family: inherit;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

/* Odstranění výchozí šipky prohlížeče */
.collapssize-table .collapssummary::-webkit-details-marker {
    display: none;
}

/* Vlastní šipka */
.collapsarrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Rotace šipky při otevření */
.collapssize-table[open] .collapsarrow {
    transform: rotate(135deg);
}

 /* Skrytý obsah */
.collapscontent {
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Otevřený stav */
.collapssize-table[open] .collapscontent {
    display: block;
    opacity: 1;
    margin-top: 10px;
} 

/* verze šedý/grey design */
.collapssize-table.collapssize-table--grey {
    border-color: rgba(185, 185, 185, 1.0);
    background-color: rgba(246, 246, 246, 1.0);
}
.collapssize-table.collapssize-table--grey:hover {
    background-color: rgba(246, 246, 246, 1.0);
}

/* verze Line (bez podkladu pouze se spodní linkou) + úprava ikony (+ / x)  */
/* bez podkladu pouze spodní linka */
.collapssize-table.collapssize-table--line {
    border: none;
    border-bottom: 1px solid rgba(185, 185, 185, 1.0);
    background-color: transparent;

}
.collapssize-table.collapssize-table--line:hover {
    background-color: transparent;
}

/* Přesun nadpisu a ikony na opačné konce řádku */
.collapssize-table--line .collapssummary {
    justify-content: space-between; /* Text skočí doleva, ikona úplně doprava */
}

/* Skrytí původní stříšky (otočený rámeček) */
.collapssize-table--line .collapsarrow {
    border: none;
    transform: none !important; /* Zrušíme rotaci z hlavního kódu */
    position: relative;
    width: 14px;  /* Vytvoříme prostor pro nové znaménko */
    height: 14px;
    order: 2;     /* Přesune prvek v rámci flexboxu na konec (za text) */
}

/* horizontální čárka znaménka (společná pro + i x) */
.collapssize-table--line .collapsarrow::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
    background-color: #000000;
    transition: transform 0.25s ease;
}

/* vertikální čárka znaménka (aby vzniklo plus +) */
.collapssize-table--line .collapsarrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
    background-color: #000000;
    transition: transform 0.25s ease;
}

/* ROZBALENÝ STAV: Změna na "x" pomocí otočení čárek */
.collapssize-table--line[open] .collapsarrow::before {
    transform: rotate(45deg);
}
.collapssize-table--line[open] .collapsarrow::after {
    transform: rotate(45deg);
}

