/* =========================================================
   Offender — prodavnica
   Čist, moderan izgled (Shopify / Apple stil)
   ========================================================= */

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --surface: #ffffff;
  --on-accent: #ffffff;
  --header-bg: rgba(255, 255, 255, .86);
  --font-head: var(--font);
  --head-weight: 600;
  --head-spacing: -.022em;
  --head-transform: none;
  --btn-weight: 600;
  --btn-spacing: -.01em;
  --btn-transform: none;
  --soft: #f5f5f7;
  --soft-2: #ededf0;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;

  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --subtle: #86868b;

  --accent: #1d1d1f;
  --accent-hover: #000000;
  --sale: #d70015;
  --success: #1a7f37;
  --success-soft: #e8f5ec;
  --danger-soft: #fdecee;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18);

  --container: 1280px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.s-locked { overflow: hidden; }
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text); font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); text-transform: var(--head-transform); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.s-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-container--narrow { max-width: 820px; }

.s-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Google Translate se koristi samo kroz zastavice */
#google_translate_element, .goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt,
.goog-te-spinner-pos, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Dugmad ---------- */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: var(--btn-weight);
  letter-spacing: var(--btn-spacing);
  text-transform: var(--btn-transform);
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .1s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.s-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.s-btn:active { transform: scale(.98); }
.s-btn[disabled], .s-btn.is-disabled {
  background: var(--soft-2);
  border-color: var(--soft-2);
  color: var(--subtle);
  cursor: not-allowed;
  transform: none;
}
.s-btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.s-btn--ghost:hover { background: var(--soft); border-color: var(--line-strong); }
.s-btn--light { background: #fff; color: #1d1d1f; border-color: #fff; }
.s-btn--light:hover { color: #1d1d1f; }
.s-btn--light:hover { background: #f2f2f2; border-color: #f2f2f2; }
.s-btn--block { width: 100%; }
.s-btn--lg { min-height: 56px; font-size: 16px; }
.s-btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }

.s-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.s-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.s-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  transition: background-color .2s var(--ease);
}
.s-icon-btn:hover { background: var(--soft); }

/* ---------- Najava (traka na vrhu) ---------- */
.s-announcement {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 9px var(--gutter);
  letter-spacing: -.005em;
}
.s-announcement span + span::before { content: "·"; margin: 0 10px; opacity: .5; }
@media (max-width: 575px) { .s-announcement .d-none-xs { display: none; } }

/* ---------- Header ---------- */
.s-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.s-header.is-scrolled { border-bottom-color: var(--line); }
.s-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.s-header__left, .s-header__right { display: flex; align-items: center; gap: 4px; }
.s-header__right { justify-content: flex-end; }
.s-logo { display: inline-flex; align-items: center; }
.s-logo img { height: 40px; width: auto; }
.s-logo span { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

.s-nav { display: none; }
.s-nav > ul { display: flex; align-items: center; gap: 4px; }
.s-nav a, .s-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.s-nav a:hover, .s-nav button:hover, .s-nav li.is-open > button { background: var(--soft); color: var(--text); }
.s-nav .fa-chevron-down { font-size: 10px; transition: transform .2s var(--ease); }
.s-nav li.is-open .fa-chevron-down { transform: rotate(180deg); }

.s-dropdown { position: relative; }
.s-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 520px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.s-dropdown.is-open .s-mega, .s-dropdown:focus-within .s-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (hover: hover) {
  .s-dropdown:hover .s-mega { opacity: 1; visibility: visible; transform: none; }
}
.s-mega__title { font-size: 12px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.s-mega ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 24px; }
.s-mega ul a { display: flex; height: auto; padding: 8px 12px; margin: 0 -12px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text); }
.s-mega ul a:hover { background: var(--soft); }
.s-mega .s-mega__all { font-weight: 600; }

.s-langs { display: none; align-items: center; gap: 6px; margin-right: 6px; }
.s-langs button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  opacity: .75;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.s-langs button:hover { opacity: 1; transform: scale(1.08); }
.s-langs img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* Država i valuta */
.s-market-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  margin-right: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.s-market-btn:hover { border-color: var(--line-strong); }
.s-market-btn img { width: 20px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.s-market-btn i { font-size: 10px; color: var(--muted); }
@media (max-width: 575px) {
  .s-market-btn { padding: 0 8px; gap: 5px; margin-right: 0; }
  .s-market-btn i { display: none; }
}

.s-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.s-modal.is-open { opacity: 1; visibility: visible; }
.s-modal:focus { outline: 0; }
.s-modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform .3s var(--ease);
}
.s-modal.is-open .s-modal__box { transform: none; }
.s-modal__close { position: absolute; top: 12px; right: 12px; }
.s-modal h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 32px 6px 0; }
.s-modal p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.s-market-list { display: grid; gap: 10px; }
.s-market-option {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.s-market-option:hover { border-color: var(--text); }
.s-market-option img { width: 32px; height: 24px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.s-market-option > i:first-child { font-size: 22px; color: var(--muted); text-align: center; }
.s-market-option strong { display: block; font-size: 15px; font-weight: 600; }
.s-market-option small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.s-market-option__check { color: var(--text); opacity: 0; }
.s-market-option.is-active { border-color: var(--text); background: var(--soft); }
.s-market-option.is-active .s-market-option__check { opacity: 1; }
.s-market-option.is-loading { opacity: .6; pointer-events: none; }

.s-cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 992px) {
  .s-header__inner { grid-template-columns: auto 1fr auto; gap: 32px; }
  .s-logo { justify-self: start; }
  .s-nav { display: block; }
  .s-langs { display: flex; }
  .s-menu-btn { display: none; }
}

/* ---------- Pretraga (preko headera) ---------- */
.s-search {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
}
.s-search.is-open { transform: none; }
.s-search form { height: 76px; display: flex; align-items: center; gap: 12px; }
.s-search i { color: var(--muted); }
.s-search input {
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  background: transparent;
}
.s-search input::placeholder { color: var(--subtle); }

/* ---------- Bočni paneli (korpa, meni, filteri) ---------- */
.s-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.s-overlay.is-open { opacity: 1; visibility: visible; }

.s-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 65;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.s-drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.s-drawer:focus { outline: none; }
.s-drawer.is-open { transform: none; }
.s-drawer__head {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 24px;
  border-bottom: 1px solid var(--line);
}
.s-drawer__head h2 { font-size: 18px; }
.s-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.s-drawer__foot { flex-shrink: 0; padding: 20px 24px 24px; border-top: 1px solid var(--line); }

.s-mini-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.s-mini-item:last-child { border-bottom: 0; }
.s-mini-item__img { width: 80px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: var(--soft); overflow: hidden; }
.s-mini-item__img img { width: 100%; height: 100%; object-fit: cover; }
.s-mini-item__name { font-size: 15px; font-weight: 500; line-height: 1.35; }
.s-mini-item__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.s-mini-item__price { font-size: 14px; font-weight: 600; margin-top: 6px; }
.s-mini-item__remove { align-self: start; width: 32px; height: 32px; font-size: 14px; color: var(--muted); }

.s-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text-2); padding: 4px 0; }
.s-summary-row--total { font-size: 18px; font-weight: 600; color: var(--text); padding-top: 12px; }
.s-note { font-size: 13px; color: var(--muted); }
.s-empty { text-align: center; padding: 64px 0; color: var(--muted); }
.s-empty i { font-size: 36px; color: var(--line-strong); margin-bottom: 16px; display: block; }
.s-empty h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }

.s-mobile-menu a, .s-mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.s-mobile-menu summary::-webkit-details-marker { display: none; }
.s-mobile-menu details[open] summary i { transform: rotate(180deg); }
.s-mobile-menu details ul a { padding-left: 14px; font-size: 15px; font-weight: 400; color: var(--text-2); }
.s-mobile-menu .s-langs { display: flex; margin: 24px 0 0; gap: 12px; }

/* ---------- Poruke (toast) ---------- */
.s-toasts {
  position: fixed;
  top: calc(var(--header-h) + 52px);
  right: 16px;
  left: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.s-toast {
  pointer-events: auto;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: s-toast-in .35s var(--ease);
}
.s-toast--error { background: var(--surface); color: var(--sale); border: 1px solid #f5c2c7; }
.s-toast i { margin-top: 2px; }
.s-toast.is-hiding { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes s-toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Sekcije ---------- */
.s-section { padding: 56px 0; }
.s-section--soft { background: var(--soft); }
@media (min-width: 992px) { .s-section { padding: 88px 0; } }
.s-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.s-section__head h2 { font-size: clamp(24px, 3vw, 34px); }
.s-section__head p { color: var(--muted); margin-top: 6px; }
.s-eyebrow { font-size: 13px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* ---------- Hero ---------- */
.s-hero { position: relative; background: #111; }
.s-hero img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.s-hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 0 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  color: #fff;
}
.s-hero__content h1 { color: #fff; font-size: clamp(28px, 5vw, 56px); max-width: 720px; margin-bottom: 18px; }
.s-hero picture { display: block; }
.s-hero__sub { color: rgba(255, 255, 255, .85); font-size: clamp(15px, 1.6vw, 19px); max-width: 620px; margin: -6px 0 22px; }
.s-hero__sub:last-child { margin-bottom: 0; }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575px) {
  .s-hero__content { position: static; background: var(--accent); padding: 24px 0; }
  .s-hero__content .s-btn { flex: 1; }
}

/* ---------- Kategorije ---------- */
.s-cats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.s-cats::-webkit-scrollbar { display: none; }
.s-cat { scroll-snap-align: start; }
.s-cat__img {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.s-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.s-cat:hover .s-cat__img img { transform: scale(1.04); }
.s-cat__img .s-cat__fallback { font-size: 28px; font-weight: 700; color: var(--line-strong); letter-spacing: -.03em; }
.s-cat__name { font-size: 15px; font-weight: 600; text-align: center; }

/* ---------- Kartica proizvoda ---------- */
.s-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
}
@media (min-width: 768px) { .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1200px) { .s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.s-card { position: relative; display: block; }
.s-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 14px;
}
.s-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.s-card__media .s-card__hover { opacity: 0; }
@media (hover: hover) {
  .s-card__media:hover img { transform: scale(1.03); }
  .s-card__media:hover .s-card__hover { opacity: 1; }
}
.s-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.s-badge--dark { background: var(--accent); }
.s-card__brand { font-size: 12px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; min-height: 18px; }
.s-card__name {
  -webkit-line-clamp: 2;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.s-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; }
.s-price--sale { color: var(--sale); }
.s-price__old { color: var(--subtle); font-weight: 400; text-decoration: line-through; font-size: .92em; }

/* Horizontalni klizač (carousel raspored sekcije) */
.s-rail { position: relative; }
.s-rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.s-rail__track::-webkit-scrollbar { display: none; }
.s-rail__track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .s-rail__track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; } }
@media (min-width: 1200px) { .s-rail__track { grid-auto-columns: calc((100% - 60px) / 4); } }
.s-rail__nav { display: flex; gap: 8px; }
.s-rail__nav button { border: 1px solid var(--line); }

/* ---------- Pogodnosti ---------- */
.s-perks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .s-perks { grid-template-columns: repeat(3, 1fr); } }
.s-perk {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.s-perk i { font-size: 22px; width: 28px; text-align: center; }
.s-perk strong { display: block; font-size: 15px; font-weight: 600; }
.s-perk span { font-size: 14px; color: var(--muted); }

/* ---------- CTA baner ---------- */
.s-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111 center / cover no-repeat;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: #fff;
}
.s-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)); }
.s-banner > * { position: relative; }
.s-banner h2 { color: #fff; font-size: clamp(26px, 4vw, 44px); margin-bottom: 18px; max-width: 640px; }

/* ---------- Utisci kupaca ---------- */
.s-reviews { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .s-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .s-reviews { grid-template-columns: repeat(3, 1fr); } }
.s-review { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.s-stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; }
.s-review p { font-size: 16px; line-height: 1.6; color: var(--text-2); flex: 1; }
.s-review__author { display: flex; align-items: center; gap: 12px; }
.s-review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--soft-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.s-review__author strong { display: block; font-size: 15px; }
.s-review__author span { font-size: 13px; color: var(--muted); }

/* ---------- Stranica: zaglavlje, putanja ---------- */
.s-page-head { padding: 40px 0 28px; }
.s-page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.s-page-head p { color: var(--muted); margin-top: 8px; }
.s-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.s-crumbs a:hover { color: var(--text); }
.s-crumbs span + span::before, .s-crumbs a + span::before, .s-crumbs a + a::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ---------- Prodavnica (lista + filteri) ---------- */
.s-shop { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 992px) { .s-shop { grid-template-columns: 240px 1fr; gap: 48px; } }
.s-filters { display: none; }
@media (min-width: 992px) { .s-filters { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; } }
.s-filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.s-filter-group:first-child { padding-top: 0; }
.s-filter-group h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.s-filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-2);
}
.s-filter-list a:hover { color: var(--text); }
.s-filter-list a.is-active { color: var(--text); font-weight: 600; }
.s-filter-list .s-sub { padding-left: 14px; font-size: 14px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip {
  min-width: 44px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.s-chip:hover { border-color: var(--text); color: var(--text); }
.s-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.s-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.s-shop-bar .s-count { font-size: 14px; color: var(--muted); }
.s-filter-btn { display: inline-flex; }
@media (min-width: 992px) { .s-filter-btn { display: none; } }
.s-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.s-active-filters a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px; }
.s-active-filters a:hover { background: var(--soft-2); }

.s-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.s-pager a, .s-pager span {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}
.s-pager a:hover { background: var(--soft); }
.s-pager .is-active { background: var(--accent); color: var(--on-accent); }

/* ---------- Stranica proizvoda ---------- */
.s-product { display: grid; gap: 28px; padding: 24px 0 72px; }
@media (min-width: 992px) { .s-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; padding-top: 32px; } }

.s-gallery { position: relative; min-width: 0; }
.s-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.s-gallery__track::-webkit-scrollbar { display: none; }
.s-gallery__slide { scroll-snap-align: start; aspect-ratio: 4 / 5; }
.s-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.s-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  display: none;
  place-items: center;
}
.s-gallery__arrow--prev { left: 16px; }
.s-gallery__arrow--next { right: 16px; }
@media (min-width: 992px) { .s-gallery--multi .s-gallery__arrow { display: grid; } }
.s-gallery__thumbs { display: none; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 992px) { .s-gallery__thumbs { display: flex; } }
.s-gallery__thumbs button {
  flex: 0 0 72px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--soft);
  overflow: hidden;
  opacity: .65;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.s-gallery__thumbs button.is-active { opacity: 1; border-color: var(--accent); }
.s-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.s-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.s-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color .2s, width .2s; }
.s-dots span.is-active { width: 18px; border-radius: 999px; background: var(--accent); }
@media (min-width: 992px) { .s-dots { display: none; } }

.s-buy { min-width: 0; }
@media (min-width: 992px) { .s-buy { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.s-buy__brand { font-size: 13px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.s-buy h1 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.s-buy .s-price { font-size: 22px; margin: 0 0 6px; }
.s-buy__save { display: inline-block; font-size: 13px; font-weight: 600; color: var(--sale); background: var(--danger-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.s-buy__lead { font-size: 16px; color: var(--text-2); margin: 18px 0 0; }

.s-option { margin-top: 28px; }
.s-option__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.s-option__label span { font-weight: 400; color: var(--muted); }
.s-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.s-size { position: relative; }
.s-size input { position: absolute; opacity: 0; pointer-events: none; }
.s-size label {
  min-width: 56px;
  height: 48px;
  padding: 0 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.s-size label:hover { border-color: var(--text); }
.s-size input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.s-size input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-size input:disabled + label {
  color: var(--subtle);
  border-color: var(--line);
  background: linear-gradient(to top left, transparent calc(50% - .5px), var(--line-strong) 50%, transparent calc(50% + .5px));
  cursor: not-allowed;
}
.s-option__error { display: none; font-size: 14px; color: var(--sale); margin-top: 10px; }
.s-option.has-error .s-option__error { display: block; }
.s-option.has-error .s-size label { border-color: var(--sale); }

.s-buy__actions { margin-top: 28px; }
.s-buy__perks { margin-top: 28px; padding: 6px 0; border-top: 1px solid var(--line); }
.s-buy__perks li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.s-buy__perks i { width: 22px; text-align: center; color: var(--text); }

.s-accordion { border-bottom: 1px solid var(--line); }
.s-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.s-accordion summary::-webkit-details-marker { display: none; }
.s-accordion summary i { transition: transform .2s var(--ease); font-size: 13px; }
.s-accordion[open] summary i { transform: rotate(45deg); }
.s-accordion__body { padding-bottom: 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ---------- Korpa ---------- */
.s-cart { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 992px) { .s-cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.s-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.s-cart-item:first-child { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .s-cart-item { grid-template-columns: 120px 1fr auto; align-items: center; } }
.s-cart-item__img { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--soft); overflow: hidden; }
.s-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.s-cart-item__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.s-cart-item__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.s-cart-item__controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.s-cart-item__total { font-size: 17px; font-weight: 600; grid-column: 2; }
@media (min-width: 768px) { .s-cart-item__total { grid-column: auto; text-align: right; } }

.s-qty { display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.s-qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 16px; }
.s-qty button:hover { background: var(--soft); }
.s-qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.s-qty input::-webkit-outer-spin-button, .s-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-remove { border: 0; background: none; padding: 0; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.s-remove:hover { color: var(--sale); }

.s-summary {
  background: var(--soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
@media (min-width: 992px) { .s-summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.s-summary h2 { font-size: 20px; margin-bottom: 18px; }
.s-summary .s-summary-row--total { border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 16px; }
.s-summary .s-btn { margin-top: 20px; }

/* ---------- Plaćanje (checkout) ---------- */
.s-checkout { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 992px) { .s-checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; } }
.s-form-section + .s-form-section { margin-top: 36px; }
.s-form-section h2 { font-size: 20px; margin-bottom: 18px; }
.s-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .s-fields { grid-template-columns: 1fr 1fr; } }
.s-field { display: flex; flex-direction: column; gap: 6px; }
.s-field--full { grid-column: 1 / -1; }
.s-field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.s-input, .s-select, .s-textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.s-textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.s-select {
  padding-right: 44px;
  background: var(--surface) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236e6e73' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m4 6 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 16px center / 16px;
}
.s-input:focus, .s-select:focus, .s-textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.s-input::placeholder, .s-textarea::placeholder { color: var(--subtle); }

.s-pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.s-pay-option i { font-size: 20px; }
.s-pay-option strong { display: block; font-size: 15px; }
.s-pay-option span { font-size: 14px; color: var(--muted); }

.s-order-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.s-order-item__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.s-order-item__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.s-order-item__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--muted);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.s-order-item__name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.s-order-item__meta { font-size: 13px; color: var(--muted); }
.s-order-item__price { font-size: 14px; font-weight: 600; }
.s-coupon { display: flex; gap: 10px; margin: 18px 0 6px; }
.s-coupon .s-input { height: 48px; text-transform: uppercase; }
.s-coupon .s-btn { min-height: 48px; margin-top: 0; }
.s-coupon-msg { font-size: 13px; min-height: 18px; }
.s-coupon-msg.is-error { color: var(--sale); }
.s-coupon-msg.is-ok { color: var(--success); }
.s-discount { color: var(--success); }
.s-summary-items { border-bottom: 1px solid var(--line-strong); padding-bottom: 12px; margin-bottom: 4px; }

/* ---------- Hvala ---------- */
.s-thanks { max-width: 560px; margin: 0 auto; padding: 80px 0 100px; text-align: center; }
.s-thanks__icon { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-size: 30px; }
.s-thanks h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.s-thanks p { color: var(--text-2); }
.s-thanks__order { display: inline-block; margin: 24px 0; padding: 12px 22px; border-radius: 999px; background: var(--soft); font-weight: 600; }
.s-thanks__info { margin: 8px 0 28px; padding: 22px; border-radius: var(--radius-lg); background: var(--soft); text-align: left; font-size: 15px; }
.s-thanks__info li { display: flex; gap: 12px; padding: 6px 0; color: var(--text-2); }
.s-thanks__info i { width: 20px; text-align: center; margin-top: 4px; color: var(--text); }

/* ---------- Pretraga / 404 ---------- */
.s-hero-text { padding: 56px 0 32px; text-align: center; }
.s-hero-text h1 { font-size: clamp(28px, 4vw, 44px); }
.s-hero-text p { color: var(--muted); margin-top: 10px; }
.s-searchbox { max-width: 560px; margin: 24px auto 0; position: relative; }
.s-searchbox .s-input { height: 56px; padding-left: 48px; border-radius: 999px; background: var(--soft); border-color: transparent; }
.s-searchbox .s-input:focus { background: var(--surface); }
.s-searchbox i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.s-404 { text-align: center; padding: 96px 0 120px; }
.s-404 .s-404__code { font-size: clamp(72px, 12vw, 140px); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--soft-2); }
.s-404 h1 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0; }
.s-404 p { color: var(--muted); margin-bottom: 28px; }
.s-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Stranice iz page buildera ---------- */
.s-prose { max-width: 760px; margin: 0 auto; padding: 24px 0 88px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.s-prose > * + * { margin-top: 20px; }
.s-prose h2 { font-size: 30px; color: var(--text); margin-top: 44px; }
.s-prose h3 { font-size: 24px; color: var(--text); margin-top: 36px; }
.s-prose h4 { font-size: 20px; color: var(--text); margin-top: 28px; }
.s-prose a:not(.s-btn) { text-decoration: underline; text-underline-offset: 3px; }
.s-callout { padding: 22px 24px; border-radius: var(--radius); background: var(--soft); }
.s-callout h5 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.s-faq { border-bottom: 1px solid var(--line); }
.s-faq summary { padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary i { transition: transform .2s var(--ease); font-size: 14px; margin-top: 6px; }
.s-faq[open] summary i { transform: rotate(45deg); }
.s-faq p { padding-bottom: 20px; }
.s-media-text { display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .s-media-text { grid-template-columns: 5fr 7fr; } .s-media-text--right .s-media-text__img { order: 2; } }
.s-media-text__img img { border-radius: var(--radius-lg); width: 100%; }
.s-quote { padding: 28px 32px; border-radius: var(--radius-lg); background: var(--soft); }
.s-quote p { font-size: 20px; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.s-quote footer { margin-top: 12px; font-size: 14px; color: var(--muted); }
.s-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.s-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-contact { padding: 28px; border-radius: var(--radius-lg); background: var(--soft); }
.s-contact .s-input, .s-contact .s-textarea { background: var(--surface); }
.s-contact .s-fields { grid-template-columns: 1fr; }
@media (min-width: 576px) { .s-contact .s-fields { grid-template-columns: 1fr 1fr; } }
.s-align-left { text-align: left; }
.s-align-center { text-align: center; }
.s-align-right { text-align: right; }

/* ---------- Footer ---------- */
.s-footer { background: var(--soft); color: var(--text-2); font-size: 14px; margin-top: 0; }
.s-footer__top { display: grid; gap: 40px; padding: 64px 0 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .s-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.s-footer__brand img { height: 72px; width: auto; margin-bottom: 16px; }
.s-footer__brand p { color: var(--muted); max-width: 300px; }
.s-footer h3 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.s-footer li + li { margin-top: 10px; }
.s-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.s-footer__contact li { display: flex; gap: 10px; align-items: center; }
.s-footer__contact i { width: 16px; color: var(--muted); }
.s-newsletter p { color: var(--muted); margin-bottom: 14px; }
.s-newsletter form { position: relative; }
.s-newsletter .s-input { height: 50px; border-radius: 999px; padding-right: 56px; background: var(--surface); }
.s-newsletter button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.s-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.s-socials { display: flex; gap: 6px; }
.s-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--text); }
.s-socials a:hover { background: var(--soft-2); text-decoration: none; }

/* Dugmad u donjem desnom uglu (na vrh, WhatsApp, Viber), jedno iznad drugog */
.s-float-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.s-float-stack > * { pointer-events: auto; }
.s-float-btn {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.s-float-btn:hover { transform: scale(1.06); }
.s-float-btn:hover { text-decoration: none; }
.s-whatsapp { background: #25d366; color: #fff; font-size: 28px; }
.s-whatsapp:hover { color: #fff; }
.s-viber { background: #7360f2; color: #fff; font-size: 27px; }
.s-viber:hover { color: #fff; }
/* Dugme "na vrh" se pojavljuje tek posle skrolovanja; dok je skriveno ne zauzima mesto */
.s-float-stack .s-to-top { width: 44px; height: 44px; background: var(--surface); color: var(--text); font-size: 16px; display: none; }
.s-float-stack .s-to-top.is-visible { display: grid; }
@media (max-width: 575px) {
  .s-float-stack { right: 14px; bottom: 14px; gap: 10px; }
  .s-float-btn { width: 50px; height: 50px; }
}

/* =========================================================
   Prepravke: veći logo, dugmad na kartici, zoom
   ========================================================= */

/* Veći logo na desktopu */
@media (min-width: 992px) {
  :root { --header-h: 84px; }
  .s-logo img { height: 64px; }
}

/* Dugmad na kartici proizvoda */
.s-card__actions { margin-top: 14px; }
.s-card__actions form { margin: 0; }
.s-quick { position: relative; }
.s-quick > summary { list-style: none; }
.s-quick > summary::-webkit-details-marker { display: none; }
.s-quick[open] > summary { background: var(--soft-2); border-color: var(--soft-2); color: var(--text); }
.s-quick__panel {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.s-quick__label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.s-quick__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.s-quick__sizes button {
  height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.s-quick__sizes button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.s-quick__sizes button:disabled {
  color: var(--subtle);
  border-color: var(--line);
  background: linear-gradient(to top left, transparent calc(50% - .5px), var(--line-strong) 50%, transparent calc(50% + .5px));
  cursor: not-allowed;
}

/* Dugme "Dodaj u korpu" na stranici proizvoda — normalne veličine */
.s-buy__actions .s-btn { width: 100%; }
@media (min-width: 576px) { .s-buy__actions .s-btn { width: auto; min-width: 240px; } }

/* Zoom slike proizvoda */
.s-gallery__main { position: relative; }
.s-gallery__slide { position: relative; overflow: hidden; cursor: zoom-in; }
.s-gallery__slide img { transition: transform .2s var(--ease); }
@media (hover: hover) and (min-width: 992px) {
  .s-gallery__slide.is-zooming img { transform: scale(2.2); transition: none; }
}
.s-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  pointer-events: none;
  box-shadow: var(--shadow);
}

.s-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--surface);
  display: none;
}
.s-lightbox.is-open { display: block; }
.s-lightbox__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  touch-action: none;
}
.s-lightbox__stage.is-zoomed { cursor: zoom-out; }
.s-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .25s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.s-lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.s-lightbox__btn:hover { background: var(--soft); }
.s-lightbox__close { top: 16px; right: 16px; }
.s-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.s-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.s-lightbox__count { position: absolute; top: 28px; left: 24px; z-index: 2; font-size: 14px; font-weight: 600; color: var(--muted); }
.s-lightbox__help { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); pointer-events: none; }

/* Kockast stil: dugmad i kontrole bez zaobljenja */
.s-btn, .s-icon-btn, .s-nav a, .s-nav button, .s-chip, .s-pager a, .s-pager span, .s-qty,
.s-active-filters a, .s-size label, .s-input, .s-select, .s-textarea, .s-newsletter .s-input,
.s-newsletter button, .s-searchbox .s-input, .s-thanks__order, .s-buy__save, .s-badge,
.s-gallery__arrow, .s-gallery__thumbs button, .s-pay-option, .s-mini-item__remove,
.s-mega, .s-mega ul a, .s-toast, .s-coupon .s-input, .s-dots span.is-active {
  border-radius: 0 !important;
}

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

/* ---------- Kolačići (saglasnost) ---------- */
.s-cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 55;
  width: min(420px, calc(100vw - 40px));
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.s-cookie[hidden] { display: none !important; }
.s-cookie p { margin: 0 0 14px; color: var(--text); line-height: 1.5; }
.s-cookie a { color: var(--text); text-decoration: underline; }
.s-cookie__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 575px) {
  .s-cookie { left: 0; right: 0; bottom: 0; width: 100%; border-width: 1px 0 0; }
  .s-cookie__actions .s-btn { flex: 1; }
}
.s-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.s-legal-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.s-legal-note a { color: var(--text); text-decoration: underline; }
/* ---------- "Javi mi kad stigne" i tabela veličina ---------- */
.s-notify { margin-top: 14px; border: 1px solid var(--line); padding: 12px 14px; }
.s-notify summary { cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.s-notify summary::-webkit-details-marker { display: none; }
.s-notify summary i { margin-right: 6px; }
.s-notify__form { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; margin-top: 12px; position: relative; }
@media (max-width: 575px) { .s-notify__form { grid-template-columns: 1fr; } }
.s-size-chart-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--text); text-decoration: underline; cursor: pointer; margin-left: auto; }
.s-modal__box--wide { max-width: 640px; }
.s-size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 12px; }
.s-size-table th, .s-size-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: center; }
.s-size-table th { background: var(--soft); font-weight: 600; }
.s-size-table td:first-child, .s-size-table th:first-child { text-align: left; font-weight: 600; }
.s-size-table-wrap { overflow-x: auto; }
/* ---------- Ocena proizvoda ---------- */
.s-rating-link { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.s-rating-link .s-stars { color: #f5a623; }
.s-rating-link:hover { color: var(--text); }
.s-rate { display: grid; gap: 20px; }
.s-rate__item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.s-rate__item img { width: 72px; height: 72px; object-fit: cover; }
.s-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.s-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.s-rate__stars label { font-size: 26px; color: var(--line-strong); cursor: pointer; line-height: 1; }
.s-rate__stars input:checked ~ label, .s-rate__stars label:hover, .s-rate__stars label:hover ~ label { color: #f5a623; }
.s-rate__stars input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }
/* ---------- Pregled teme (vidi samo admin) ---------- */
.s-theme-preview {
  position: relative;
  z-index: 51;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px var(--gutter);
  background: #2563eb;
  color: #fff;
  font: 500 13px/1.4 "Inter", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.s-theme-preview a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 14px; }
.s-theme-preview i { margin-right: 6px; }
/* Hero bez slike (nova prodavnica pre postavljanja slike): tekst na tamnoj podlozi */
.s-hero--tekst .s-hero__content { position: static; background: var(--accent); padding: 96px 0 72px; }
.s-hero--tekst .s-hero__content h1 { color: var(--on-accent); }
.s-hero--tekst .s-hero__sub { color: var(--on-accent); opacity: .8; }