/* =========================================================
   Dekor Company — zajednički stil sajta (2026)
   Zaglavlje, korpa, dugmad, footer i osnovna tipografija.
   ========================================================= */

:root {
  /* boje iz logotipa */
  --cyan: #22a4d8;
  --magenta: #e44190;
  --amber: #f5b142;
  --green: #63b551;

  /* osnova */
  --ink: #1e2229;
  --ink-2: #3b4250;
  --muted: #5d6470;
  --line: #e3e6e9;
  --paper: #f5f6f4;
  --surface: #ffffff;
  --night: #171a20;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: rgba(30, 34, 41, .22); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--amber); }

/* ---------- zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 246, 244, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .9); }

.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(30, 34, 41, .06); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px;
  background: linear-gradient(90deg, var(--magenta) 0 25%, var(--cyan) 25% 50%, var(--amber) 50% 75%, var(--green) 75%);
}

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: rgba(30, 34, 41, .07); color: var(--ink); }
.cart-btn { background: var(--ink); color: #fff; }
.cart-btn:hover { background: #000; color: #fff; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; border: 2px solid var(--paper);
  background: var(--magenta); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.cart-count[data-empty="true"] { display: none; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .header-tools .social { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    padding: 12px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(23, 26, 32, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 14px 6px; border-radius: 0; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: auto; right: 8px; bottom: 50%; margin: 0 0 -1.5px; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 420px) { .brand img { height: 42px; } }

/* ---------- korpa (fioka) ---------- */
.cart-scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(23, 26, 32, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; flex-direction: column;
  width: min(440px, 100%); background: #fff;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
}
.cart-open .cart { transform: none; visibility: visible; }
.cart-open .cart-scrim { opacity: 1; visibility: visible; }
.cart-open { overflow: hidden; }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 24px; }
.cart-list { flex: 1; overflow-y: auto; margin: 0; padding: 8px 24px; list-style: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--paper); }
.cart-item h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.cart-item .price { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-remove { align-self: start; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.cart-remove:hover { background: #fdecf4; color: var(--magenta); }
.cart-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 24px; text-align: center; color: var(--muted); }
.cart-empty strong { font-size: 20px; color: var(--ink); }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total strong { font-size: 26px; letter-spacing: -.02em; }
.cart-foot .btn { width: 100%; }
.cart-foot[hidden] { display: none; }
.cart-ship { margin-bottom: 16px; font-size: 14.5px; color: var(--ink-2); }
.cart-ship b { color: var(--ink); font-weight: 650; }
.cart-ship .bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--paper); overflow: hidden; }
.cart-ship .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .5s var(--ease); }
.cart-ship.is-free b { color: #2f8a3a; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 0; background: var(--night); color: #b9bfc9; }
.paint-stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.paint-stripe span:nth-child(1) { background: var(--magenta); }
.paint-stripe span:nth-child(2) { background: var(--cyan); }
.paint-stripe span:nth-child(3) { background: var(--amber); }
.paint-stripe span:nth-child(4) { background: var(--green); }

.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
  padding-block: clamp(56px, 8vw, 96px) 48px; border-bottom: 1px solid #2a2f38;
}
.foot-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; }
.foot-brand .mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #fff; }
.foot-brand .mark img { width: 44px; height: 44px; }
.foot-brand b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.foot-claim { margin-top: 28px; max-width: 30ch; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; color: #fff; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.foot-cta .btn-line { color: #fff; border-color: #3a404b; }
.foot-cta .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 48px; }
.foot-cols h2 { margin-bottom: 16px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: #fff; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; color: #b9bfc9; transition: color .2s; }
.foot-cols a:hover { color: #fff; }
.foot-cols .ct li { display: flex; gap: 10px; align-items: flex-start; }
.foot-cols .ct .i { width: 18px; height: 18px; margin-top: 4px; color: #7f8794; }
.hours { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; }
.hours dt { color: #8a919d; }
.hours dd { margin: 0; color: #e7e9ec; font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #333a45; color: #fff; transition: background-color .25s, border-color .25s;
}
.socials a:hover { background: var(--magenta); border-color: var(--magenta); }

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 24px 32px; border-top: 1px solid #2a2f38; font-size: 14px; color: #8a919d;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.foot-legal a { color: #8a919d; text-decoration: none; }
.foot-legal a:hover { color: #fff; }
.foot-pay { display: grid; gap: 12px; padding-block: 28px; border-top: 1px solid #2a2f38; }
.foot-pay > span { font-size: 14px; color: #8a919d; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay li { display: grid; place-items: center; width: 66px; height: 46px; border-radius: 9px; background: #fff; overflow: hidden; }
.pay img { width: 100%; height: 100%; object-fit: contain; }
.pay .sep { width: 1px; height: 30px; margin: 0 4px; align-self: center; background: #333a45; border-radius: 0; }

/* ---------- status radnog vremena ---------- */
.open-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.open-status b { font-weight: 650; color: var(--ink); }
.open-status .pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #9aa1ad; }
.open-status.is-open .pulse { background: #1faa59; }
.open-status.is-open .pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #1faa59;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- traka napretka čitanja ---------- */
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--magenta) 0 25%, var(--cyan) 25% 50%, var(--amber) 50% 75%, var(--green) 75%);
  pointer-events: none;
}

/* Made by vektor.rs */
.mb {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 16px 7px 7px; border: 1px solid #323843; border-radius: 14px;
  background: linear-gradient(180deg, #20252d, #181b21);
  color: #9aa1ad; text-decoration: none;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.mb:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(34, 164, 216, .6); }
.mb-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; transition: transform .5s var(--ease); }
.mb-i img { width: 30px; height: 30px; }
.mb:hover .mb-i { transform: rotate(-10deg) scale(1.08); }
.mb-t { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.mb-t small { font-size: 11px; color: #8a919d; }
.mb-t b { font-size: 17px; font-weight: 700; color: #fff; }
.mb-t b em { font-style: normal; color: var(--cyan); }
.mb .i { width: 16px; height: 16px; color: #8a919d; transition: transform .35s var(--ease), color .3s; }
.mb:hover .i { transform: translate(3px, -3px); color: var(--cyan); }

@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr; align-items: start; }
  .foot-cta { justify-content: flex-start; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
