* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: nowrap;
}
.logo {
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw;
  flex-shrink: 1;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 10px;
}
.menu-toggle div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
}
nav {
  display: flex;
  flex-direction: row;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}
nav ul li a, .language-links a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  display: block;
}
.language-links {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 10px;
}
.language-links img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  header {
    flex-wrap: nowrap;
  }
}
.container {
  padding: 20px;
}
.header-spacer {
  height: 80px;
}
.product {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  align-items: flex-start; /* Zarovnání na začátek, aby se obsah neshlukoval */
  overflow: hidden; /* Zabrání přetečení obsahu */
}

.product img {
  width: 100%;
  max-width: 350px; /* brani, aby se samostatny produkt na radku neprirozeně roztahl */
  height: auto;
  object-fit: contain;
  flex-shrink: 0; /* Zabrání zmenšování obrázku */
}

.product-details {
  flex: 1; /* Text zabere zbývající prostor */
  min-width: 300px; /* Minimální šířka produktu */
  max-width: 100%; /* Zajistí, že nepřesáhne kontejner */
  /* max-width: none; Odstraníme omezení max-width pro lepší obtékání */
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  margin: 20px auto;
  position: relative;
}
form input, form textarea, form button {
  padding: 10px;
  font-size: 1em;
}
footer {
  text-align: center;
  padding: 10px;
  background-color: #f1f1f1;
}
.back-to-top {
  text-align: right;
}
.back-to-top a {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="%23000"><path d="M12 3L4 12h16L12 3z"/><path d="M12 9v12h-2V9h2zm0 0h2v12h-2V9z"/></svg>') no-repeat center;
  background-size: contain;
  text-indent: -9999px;
}
.heading_text h1 {
  text-align: center;
  margin-top: 20px;
}
form.htmx-request {
  opacity: 0.5;
  pointer-events: none;
}
.htmx-indicator {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
}
form.htmx-request .htmx-indicator {
  display: flex;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.product-details button.product-inquiry {
  padding: 8px 12px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}
.product-details button.product-inquiry:hover {
  background-color: #777;
}

/* Tlačítka pro stažení dokumentace */
.doc-button {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  background-color: #4a90e2; /* Jemnější, ale výraznější modrá */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: normal;
  font-size: 0.85rem;
  font-family: sans-serif;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doc-button:hover {
  background-color: #3c7bc8; /* O něco tmavší modrá při najetí */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Jemně výraznější stín */
}

.doc-button.secondary {
  background-color: #4caf50; /* Tlumená, ale výraznější zelená */
}

.doc-button.secondary:hover {
  background-color: #3d8b40; /* O něco tmavší zelená při najetí */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Stejný stín jako primární */
}

.amount svg, .amount img {
  width: 50px !important;
  height: 20px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: none;
  border: none !important; /* Remove any border */
  outline: none !important; /* Remove any outline */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
}