/* Promotekstil.hr — design tokens + base. Brand: teal #009FBF, navy #0A2540. */
/* Inter (Google Fonts v20, variable 100-900) — vendored in assets/fonts/inter/,
   latin + latin-ext only (latin-ext carries the Croatian diacritics). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #009FBF;
  --teal-dark: #007D96;
  --teal-pale: #E5F5F9;
  --navy: #0A2540;
  --ink: #1B2B3A;
  --muted: #5B6B7B;
  --line: #E3E8EE;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;
  --sale: #FF6200;
  --sale-pale: #FFF0E6;
  --new: #009FBF;
  --ok: #16A34A;
  --warn: #B45309;
  --warn-pale: #FEF3C7;
  --danger: #DC2626;
  --hdr-h: 110px;          /* .site-header is sticky; anything that must park below it uses this */
  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 37, 64, .10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.ico { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.3em; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  background: var(--teal); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-dark); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #10375E; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-pale); }
.btn-sm { padding: .4em .9em; font-size: .92em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* forms */
input[type=text], input[type=search], input[type=email], input[type=tel],
input[type=number], input[type=password], select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: .55em .8em; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal);
}
label { font-weight: 600; font-size: .92em; color: var(--navy); }
.field { margin-bottom: 14px; }
.field small { color: var(--muted); font-weight: 400; }

/* prices + the PDV toggle: layout renders both values, html[data-vat] picks one */
html[data-vat="ex"] .p-inc { display: none; }
html[data-vat="inc"] .p-ex { display: none; }
.price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.price small { font-weight: 500; color: var(--muted); font-size: .72em; margin-left: .3em; }
.price-sale { color: var(--sale); }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .18em .6em;
  border-radius: 999px; font-size: .78em; font-weight: 700; letter-spacing: .02em; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--teal); color: #fff; }
/* "Novo!" / "Rasprodaja" brand artwork replacing those two pills. Sized off the
   pill it stands in for (22px), less 20%; width follows each file's aspect ratio. */
.pbadge { height: 17.6px; width: auto; display: block; }
.badge-backorder { background: var(--warn-pale); color: var(--warn); }
.badge-stock { background: #DCFCE7; color: var(--ok); }

/* notes */
.note { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; font-size: .95em; }
.note-info { background: var(--teal-pale); color: var(--navy); }
.note-warn { background: var(--warn-pale); color: var(--warn); }

/* tables */
table.tbl { border-collapse: collapse; width: 100%; }
.tbl th, .tbl td { padding: .55em .7em; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--navy); font-size: .88em; }

/* util */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 }

/* CMS pages */
.pg-wrap { padding: 30px 20px 10px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 1.6rem; margin-bottom: .8em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; }
.prose table { border-collapse: collapse; margin: 0 0 1em; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45em .7em; }

/* Upsell callouts (quantity tier / free delivery). Positive, low-chrome, and
   dismissible; the filled bar shows how near the goal is. */
.callout { display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  padding: 10px 12px; border: 1px solid #b8e2ea; background: #E6F6F9;
  border-radius: var(--radius); color: var(--navy); font-size: .92em; }
.callout .callout-ico { color: var(--teal-dark); flex: none; display: flex; }
.callout-body { flex: 1; min-width: 0; }
.callout-text { display: block; }
.callout-bar { display: block; height: 4px; margin-top: 7px; border-radius: 999px;
  background: rgba(10, 37, 64, .12); overflow: hidden; }
.callout-bar i { display: block; height: 100%; background: var(--teal);
  border-radius: 999px; transition: width .3s ease; }
.callout-x { flex: none; border: 0; background: none; padding: 2px; cursor: pointer;
  color: var(--muted); line-height: 0; border-radius: 6px; }
.callout-x:hover { color: var(--navy); background: rgba(10, 37, 64, .07); }
.callout.is-done { border-color: #bbf7d0; background: #F0FDF4; }
.callout.is-done .callout-ico { color: var(--ok); }
.callout.is-done .callout-bar i { background: var(--ok); }
/* supplied solid icons: filled rather than stroked, so they need their own sizing */
.ico-solid { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.callout-ico .ico-solid { width: 20px; height: 20px; }

/* Quantity stepper: [−][value][+] as one rounded control. Used by the cart, the
   mini-cart and the product matrix, which is why it lives here. The buttons are
   grey cells either side of a white value cell; the input keeps its native
   behaviour so typing a quantity still works. */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; background: #fff; height: 34px; }
.qty button { border: 0; background: #F2F3F5; color: var(--navy); cursor: pointer;
  width: 30px; padding: 0; font: inherit; line-height: 1; display: flex;
  align-items: center; justify-content: center; flex: none; }
.qty button:hover { background: #E4E7EB; }
.qty button:active { background: #D8DCE1; }
.qty button svg { width: 13px; height: 13px; }
.qty input[type=number] { width: 46px; border: 0; border-radius: 0; text-align: center;
  padding: 0 2px; height: auto; -moz-appearance: textfield; background: #fff; }
.qty input[type=number]::-webkit-outer-spin-button,
.qty input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--teal); outline-offset: -2px; }
.qty:has(input:disabled) { opacity: .5; }
.qty:has(input:disabled) button { cursor: not-allowed; }

/* in-page anchors glide instead of jumping (e.g. the fast-order banner -> #order) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* page-top icon (e.g. the printer on /tisak): floats beside the opening text */
.prose .pg-hero-ico { float: right; width: 96px; height: auto; margin: 8px 0 12px 18px; }
.prose .pg-hero-icons { float: right; display: flex; align-items: center; gap: 14px; margin: 8px 0 12px 18px; }
.prose .pg-hero-icons img { width: 96px; height: 96px; display: block; }
@media (max-width: 600px) { .prose .pg-hero-ico { width: 72px; }
  .prose .pg-hero-icons img { width: 72px; height: 72px; } }
