

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/figtree-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: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/figtree-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: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-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: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-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;
}

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

:root {
  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Fraunces, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --bg: #F4F1E9;
  --surface: #FFFDF8;
  --sunken: #EDE7DA;
  --line: #DED8C9;
  --ink: #1F2A21;
  --secondary: #4C5A4B;
  --muted: #6F7A67;
  --brand: #2F6B45;
  --brand-soft: #E4EBDC;
  --btn-bg: #2F6B45;
  --btn-ink: #FFFDF8;
  --ok: #2F6B45;
  --ok-soft: #E2EDDF;
  --warn: #8A5A12;
  --warn-soft: #F6EBD6;
  --warn-line: #E0C48C;
  --shadow: 0 1px 2px rgba(31, 42, 33, 0.05), 0 14px 34px -18px rgba(31, 42, 33, 0.26);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12160F;
    --surface: #1A1F17;
    --sunken: #161A13;
    --line: #2C3327;
    --ink: #ECEADF;
    --secondary: #B6BCAB;
    --muted: #8A9280;
    --brand: #ECEADF;
    --brand-soft: #212819;
    --btn-bg: #ECEADF;
    --btn-ink: #161B12;
    --ok: #7EC48C;
    --ok-soft: #1A2A1C;
    --warn: #E5C07B;
    --warn-soft: #2A2318;
    --warn-line: #4A3D22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 40px -20px rgba(0, 0, 0, 0.65);
  }
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237EC48C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ok); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 0.75rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 70.5rem) {
  .wrap {
    padding-inline: 1.25rem;
  }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.008em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--secondary); }
.muted { color: var(--muted); font-size: 0.94rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--ok); border-radius: 2px; }

.pill {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.header-center {
  flex: 1;
  max-width: 320px;
  display: flex;
  justify-content: center;
  margin-inline: 0.5rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none;
}
.brand .mark {
  width: 1.75rem; height: 1.75rem; border-radius: 9px;
  background: var(--btn-bg); color: var(--btn-ink);
  display: grid; place-items: center;
}
.mark-glyph { width: 62%; height: 62%; display: block; }
.langs { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.langs a {
  display: block; padding: 0.35rem 0.6rem; border-radius: 999px;
  font-size: 0.87rem; font-weight: 600; text-decoration: none; color: var(--secondary);
}
.langs a:hover { background: var(--sunken); color: var(--ink); }
.langs a[aria-current="true"] { background: var(--brand-soft); color: var(--ink); }
@media (max-width: 24rem) {
  .top .wrap { gap: 0.5rem; }
  .langs a { padding: 0.3rem 0.4rem; font-size: 0.8rem; }
}

.banner {
  background: var(--brand-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.banner .wrap { display: flex; gap: 0.75rem; align-items: center; padding-block: 0.6rem; }
.banner-app .wrap { flex-wrap: wrap; justify-content: center; row-gap: 0.4rem; }
.banner-app-text { font-weight: 600; color: var(--ink); }
.banner-app-links { display: inline-flex; gap: 0.5rem; }
.banner-app-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: 0.85rem; font-weight: 650; text-decoration: none;
}
.banner-app-link:hover { opacity: 0.9; }
.banner-app-link svg { width: 14px; height: 14px; fill: currentColor; }

/* Traka o pravu pristupa nosi odluku, pa je jača od one koja samo nudi drugi jezik. */
.banner-access {
  background: var(--warn-soft);
  border-bottom: 2px solid var(--warn-line);
  font-size: 0.98rem;
}
.banner-access .wrap {
  padding-block: 0.85rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.banner-access-text {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.banner-access-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.15rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.banner-access-btn:hover { opacity: 0.9; }
.banner-access-expired { border-bottom-color: var(--warn); }

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1.15rem; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-ink);
  text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 1.55rem; height: 1.55rem; fill: currentColor; flex: none; }
.store span { display: block; line-height: 1.15; }
.store .small { font-size: 0.7rem; opacity: 0.75; }
.store .big { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { opacity: 0.5; pointer-events: none; box-shadow: none; }

.soon {
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.1rem 1.25rem; max-width: 32rem;
}
.soon h3 { margin-bottom: 0.3rem; }

.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--secondary); font-size: 0.97rem; }
.ticks li::before {
  content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; border-radius: 999px;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B45' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; display: grid; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 1rem + 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { display: grid; gap: 1.1rem; justify-items: start; }
.hero-copy .cta { margin-top: 0.5rem; }

.phone {
  position: relative; margin-inline: auto; width: min(19rem, 100%);
  border: 10px solid var(--ink); border-radius: 2.6rem; background: var(--ink);
  box-shadow: var(--shadow); overflow: hidden;
}
.phone .ph { border-radius: 1.9rem; }
.shot { display: block; width: 100%; height: auto; }
.frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.ph {
  display: grid; place-content: center; justify-items: center; gap: 0.55rem;
  padding: 1.5rem; text-align: center;
  background: var(--sunken);
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--muted) 9%, transparent) 12px 13px);
  border: 2px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  color: var(--secondary);
}
.ph svg { width: 2.25rem; height: 2.25rem; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: 0.75; }
.ph .ph-label { font-size: 0.92rem; font-weight: 650; line-height: 1.35; color: var(--ink); max-width: 22rem; }
.ph .ph-note { font-size: 0.78rem; color: var(--muted); }
.ph .ph-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid currentColor; border-radius: 999px; padding: 0.15rem 0.5rem;
}

.chains { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem; font-weight: 650; font-size: 0.95rem;
}
.chip i {
  width: 1.65rem; height: 1.65rem; border-radius: 999px; display: grid; place-items: center;
  color: #fff; font-size: 0.7rem; font-weight: 800; font-style: normal; letter-spacing: 0.02em;
}

.feature { display: grid; gap: clamp(1.75rem, 1rem + 4vw, 3.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 58rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .feature-media { order: -1; }
}
.feature-copy { display: grid; gap: 0.9rem; }

.reel-row { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 52rem) { .reel-row { grid-template-columns: 1fr 19rem; } }
.reel-copy { display: grid; gap: 0.75rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; display: grid; gap: 0.55rem; align-content: start; }
.steps li::before {
  content: counter(step); width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}

.cards { display: grid; gap: 1rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; display: grid; gap: 0.5rem; align-content: start;
}

.pricing .wrap { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 58rem) { .pricing .wrap { grid-template-columns: 1fr 1fr; } }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.hero-web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  border-radius: 14px;
  background: var(--ok);
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 122, 85, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.hero-web-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.hero-store-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cross-platform-section {
  padding-block: 2.5rem;
}
.cross-platform-box {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 44rem) {
  .cross-platform-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
.cross-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--ok);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--shadow);
}
.sync-arrows {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}
.cross-platform-text h3 {
  font-size: 1.25rem;
}

.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.price-amount { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.price-amount b { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-amount span { color: var(--secondary); font-size: 1.05rem; }

.btn-checkout {
  width: 100%;
  padding: 0.95rem 1.4rem;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 1.08rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 42, 33, 0.24);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-checkout:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-checkout-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.btn-checkout-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.price-sub {
  font-size: 0.88rem;
  margin-top: 0.55rem;
  text-align: center;
}

.payment-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.pay-chip {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.price-try-wrap {
  margin-top: 1.1rem;
  text-align: center;
}
.price-try-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--ok);
  text-decoration: none;
}
.price-try-link:hover {
  text-decoration: underline;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.checkout-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--ok);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.checkout-toast.fade-out {
  opacity: 0;
  transform: translate(-50%, 10px);
}
.checkout-toast-icon {
  font-weight: 800;
  font-size: 1.1rem;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.notice {
  background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: 0.6rem;
}

.faq { display: grid; gap: 0; max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 1.45rem;
  width: 0.65rem; height: 0.65rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq p { padding-bottom: 1.25rem; color: var(--secondary); max-width: 44rem; }

.final .wrap {
  background: var(--brand-soft); border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 1.5rem + 4vw, 4rem);
  display: grid; gap: 1.1rem; justify-items: center; text-align: center;
}
.final .cta { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 52rem) { .foot .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 0.6rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot .langs { display: flex; flex-wrap: wrap; gap: 0.15rem; margin-top: 0.35rem; }
.foot .langs a { padding: 0.3rem 0.55rem; }
.foot a { color: var(--secondary); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { color: var(--muted); font-size: 0.85rem; }

.doc { max-width: 42rem; margin-inline: auto; padding-block: 3rem 4rem; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); margin-bottom: 0.75rem; }
.doc h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.doc p, .doc ul, .doc ol, .doc table { margin: 0.85rem 0; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: 0.4rem 0; }
.doc a:not(.store):not(.viewer-btn) { color: var(--ink); text-underline-offset: 2px; }
.doc a.viewer-btn { color: var(--btn-ink); text-decoration: none; }
.doc .store { color: var(--btn-ink); text-decoration: none; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.94rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.85rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }

.items { list-style: none; padding: 0; margin: 1.5rem 0; }
.items li { display: flex; gap: 1rem; align-items: baseline; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.items .qty { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.2rem; }
.items .thumb {
  flex: none; align-self: center; width: 48px; height: 48px;
  border-radius: var(--radius-sm); background: var(--brand-soft);
  object-fit: contain;
}
.items li.expired .thumb { opacity: 0.55; }
.items .what { flex: 1; }
.items .what em { display: block; font-style: normal; color: var(--muted); font-size: 0.9rem; }
.items .amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.items li.expired .what { color: var(--muted); }
.items li.expired .amount { color: var(--muted); text-decoration: line-through; }
.items .tag {
  display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted); vertical-align: 0.08em;
}
.sum { display: flex; justify-content: space-between; padding: 0.9rem 0; border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.1rem; }
.chain-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; font-weight: 700; }
.chain-label .logo { width: 24px; height: 24px; border-radius: var(--radius-sm); object-fit: contain; }
.share-cta { margin: 2rem 0 0; padding: 1.35rem; background: var(--brand-soft); border-radius: var(--radius); display: grid; gap: 0.85rem; justify-items: start; }
.share-cta p { font-weight: 650; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 650; color: var(--secondary); padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); transition: all 0.15s ease; }
.main-nav a:hover { color: var(--ink); background: var(--sunken); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--brand-soft); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumbs a { color: var(--secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.home-promise { padding: clamp(2rem, 1.2rem + 3vw, 3.25rem) 0 0.75rem; }
.home-promise h1 { font-size: clamp(1.75rem, 1.35rem + 2vw, 2.9rem); line-height: 1.12; margin: 0; }
.home-promise .lead { margin-top: 0.75rem; max-width: 40rem; }
/* Vrh za posjetitelja s oznakom kampanje (home.ts): obećanje, jedan gumb, dvije snimke. */
.arrival { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) 0 0.5rem; }
.arrival h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.8rem); line-height: 1.12; margin: 0; max-width: 38rem; }
.arrival .lead { margin-top: 0.75rem; max-width: 40rem; }
.arrival-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 1.25rem; }
.arrival-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 22rem; padding: 0.95rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-ink); font-size: 1.1rem; font-weight: 800;
  text-decoration: none; box-shadow: var(--shadow);
}
.arrival-cta:hover { filter: brightness(1.06); }
.arrival-stores { display: none; }
.arrival-note { margin: 0; font-size: 0.92rem; color: var(--secondary); font-weight: 600; }
.arrival-browse { font-size: 0.95rem; font-weight: 650; color: var(--brand); }
.arrival-shots { display: flex; gap: 0.75rem; margin-top: 1.5rem; max-width: 26rem; }
.arrival-shot { flex: 1; margin: 0; }
.arrival-shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-sm);
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface);
}
.arrival-shot figcaption { margin-top: 0.4rem; font-size: 0.85rem; font-weight: 650; color: var(--secondary); text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .arrival-cta { display: none; }
  .arrival-stores { display: block; }
}
.home-catalogs { padding-top: 0.5rem; }
.home-catalogs .chain-filters { margin-top: 1.25rem; }
.home-grid-heading { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; }
.home-trust { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; justify-content: center; }

.chain-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.chain-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--secondary); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.15s ease; }
.chain-pill:hover, .chain-pill.active { background: var(--brand); color: var(--btn-ink); border-color: var(--brand); }
.chain-pill i { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.65rem; font-weight: 800; font-style: normal; color: #fff; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.catalog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.catalog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(31, 42, 33, 0.38); }
.catalog-card .thumb-wrap { position: relative; aspect-ratio: 3/4; background: var(--sunken); overflow: hidden; }
.catalog-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card .card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.catalog-card .chain-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--secondary); text-transform: uppercase; }
.catalog-card .validity { font-family: var(--serif); font-optical-sizing: auto; font-size: 1rem; font-weight: 600; color: var(--ink); }
.catalog-card .meta { font-size: 0.82rem; color: var(--muted); margin-top: auto; }

.catalog-detail { display: grid; gap: 2.5rem; margin-block: 1rem 3rem; min-width: 0; max-width: 100%; }
.viewer-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
  max-width: 1060px;
  margin-inline: auto;
  width: 100%;
  overflow: hidden;
}
.viewer-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  min-width: 0;
  max-width: 100%;
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
  transform-origin: center center;
  will-change: transform;
}
.viewer-spread.is-zoomed {
  touch-action: none;
  cursor: grab;
  z-index: 25;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.viewer-spread.single {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.page-frame {
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.page-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.page-frame .page-num {
  position: absolute;
  bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: rgba(18, 22, 15, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 10;
}
.page-frame.left .page-num { left: 0.6rem; }
.page-frame.right .page-num { right: 0.6rem; }

.page-interactive-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 5;
}
.page-hotspot {
  position: absolute;
  display: block;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 6;
}
.page-hotspot:hover, .page-hotspot:focus-visible {
  border-color: var(--brand);
  background: rgba(22, 101, 52, 0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.7), 0 4px 12px rgba(0,0,0,0.15);
}
.page-hotspot.added {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.page-hotspot .hotspot-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(18, 22, 15, 0.88);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}
.page-hotspot:hover .hotspot-badge,
.page-hotspot:focus-visible .hotspot-badge {
  opacity: 1;
  transform: scale(1);
}
.page-hotspot.added .hotspot-badge {
  opacity: 1;
  transform: scale(1);
  background: #16a34a;
  color: #fff;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.page-hotspot .hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(18, 22, 15, 0.92);
  color: #fff;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 15;
}
.page-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
  flex-wrap: wrap;
}
.viewer-nav-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.35rem;
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  color: var(--btn-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}
.viewer-btn:hover {
  opacity: 0.9;
  color: var(--btn-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.viewer-btn.disabled {
  background: var(--sunken);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.viewer-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  z-index: 10;
}
.viewer-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.viewer-tool-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.viewer-tool-btn.active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(47, 107, 69, 0.28);
}
.viewer-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  letter-spacing: 0.2px;
}

.viewer-search-panel {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.viewer-search-panel.open { display: flex; }
.viewer-search-panel-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.viewer-search-panel-header .search-icon {
  position: absolute;
  left: 1.6rem;
  color: var(--muted);
  pointer-events: none;
}
.viewer-search-input {
  flex: 1;
  padding: 0.65rem 0.9rem 0.65rem 2.5rem;
  font-size: 1rem;
  background: var(--sunken);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.viewer-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.viewer-search-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}
.viewer-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.viewer-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.viewer-search-result:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.viewer-search-result-img {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--sunken);
  border-radius: 8px;
}
.viewer-search-result-placeholder { background: var(--sunken); }
.viewer-search-result-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.viewer-search-result-name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-search-result-page {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.viewer-search-result-price {
  flex: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.viewer-search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
}
.viewer-card.fullscreen-mode .viewer-search-panel {
  z-index: 100000;
  border-radius: 0;
  background: #12160F;
}
.viewer-card.fullscreen-mode .viewer-search-panel-header {
  border-color: rgba(236, 234, 223, 0.18);
}
.viewer-card.fullscreen-mode .viewer-search-input {
  background: rgba(236, 234, 223, 0.08);
  border-color: rgba(236, 234, 223, 0.22);
  color: #ECEADF;
}
.viewer-card.fullscreen-mode .viewer-search-close {
  color: #ECEADF;
}
.viewer-card.fullscreen-mode .viewer-search-result {
  background: rgba(236, 234, 223, 0.06);
  border-color: rgba(236, 234, 223, 0.16);
}
.viewer-card.fullscreen-mode .viewer-search-result-name {
  color: #ECEADF;
}
.viewer-card.fullscreen-mode .viewer-search-result-price {
  color: #ECEADF;
}
.viewer-fullscreen-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.viewer-fullscreen-btn .fullscreen-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}
.viewer-pages { font-size: 0.95rem; font-weight: 700; color: var(--secondary); text-align: center; }

.viewer-thumbnails-wrapper {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  position: relative;
  width: 100%;
  min-width: 0;
}
.viewer-thumbnails-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.6rem 0.25rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 42, 33, 0.25) transparent;
}
.viewer-thumbnails-track::-webkit-scrollbar {
  height: 6px;
}
.viewer-thumbnails-track::-webkit-scrollbar-track {
  background: transparent;
}
.viewer-thumbnails-track::-webkit-scrollbar-thumb {
  background: rgba(31, 42, 33, 0.2);
  border-radius: 3px;
}
.viewer-thumb-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 56px;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.viewer-thumb-btn .thumb-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.viewer-thumb-btn .thumb-card-lines {
  width: 18px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  margin-top: 3px;
  box-shadow: 0 5px 0 var(--line), 0 10px 0 var(--line);
}
.viewer-thumb-btn .thumb-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}
.viewer-thumb-btn.has-img {
  padding: 0;
  background: var(--sunken);
}
.viewer-thumb-btn .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.viewer-thumb-btn.has-img .thumb-num {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px 0;
  background: rgba(20, 25, 17, 0.72);
  color: #F4F1E9;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}
.viewer-thumb-btn.has-img.active .thumb-num {
  background: var(--brand);
  color: var(--btn-ink);
}
.viewer-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(31, 42, 33, 0.18);
}
.viewer-thumb-btn:hover .thumb-num {
  color: var(--ink);
}
.viewer-thumb-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand), 0 4px 12px rgba(31, 42, 33, 0.22);
  transform: scale(1.06);
  z-index: 2;
}
.viewer-thumb-btn.active .thumb-card-lines {
  background: var(--brand);
  box-shadow: 0 5px 0 var(--brand), 0 10px 0 var(--brand);
}
.viewer-thumb-btn.active .thumb-num {
  color: var(--brand);
  font-weight: 800;
}

.viewer-spread {
  position: relative;
}
.viewer-spread.magnifier-on {
  cursor: crosshair;
}
.magnifier-lens {
  position: absolute;
  border-radius: var(--radius-sm);
  border: 3px solid var(--brand);
  box-shadow: 0 12px 36px rgba(20, 25, 17, 0.55), inset 0 0 16px rgba(20, 25, 17, 0.22);
  pointer-events: none;
  display: none;
  z-index: 100;
  background-repeat: no-repeat;
  background-color: #fff;
}

.viewer-fullscreen-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #7EC48C;
  color: #12160F;
  border: 1px solid rgba(236, 234, 223, 0.35);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.viewer-fullscreen-close:hover {
  filter: brightness(1.06);
  transform: scale(1.05);
}

.viewer-btn .nav-arrow { display: none; }
.viewer-btn .nav-text { display: inline; }

.viewer-card.fullscreen-mode {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  z-index: 99999 !important;
  background: #12160F !important;
  margin: 0 !important;
  padding: 0.5rem 0.5rem 0.65rem 0.5rem !important;
  border-radius: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: none !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}
.viewer-card.fullscreen-mode .viewer-top-bar {
  display: flex;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  z-index: 40;
}
.viewer-card.fullscreen-mode .viewer-top-bar .viewer-fullscreen-btn {
  display: none;
}
.viewer-card.fullscreen-mode .viewer-tool-btn {
  background: rgba(18, 22, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(236, 234, 223, 0.22);
  color: #ECEADF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.viewer-card.fullscreen-mode .viewer-tool-btn:hover {
  background: rgba(38, 46, 32, 0.95);
  border-color: rgba(236, 234, 223, 0.38);
}
.viewer-card.fullscreen-mode .viewer-tool-btn.active {
  background: #7EC48C;
  color: #12160F;
  border-color: rgba(236, 234, 223, 0.35);
}
html.viewer-is-fullscreen,
body.viewer-is-fullscreen {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}
body.viewer-is-fullscreen header.top {
  display: none !important;
}
.viewer-card.fullscreen-mode .viewer-fullscreen-close {
  display: flex;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 40;
}

/* Hide thumbnails in fullscreen */
.viewer-card.fullscreen-mode .viewer-thumbnails-wrapper {
  display: none !important;
}

/* Base Spread (Mobile First) */
.viewer-card.fullscreen-mode .viewer-spread {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  max-height: calc(100dvh - 3.5rem) !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  gap: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.viewer-card.fullscreen-mode .page-frame {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 3.5rem) !important;
  align-self: center !important;
  margin: auto !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.viewer-card.fullscreen-mode .page-frame img {
  max-width: 100% !important;
  max-height: calc(100dvh - 3.5rem) !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}
.viewer-card.fullscreen-mode .page-frame .page-num {
  display: none;
}

/* Nav on base/mobile */
.viewer-card.fullscreen-mode .viewer-nav {
  position: static;
  margin: 0;
  padding: 0;
  border: none;
}
.viewer-card.fullscreen-mode .viewer-btn-prev,
.viewer-card.fullscreen-mode .viewer-btn-next {
  display: none !important;
}
.viewer-card.fullscreen-mode .viewer-pages {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(18, 22, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(236, 234, 223, 0.2);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  color: #ECEADF;
  font-size: 0.85rem;
  font-weight: 750;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

/* Desktop Fullscreen Layout (min-width: 48rem) */
@media (min-width: 48rem) {
  .viewer-card.fullscreen-mode {
    padding: 0 !important;
    touch-action: auto !important;
  }
  .viewer-card.fullscreen-mode .viewer-top-bar {
    top: 1.25rem;
    left: 1.5rem;
  }
  .viewer-card.fullscreen-mode .viewer-fullscreen-close {
    top: 1.25rem;
    right: 1.5rem;
  }
  .viewer-card.fullscreen-mode .viewer-spread {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    max-height: calc(100vh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
    padding: 0 4.5rem !important;
    width: auto !important;
    margin: 0 auto !important;
  }
  .viewer-card.fullscreen-mode .page-frame {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: calc(100vh - 2.5rem) !important;
    height: calc(100dvh - 2.5rem) !important;
    max-height: calc(100vh - 2.5rem) !important;
    max-height: calc(100dvh - 2.5rem) !important;
    max-width: calc(50vw - 5rem) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  .viewer-card.fullscreen-mode .page-frame.left {
    border-radius: 6px 0 0 6px !important;
  }
  .viewer-card.fullscreen-mode .page-frame.right {
    display: inline-flex !important;
    border-radius: 0 6px 6px 0 !important;
  }
  .viewer-card.fullscreen-mode .page-frame img {
    height: 100% !important;
    max-height: calc(100vh - 2.5rem) !important;
    max-height: calc(100dvh - 2.5rem) !important;
    max-width: calc(50vw - 5rem) !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .viewer-card.fullscreen-mode .viewer-spread.single .page-frame {
    border-radius: 6px !important;
    max-width: calc(100vw - 10rem) !important;
  }
  .viewer-card.fullscreen-mode .viewer-spread.single .page-frame img {
    max-width: calc(100vw - 10rem) !important;
  }
  .viewer-card.fullscreen-mode .viewer-spread.single .page-frame.right {
    display: none !important;
  }
  .viewer-card.fullscreen-mode .viewer-btn-prev {
    display: flex !important;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(18, 22, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(236, 234, 223, 0.22);
    color: #ECEADF;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .viewer-card.fullscreen-mode .viewer-btn-next {
    display: flex !important;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(18, 22, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(236, 234, 223, 0.22);
    color: #ECEADF;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .viewer-card.fullscreen-mode .viewer-btn:hover {
    background: rgba(38, 46, 32, 0.95);
    border-color: rgba(236, 234, 223, 0.42);
    transform: translateY(-50%) scale(1.08);
  }
  .viewer-card.fullscreen-mode .viewer-btn.disabled {
    opacity: 0.18;
    pointer-events: none;
    transform: translateY(-50%);
  }
  .viewer-card.fullscreen-mode .viewer-btn .nav-text {
    display: none;
  }
  .viewer-card.fullscreen-mode .viewer-btn .nav-arrow {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 300;
    margin-top: -3px;
    user-select: none;
  }
  .viewer-card.fullscreen-mode .viewer-pages {
    bottom: 1.25rem;
    font-size: 0.92rem;
    padding: 0.45rem 1.35rem;
  }
}

.products-section { display: grid; gap: 1.25rem; min-width: 0; max-width: 100%; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; min-width: 0; max-width: 100%; }
.products-section .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; max-width: none; }
.products-section-title { margin: 0; }
.catalog-search-wrap { position: relative; display: flex; align-items: center; width: min(20rem, 100%); }
.catalog-search-wrap .search-icon { position: absolute; left: 0.85rem; color: var(--muted); pointer-events: none; }
.catalog-search-input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.5rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.catalog-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.catalog-search-empty { padding: 1rem 0; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem; gap: 0.5rem; }
.product-card .crop { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--sunken); border-radius: 8px; }
.product-card .p-brand { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.product-card .p-name { font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.product-card .price-row { display: flex; align-items: baseline; gap: 0.4rem; margin-top: auto; flex-wrap: wrap; }
.product-card .p-price { font-size: 1.15rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.product-card .p-old-price { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.product-card .p-discount { font-size: 0.75rem; font-weight: 750; background: var(--ok-soft); color: var(--ok); padding: 0.1rem 0.35rem; border-radius: 4px; }
.product-card .p-unit { font-size: 0.75rem; color: var(--muted); }
.product-card .add-to-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.35rem;
}
.product-card .add-to-list-btn:hover {
  background: var(--brand);
  color: #fff;
}
.product-card .add-to-list-btn.added {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
  cursor: default;
}
.catalog-wrap .product-card .add-to-list-btn.added {
  cursor: pointer;
}
.product-card .product-open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.product-card.added {
  border-color: var(--ok);
}
.card-stepper {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 3px;
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  border-radius: 9999px;
}
.card-stepper .qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ok);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.card-stepper .qty-btn:hover {
  background: var(--ok);
  color: #fff;
}
.card-stepper .qty-val {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 48rem) {
  .product-card.added .add-to-list-btn {
    display: none;
  }
  .product-card.added .card-stepper {
    display: flex;
  }
}
@media (min-width: 48.0625rem) {
  .viewer-card:not(.fullscreen-mode) .viewer-btn-magnifier {
    margin-right: auto;
  }
}
@media (min-width: 75rem) {
  .catalog-wrap .viewer-card {
    max-width: 100%;
  }
  .catalog-wrap .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  }
}

@media (max-width: 48rem) {
  .wrap {
    padding-inline: 0.85rem;
  }
  .catalog-detail {
    gap: 1.5rem;
    margin-block: 0.5rem 2rem;
  }
  .viewer-card {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    gap: 0.75rem;
  }
  .viewer-top-bar {
    justify-content: flex-end;
    width: 100%;
    gap: 0.4rem;
  }
  .viewer-btn-magnifier {
    display: none;
  }
  .viewer-fullscreen-btn {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .viewer-spread {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
  }
  .viewer-spread.single {
    max-width: 100%;
  }
  .page-frame {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    width: 100%;
    background: var(--surface);
  }
  .page-frame.right {
    display: none !important;
  }
  .page-frame img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
  }
  .viewer-nav {
    display: none;
  }
  .viewer-thumb-btn {
    width: 44px;
    height: 62px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card {
    padding: 0.65rem;
    gap: 0.35rem;
  }
  .product-card .p-name {
    font-size: 0.82rem;
  }
  .product-card .p-price {
    font-size: 1.05rem;
  }
  .product-card .add-to-list-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
  }
  .chain-list-card {
    padding: 1.15rem;
    border-radius: 20px;
  }
  .viewer-card.fullscreen-mode {
    padding: 0.5rem 0.5rem 0.65rem 0.5rem !important;
    overflow: hidden !important;
    touch-action: none !important;
  }
  .viewer-card.fullscreen-mode .viewer-spread {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    max-height: calc(100dvh - 3.5rem) !important;
    height: 100% !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  .viewer-card.fullscreen-mode .page-frame {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 3.5rem) !important;
    align-self: center !important;
    margin: auto !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .viewer-card.fullscreen-mode .page-frame.right {
    display: none !important;
  }
  .viewer-card.fullscreen-mode .page-frame img {
    max-width: 100% !important;
    max-height: calc(100dvh - 3.5rem) !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .viewer-card.fullscreen-mode .viewer-top-bar {
    top: 0.75rem;
    left: 0.75rem;
    right: 3.75rem;
    justify-content: flex-start;
  }
  .viewer-card.fullscreen-mode .viewer-tool-btn {
    padding: 0.5rem;
  }
  .viewer-card.fullscreen-mode .viewer-tool-btn .tool-text {
    display: none;
  }
  .viewer-card.fullscreen-mode .viewer-fullscreen-close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.15rem;
  }
  .viewer-card.fullscreen-mode .viewer-nav {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  .viewer-card.fullscreen-mode .viewer-btn-prev,
  .viewer-card.fullscreen-mode .viewer-btn-next {
    display: none !important;
  }
  .viewer-card.fullscreen-mode .viewer-pages {
    position: absolute !important;
    bottom: 0.85rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 40 !important;
    display: block !important;
    font-size: 0.82rem;
    padding: 0.35rem 0.95rem;
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-close {
    top: 0.85rem;
    right: 0.85rem;
    z-index: 30;
  }
  .modal-drag-handle {
    display: block;
  }
  .item-modal-card {
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 28px 28px 0 0;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
    transform: translateY(100%);
    border-bottom: none;
  }
  .modal-overlay.open .item-modal-card {
    transform: translateY(0);
  }
  .modal-card {
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
    transform: translateY(100%);
    border-bottom: none;
  }
  .modal-overlay.open .modal-card {
    transform: translateY(0);
  }
}
@media (max-width: 24rem) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.app-banner { background: linear-gradient(135deg, #2F6B45 0%, #1E4B30 100%); color: #FFFDF8; border-radius: var(--radius); padding: 1.75rem; margin: 2rem 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .app-banner { grid-template-columns: 1fr auto; align-items: center; } }
.app-banner h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.app-banner p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.app-banner .store { background: #FFFDF8; color: #1F2A21; }
.app-banner .soon { color: var(--ink); }
.app-banner .soon h3 { color: var(--ink); }
.app-banner .soon p.muted { color: var(--muted); }
.product-card .add-to-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.35rem;
}
.product-card .add-to-list-btn:hover {
  background: var(--brand);
  color: #fff;
}
.product-card .add-to-list-btn.added {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
  cursor: default;
}
.catalog-wrap .product-card .add-to-list-btn.added {
  cursor: pointer;
}
.product-card .product-open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.product-card.added {
  border-color: var(--ok);
}
.card-stepper {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 3px;
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  border-radius: 9999px;
}
.card-stepper .qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ok);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.card-stepper .qty-btn:hover {
  background: var(--ok);
  color: #fff;
}
.card-stepper .qty-val {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 48rem) {
  .product-card.added .add-to-list-btn {
    display: none;
  }
  .product-card.added .card-stepper {
    display: flex;
  }
}
/* Toast Notifikacije */
/* Poziv da se anonimna lista spremi u račun (catalogs.ts): dolje, iznad sadržaja, dok ga se ne zatvori. */
.save-nudge {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  max-width: 30rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.save-nudge[hidden] { display: none; }
.save-nudge p { margin: 0; flex: 1; font-size: 0.9rem; line-height: 1.35; color: var(--ink); }
.save-nudge-btn {
  flex-shrink: 0;
  padding: 0.6rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.save-nudge-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #1F2A21;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal Locks */
html.modal-is-open,
body.modal-is-open {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}
body.modal-is-open {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

/* Modal za prijavu i detalje */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 18, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 24rem;
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-card {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 25;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: var(--sunken);
  transform: scale(1.05);
}
.modal-header h3 { font-size: 1.3rem; margin-bottom: 0.35rem; color: var(--ink); }
.modal-header p { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.modal-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.modal-google-btn:hover { background: #f8fafd; box-shadow: 0 1px 3px rgba(60,64,67,0.3); }
/* Preglednik unutar TikToka i sličnih: prijava ondje ne prolazi, pa ovo stoji iznad gumba. */
.modal-inapp {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}
.modal-inapp[hidden], .modal-inapp [hidden] { display: none; }
.modal-inapp p { margin: 0; }
.modal-inapp-text { font-weight: 650; }
.modal-inapp-chrome {
  align-self: flex-start;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}
/* Aplikacija kao drugi put do računa; na računalu ga nema jer ondje trgovina nije korak. */
.modal-app-alt {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.modal-app-alt p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.modal-app-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .modal-app-alt { display: none; }
}
.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  gap: 0.5rem;
}
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--line); }
.modal-form { display: flex; flex-direction: column; gap: 0.75rem; }
.modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
}
.modal-input:focus { outline: 2px solid var(--brand); }
.modal-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.modal-submit-btn:hover { opacity: 0.9; }

/* Web Liste Stranica (/liste) - Match Listo App */
.lists-view {
  display: grid;
  gap: 1.75rem;
  padding-block: 1rem 3.5rem;
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  min-width: 0;
}
.lists-hero { display: grid; gap: 0.35rem; width: 100%; min-width: 0; }
.lists-hero h1 { font-size: 2rem; font-weight: 850; letter-spacing: -0.02em; word-break: break-word; }
.lists-hero p { word-break: break-word; }
.lists-guest-view, .lists-empty-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  width: 100%;
  box-sizing: border-box;
}
.lists-guest-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.lists-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; width: 100%; min-width: 0; }

.chain-list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.chain-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.25rem;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.chain-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.chain-name-text {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chain-list-header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.list-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.list-action-btn:hover {
  background: var(--line);
}
.list-action-btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--btn-ink);
}
.list-action-btn.primary:hover { filter: brightness(1.08); }
.list-action-btn[disabled] { opacity: 0.6; cursor: default; }
.copied-lists-link { margin-top: 1rem; font-weight: 700; }
.list-action-btn.icon-only,
.list-action-btn.clear-chain-btn {
  padding: 0.4rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.list-section-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 1.25rem 0 0.5rem 0;
}

.chain-items-list { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; width: 100%; min-width: 0; }

.chain-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.chain-item-row:last-child { border-bottom: none; }
.chain-item-row.checked { opacity: 0.4; }
.chain-item-row.checked .item-name { text-decoration: line-through; }

/* Circular Checkbox matching Listo App */
.item-checkbox-wrap {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.item-checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.custom-checkbox {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.item-checkbox-wrap:hover .custom-checkbox {
  border-color: var(--muted);
}
.item-checkbox:checked + .custom-checkbox,
.chain-item-row.checked .custom-checkbox {
  background: var(--ok);
  border-color: var(--ok);
}
.item-checkbox:checked + .custom-checkbox::after,
.chain-item-row.checked .custom-checkbox::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

/* Clickable Item Area */
.item-main-clickable {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.3rem;
  margin: -0.2rem -0.3rem;
  transition: background 0.15s ease;
}
.item-main-clickable:hover {
  background: var(--sunken);
}

.item-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-shrink: 0;
  padding: 2px;
}
.item-thumb-placeholder {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}
.item-brand {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-variant {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.item-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.no-price-text {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Quick Add Form matching (+) Dopiši */
.quick-add-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0 0.4rem;
  margin-top: 0.25rem;
  width: 100%;
  min-width: 0;
}
.quick-add-circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.quick-add-input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.quick-add-input::placeholder {
  color: var(--muted);
}
.quick-add-input:focus {
  outline: none;
}
.quick-add-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.quick-add-btn:hover {
  opacity: 0.9;
}

/* Posebne cijene ponude: kartica lanca zeleno (vrijedi samo uz karticu), paket i dani neutralno. */
.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.price-chips.is-detailed {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.6rem 0;
}
.price-chip {
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.price-chip-loyalty {
  background: var(--ok-soft);
  color: var(--ok);
}
.price-chip-saving {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--secondary);
}
.is-detailed .price-chip {
  font-size: 0.92rem;
  padding: 0.3rem 0.65rem;
}

/* Prekidač "imam karticu" uz zbroj popisa; cijeli red je gumb, prekidač je samo prikaz. */
.loyalty-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.loyalty-toggle[hidden] { display: none; }
.loyalty-toggle-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.loyalty-toggle-label { font-size: 0.92rem; font-weight: 700; }
.loyalty-toggle-hint { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.loyalty-switch {
  position: relative;
  flex-shrink: 0;
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s ease;
}
.loyalty-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 42, 33, 0.25);
  transition: transform 0.15s ease;
}
.loyalty-toggle[aria-checked="true"] .loyalty-switch { background: var(--ok); }
.loyalty-toggle[aria-checked="true"] .loyalty-switch::after { transform: translateX(1.1rem); }
.loyalty-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Card Total Footer */
.chain-list-total {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
}
.chain-total-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.total-heading {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.chain-total-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.chain-list-total-amount {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.app-sync-box {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.app-sync-box-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 240px;
  min-width: 0;
}
.app-sync-box p {
  font-size: 0.92rem;
  color: var(--secondary);
  font-weight: 500;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.app-sync-box .app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.app-sync-box .app-btn:hover { opacity: 0.9; }

/* Modal za detalje proizvoda - Match Listo App ItemSheet */
.modal-drag-handle {
  display: none;
  width: 36px;
  height: 5px;
  border-radius: 9999px;
  background: var(--line);
  margin: 0 auto 0.75rem;
  flex-shrink: 0;
}

.item-modal-card {
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 27rem;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .item-modal-card {
  transform: scale(1);
}

.item-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.item-modal-media,
.item-modal-detail {
  display: contents;
}

.item-modal-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sunken);
  border-radius: 20px;
  padding: 1.25rem;
  min-height: 160px;
  position: relative;
  border: 1px solid var(--line);
  margin-bottom: 1.15rem;
}
.item-modal-img {
  max-width: 180px;
  max-height: 150px;
  object-fit: contain;
  display: block;
}
.item-modal-placeholder {
  font-size: 3.5rem;
  display: grid;
  place-items: center;
  width: 100%;
  height: 140px;
}
.item-modal-hero.can-zoom { cursor: zoom-in; }

/* Slika artikla preko cijelog zaslona */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 12, 8, 0.92);
  cursor: zoom-out;
  overscroll-behavior: contain;
}
.image-lightbox.open { display: flex; }
.image-lightbox.is-zoomed { cursor: grab; }
.image-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.image-lightbox img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform-origin: center center;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.image-lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.image-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

.item-modal-expand-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(18, 22, 15, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.item-modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.item-modal-brand {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  display: block;
}
.item-modal-name {
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.item-modal-variant {
  font-size: 0.92rem;
  color: var(--secondary);
  margin-top: 0.2rem;
  font-weight: 500;
}
.item-modal-custom-note {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--sunken);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.4rem 0 0;
}

.item-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.item-modal-price {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.item-modal-old-price {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.item-modal-discount {
  background: var(--error, #EF4444);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.item-modal-facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--sunken);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  margin-top: 1.15rem;
}
.item-modal-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.item-modal-fact .fact-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.item-modal-fact .fact-value {
  color: var(--ink);
  font-weight: 750;
}

.item-modal-catalog-wrap {
  margin-top: 0.85rem;
}
.item-modal-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.item-modal-catalog-link:hover {
  background: var(--line);
}

.item-modal-qty-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.item-modal-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-modal-qty-label {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
}
.modal-stepper {
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.modal-stepper .qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-stepper .qty-btn:hover {
  background: var(--line);
}
.modal-stepper .qty-val {
  min-width: 30px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.item-modal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.25rem;
}
.item-modal-total-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}
.item-modal-total-val {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.item-modal-note-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.item-modal-note-label {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
}
.item-modal-note-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  max-height: 7.5rem;
  resize: vertical;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.item-modal-note-input::placeholder {
  color: var(--muted);
}
.item-modal-note-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.item-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chain-item-row.checked .item-note { text-decoration: line-through; }

.item-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.item-modal-delete-btn {
  width: 100%;
  padding: 0.85rem;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border: none;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s ease;
}
.item-modal-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}
.item-modal-done-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.item-modal-done-btn:hover {
  opacity: 0.9;
}

@media (min-width: 48rem) {
  .item-modal-card {
    max-width: 52rem;
    padding: 1.75rem;
  }
  .item-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
  }
  .item-modal-media {
    display: block;
    position: sticky;
    top: 0;
  }
  .item-modal-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .item-modal-hero {
    min-height: 22rem;
    padding: 1.5rem;
    margin-bottom: 0;
  }
  .item-modal-img {
    max-width: 100%;
    max-height: 18rem;
  }
  .item-modal-placeholder {
    height: 100%;
    min-height: 16rem;
  }
  .item-modal-actions {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.65rem;
  }
  .item-modal-delete-btn,
  .item-modal-done-btn {
    width: auto;
    padding: 0.85rem 1.75rem;
  }
  .item-modal-card.no-media {
    max-width: 32rem;
  }
  .item-modal-card.no-media .item-modal-body {
    display: flex;
    flex-direction: column;
  }
  .item-modal-card.no-media .item-modal-media {
    display: none;
  }
}

/* Header Components */
.header-search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.15s ease;
}
.header-search-input {
  width: 100%;
  padding: 0.42rem 0.85rem 0.42rem 2.2rem;
  font-size: 0.86rem;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: all 0.18s ease;
}
.header-search-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.header-search-form:focus-within .header-search-icon {
  color: var(--ink);
}
.header-search-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--secondary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.header-search-mobile-btn:hover {
  background: var(--sunken);
  color: var(--ink);
}

.header-dropdown {
  position: relative;
  display: inline-block;
}
.header-dropdown summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.header-dropdown summary::-webkit-details-marker {
  display: none;
}
.header-dropdown summary::marker {
  display: none;
}
.header-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}
.header-dropdown-btn:hover, .header-dropdown[open] .header-dropdown-btn {
  background: var(--sunken);
  border-color: var(--muted);
}
.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1;
  transition: all 0.15s ease;
}
.header-user-btn:hover, .header-dropdown[open] .header-user-btn {
  background: var(--sunken);
  border-color: var(--muted);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
  text-align: center;
  user-select: none;
}
.user-btn-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-arrow {
  color: var(--muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.header-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  min-width: 160px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.user-dropdown-menu {
  min-width: 200px;
}
.user-menu-header {
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.user-menu-header strong {
  font-size: 0.9rem;
  color: var(--ink);
}
.user-menu-email {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}
.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 0.25rem 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}
.dropdown-item:hover {
  background: var(--sunken);
}
.dropdown-item.active {
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 700;
}
.lang-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--sunken);
  color: var(--secondary);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.dropdown-item.active .lang-tag {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.lang-title {
  flex: 1;
}
.lang-check {
  color: var(--ok);
  font-weight: 800;
  font-size: 0.85rem;
}
.dropdown-item.logout-btn {
  color: var(--muted);
}
.dropdown-item.logout-btn:hover {
  color: #E10915;
  background: rgba(225, 9, 21, 0.08);
}

.header-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.header-signin-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 52rem) {
  .header-center { display: none; }
  .header-search-mobile-btn { display: inline-flex; }
  .user-btn-name { display: none; }
}

@media (max-width: 48rem) {
  .top .wrap {
    min-height: 3.5rem;
    gap: 0.4rem;
    padding-inline: 0.75rem;
  }
  .header-left {
    gap: 0.45rem;
  }
  .brand {
    font-size: 1.05rem;
    gap: 0.35rem;
  }
  .brand .mark {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 8px;
  }
  .main-nav {
    gap: 0.2rem;
  }
  .main-nav a {
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
    border-radius: 999px;
  }
  .header-right {
    gap: 0.3rem;
  }
  .header-search-mobile-btn {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .lang-dropdown .header-dropdown-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }
  .header-signin-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
  }
  .header-signin-btn span {
    display: none;
  }
  .header-signin-btn svg {
    width: 16px;
    height: 16px;
  }
  .header-user-btn {
    padding: 0;
    border: none;
    background: transparent;
  }
  .header-user-btn .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .header-user-btn .dropdown-arrow {
    display: none;
  }
}

@media (max-width: 25rem) {
  .top .wrap {
    gap: 0.25rem;
    padding-inline: 0.5rem;
  }
  .brand .brand-name {
    display: none;
  }
  .main-nav a {
    padding: 0.25rem 0.45rem;
    font-size: 0.78rem;
  }
}

/* Search Page (/trazi) */
.search-view { display: grid; gap: 2rem; padding-block: 1.5rem 4rem; }
.search-hero {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}
.search-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.search-page-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  pointer-events: none;
}
.search-page-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-size: 1.05rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-page-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.search-page-submit {
  padding: 0.85rem 1.75rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.search-page-submit:hover { opacity: 0.9; }

.popular-searches-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.popular-label { font-size: 0.85rem; font-weight: 650; color: var(--muted); }
.popular-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.popular-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.popular-chip:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.search-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.search-count-text { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.sort-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sort-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-right: 0.25rem; }
.sort-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
  transition: all 0.15s ease;
}
.sort-tab:hover { background: var(--line); color: var(--ink); }
.sort-tab.active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

.search-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.search-chain-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 750;
  color: var(--ink);
}
.search-chain-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.search-date-badge { color: var(--muted); font-weight: 600; }
.search-flyer-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
  margin-top: 0.25rem;
}
.search-flyer-link:hover { text-decoration: underline; }

.search-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* Dijeljena lista (/l/:token) — isti sustav kao vlastita lista, samo bez uređivanja */
.chain-list-logo { width: 28px; height: 28px; border-radius: var(--radius-sm); object-fit: contain; flex: none; }
.chain-item-empty { padding: 1.25rem; color: var(--muted); text-align: center; list-style: none; }
.item-modal-qty-static { font-weight: 700; font-variant-numeric: tabular-nums; }

.lists-tabs-wrap { padding-top: 1.25rem; }
.lists-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lists-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--secondary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lists-tab:hover { background: var(--sunken); }
.lists-tab.is-active { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.lists-tab-badge {
  min-width: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: var(--sunken);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.lists-tab.is-active .lists-tab-badge { background: var(--surface); color: var(--brand); }

.shared-lists-view { padding-top: 1.5rem; padding-bottom: 3rem; }
.shared-lists-grid { display: grid; gap: 0.75rem; }
.shared-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.shared-list-item.is-gone { opacity: 0.65; }
.shared-list-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.shared-list-main:hover .shared-list-name { text-decoration: underline; }
.shared-list-logo { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: contain; flex: none; background: var(--sunken); }
.shared-list-initials {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex: none;
}
.shared-list-text { display: grid; gap: 0.15rem; min-width: 0; }
.shared-list-name { font-weight: 750; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared-list-when { font-size: 0.82rem; color: var(--muted); }
.shared-list-when.is-gone { color: #B3382E; }
.shared-list-forget {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--sunken);
  color: var(--secondary);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  flex: none;
}
.shared-list-forget:hover { background: var(--line); }
.shared-empty-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.shared-empty-card h2 { margin: 0.5rem 0 0.5rem; font-size: 1.25rem; }
.shared-empty-card p { margin: 0 auto; max-width: 32rem; line-height: 1.5; }

/* Print Mode */
@media print {
  .no-print, header.top, footer.foot, .share-cta, #auth-modal, .banner { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .doc.wrap { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .shared-list-view .chain-list-card { border: none !important; box-shadow: none !important; padding: 0 !important; }
  .shared-list-view .chain-item-row { border: none !important; border-bottom: 1px solid #ddd !important; border-radius: 0 !important; padding: 0.5rem 0 !important; }
  .shared-list-view .item-checkbox-wrap { display: none !important; }
  .shared-list-view .chain-list-total { border-top: 2px solid #000 !important; color: #000 !important; }
  .sum { border-top: 2px solid #000 !important; color: #000 !important; }
}
