/* --- Related products layout fix --- */
section.related.products {
  clear: both;
  float: none;
  width: 100%;
  margin-top: 70px;
}

/* --- Product meta text --- */
.product_meta {
  font-size: 12px;
  color: #aaa;
}

/* --- Hide first tab heading on product page --- */
.woocommerce-Tabs-panel h2:first-child {
  display: none;
}

/* --- Center category titles --- */
.woocommerce-loop-category__title,
h2.woocommerce-loop-category__title,
ul.products li.product-category h2,
.product-category h2,
.wc-block-grid__product-title {
  text-align: center;
}

/* --- Smaller "add to cart" / "view cart" buttons --- */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button,
a.add_to_cart_button,
a.button.add_to_cart_button,
.woocommerce-message .button.wc-forward {
  padding: 6px 14px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  width: auto !important;
  display: inline-block !important;
  min-width: unset !important;
  min-height: unset !important;
}

/* --- "Added to cart" message layout --- */
.woocommerce-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.woocommerce-message .button.wc-forward {
  position: static;
  margin-left: auto;
}

@media (max-width: 480px) {
  .woocommerce-message {
    flex-direction: column;
    align-items: flex-start;
  }
  .woocommerce-message .button.wc-forward {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* --- Mobile sorting dropdown overflow fix --- */
@media (max-width: 768px) {
  .woocommerce .woocommerce-ordering,
  .woocommerce-page .woocommerce-ordering {
    float: none;
    width: 100%;
  }
  .woocommerce-ordering select.orderby {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Zarovnání názvu kategorie doleva v gridu */
ul.products li.product-category .woocommerce-loop-category__title {
    text-align: left;
}

/* Hover galerie – druhá fotka v gridu */
.st-hover-thumb {
    position: relative;
    overflow: hidden;
}
.st-hover-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.st-hover-thumb__second {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.st-hover-thumb:hover .st-hover-thumb__second {
    opacity: 1;
}

/* Kategorie: "Zjistit více" (rozbalení popisu), velikost jako breadcrumbs */
.st-category-desc-toggle,
.st-category-desc-toggle::before,
.st-category-desc-toggle::after {
  font-size: .92em !important;
  line-height: 1.4 !important;
}


/* Nadpisy Podrobnosti o objednávce a Fakturační adresa = stejně jako Pokladna */
.entry-content h2 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #3b3b3b !important;
}

/* Běžný text na děkovací stránce - jednotná velikost a bez tučného písma */
.entry-content table,
.entry-content table th,
.entry-content table td,
.entry-content p,
.entry-content li,
.entry-content li strong,
.entry-content td strong {
    font-size: 12px !important;
    font-weight: 400 !important;
}
/* Jak to funguje – stránka Půjčovna */
.st-jak{margin:0 0 2em}
.st-jak__nadpis{margin:0 0 .75em}
.st-jak__kroky{display:flex;flex-wrap:wrap;margin:0 -8px}
.st-jak__krok{flex:1 1 220px;margin:0 8px 16px;border:1px solid #ddd;border-radius:6px;padding:16px 18px;background:#fafafa}
.st-jak__cislo{display:inline-block;width:28px;height:28px;line-height:28px;text-align:center;border-radius:50%;background:#333;color:#fff;font-weight:700;font-size:.9em;margin-bottom:8px}
.st-jak__krok h3{margin:0 0 .4em;font-size:1.05em}
.st-jak__krok p{margin:0;font-size:.95em;line-height:1.5}
.st-jak__pozn{margin:.9em 0 0;font-size:.9em}
.st-jak{-webkit-hyphens:none;hyphens:none}