/* ============================================================
   Karate Shop BiH · dizajn sistem
   Paleta: AKA crvena #D62828 · AO plava #1D4E89 · #111214 · #F4F4F2
   Fontovi: Barlow Condensed (naslovi) · Inter (tekst), latin-ext
   ============================================================ */

:root {
  --primary: #111214;
  --dark: #0B0C0E;
  --line-dark: rgba(255, 255, 255, .12);
  --secondary: #FFFFFF;
  --accent: #D62828;
  --accent-dark: #B31F1F;
  --accent2: #1D4E89;
  --accent2-dark: #163C6A;
  --bg-alt: #F4F4F2;
  --text: #1A1A1A;
  --muted: #5C5F66;
  --line: #E2E2DF;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(17, 18, 20, .09);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--secondary);
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar u bojama brenda (glavni prozor i svi unutrasnji skrolovi) */
* { scrollbar-width: thin; scrollbar-color: var(--accent2) #E9E9E6; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #E9E9E6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent) 0 50%, var(--accent2) 50% 100%);
  border-radius: 10px;
  border: 3px solid #E9E9E6;
  min-height: 48px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--accent-dark) 0 50%, var(--accent2-dark) 50% 100%); }
::-webkit-scrollbar-corner { background: #E9E9E6; }

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; color: var(--primary); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; text-transform: uppercase; letter-spacing: .015em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { position: relative; padding-bottom: 10px; margin-bottom: 28px; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent2) 50% 100%);
  border-radius: 2px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-more { font-weight: 600; white-space: nowrap; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-align: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(214, 40, 40, .3); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(214, 40, 40, .38); transform: translateY(-1px); }
.btn-blue { background: var(--accent2); color: #fff; }
.btn-blue:hover { background: var(--accent2-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-danger { color: var(--accent); }

/* ---------- Select (svi padajuci izbornici) ---------- */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D4E89' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 38px 10px 14px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:hover { border-color: var(--accent2); }
select:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(29,78,137,.15); }
select option { font-weight: 400; }

/* ---------- Details / FAQ (padajuci blokovi) ---------- */
details.faq-item, .faq details, .review-form-wrap {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0;
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details:hover, .review-form-wrap:hover { border-color: #cfd6df; }
.faq details[open], .review-form-wrap[open] { border-color: var(--accent2); box-shadow: 0 8px 24px rgba(29,78,137,.08); }
.faq summary, .review-form-wrap summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 15.5px;
  padding: 16px 52px 16px 20px; position: relative; user-select: none;
  transition: background .15s ease, color .15s ease;
}
.faq summary::-webkit-details-marker, .review-form-wrap summary::-webkit-details-marker { display: none; }
.faq summary::before, .review-form-wrap summary::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent) 50%, var(--accent2) 50%);
  transform: scaleY(0); transform-origin: top; transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.faq details[open] summary::before, .review-form-wrap[open] summary::before { transform: scaleY(1); }
.faq summary::after, .review-form-wrap summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--bg-alt);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111214' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .15s ease;
}
.faq summary:hover::after, .review-form-wrap summary:hover::after { background-color: #E3EBF5; }
.faq details[open] summary::after, .review-form-wrap[open] summary::after { transform: rotate(180deg); background-color: var(--accent2); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
.faq details[open] summary { background: #F4F7FB; }
.faq details > p, .faq details > div, .review-form-wrap > form {
  padding: 4px 20px 18px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text);
}

/* ---------- Najavna traka ---------- */
.announce {
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 500;
  text-align: center; padding: 8px 12px; letter-spacing: .02em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- Header (crna tema) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
.header-in { display: flex; align-items: center; gap: 22px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; line-height: 1; text-decoration: none !important; }
.logo img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #E8EAED; font-weight: 500; font-size: 15px; padding: 8px 12px;
  border-radius: 8px; position: relative; text-decoration: none !important;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent2) 50% 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-sale { color: #FF6B5B !important; font-weight: 700 !important; }
.nav-giveaway { color: #6EA3E8 !important; font-weight: 700 !important; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 24px; padding: 3px 6px 3px 14px; }
.search input { border: 0; background: transparent; font: inherit; font-size: 14px; width: 150px; outline: none; color: #fff; }
.search input::placeholder { color: rgba(255, 255, 255, .55); }
.search button { border: 0; background: transparent; cursor: pointer; color: rgba(255, 255, 255, .7); display: grid; place-items: center; padding: 6px; }
.icon-link { color: #fff; display: grid; place-items: center; padding: 8px; border-radius: 8px; position: relative; }
.icon-link:hover { background: rgba(255, 255, 255, .1); }
.cart-badge {
  position: absolute; top: 0; right: 0; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.nav-toggle { display: none; }

/* ---------- Flash ---------- */
.flash { background: #E7F0E7; color: #1E5B2E; font-weight: 500; padding: 10px 0; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(29, 78, 137, .16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(214, 40, 40, .1), transparent 55%),
    var(--primary);
  color: #fff; overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding-top: 64px; padding-bottom: 64px; }
.hero-kicker { color: #cfd3da; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero-sub { color: #c9cdd4; font-size: 18px; max-width: 44ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }

/* ---------- Trust ---------- */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 20px; }
.trust-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.trust-ic { grid-row: span 2; font-size: 26px; }
.trust-item b { font-size: 14.5px; }
.trust-item span:last-child { font-size: 13px; color: var(--muted); }

/* ---------- Kategorije ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 22px 16px; text-align: center;
  color: var(--primary); text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img { width: 84px; height: 84px; margin: 0 auto 12px; }
.cat-card b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: .02em; }
.cat-card span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Kartica proizvoda ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.prod-media { position: relative; background: var(--bg-alt); aspect-ratio: 1; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.badge {
  position: absolute; z-index: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px; color: #fff;
}
.badge-sale { top: 10px; left: 10px; background: var(--accent); }
.badge-wkf { top: 10px; right: 10px; background: var(--accent2); }
.prod-media .badge-sale + .badge-wkf { top: 10px; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.prod-meta { font-size: 12.5px; color: var(--muted); }
.prod-rating { font-size: 12.5px; color: var(--muted); }
.prod-price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.prod-price b { font-size: 17px; }
.prod-price s { color: var(--muted); font-size: 13.5px; }
.price-sale { color: var(--accent); }
.prod-stripe {
  height: 3px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent2) 50% 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.prod-card:hover .prod-stripe { transform: scaleX(1); }

/* ---------- Giveaway band (crna tema) ---------- */
.giveaway-band {
  background:
    radial-gradient(700px 360px at 90% -10%, rgba(214, 40, 40, .2), transparent 60%),
    radial-gradient(620px 340px at -5% 115%, rgba(29, 78, 137, .26), transparent 55%),
    var(--dark);
  color: #fff;
}
.giveaway-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.giveaway-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FF6B5B; margin: 0 0 8px; }
.giveaway-band h2 { color: #fff; }
.giveaway-band p { color: #c9cdd4; max-width: 55ch; }
.giveaway-in img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.3); width: 100%; aspect-ratio: 7/5; object-fit: cover; }

/* ---------- Size band ---------- */
.size-band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.size-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 20px; flex-wrap: wrap; }
.size-in h2 { margin-bottom: 6px; }
.size-in p { margin: 0; color: var(--muted); max-width: 62ch; }

/* ---------- Recenzije ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.review-card blockquote { margin: 0; font-size: 14.5px; line-height: 1.55; }
.review-card figcaption { font-size: 13px; color: var(--muted); }
.verified { color: #1E5B2E; font-size: 12px; font-weight: 600; }

/* ---------- Club band ---------- */
.club-band { background: var(--dark); color: #fff; }
.club-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.club-in h2 { color: #fff; margin-bottom: 6px; }
.club-in p { color: #c9cdd4; margin: 0; max-width: 60ch; }

/* ---------- Newsletter (crna tema) ---------- */
.newsletter-band { background: var(--dark); }
.newsletter-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--line-dark); border-radius: 14px; padding: 30px;
  background: rgba(255, 255, 255, .045);
}
.newsletter-in h2 { margin-bottom: 4px; color: #fff; }
.newsletter-in p { margin: 0; color: #c9cdd4; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  font: inherit; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); min-width: 240px;
  background: rgba(255, 255, 255, .08); color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c9cdd4; margin-top: 40px; }
.footer-stripe { height: 5px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent2) 50% 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 20px 28px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; }
.footer-about { font-size: 14px; max-width: 34ch; }
.footer-contact { font-size: 14px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer nav a { display: block; color: #c9cdd4; font-size: 14px; padding: 4px 0; }
.site-footer nav a:hover { color: #fff; }
.footer-credit { color: #8b8f97; }
.footer-credit a { color: #c9cdd4; font-weight: 600; text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; font-size: 13px;
}

/* ---------- Viber dugme ---------- */
.viber-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #7360F2; color: #fff; box-shadow: 0 10px 24px rgba(115, 96, 242, .45);
  transition: transform .15s ease;
}
.viber-fab:hover { transform: scale(1.08); }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
}
.cookie-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent) 50%, var(--accent2) 50%); }
.cookie-bar p { margin: 0; font-size: 13.5px; flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding-top: 16px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Kategorija ---------- */
.cat-header p { color: var(--muted); max-width: 70ch; }
.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; color: var(--muted); margin: 18px 0; flex-wrap: wrap;
}
.sort-form { display: flex; align-items: center; gap: 8px; }
.cat-note { margin-top: 26px; background: var(--bg-alt); border-left: 4px solid var(--accent2); border-radius: 8px; padding: 14px 18px; font-size: 14.5px; }

/* ---------- Stranica proizvoda ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-media-col { position: sticky; top: 90px; align-self: start; }
.product-media {
  position: relative; background: var(--bg-alt); border-radius: 14px; overflow: hidden;
  aspect-ratio: 1;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.product-media img.is-switching { opacity: 0; transform: scale(1.03); }
.size-warn { margin: -6px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.size-options.shake { animation: shakeX .4s ease; }
.size-options.shake .size-opt span { border-color: var(--accent); }
.product-info h1 { font-size: clamp(26px, 3.4vw, 38px); text-transform: none; }
.product-rating { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 10px; }
.product-short { color: var(--muted); font-size: 16.5px; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-price b { font-size: 30px; font-family: var(--font-head); }
.product-price s { color: var(--muted); font-size: 18px; }
.price-vat { font-size: 12.5px; color: var(--muted); }
.size-row { margin-bottom: 14px; }
.size-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.size-head label { font-weight: 600; font-size: 14px; }
.size-guide-link { font-size: 13px; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt input { position: absolute; opacity: 0; }
.size-opt span {
  display: inline-block; min-width: 52px; text-align: center; padding: 9px 12px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; transition: all .12s ease; background: #fff;
}
.size-opt input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.size-opt input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.qty-row input { width: 74px; font: inherit; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.btn-buy { width: 100%; }
.buy-note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.product-trust { list-style: none; padding: 16px 18px; margin: 20px 0; background: var(--bg-alt); border-radius: var(--radius); font-size: 14px; display: grid; gap: 6px; }
.product-trust li::before { content: "✓ "; color: #1E5B2E; font-weight: 700; }
.spec-table h2 { font-size: 20px; }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th { text-align: left; padding: 9px 12px 9px 0; color: var(--muted); font-weight: 500; width: 40%; border-bottom: 1px solid var(--line); }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.product-desc { margin-top: 44px; }
.product-desc p { font-size: 15.5px; max-width: 75ch; }
#recenzije { margin-top: 44px; }
.review-form-wrap { margin-top: 22px; margin-bottom: 48px; }
#recenzije + .wrap { margin-top: 0; }
.review-form { display: grid; gap: 12px; margin-top: 8px; max-width: 560px; }
.review-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.review-form input, .review-form textarea {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 400;
}
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute !important; left: -9999px !important; }

/* Galerija */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  border: 2px solid var(--line); border-radius: 10px; background: var(--bg-alt); padding: 6px; cursor: pointer;
  transition: border-color .12s ease;
}
.gallery-thumb.on, .gallery-thumb:hover { border-color: var(--accent2); }
.gallery-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

/* Filteri kategorije */
.filter-controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.filter-controls label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter-controls select { padding-top: 8px; padding-bottom: 8px; }
.filter-check { display: flex !important; align-items: center; gap: 6px; padding-bottom: 9px; }

/* Sticky mobilni CTA */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 0;
}
.sticky-buy-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sticky-price { font-family: var(--font-head); font-size: 22px; font-weight: 700; }

/* ---------- Korpa ---------- */
.free-ship-bar { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.free-ship-bar p { margin: 0 0 8px; font-size: 14.5px; }
.free-ship-bar.done p { margin: 0; color: #1E5B2E; font-weight: 600; }
.free-ship-track { height: 8px; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.free-ship-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; transition: width .4s ease; }
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: #fff;
}
.cart-item img { background: var(--bg-alt); border-radius: 8px; width: 84px; height: 84px; object-fit: cover; }
.cart-item-info { display: grid; gap: 2px; font-size: 14px; }
.cart-item-info a { color: var(--text); font-weight: 600; }
.cart-item-info span { color: var(--muted); font-size: 13px; }
.cart-item-qty input { width: 64px; font: inherit; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; }
.cart-line-total { font-size: 15px; }
.cart-summary { background: var(--bg-alt); border-radius: 14px; padding: 24px; position: sticky; top: 90px; }
.cart-summary h2 { font-size: 22px; }
.cart-summary dl { margin: 0 0 16px; display: grid; gap: 8px; }
.cart-summary dl > div { display: flex; justify-content: space-between; font-size: 14.5px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; }
.row-discount dd, .row-discount dt { color: #1E5B2E !important; }
.row-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 17px !important; }
.row-total dd { font-family: var(--font-head); font-size: 22px; }
.pay-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.coupon-form { margin-top: 26px; max-width: 420px; }
.coupon-form label { font-weight: 600; font-size: 14px; }
.coupon-row { display: flex; gap: 8px; margin-top: 8px; }
.coupon-row input { flex: 1; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); text-transform: uppercase; }
.empty-cart { text-align: center; padding: 48px 0; }
.empty-cart p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Checkout ---------- */
.checkout-note { color: var(--muted); margin-top: -8px; }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.checkout-form { display: grid; gap: 14px; }
.checkout-form h2 { font-size: 21px; margin: 10px 0 0; }
.checkout-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.checkout-form input, .checkout-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--accent2); }
.pay-option {
  border: 2px solid var(--accent2); border-radius: var(--radius); padding: 14px 18px; background: #F5F8FC;
  display: grid; gap: 4px; font-size: 14px;
}
.pay-option span { color: var(--muted); font-weight: 400; }
.legal-note { font-size: 13px; color: var(--muted); }
.summary-items { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.form-errors { background: #FBE4E4; color: #9B1C1C; border-radius: var(--radius); padding: 12px 18px; margin-bottom: 18px; }
.form-errors p { margin: 4px 0; font-size: 14px; }

/* ---------- Hvala ---------- */
.thanks { text-align: center; max-width: 520px; margin: 0 auto; }
.thanks-badge {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  background: #E7F0E7; color: #1E5B2E; font-size: 34px; display: grid; place-items: center;
}

/* ---------- Giveaway stranica ---------- */
.giveaway-hero { max-width: 720px; margin-bottom: 34px; }
.giveaway-hero .giveaway-kicker { color: var(--accent2); }
.giveaway-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.giveaway-img { border-radius: 14px; width: 100%; aspect-ratio: 7/5; object-fit: cover; margin-bottom: 34px; box-shadow: var(--shadow); }
.giveaway-layout h2 { font-size: 24px; margin: 0 0 14px; }
.giveaway-prizes { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.giveaway-prizes li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.giveaway-prizes img { background: var(--bg-alt); border-radius: 8px; width: 56px; height: 56px; object-fit: cover; }
.giveaway-prizes span { color: var(--muted); font-size: 14px; }
.giveaway-form-wrap { background: var(--bg-alt); border-radius: 14px; padding: 28px; position: sticky; top: 90px; }
.giveaway-form-wrap form { display: grid; gap: 12px; }
.giveaway-form-wrap label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.giveaway-form-wrap input[type="text"], .giveaway-form-wrap input[type="email"], .giveaway-form-wrap input[type="tel"] {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.check-row { display: grid !important; grid-template-columns: auto 1fr; gap: 10px !important; align-items: start; font-weight: 400 !important; font-size: 13px !important; }
.check-row input { margin-top: 3px; }

/* ---------- Vodič / pravne ---------- */
.guide-page h2, .legal-page h2 { margin-top: 30px; font-size: 23px; }
.guide-intro { font-size: 17px; color: var(--muted); max-width: 74ch; }
.guide-steps { padding-left: 20px; display: grid; gap: 10px; max-width: 74ch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.table th { text-align: left; background: var(--primary); color: #fff; padding: 10px 14px; font-weight: 600; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table tr:nth-child(even) td { background: var(--bg-alt); }
.size-table { max-width: 720px; }
.faq { display: grid; gap: 10px; max-width: 760px; }
.legal-page .wrap { max-width: 820px; }
.legal-page p { font-size: 15px; }
.legal-note-box { background: #FDF3DC; color: #8A6100; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }

/* ---------- Vodici ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; color: var(--text); text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 21px; margin: 0; }
.guide-card p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.guide-more { color: var(--accent2); font-weight: 600; font-size: 14px; }
.guide-narrow { max-width: 800px; }
.guide-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.guide-cta { margin-top: 34px; background: var(--bg-alt); border-radius: 14px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.guide-cta p { margin: 0; }
@media (max-width: 780px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.contact-club { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; }
.auth-wrap { max-width: 480px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-form input, .auth-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.auth-alt { font-size: 14px; color: var(--muted); margin-top: 16px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .04em; }
.status-nova { background: #FDF3DC; color: #8A6100; }
.status-poslana { background: #E3EBF5; color: var(--accent2); }
.status-isporucena { background: #E7F0E7; color: #1E5B2E; }
.status-otkazana { background: #FBE4E4; color: #9B1C1C; }

/* ---------- Animacije (karate: brzo, ostro, precizno) ---------- */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroArt { from { opacity: 0; transform: translateX(40px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stripeSweep { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes strikeLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes cartShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes flyToCart { to { transform: translate(var(--fly-x), var(--fly-y)) scale(.12); opacity: .2; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,40,40,.5); } 60% { box-shadow: 0 0 0 10px rgba(214,40,40,0); } }

html.js .hero-copy { animation: heroIn .7s cubic-bezier(.2,.8,.2,1) both; }
html.js .hero-copy .hero-kicker { animation: heroIn .6s .1s cubic-bezier(.2,.8,.2,1) both; }
html.js .hero-copy h1 { animation: heroIn .7s .18s cubic-bezier(.2,.8,.2,1) both; }
html.js .hero-copy .hero-sub { animation: heroIn .7s .3s cubic-bezier(.2,.8,.2,1) both; }
html.js .hero-copy .hero-cta { animation: heroIn .7s .42s cubic-bezier(.2,.8,.2,1) both; }
html.js .hero-art { animation: heroArt .9s .25s cubic-bezier(.2,.8,.2,1) both; }
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 25%, var(--accent2) 25% 50%, var(--accent) 50% 75%, var(--accent2) 75% 100%);
  background-size: 200% 100%; animation: stripeSweep 6s linear infinite;
}
html.js .section-title::after { transform-origin: left; animation: strikeLine .6s .2s cubic-bezier(.2,.8,.2,1) both; }
.badge-sale { animation: badgePulse 2.4s ease-out infinite; }
.cart-link.pop svg { animation: cartShake .5s ease; }
.cart-badge.pop { animation: cartPop .45s cubic-bezier(.2,.8,.2,1); }
.fly-img {
  position: fixed; z-index: 200; pointer-events: none; border-radius: 12px; object-fit: contain;
  background: var(--bg-alt); box-shadow: var(--shadow);
  animation: flyToCart .75s cubic-bezier(.4,0,.6,1) forwards;
}
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); width: 30px; height: 30px;
  margin: -15px 0 0 -15px; transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none;
}
.btn-buy.added { background: #1E9E4A !important; box-shadow: 0 6px 18px rgba(30,158,74,.35) !important; }
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 210;
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1);
}
.toast a { color: #fff; font-weight: 700; text-decoration: underline; }
.toast .toast-stripe { width: 4px; height: 26px; border-radius: 2px; background: linear-gradient(180deg, var(--accent) 50%, var(--accent2) 50%); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.cat-card img { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cat-card:hover img { transform: translateY(-4px) scale(1.08); }
.size-opt span { transition: all .15s cubic-bezier(.2,.8,.2,1); }
.size-opt input:checked + span { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(17,18,20,.25); }
.trust-item { transition: transform .2s ease; }
.trust-item:hover { transform: translateY(-3px); }
.trust-item:hover .trust-ic { animation: cartShake .5s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-copy, html.js .hero-copy *, html.js .hero-art, .hero::after, .badge-sale, .fly-img, .btn .ripple, .toast { animation: none !important; }
}

/* ---------- Reveal animacije ---------- */
html.js .reveal, body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
html.js .reveal.in, body.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responzivno
   ============================================================ */
@media (max-width: 1020px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search input { width: 110px; }
}

@media (max-width: 780px) {
  .header-in { gap: 12px; }
  .nav-toggle {
    display: grid; gap: 4.5px; background: none; border: 0; padding: 10px 8px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: all .2s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 84vw); z-index: 100;
    background: var(--dark); flex-direction: column; gap: 2px; padding: 84px 18px 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5); transform: translateX(-105%); transition: transform .25s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav::before {
    content: ""; position: absolute; top: 20px; left: 20px; width: 178px; height: 43px;
    background: url("../img/logo.png") no-repeat left center / contain;
  }
  .main-nav a { font-size: 17px; padding: 12px 14px; border-radius: 10px; opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .3s ease, background .15s ease; }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: .05s } .main-nav.open a:nth-child(2) { transition-delay: .1s }
  .main-nav.open a:nth-child(3) { transition-delay: .15s } .main-nav.open a:nth-child(4) { transition-delay: .2s }
  .main-nav.open a:nth-child(5) { transition-delay: .25s } .main-nav.open a:nth-child(6) { transition-delay: .3s }
  .main-nav.open a:nth-child(7) { transition-delay: .35s }
  .main-nav a:hover { background: rgba(255, 255, 255, .08); }
  .main-nav a::after { display: none; }
  .logo img { height: 38px; }
  .search { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .hero-art { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-layout, .cart-layout, .checkout-layout, .giveaway-layout, .contact-layout { grid-template-columns: 1fr; }
  .product-media-col { position: static; }
  .cart-summary, .giveaway-form-wrap { position: static; }
  .giveaway-in { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-line-total { grid-column: 2 / -1; text-align: right; }
  .form-row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 40px 0; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; }
}

@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .prod-body h3 { font-size: 13.5px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
