:root { --site-green: #3c6b4b; }
*{box-sizing:border-box}body{margin:0;background:#fff;color:#25362b;font:17px/1.7 system-ui,sans-serif}a{color:var(--site-green);text-underline-offset:4px}img{max-width:100%;height:auto;display:block}.wrap,main{width:min(1120px,calc(100% - 40px));margin:auto}.top{background:var(--site-green);color:#fff;padding:.5rem 0;font-size:14px}.top a,footer a{color:#fff}header{border-bottom:1px solid #d6dfd8}header .wrap{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.5rem 0}.brand{font:bold 26px/1.2 Georgia,serif;text-decoration:none}nav{display:flex;flex-wrap:wrap;gap:.6rem 1.3rem}nav a{font-weight:600;text-decoration:none;padding:.4rem 0}nav a[aria-current]{border-bottom:3px solid var(--site-green)}h1,h2,h3{font-family:Georgia,serif;line-height:1.2;color:var(--site-green)}h1{font-size:clamp(2rem,5vw,3.3rem);margin:0 0 2rem}h2{font-size:2rem;margin:2.5rem 0 1rem}h3{font-size:1.4rem}main{padding:3rem 0 4rem;overflow-wrap:anywhere}p{max-width:82ch}figure{margin:1.5rem 0}figure img{max-height:680px;object-fit:contain}figcaption{font-size:14px;margin-top:.5rem}.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.5rem}.gallery figure{margin:0}.gallery img{width:100%;height:280px;object-fit:cover}.hero{height:230px;background-size:cover;background-position:center}footer{background:var(--site-green);color:white;padding:2rem 0}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;background:white;padding:1rem}iframe{max-width:100%;border:0}table{border-collapse:collapse;max-width:100%}td,th{border:1px solid #ddd;padding:.5rem}.notice{padding:1rem;background:#eef4ef;border-left:4px solid var(--site-green)}@media(max-width:760px){header .wrap{display:block}nav{margin-top:1rem}.wrap,main{width:calc(100% - 32px)}.hero{height:150px}main{padding-top:2rem}.gallery{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
dialog{max-width:min(95vw,1200px);padding:1rem;border:0;box-shadow:0 12px 60px #0005}dialog::backdrop{background:#000b}dialog img{max-height:80vh;object-fit:contain}button{font:inherit;padding:.5rem 1rem;cursor:pointer}.close{display:block;margin-bottom:1rem}.filters{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.5rem 0}.filters [aria-pressed=true]{background:var(--site-green);color:#fff}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.card{border:1px solid #d6dfd8;padding:1rem}.card[hidden]{display:none}.card img{width:100%;height:280px;object-fit:cover}.card h2{font-size:1.4rem;margin:1rem 0}.price{font-weight:bold}

/* Shared contact strip: one consistent time/phone line aligned to the right. */
body { background: #f5f5f5; }
main { background: #fff; padding-left: 2rem; padding-right: 2rem; }
.top { background: #eee; color: #25362b; }
.top .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0; }
.top a { color: inherit; }
[hidden] { display: none !important; }
.catalog-intro { margin-bottom: 2rem; }

/* Desktop: small thumbnails + main photograph, with product facts beside them. */
.product-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 2.5rem; }
.product-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .75rem; min-width: 0; }
.product-thumbnails { display: flex; flex-direction: column; gap: .5rem; max-height: 680px; overflow-y: auto; }
.product-thumbnail { display: block; flex: 0 0 auto; padding: 3px; border: 2px solid transparent; opacity: .65; }
.product-thumbnail[aria-current="true"] { border-color: var(--site-green); opacity: 1; }
.product-thumbnail img { width: 66px; height: 66px; object-fit: cover; }
.product-main { display: flex; align-items: flex-start; justify-content: center; background: #fafafa; }
.product-main img { width: 100%; height: 680px; object-fit: contain; }
.product-summary h1 { font-size: clamp(1.8rem, 2.4vw, 2.5rem); margin-bottom: 1.5rem; }
.product-price { font: 2rem/1.3 Georgia, serif; margin-top: 2rem; }
.product-contact { font-size: .95rem; }
.product-description { margin-top: 2rem; }
.product-description p { max-width: none; }

/* Closed dialogs must remain invisible, including their image and controls. */
.lightbox:not([open]) { display: none; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 1rem; color: #fff; background: #111; border: 0; }
.lightbox[open] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 48px minmax(0, 1fr) 32px; align-items: center; gap: .5rem; }
.lightbox-toolbar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.lightbox button { color: #fff; background: #333; border: 1px solid #777; border-radius: 4px; min-width: 44px; min-height: 44px; padding: .3rem; }
.lightbox-photo { touch-action: pan-y; grid-column: 2; grid-row: 2; width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: contain; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-caption { grid-column: 1 / -1; text-align: center; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lightbox-open { overflow: hidden; }
button:focus-visible, a:focus-visible { outline: 3px solid #9ca; outline-offset: 3px; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr); gap: 1.5rem; }
  .product-main img { height: 520px; }
  .product-thumbnails { max-height: 520px; }
}
@media (max-width: 700px) {
  main { padding-left: 1rem; padding-right: 1rem; }
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .product-gallery { grid-template-columns: minmax(0, 1fr); }
  .product-main { grid-row: 1; }
  .product-main img { height: auto; max-height: 65vh; min-height: 240px; }
  .product-thumbnails { flex-direction: row; overflow-x: auto; max-height: none; }
  .lightbox[open] { padding: .5rem; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: .25rem; }
}

/* Fine frame and a solid neutral gap separate the white content from the footer. */
body { background: #efede8; }
main { border: 1px solid #d4d4d4; margin-bottom: 24px; }
header { background: #eee; margin-bottom: 24px; }
header .wrap { justify-content: space-between; padding: .9rem 0; }
.site-label { font-weight: 700; text-decoration: none; }
.catalog-intro { max-width: 850px; margin: 0 auto 2rem; text-align: center; font-size: var(--intro-font-size); font-weight: 400; line-height: 1.65; }
.catalog-intro p { max-width: none; }
/* Portrait previews preserve the whole bonsai instead of cropping its crown/pot. */
.card[data-category="bonsaje"] img { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #fafafa; }
/* Keep every phone number intact; the product CTA gets its own phone line. */
.phone-number { white-space: nowrap; }
.product-contact .phone-number { display: inline-block; }
.product-contact { overflow-wrap: normal; }
@media (max-width: 760px) {
  header nav { justify-content: flex-end; margin-top: 0; }
  .catalog-intro { font-size: 1.1rem; }
  main { margin-bottom: 20px; }
}

/* Catalogue introduction uses the available width; telephone remains separate. */
header { border-bottom: 0; }
.catalog-title { text-align: center; font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 1.5rem; }
.catalog-intro { max-width: none; line-height: 1.5; }
.catalog-intro p { margin: 0 0 1rem; text-align: justify; text-align-last: left; }
/* Give the phone one additional line of body-copy spacing on each side. */
.catalog-intro .catalog-phone { text-align: center; text-align-last: center; margin-top: calc(1rem + 1.5em); margin-bottom: calc(1rem + 1.5em); }
/* This landscape photograph shows the entire Abies concolor pygmaea. */
.card[data-preview-fit="contain"] img { height: auto; aspect-ratio: var(--preview-ratio, 4 / 3); object-fit: contain; background: #fafafa; }

/* Avoid stretched word spacing on narrow screens; keep the navigation on its strip. */
@media (max-width: 760px) {
  header .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
  header nav { flex: 1 1 240px; }
  .catalog-intro p { text-align-last: left; }
  .catalog-intro .catalog-phone { text-align-last: center; }
}

/* Original and supplied edited photographs share the same navigable gallery. */
.photo-group-separator { width: 100%; border: 0; border-top: 1px solid var(--site-green); margin: .5rem 0; }
@media (max-width: 700px) {
  .photo-group-separator { flex: 0 0 24px; align-self: center; }
}

/* One accent colour for navigation, categories and gallery controls. */
.site-label, .filters button { color: var(--site-green); }
.filters button { border: 1px solid var(--site-green); }
.filters [aria-pressed="true"] { color: white; }

/* Distinguish the two independently offered Abies procera plants. */
.catalogue-note { font-size: .9rem; margin: .5rem 0; }
.catalogue-note:empty { display: none; }

/* A compact all-plants row and a larger ornamental-category preview. */
.catalog[data-active-category="okrasne-dreviny"] .card[data-preview-fit="contain"] img { aspect-ratio: var(--ornamental-preview-ratio, var(--preview-ratio)); }

/* Shared category boxes: identical styles for catalogue buttons and detail links. */
.filters button, .filters a {
  display: inline-block;
  font: inherit;
  padding: .5rem 1rem;
  border: 1px solid var(--site-green);
  border-radius: 0;
  background: #efede8;
  color: var(--site-green);
  text-decoration: none;
  cursor: pointer;
}
.filters button[aria-pressed="true"],
.filters a[aria-current="true"],
.filters button:hover, .filters a:hover {
  background: var(--site-green);
  color: #efede8;
}
.filters button:focus-visible, .filters a:focus-visible {
  outline: 2px solid var(--site-green);
  outline-offset: 3px;
}

/* Language controls share the compact contact strip; assets/layout remain shared. */
.top .wrap { align-items: center; gap: .35rem 1rem; }
.language-switcher { margin-right: auto; flex-wrap: nowrap; gap: .3rem; }
.language-switcher a {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .15rem .4rem; min-height: 32px; line-height: 1.2;
  border: 1px solid transparent; border-radius: 3px;
  color: #25362b; font-size: .75rem; font-weight: 600;
}
.language-flag { width: 24px; height: 16px; object-fit: cover; border: 1px solid #ddd; }
.language-switcher a[aria-current="page"] { border: 1px solid var(--site-green); background: #fff; }
.language-switcher a:hover { background: #fff; }
@media (max-width: 760px) {
  .language-switcher { margin-top: 0; }
  .top .wrap > span { text-align: right; }
}

/* Geographical phrase links retain the introductory typography. */
.location-link { text-decoration: underline; text-underline-offset: .15em; }

/* Shared introductory text size for the catalogue and location pages. */
:root { --intro-font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
@media (max-width: 760px) { :root { --intro-font-size: 1.1rem; } }

/* Compact category controls keep translated labels on one mobile row.
   Labels may wrap inside their buttons on narrow screens to stay readable.
   Map action buttons use .filters too, so scope this to plant categories. */
@media (max-width: 480px) {
  .catalog .filters, .product-category-navigation { gap: .25rem; flex-wrap: nowrap; }
  .catalog .filters button, .product-category-navigation a {
    font-size: clamp(.875rem, 3.6vw, 1rem);
    padding-inline: .25rem;
    min-height: 44px;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: normal;
  }
}

/* Optional product sales only; ordinary prices retain their existing styles. */
.sale-badge { display: table; font: 600 .78rem/1.4 system-ui, sans-serif;
  color: #a94438; background: #f7efeb; border: 1px solid #e5d4cf;
  border-radius: 3px; padding: .12rem .45rem; margin-bottom: .35rem; }
.sale-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .65em; }
.regular-price { font-size: .8em; font-weight: 400; color: #626963; white-space: nowrap; }
.sale-price { color: #a94438; font-weight: 700; white-space: nowrap; }
