*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #f8f8f6;
  --c-surface: #ffffff;
  --c-text: #1a1a18;
  --c-muted: #6b6b66;
  --c-accent: #2b5c3f;
  --c-accent-light: #e8f2ec;
  --c-border: #e0dfd8;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--c-accent); }

/* Dočasný pásik "stránka sa pripravuje" - odstráni sa po dokončení a otestovaní */
.wip-banner {
  background: #fbeaea;
  color: #8a2f28;
  text-align: center;
  font-size: 13px;
  padding: 0.5rem;
}

header {
  background: var(--c-accent);
  color: #fff;
  padding: 2rem 2rem 1.5rem;
}

header .inner { max-width: 960px; margin: 0 auto; }

header .label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

header h1 { font-size: 1.8rem; font-weight: 500; }
header h1 a { color: #fff; text-decoration: none; }

nav { margin-top: 1rem; }
nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  margin-right: 1.5rem;
  font-size: 14px;
}
nav a:hover { opacity: 1; text-decoration: underline; }

main {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

section h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-header-row h2 {
  margin-bottom: 1.25rem;
}
.vat-note {
  font-size: 12px;
  color: var(--c-muted);
  text-transform: none;
  letter-spacing: normal;
}

/* Zoznam produktov - riadky pod sebou */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 32px 1.25rem;
  height: 192px;
  cursor: pointer;
}

.product-row:hover { background: var(--c-accent-light); }

.product-image {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
}

.product-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: center;
  gap: 1rem;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desc-short {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qty-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-form input[type="number"] {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}

.price { font-weight: 600; font-size: 1.05rem; }

.desc-short { font-size: 14px; color: var(--c-muted); }

/* Detailná časť - skrytá, kým karta nemá triedu "expanded" */
.product-detail {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--c-border);
}

.product-card.expanded .product-detail {
  display: block;
  padding-top: 1.25rem;
}

.detail-text { font-size: 14px; color: #3a3a36; white-space: pre-line; }

.detail-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  object-fit: contain;
}

.file-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.file-links a {
  font-size: 14px;
  text-decoration: none;
}
.file-links a:hover { text-decoration: underline; }

.btn-buy {
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 14px;
  cursor: pointer;
}

.empty-state {
  color: var(--c-muted);
  text-align: center;
  padding: 2rem;
}

/* Stránka košíka */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th, .cart-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.cart-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.qty-update-form input[type="number"] {
  width: 60px;
  padding: 0.3rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}
.btn-remove {
  background: #fbeaea;
  color: #b3261e;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-size: 13px;
  cursor: pointer;
}
.cart-total {
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.cart-grand-total {
  font-size: 1.3rem;
  border-top: 1px solid var(--c-border);
  padding-top: 0.75rem;
}
.shipping-note {
  text-align: right;
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 0.3rem;
}

.checkout-form label {
  display: block;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--c-muted);
}
.checkout-form input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  margin-top: 0.3rem;
  box-sizing: border-box;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: inherit;
}
.checkout-form .btn-buy {
  margin-top: 1.5rem;
}
.terms-note {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.checkout-form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.verksamhet { font-size: 15px; color: #3a3a36; }

section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.5rem 0 0.5rem;
}
section h3:first-child { margin-top: 0; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.info-item label {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.info-item span { font-size: 15px; font-weight: 500; }

footer {
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
  padding: 2rem;
  border-top: 1px solid var(--c-border);
  margin-top: 1rem;
}
footer p { margin-bottom: 0.3rem; }

@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  header h1 { font-size: 1.4rem; }
  main { padding: 0 1rem; }
  nav a { margin-right: 1rem; }

  /* Na mobile riadok nemá zmysel držať pevnú výšku ako na desktope -
     necháme ho prirodzene vysoký podľa obsahu, a vnútro preusporiadame
     do stĺpca (obrázok hore, potom text pod sebou). */
  .product-row {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 1rem;
  }
  .product-image {
    width: 100%;
    height: 180px;
  }
  .product-main {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  .product-name {
    white-space: normal;
  }
  .desc-short {
    white-space: normal;
  }
  .detail-image {
    max-width: 100%;
  }
  section {
    padding: 1.25rem 1rem;
  }
}
