/* ==========================================================================
   eLux webshop – boje VTK-ŠATVAR kataloga: plava #49579d · narančasta #fcb040 · bež #e9dbc6
   ========================================================================== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-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; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-800-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 {
  --navy: #49579d;
  --navy-dark: #3b4785;
  --navy-deep: #2f3a70;
  --navy-tint: #e6e9f5;
  --orange: #fcb040;
  --orange-dark: #e99a1f;
  --beige: #e9dbc6;
  --beige-light: #f3eadc;
  --text: #1c1c22;
  --muted: #5d5a55;
  --line: #e4ddd2;
  --white: #fff;
  --ok: #1f6b3d;
  --ok-tint: #dcefe2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 32, 20, .07), 0 8px 22px -10px rgba(40, 32, 20, .22);
  --shadow-hover: 0 2px 4px rgba(40, 32, 20, .08), 0 14px 30px -12px rgba(40, 32, 20, .32);
  --font: "Poppins", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* iza sata na mobitelu i kod povlačenja stranice plavo; sadržaj bež */
html { background: var(--navy); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: var(--text); font: 15px/1.55 var(--font); }
main { flex: 1; background: var(--beige); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 14px; height: 14px; }

/* ---------- gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-deep); }
.btn-orange { background: var(--orange); color: var(--text); box-shadow: 0 8px 18px -8px rgba(233, 154, 31, .8); }
.btn-orange:hover { background: #ffc261; }
.btn-ghost { background: rgba(47, 58, 112, .35); border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- zaglavlje ---------- */
.site-header { position: relative; z-index: 50; background: var(--navy); border-bottom: 6px solid var(--orange); }
.header-row { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.logo img { width: 138px; height: auto; }
.finder { flex: 1 1 auto; min-width: 0; max-width: 640px; display: flex; height: 50px; background: #fff; border-radius: 999px; }
.cat-menu { position: relative; flex: none; }
.cat-menu summary { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px 0 22px; border-right: 1px solid var(--line); border-radius: 999px 0 0 999px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; white-space: nowrap; }
.cat-menu summary::-webkit-details-marker { display: none; }
.cat-menu summary .ico { transition: transform .15s; }
.cat-menu[open] summary .ico { transform: rotate(180deg); }
.cat-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: min(760px, calc(100vw - 40px)); padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(20, 20, 40, .45); }
.cat-panel > ul { margin: 0; padding: 0; list-style: none; columns: 3; column-gap: 18px; }
.cat-panel li { break-inside: avoid; }
.cat-panel a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.cat-panel a:hover { background: var(--navy-tint); color: var(--navy-deep); }
.cat-panel > ul > li > a { font-weight: 600; }
.cat-panel li ul { margin: 0 0 6px; padding: 0 0 0 10px; list-style: none; border-left: 2px solid var(--beige); }
.cat-panel li ul a { padding: 4px 10px; font-size: 14px; color: var(--muted); }
.search { flex: 1 1 auto; display: flex; min-width: 0; }
.search input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 14px; }
.search input:focus { outline: none; }
.search button { flex: none; width: 56px; border: 0; border-radius: 0 999px 999px 0; background: var(--orange); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: #ffc261; }
.finder:focus-within { box-shadow: 0 0 0 3px rgba(252, 176, 64, .6); }
.user-links { display: flex; gap: 18px; margin-left: auto; }
.user-links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.user-links .ico { color: var(--orange); }
.user-links a:hover { color: var(--orange); }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--orange); }
.ico-cart { width: 32px; height: 32px; stroke-width: 1.9; }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--text); font: bold 12px/20px Arial, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--navy); }

/* ---------- poruke ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 90; width: min(520px, calc(100% - 30px)); transform: translateX(-50%); transition: opacity .4s, transform .4s; }
.toasts.is-gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.flash { margin: 8px 0 0; padding: 12px 18px; border-radius: 14px; background: var(--navy-deep); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); border-left: 5px solid var(--orange); }
.flash-error { background: #8f2318; border-left-color: #ffb4a8; }

/* ---------- početna ---------- */
/* slike bannera dolaze iz administracije (Webshop → Slike na početnoj) kao --hero-img i --quality-img */
.hero { background: #f1f1f1 var(--hero-img, url("img/hero.jpg")) right center / auto 100% no-repeat; }
.hero-in { min-height: 300px; padding-top: 46px; padding-bottom: 46px; }
.hero h1 { margin: 0 0 14px; font-size: 46px; line-height: 1.08; font-weight: 800; color: var(--navy-deep); letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--orange); }
.hero p { max-width: 420px; margin: 0 0 24px; font-size: 17px; color: #3a3a44; }
.section { padding-top: 34px; padding-bottom: 10px; }
.section-last { padding-bottom: 46px; }
.section-title { margin: 0 0 2px; display: flex; align-items: center; gap: 22px; font-size: 26px; font-weight: 800; color: var(--navy-deep); }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 2px; background: var(--orange); }
.section-sub { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy-deep); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.tile-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
/* ikone kategorija iz kataloga (bijeli crtež na plavom) postaju crne na bijelom */
.tile-ico img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.6); mix-blend-mode: multiply; }
.tile-name { flex: 1; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.tile-go { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: var(--text); display: grid; place-items: center; }
.quality { position: relative; display: flex; align-items: center; gap: 22px; min-height: 120px; margin: 10px 0 16px; padding: 26px 34px; border-radius: var(--radius); overflow: hidden; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 48%, rgba(47, 58, 112, .55) 72%, rgba(47, 58, 112, .15) 100%), var(--quality-img, url("img/kvaliteta.jpg")) right center / 50% auto no-repeat, var(--navy-deep); }
.quality-ico { flex: 0 0 60px; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fcb040' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M24 3l5 3.6 6.2-.3 1.9 5.9 5 3.6-1.9 5.9 1.9 5.9-5 3.6-1.9 5.9-6.2-.3L24 45l-5-3.6-6.2.3-1.9-5.9-5-3.6 1.9-5.9-1.9-5.9 5-3.6 1.9-5.9 6.2.3z'/%3E%3Cpath d='M16.5 24.5l5 5 10-10.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.quality-txt h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.quality-txt p { margin: 0; color: #e6e9f5; }
.quality .btn { margin-left: auto; white-space: nowrap; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 8px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.perk { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 16px; }
.perk + .perk { border-left: 1px solid rgba(252, 176, 64, .7); }
.perk::before, .buy-info li::before { content: ""; flex: 0 0 42px; height: 42px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.perk-dostava::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%232f3a70' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 12h26v20H3zM29 19h8l6 7v6H29z'/%3E%3Ccircle cx='11' cy='35' r='4' fill='%23fff'/%3E%3Ccircle cx='36' cy='35' r='4' fill='%23fff'/%3E%3Cpath d='M1 18h8M1 24h6'/%3E%3C/svg%3E"); }
.perk-sigurno::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%232f3a70' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M24 4l16 6v12c0 10-7 18-16 22C15 40 8 32 8 22V10z'/%3E%3Cpath d='M17 24l5 5 9-10'/%3E%3C/svg%3E"); }
.perk-podrska::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%232f3a70' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9 27v-5a15 15 0 0 1 30 0v5'/%3E%3Crect x='5' y='25' width='8' height='12' rx='3'/%3E%3Crect x='35' y='25' width='8' height='12' rx='3'/%3E%3Cpath d='M39 37c0 4-4 6-10 6h-3'/%3E%3C/svg%3E"); }
.perk b { display: block; color: var(--navy-deep); font-size: 15px; }
.perk span { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- traka s naslovom stranice ---------- */
.page-band { background: var(--navy); color: #fff; padding: 26px 0 24px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.page-band h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.page-band-slim { padding: 12px 0; text-align: left; }
.band-sub { margin: 0; opacity: .9; }
.crumbs { font-size: 13px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-band-slim .crumbs { justify-content: flex-start; }
.crumbs a { color: #fff; text-decoration: none; opacity: .9; }
.crumbs a:hover { color: var(--orange); opacity: 1; }
.crumbs span { opacity: .7; }

/* ---------- kategorija ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--navy-deep); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow); }
.chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--beige); color: var(--text); font-size: 12px; text-align: center; }
.chip.is-active { background: var(--navy); color: #fff; }
.chip.is-active span { background: var(--orange); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card-img { display: block; aspect-ratio: 1; padding: 12px; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 4px 16px 16px; }
.card-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.card-name a { color: var(--text); text-decoration: none; }
.card-name a:hover { color: var(--navy-dark); }
.card-code { color: var(--muted); font-size: 12.5px; }
.card-price { margin-top: auto; padding-top: 6px; color: var(--navy-deep); font-size: 18px; font-weight: 800; white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 10px; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--navy-deep); text-align: center; text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.pager .is-active { background: var(--navy); color: #fff; }

/* ---------- artikl ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery-main { aspect-ratio: 1; padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--orange); }
.buybox { padding: 26px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.buybox h1 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--navy-deep); }
.meta { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.meta b { color: var(--text); }
.buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; color: var(--navy-deep); font-size: 30px; font-weight: 800; }
.buy-price small { color: var(--muted); font-size: 13px; font-weight: 400; }
.lead { color: #3a3a44; font-size: 14.5px; }
.lead p { margin: 0 0 10px; }
.add { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 20px; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty input { width: 52px; border: 0; background: transparent; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty-btn { width: 42px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; touch-action: manipulation; }
.qty-btn:hover { color: var(--navy); }
.qty-small { height: 40px; }
.qty-small .qty-btn { width: 34px; }
.qty-small input { width: 40px; font-size: 16px; }
.btn-cart { flex: 1 1 200px; height: 48px; }
.buy-info { margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 14px; }
.buy-info li { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.buy-info li::before { flex-basis: 30px; height: 30px; }
.panel { padding: 24px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 12px; font-size: 20px; color: var(--navy-deep); }
.description ul, .prose ul { padding-left: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- košarica ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cart-lines { padding: 8px 24px; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 100px 32px; gap: 14px; align-items: center; padding: 14px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-img img { width: 72px; height: 72px; object-fit: contain; }
.cart-name a { color: var(--text); font-weight: 600; text-decoration: none; }
.cart-name small { display: block; color: var(--muted); }
.cart-total { text-align: right; font-weight: 700; color: var(--navy-deep); white-space: nowrap; }
.cart-remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--beige-light); font-size: 20px; line-height: 1; cursor: pointer; }
.cart-remove:hover { background: var(--beige); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 600; white-space: nowrap; }
.summary .sum { padding-top: 10px; border-top: 1px solid var(--line); color: var(--navy-deep); font-size: 18px; font-weight: 800; }
.page-empty { text-align: center; }
.summary .btn .ico { margin-left: 2px; }

/* ---------- obrasci ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.span-2 { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 600; color: var(--navy-deep); }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid #d6cdbf; border-radius: 12px; background: #fff; font-size: 16px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(73, 87, 157, .2); }
.field input[readonly] { background: var(--beige-light); color: var(--muted); }
.label-hidden label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.has-error input, .has-error textarea { border-color: #c0392b; }
.field-error { margin: 5px 0 0; color: #b03224; font-size: 13px; font-weight: 600; }
.form-errors { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fbe3df; color: #8f2318; font-weight: 600; }
.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.check.has-error span { color: #8f2318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choices { display: grid; gap: 10px; margin-bottom: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.choice b { display: block; color: var(--navy-deep); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); }
.choices.has-error .choice { border-color: #e3a79f; }
.r1 { margin-top: 4px; }
.r1 summary { cursor: pointer; font-weight: 600; color: var(--navy-dark); margin-bottom: 12px; }
.btn-ghost-dark { background: #fff; border-color: var(--navy); color: var(--navy-deep); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* ---------- narudžba ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 18px; }
.checkout-summary { position: sticky; top: 16px; }
.mini-lines { margin: 0 0 14px; padding: 0 0 12px; list-style: none; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.mini-lines small { color: var(--muted); white-space: nowrap; }
.mini-lines b { white-space: nowrap; }
.btn-order { margin-top: 8px; height: 52px; font-size: 16px; }
.back-link { display: block; margin-top: 12px; text-align: center; font-size: 14px; }
.order-view { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.order-main, .order-side { display: grid; gap: 18px; }
.notice-ok { border-left: 6px solid var(--ok); }
.notice-ok p { margin: 0 0 8px; }
.notice-ok p:last-child { margin-bottom: 0; }
.pay-box { border: 2px solid var(--orange); }
.pay-data { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: var(--beige-light); }
.pay-data dt { color: var(--muted); }
.pay-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th { padding: 8px 6px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: left; }
.order-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order-table td small { display: block; color: var(--muted); }
.order-table .num { text-align: right; white-space: nowrap; }
.info-list h2 { margin: 0 0 4px; font-size: 15px; }
.info-list p { margin: 0 0 14px; font-size: 14px; }
.info-list p:last-child { margin-bottom: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff1d9; color: #8a5a00; font-size: 12.5px; font-weight: 600; }
.badge-done { background: var(--ok-tint); color: var(--ok); }

/* ---------- informativne stranice ---------- */
.prose { max-width: 880px; margin: 0 auto; font-size: 15px; line-height: 1.65; }
.prose h2 { margin: 26px 0 8px; font-size: 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.data-list { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 14px; padding: 14px 18px; border-radius: 12px; background: var(--beige-light); }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.form-sheet { padding: 18px 22px; border: 2px dashed var(--line); border-radius: 12px; }
.form-sheet .blank { padding-bottom: 26px; border-bottom: 1px solid #bdb3a4; }
@media print {
  .site-header, .site-footer, .page-band, .no-print, .toasts { display: none !important; }
  html, body, main { background: #fff !important; }
  .panel { box-shadow: none; padding: 0; }
}

/* ---------- prijava i račun ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 340px); gap: 24px; justify-content: center; align-items: start; }
.auth:has(> :only-child) { grid-template-columns: minmax(0, 480px); }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { margin-top: 6px; }
.auth-links { margin: 14px 0 0; text-align: center; font-size: 14px; }
.auth-side p { color: var(--muted); }
.auth-side .btn { margin: 6px 0 12px; }
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.account-orders { grid-column: 1 / -1; }
.account-logout { grid-column: 1 / -1; text-align: center; }

/* ---------- podnožje ---------- */
.site-footer { background: var(--navy); color: #fff; border-top: 6px solid var(--orange); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 34px; padding-bottom: 30px; }
.site-footer h2 { margin: 0 0 14px; color: var(--orange); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.contact li { display: flex; gap: 10px; align-items: flex-start; }
.contact .ico { color: var(--orange); margin-top: 3px; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.social svg { width: 20px; height: 20px; }
.copyright { background: var(--navy-deep); padding: 14px 0; font-size: 13px; text-align: center; opacity: .95; }

/* ---------- manja računala ---------- */
@media (max-width: 1199px) {
  .hero { background-position: calc(100% + 120px) center; }
  .hero-in { min-height: 280px; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 36px; }
  .hero p { max-width: 320px; font-size: 15px; }
  .grid, .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- tablet ---------- */
@media (max-width: 991px) {
  .header-row { flex-wrap: wrap; gap: 10px 16px; }
  .logo { flex: 1 0 auto; }
  .finder { order: 5; flex: 1 0 100%; max-width: none; height: 46px; }
  .cat-menu summary { height: 46px; padding: 0 12px 0 16px; font-size: 14px; }
  .cart-link { order: 3; }
  .user-links { order: 2; gap: 12px; }
  .hero { background: none; }
  .hero-in { min-height: 0; padding: 0; aspect-ratio: 1600 / 583; max-width: none; background: #f1f1f1 var(--hero-img, url("img/hero.jpg")) center / cover no-repeat; }
  .hero-in > * { display: none; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .cart, .checkout, .order-view, .auth, .auth:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .perk { flex-direction: column; text-align: center; gap: 8px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobitel ---------- */
@media (max-width: 767px) {
  .wrap { padding-left: 15px; padding-right: 15px; }
  .logo img { width: 112px; }
  .user-links a { font-size: 12px; }
  .cat-panel { width: calc(100vw - 30px); }
  .cat-panel > ul { columns: 1; }
  .section-title { font-size: 21px; gap: 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 64px; gap: 10px; padding: 10px 12px; }
  .tile-ico { width: 36px; height: 36px; }
  .tile-name { font-size: 13px; }
  .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 2px 12px 12px; }
  .card-name { font-size: 13px; }
  .card-price { font-size: 16px; }
  .quality { flex-wrap: wrap; padding: 22px 20px; gap: 14px; background-size: auto, 130% auto, auto; }
  .quality-ico { flex-basis: 48px; height: 48px; }
  .quality-txt { flex: 1 1 200px; }
  .quality-txt h2 { font-size: 20px; }
  .quality .btn { margin-left: 0; }
  .perks { grid-template-columns: 1fr; padding: 6px 16px; }
  .perk { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 0; }
  .perk + .perk { border-left: 0; border-top: 1px solid rgba(252, 176, 64, .6); }
  .page-band h1 { font-size: 21px; }
  .gallery-thumbs { gap: 8px; }
  .thumb { width: 60px; height: 60px; padding: 4px; }
  .buybox { padding: 20px; }
  .buy-price { font-size: 26px; }
  .panel { padding: 20px; }
  .cart-lines { padding: 4px 16px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name x" "img qty total"; gap: 8px 12px; }
  .cart-img { grid-area: img; }
  .cart-img img { width: 56px; height: 56px; }
  .cart-name { grid-area: name; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-total { grid-area: total; }
  .cart-remove { grid-area: x; justify-self: end; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .pay-data, .data-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .data-list dd { margin-bottom: 8px; }
  .pay-data dd { margin-bottom: 8px; }
  .order-view .order-table th:nth-child(3), .order-view .order-table td:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .user-links .ico { display: none; }
  .user-links { gap: 10px; }
  .logo img { width: 96px; }
  .tile-go { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}
