/* KatalogCMS – printable catalog sheets (A4) */
:root { --accent: #1565C0; --navy: #0A2540; --ink: #10233D; --line: #dcdcdc; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9e9e6; font-family: "Inter", "Noto Sans Georgian", Arial, sans-serif; color: var(--ink); }
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--navy); color: #fff; }
.toolbar a { color: #fff; text-decoration: none; font-weight: 600; }
.toolbar select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 0; }
.toolbar .count { color: #aaa; font-size: .9rem; }
.toolbar button { margin-left: auto; font: inherit; font-weight: 700; padding: 9px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }

.sheet { width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; padding: 14mm 16mm 14mm; box-shadow: 0 4px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.sheet-head h1 { color: var(--navy); font-family: "Archivo", "Noto Sans Georgian", Arial, sans-serif; font-weight: 900; font-size: 34pt; margin: 0 0 6px; letter-spacing: .005em; }
.sheet-head p { margin: 0 0 9mm; color: #555; font-size: 11pt; letter-spacing: .02em; }
.sheet-img { border: 1px solid var(--line); padding: 4mm; display: flex; justify-content: center; align-items: center; height: 110mm; }
.sheet-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sheet-table { width: 100%; border-collapse: collapse; margin-top: 9mm; border: 1px solid var(--line); font-size: 11pt; }
.sheet-table th { background: var(--accent); color: #fff; text-align: left; padding: 6mm 4mm; font-family: "Archivo", "Noto Sans Georgian", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 10.5pt; border-right: 1px solid rgba(255,255,255,.25); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet-table td { padding: 5mm 4mm; border-top: 1px solid var(--line); border-right: 1px solid var(--line); color: #555; background: #fafafa; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet-table .col-code { width: 42%; }
.sheet-note { color: #666; font-size: 10pt; margin: 7mm 0 0; line-height: 1.5; }
.sheet-foot { margin-top: auto; padding-top: 8mm; display: flex; justify-content: space-between; color: #999; font-size: 9pt; border-top: 1px solid #eee; }

@media (max-width: 840px) {
  .sheet { width: auto; min-height: 0; margin: 12px; padding: 20px 16px; }
  .sheet-head h1 { font-size: 26px; }
  .sheet-img { height: auto; aspect-ratio: 4 / 3; }
  .sheet-table { font-size: 14px; }
  .sheet-table th, .sheet-table td { padding: 10px 8px; }
}
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .sheet { margin: 0; box-shadow: none; width: 210mm; height: 297mm; min-height: 0; page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
}
.sheet-brand { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--accent); padding-bottom: 5mm; margin-bottom: 8mm; }
.sheet-brand .logo-svg { height: 13mm; width: auto; }
.sheet-brand span { color: #7C8DA3; font-size: 9.5pt; }

/* Georgian: no forced capitals (Mtavruli) */
html[lang="ka"] *:not(.keep-caps) { text-transform: none !important; }
