:root {
  --bg: #f4f4f4;
  --bg-accent: #ffffff;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e0e0e0;
  --brand: #d00000;
  --brand-dark: #a30000;
  --danger: #d00000;
  --ok: #1f1f1f;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f4f4 45%);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.container {
  width: calc(100% - 2rem);
  max-width: 1320px;
  margin-inline: auto;
}
.muted { color: var(--muted); }
.hidden { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
}
.brand {
  font-family: var(--display);
  font-size: 1.65rem; font-weight: 700;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
  max-width: min(280px, 48vw);
}
.brand-logo {
  display: block;
  max-height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav-muted { opacity: 0.65; font-size: 0.95rem; }

.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}
.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.nav-dropdown-caret {
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.nav-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 40;
  display: grid;
  gap: 0.15rem;
}
.nav-dropdown-menu[hidden] {
  display: none !important;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: var(--brand);
}
.nav-dropdown-empty {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: 0.15s ease;
}
.cart-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cart-toggle-icon {
  display: inline-flex;
  line-height: 0;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[hidden] { display: none !important; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.is-open {
  transform: translateX(0);
}
body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.cart-drawer-close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
}
.cart-drawer-empty { margin-bottom: 1rem; }

.mini-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.mini-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.mini-cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}
.mini-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-cart-info a {
  color: var(--ink);
  font-weight: 600;
}
.mini-cart-info a:hover { color: var(--brand); }
.mini-cart-line-total {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 1rem 1.2rem 1.25rem;
  display: grid;
  gap: 0.65rem;
  background: #fff;
}
.mini-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
}
.cart-drawer-cta { width: 100%; }
.site-main { padding: 1.5rem 0 3rem; flex: 1; }
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  background: #1f1f1f;
  color: #d8d8d8;
}
.footer-top {
  padding: 2.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand:hover { color: #fff; opacity: 0.9; }
.footer-tagline {
  margin: 0.65rem 0 1rem;
  line-height: 1.55;
  color: #b8b8b8;
  max-width: 28rem;
}
.footer-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #e8e8e8;
  font-size: 0.9rem;
}
.footer-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-links a,
.footer-contact a {
  color: #d0d0d0;
  font-weight: 500;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}
.footer-contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  margin-bottom: 0.1rem;
}
.footer-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #9a9a9a;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.25rem;
  background: #181818;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #9a9a9a;
}
.footer-bottom-inner p { margin: 0; }
.footer-legal-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-legal-mini a {
  color: #c8c8c8;
}
.footer-legal-mini a:hover { color: #fff; }

.legal-page { max-width: 760px; }
.legal-page-head { margin-bottom: 1.5rem; }
.legal-content.prose h2 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
  font-family: var(--font);
}
.legal-content.prose p,
.legal-content.prose li {
  color: var(--ink);
  line-height: 1.65;
}
.legal-content.prose ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}
.legal-back { margin-top: 2rem; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Stranica proizvoda — marketplace detalj
   ========================================================= */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0;
  color: #8a8a8a;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
}
.product-breadcrumb a { color: #666; }
.product-breadcrumb a:hover { color: var(--brand); }
.product-breadcrumb strong {
  color: #888;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 2rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}
.product-market-gallery { min-width: 0; }
.product-gallery-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.85rem;
}
.product-gallery-shell:not(:has(.product-gallery-thumbs)) {
  grid-template-columns: 1fr;
}
.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 610px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.product-gallery-thumb {
  width: 72px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #f7f7f7;
  cursor: pointer;
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-thumb.is-active,
.product-gallery-thumb:hover {
  border: 2px solid var(--brand);
}
.product-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 7px;
  background: #f6f6f6;
}
.product-gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-gallery-discount {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  z-index: 2;
  padding: 0.38rem 0.58rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.product-gallery-zoom {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #333;
  cursor: pointer;
}
.product-gallery-zoom:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.product-market-info {
  position: sticky;
  top: 135px;
  min-width: 0;
  padding: 0.25rem 0.35rem 0;
}
.product-market-category {
  margin-bottom: 0.55rem;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-market-info h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.product-market-code {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: #888;
  font-size: 0.72rem;
}
.product-market-code .is-available { color: #188443; }
.product-market-code .is-unavailable { color: var(--brand); }
.product-market-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.product-market-rating > span {
  color: #ff9e00;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.product-market-rating small { color: #888; font-size: 0.7rem; }

.product-market-price {
  position: relative;
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 7px;
  background: #fff7d6;
  border-left: 4px solid var(--brand);
}
.product-market-price small {
  color: #777;
  font-size: 0.72rem;
}
.product-market-price strong {
  color: var(--brand);
  font-size: 2rem;
  line-height: 1.1;
}
.product-market-price > span {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}
.product-market-price em {
  color: #888;
  font-size: 0.66rem;
  font-style: normal;
}

.product-market-shipping {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
}
.product-market-shipping > div {
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
}
.product-shipping-icon {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}
.product-market-shipping p {
  display: grid;
  gap: 0.08rem;
  margin: 0;
}
.product-market-shipping strong { font-size: 0.76rem; }
.product-market-shipping small { color: #777; font-size: 0.68rem; }

.product-market-buy {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}
.product-market-buy > label {
  color: #555;
  font-size: 0.72rem;
}
.product-market-buy-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 0.7rem;
}
.quantity-stepper {
  display: grid;
  grid-template-columns: 37px 1fr 37px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.quantity-stepper button {
  border: 0;
  background: #f5f5f5;
  color: #333;
  font-size: 1.15rem;
  cursor: pointer;
}
.quantity-stepper button:hover { background: #ececec; }
.quantity-stepper input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-inline: 1px solid #ddd;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button { appearance: none; }
.product-add-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.product-add-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.product-add-button:disabled {
  background: #aaa;
  cursor: not-allowed;
  transform: none;
}
.product-market-trust {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.8rem;
  color: #777;
  font-size: 0.64rem;
}

.product-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
  margin-top: 1.2rem;
}
.product-description-card,
.product-spec-card {
  padding: 1.3rem;
  border: 1px solid #e4e4e4;
  border-radius: 9px;
  background: #fff;
}
.product-details-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e7e7e7;
}
.product-details-title > span {
  width: 5px;
  height: 23px;
  border-radius: 3px;
  background: var(--brand);
}
.product-details-title h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
}
.product-description-text {
  color: #555;
  font-size: 0.91rem;
  line-height: 1.75;
}
.product-spec-card h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
}
.product-spec-card dl { margin: 0; }
.product-spec-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.76rem;
}
.product-spec-card dt { color: #777; }
.product-spec-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.product-help-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.3rem;
  border-radius: 8px;
  background: #f2f2f2;
}
.product-help-strip > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-help-strip > div > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.product-help-strip p { display: grid; margin: 0; }
.product-help-strip strong { font-size: 0.8rem; }
.product-help-strip small { color: #777; font-size: 0.68rem; }
.product-help-strip > a {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 750;
}
.product-related { margin-bottom: 2rem; }

.product-image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0,0,0,0.88);
}
.product-image-modal[hidden] { display: none !important; }
.product-image-modal img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}
.product-image-modal button {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.3rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .product-market-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 1rem;
  }
  .product-market-info { position: static; }
  .product-details-layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 780px) {
  .product-market-layout { grid-template-columns: 1fr; }
  .product-details-layout { grid-template-columns: 1fr; }
  .product-gallery-shell {
    grid-template-columns: 1fr;
  }
  .product-gallery-thumbs {
    grid-row: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .product-market-info { padding-top: 0.5rem; }
}
@media (max-width: 520px) {
  .product-breadcrumb { margin-block: 0.7rem; }
  .product-market-layout {
    margin-inline: -0.35rem;
    padding: 0.75rem;
    border-radius: 7px;
  }
  .product-gallery-main { aspect-ratio: 1 / 1; }
  .product-market-buy-row { grid-template-columns: 1fr; }
  .quantity-stepper { width: 130px; }
  .product-market-trust {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-help-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   Katalog — marketplace lista s filterima
   ========================================================= */
.catalog-market-page { padding-top: 0.2rem; }
.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.8rem 0;
  color: #999;
  font-size: 0.7rem;
}
.catalog-breadcrumb a { color: #777; }
.catalog-breadcrumb a:hover { color: var(--brand); }
.catalog-breadcrumb strong { color: #555; }
.catalog-market-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(300px, 1.45fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1rem;
}
.catalog-market-heading h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.catalog-market-heading > div > p { margin-top: 0.2rem; }
.catalog-market-heading > p {
  margin: 0;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.55;
}

.catalog-category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.catalog-category-strip a {
  min-width: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.catalog-category-strip a:hover,
.catalog-category-strip a.is-active {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}
.catalog-category-strip a > span {
  width: 66px;
  aspect-ratio: 1.3 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f3f3f3;
}
.catalog-category-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-category-strip strong {
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.catalog-market-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.catalog-market-sidebar {
  position: sticky;
  top: 130px;
  min-width: 0;
}
.catalog-market-filters {
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
}
.catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #e8e8e8;
}
.catalog-filter-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
}
.catalog-filter-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}
.catalog-filter-search {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #ececec;
  color: #555;
  font-size: 0.7rem;
}
.catalog-filter-search input {
  padding: 0.58rem 0.7rem;
  border-radius: 5px;
  font-size: 0.72rem;
}
.catalog-filter-group {
  border-bottom: 1px solid #e8e8e8;
}
.catalog-filter-group:last-child { border-bottom: 0; }
.catalog-filter-group summary {
  position: relative;
  padding: 0.85rem 2rem 0.85rem 0.9rem;
  list-style: none;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.catalog-filter-group summary::-webkit-details-marker { display: none; }
.catalog-filter-group summary::after {
  content: "+";
  position: absolute;
  right: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
}
.catalog-filter-group[open] summary::after { content: "−"; }
.catalog-filter-options {
  display: grid;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}
.catalog-filter-options-scroll {
  max-height: 245px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.catalog-filter-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}
.catalog-filter-options input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}
.catalog-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}
.catalog-price-inputs label {
  gap: 0.3rem;
  color: #777;
  font-size: 0.65rem;
}
.catalog-price-inputs input {
  min-width: 0;
  padding: 0.55rem;
  border-radius: 5px;
  font-size: 0.7rem;
}

.catalog-market-main { min-width: 0; }
.catalog-market-toolbar {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e4e4e4;
  border-radius: 7px;
  background: #fff;
}
.catalog-market-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.catalog-market-toolbar strong { font-size: 0.78rem; }
.catalog-market-toolbar > div span {
  color: #888;
  font-size: 0.67rem;
}
.catalog-market-toolbar > label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #777;
  font-size: 0.68rem;
}
.catalog-market-toolbar select {
  width: auto;
  min-width: 155px;
  padding: 0.48rem 2rem 0.48rem 0.65rem;
  border-radius: 5px;
  font-size: 0.7rem;
}
.catalog-market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.catalog-market-grid .product-card {
  min-width: 0;
  border-radius: 7px;
  box-shadow: 0 2px 9px rgba(0,0,0,0.045);
}
.catalog-market-grid .product-card:hover {
  border-color: #ccc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.catalog-market-grid .product-media { background: #f6f6f6; }
.catalog-market-grid .product-body {
  padding: 0.7rem;
}
.catalog-market-grid .product-body .meta {
  font-size: 0.62rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.catalog-market-grid .product-body h3 {
  min-height: 2.6em;
  margin-bottom: 0.2rem;
  font-family: var(--font);
  font-size: 0.76rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.catalog-market-grid .price { font-size: 0.82rem; }
.catalog-market-grid .product-body form { margin-top: auto; }
.catalog-market-grid .product-body .btn {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 5px;
  font-size: 0.7rem;
}
.catalog-results {
  transition: opacity 0.2s ease;
}
.catalog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem;
  color: #777;
  font-size: 0.75rem;
}
.catalog-loading[hidden] { display: none !important; }
.catalog-loading > span {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sync-spin 0.7s linear infinite;
}
.catalog-mobile-actions { display: none; }

@media (max-width: 1100px) {
  .catalog-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-category-strip { grid-template-columns: repeat(4, 1fr); }
  .catalog-category-strip a:nth-child(5) { display: none; }
}
@media (max-width: 850px) {
  .catalog-market-heading { grid-template-columns: 1fr; gap: 0.5rem; }
  .catalog-category-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
  }
  .catalog-category-strip a {
    flex: 0 0 210px;
    scroll-snap-align: start;
  }
  .catalog-category-strip a:nth-child(5) { display: grid; }
  .catalog-market-layout { grid-template-columns: 1fr; }
  .catalog-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
  }
  .catalog-mobile-actions button {
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 5px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
  }
  .catalog-mobile-actions span { color: #777; font-size: 0.7rem; }
  .catalog-market-sidebar {
    display: none;
    position: static;
  }
  .catalog-market-sidebar.is-open { display: block; }
  .catalog-market-toolbar > div { display: none; }
}
@media (max-width: 600px) {
  .catalog-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .catalog-market-toolbar { justify-content: flex-end; }
  .catalog-market-toolbar > label > span { display: none; }
  .catalog-market-toolbar select { min-width: 175px; }
  .catalog-market-grid .product-body { padding: 0.6rem; }
  .catalog-market-grid .product-body h3 { font-size: 0.72rem; }
  .catalog-market-grid .product-body .btn { font-size: 0.66rem; }
}

/* Na mobitelu sve liste artikala ostaju pregledne u dvije kolone. */
@media (max-width: 600px) {
  .market-product-row-five,
  .market-product-row-four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
  .market-product-row .product-card {
    display: flex;
    min-width: 0;
    width: auto;
    flex: initial;
  }
  .market-product-row-five .product-card:nth-child(5) {
    display: flex;
  }
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
}
.hero-copy { max-width: 40rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; color: var(--brand); font-weight: 600; margin: 0 0 0.5rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 0.6rem; color: var(--ink); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; }
.hero-actions, .cart-actions, .chip-row, .stat-row, .actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}

.home-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(320px, 58vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #1a1a1a;
}
.home-banner-media {
  position: absolute;
  inset: 0;
}
.home-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: home-banner-zoom 18s ease-out forwards;
}
.home-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.55) 42%, rgba(12, 12, 12, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.55) 0%, transparent 45%);
}
.home-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  min-height: inherit;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.home-banner-inner {
  max-width: 34rem;
  animation: home-banner-rise 0.9s ease-out both;
}
.home-banner-brand {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.home-banner-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: #fff;
}
.home-banner-text {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}
.home-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.home-banner .btn-primary {
  box-shadow: 0 10px 28px rgba(208, 0, 0, 0.35);
}
@keyframes home-banner-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}
@keyframes home-banner-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 700px) {
  .home-banner {
    min-height: clamp(280px, 52vh, 420px);
    align-items: end;
  }
  .home-banner-media::after {
    background:
      linear-gradient(180deg, rgba(12, 12, 12, 0.25) 0%, rgba(12, 12, 12, 0.82) 70%),
      linear-gradient(90deg, rgba(12, 12, 12, 0.55), transparent 70%);
  }
  .home-banner-inner {
    max-width: none;
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px;
  padding: 0.65rem 1.1rem; font: inherit; font-weight: 600;
  cursor: pointer; transition: 0.15s ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.section { margin-top: 2rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 1rem;
}
.chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 0.9rem; color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-media, .product-placeholder {
  aspect-ratio: 1 / 1;
  background: #ececec;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-placeholder {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--ink);
}
.product-placeholder.large { min-height: 320px; font-size: 5rem; }
.product-body { padding: 1rem; display: grid; gap: 0.55rem; }
.product-body h3 { font-size: 1.1rem; }
.product-body h3 a { color: inherit; }
.product-body h3 a:hover { color: var(--brand); }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.price { font-weight: 700; margin: 0; color: var(--ink); }
.price.xl { font-size: 1.4rem; }
.price-label {
  display: block;
  margin-bottom: 0.12rem;
  color: #777;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}
.price-regular {
  display: inline-flex;
  width: fit-content;
  min-width: 7.5rem;
  flex-direction: column;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: transparent;
}
.price-value {
  color: #151515;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.price-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
}
.price-old-group,
.price-new-group {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.price-old-group {
  padding: 0.35rem 0.2rem 0.35rem 0;
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9em;
}
.price-new-group {
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
}
.price-new-group .price-label { color: var(--brand); }
.price-new {
  color: var(--brand);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.badge-sale {
  display: inline-block;
  margin: 0.35rem 0 0;
  background: #ffe566;
  color: var(--brand);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #f0c800;
}

.filter-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 5.5rem;
}
.catalog-filters {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.catalog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.catalog-sidebar-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.catalog-filters label {
  min-width: 0;
  width: 100%;
}
.catalog-filters .filter-search {
  min-width: 0;
}
.filter-group-title {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.filter-checks {
  display: grid;
  gap: 0.55rem;
}
.catalog-filters .filter-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: auto;
  padding: 0;
  font-weight: 500;
}
.catalog-filters .filter-check input {
  width: auto;
}
.catalog-main {
  min-width: 0;
}
.catalog-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.catalog-loading {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.catalog-empty {
  padding: 1.5rem 0;
}

@media (max-width: 860px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
}
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.85rem; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(208, 0, 0, 0.25);
  border-color: var(--brand);
}
.filter-bar input, .filter-bar select { width: auto; min-width: 180px; }
label { display: grid; gap: 0.35rem; font-weight: 500; }
.form-stack { display: grid; gap: 0.9rem; max-width: 520px; }
.form-narrow { max-width: 560px; }
.form-wide { max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.checkbox input { width: auto; }

.gallery { display: grid; gap: 0.75rem; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ececec;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}
.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #ececec;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--brand);
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0 1rem;
}
.admin-gallery-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.admin-gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-gallery-item.is-primary {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.admin-gallery-item figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.55rem;
}
.admin-image-source {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.admin-image-source:last-of-type { border-bottom: 0; }
.admin-image-source h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font);
  font-size: 0.95rem;
}
.image-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-bottom: 0.85rem;
}
.admin-library-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.65rem;
  max-height: 390px;
  padding: 0.2rem;
  overflow-y: auto;
}
.admin-library-option {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.admin-library-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.admin-library-option input {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 1;
  width: auto;
}
.admin-library-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.admin-library-option span {
  display: block;
  padding: 0.4rem;
  overflow: hidden;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-detail {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.buy-form { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; margin: 1rem 0; }
.buy-form label { width: 120px; }
.checkout-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.3fr 0.9fr;
}
.totals, .login-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
.totals > div, .summary-line {
  display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0;
}
.total-row { border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem; }
.sticky { position: sticky; top: 5rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qty-input { width: 80px; }
.order-number {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  color: var(--brand);
}
.thanks { max-width: 40rem; }

.alert {
  padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-success { background: #f5f5f5; border-color: #cfcfcf; color: var(--ink); }
.alert-error { background: #ffe8e8; border-color: #f0b4b4; color: var(--danger); }

.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #f4f4f4;
}
.admin-mobile-header,
.admin-menu-backdrop,
.admin-menu-close { display: none; }
.admin-sidebar {
  background: #1f1f1f; color: #f0f0f0;
  padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-sidebar .brand { color: #fff; }
.admin-sidebar nav { display: grid; gap: 0.35rem; }
.admin-sidebar a {
  color: #cfcfcf; padding: 0.55rem 0.7rem; border-radius: 8px;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.logout-form { margin-top: auto; }
.admin-sidebar .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.25); width: 100%; }
.admin-sidebar .btn-ghost:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.admin-content { padding: 1.5rem; }
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1rem;
}
.admin-filters {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(120px, 1fr)) auto auto;
  align-items: end;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.admin-filters input,
.admin-filters select {
  width: 100%;
  margin: 0;
}
.admin-filters .filter-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  padding-bottom: 0.55rem;
}
.admin-filters .filter-check input {
  width: auto;
}
.admin-filter-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 0.15rem;
}
.admin-result-count { margin: 0 0 0.75rem; }
.th-select,
.td-select {
  width: 42px;
  text-align: center !important;
}
.th-select input,
.td-select input { width: auto; }
.th-thumb, .td-thumb {
  width: 56px;
  padding-right: 0.25rem !important;
}
.admin-product-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f3f3f3;
}
.admin-product-thumb--empty {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}
.pricing-mode-label {
  display: block;
  margin-top: 0.2rem;
  white-space: nowrap;
}
.admin-bulk-dialog {
  width: min(650px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}
.admin-bulk-dialog::backdrop {
  background: rgba(18,18,18,0.62);
  backdrop-filter: blur(2px);
}
.admin-bulk-dialog form { padding: 1.25rem; }
.bulk-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.bulk-dialog-head h2 { margin: 0; }
.bulk-dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.bulk-dialog-close:hover { background: #ddd; }
.bulk-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .admin-filters {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter-search,
  .admin-filter-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .admin-head { align-items: flex-start; flex-direction: column; }
  .admin-bulk-dialog .form-row { grid-template-columns: 1fr; }
  .bulk-dialog-actions { flex-direction: column-reverse; }
  .bulk-dialog-actions .btn { width: 100%; }
}
.import-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.import-meta dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.15rem;
}
.import-meta dd {
  margin: 0;
  font-weight: 600;
}

.sync-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(3px);
  padding: 1.5rem;
}
.sync-loader[hidden] {
  display: none !important;
}
.sync-loader-card {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.sync-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border: 3px solid #ececec;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sync-spin 0.8s linear infinite;
}
.sync-loader-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.sync-loader-text {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.sync-loader-elapsed {
  margin: 0;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
body.sync-loading {
  overflow: hidden;
}
@keyframes sync-spin {
  to { transform: rotate(360deg); }
}

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; min-width: 140px;
}
.stat span { display: block; color: var(--muted); font-size: 0.9rem; }
.stat strong { font-size: 1.6rem; font-family: var(--display); }
.admin-two-col {
  display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 0.8fr;
}
.badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; background: #ececec; color: var(--ink);
}
.badge-new {
  background: #ffe8e8;
  color: #a30000;
  border: 1px solid #f0b4b4;
}
.badge-processing {
  background: #fff1cc;
  color: #7a5a00;
  border: 1px solid #e6d089;
}
.badge-shipped {
  background: #e8eef5;
  color: #1f3a5f;
  border: 1px solid #b8c7da;
}
.badge-completed {
  background: #e5f6ea;
  color: #1a7a3a;
  border: 1px solid #a8d9b5;
}
.badge-cancelled {
  background: #f0f0f0;
  color: #6b6b6b;
  border: 1px solid #d0d0d0;
  text-decoration: line-through;
}
.badge-primary-img {
  background: #ffe8e8;
  color: var(--brand);
  border: 1px solid #f0b4b4;
}
.steps { padding-left: 1.2rem; }
.login-box { max-width: 420px; margin: 2rem auto; }
.logo-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  background: #fff;
}
.logo-fieldset legend { padding: 0 0.35rem; font-weight: 600; }
.admin-pricing-box input[readonly] {
  background: #f0f1f2;
  color: #555;
  cursor: not-allowed;
}
.pricing-mode-options {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f8f8;
}
.logo-preview {
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px dashed var(--line);
  display: inline-flex;
}
.logo-preview img {
  max-height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .product-detail, .checkout-grid, .admin-two-col {
    grid-template-columns: 1fr;
  }
  .admin-body {
    display: block;
    min-width: 0;
  }
  .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 58px;
    padding: 0.5rem 1rem;
    background: #1f1f1f;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
  }
  .admin-menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
  }
  .admin-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }
  .admin-mobile-brand {
    color: #fff;
    font-family: var(--display);
    font-weight: 750;
  }
  .admin-mobile-shop {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 7px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(300px, 86vw);
    height: 100dvh;
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(-102%);
    box-shadow: 12px 0 35px rgba(0,0,0,0.28);
    transition: transform 0.22s ease;
  }
  .admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-menu-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
  }
  .admin-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    visibility: hidden;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .admin-menu-open .admin-menu-backdrop {
    visibility: visible;
    opacity: 1;
  }
  .admin-menu-open { overflow: hidden; }
  .admin-sidebar nav a { padding: 0.75rem; }
  .admin-content {
    min-width: 0;
    padding: 1rem;
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-mobile-header { padding-inline: 0.65rem; }
  .admin-content { padding: 0.75rem; }
  .admin-content h1 { font-size: 1.55rem; }
  .admin-content h2 { font-size: 1.2rem; }
  .admin-filters {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }
  .admin-filter-search,
  .admin-filter-actions { grid-column: auto; }
  .admin-filter-actions .btn { flex: 1; }
  .admin-content .table { min-width: 720px; }
  .admin-content .table th,
  .admin-content .table td { padding: 0.6rem; }
  .form-wide,
  .form-narrow { max-width: 100%; }
  .admin-gallery-grid,
  .admin-gallery-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Hyper M — početna stranica
   Editorial retail, oštrije linije i asimetričan raspored.
   ========================================================= */
.hm-kicker {
  margin: 0 0 0.7rem;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hm-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.hm-text-link span {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.hm-text-link:hover { color: var(--brand); }
.hm-text-link:hover span { transform: translate(2px, -2px); }
.hm-text-link-light { color: #fff; }
.hm-text-link-light:hover { color: #fff; opacity: 0.8; }

.hm-hero {
  position: relative;
  width: 100vw;
  min-height: 650px;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(500px, 1.13fr);
  overflow: hidden;
  background: #f2f0ec;
}
.hm-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--brand);
  z-index: 5;
}
.hm-hero-copy {
  align-self: center;
  max-width: 650px;
  padding: 5.5rem 3rem 4.5rem max(2rem, calc((100vw - min(1320px, calc(100vw - 2rem))) / 2));
  position: relative;
  z-index: 3;
}
.hm-hero-copy h1 {
  margin: 0 0 1.25rem;
  color: #171717;
  font-family: var(--font);
  font-size: clamp(3.2rem, 6.1vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
}
.hm-hero-copy h1 span {
  color: var(--brand);
  -webkit-text-stroke: 1px var(--brand);
}
.hm-hero-lead {
  max-width: 33rem;
  margin: 0 0 1.7rem;
  color: #4d4d4d;
  font-size: 1.08rem;
  line-height: 1.65;
}
.hm-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hm-hero-actions .btn {
  border-radius: 3px;
  padding: 0.82rem 1.45rem;
}
.hm-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 590px;
  margin-top: 3.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid #c9c6c0;
}
.hm-hero-proof div {
  display: grid;
  gap: 0.12rem;
  padding-right: 1rem;
}
.hm-hero-proof div + div {
  padding-left: 1rem;
  border-left: 1px solid #c9c6c0;
}
.hm-hero-proof strong {
  font-size: 1rem;
  line-height: 1.1;
}
.hm-hero-proof span {
  color: #777;
  font-size: 0.76rem;
}

.hm-hero-stage {
  position: relative;
  min-height: 650px;
  background: #d00000;
  isolation: isolate;
}
.hm-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,0.035) 46px 47px),
    linear-gradient(145deg, rgba(0,0,0,0.04), rgba(0,0,0,0.23));
  z-index: -2;
}
.hm-hero-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 7%;
  bottom: 7%;
  height: 16%;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  filter: blur(32px);
  z-index: -1;
}
.hm-hero-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -51%);
  color: rgba(255,255,255,0.08);
  font-family: var(--font);
  font-size: min(49vw, 650px);
  font-weight: 900;
  line-height: 0.8;
  user-select: none;
}
.hm-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
}
.hm-orbit-one {
  width: 480px;
  height: 480px;
  top: 10%;
  right: 7%;
}
.hm-orbit-two {
  width: 620px;
  height: 250px;
  left: 4%;
  top: 30%;
  transform: rotate(-24deg);
}
.hm-product {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 28px 25px rgba(0,0,0,0.3));
}
.hm-product-main {
  width: min(52%, 455px);
  max-height: 78%;
  left: 8%;
  bottom: 3%;
  transform: rotate(-7deg);
  z-index: 2;
}
.hm-product-charger {
  width: min(31%, 260px);
  max-height: 42%;
  right: 8%;
  bottom: 9%;
  transform: rotate(7deg);
  z-index: 3;
}
.hm-product-cable {
  width: min(23%, 180px);
  max-height: 39%;
  right: 14%;
  top: 5%;
  transform: rotate(4deg);
  z-index: 1;
}
.hm-product-label {
  position: absolute;
  z-index: 4;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hm-label-one { left: 5%; top: 14%; }
.hm-label-two { right: 5%; top: 49%; }

.hm-running-line {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #191919;
  color: #fff;
  white-space: nowrap;
}
.hm-running-line > div {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2.5rem;
  padding: 0.72rem 2rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hm-running-line i {
  color: var(--brand);
  font-style: normal;
  font-size: 0.55rem;
}

.hm-section {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}
.hm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1b1b1b;
}
.hm-section-heading h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hm-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #1c1c1c;
  border: 1px solid #1c1c1c;
}
.hm-category-card {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #f2f0ec;
  color: #1b1b1b;
}
.hm-category-card:hover { color: #1b1b1b; }
.hm-category-card-featured {
  grid-column: span 2;
}
.hm-category-number {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  color: #777;
}
.hm-category-image {
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eceae5;
}
.hm-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.45s ease;
}
.hm-category-card:hover .hm-category-image img {
  transform: scale(1.035);
}
.hm-category-copy {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 3.5rem 1.15rem 1rem;
  background: #fff;
  border-top: 1px solid #d8d5cf;
}
.hm-category-copy strong {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.hm-category-copy small { color: #777; }
.hm-category-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.hm-category-card:hover .hm-category-arrow {
  transform: translate(3px, -3px);
  color: var(--brand);
}

.hm-brand-story {
  width: 100vw;
  min-height: 650px;
  margin: clamp(4rem, 8vw, 7rem) 0 0 calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: #171717;
  color: #fff;
}
.hm-brand-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #e5e2dc;
}
.hm-brand-disc {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 105px solid var(--brand);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hm-story-box,
.hm-story-charger {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 30px 25px rgba(0,0,0,0.28));
}
.hm-story-box {
  width: 47%;
  max-height: 72%;
  left: 17%;
  bottom: 4%;
  transform: rotate(-5deg);
}
.hm-story-charger {
  width: 43%;
  max-height: 58%;
  right: 4%;
  bottom: 10%;
  transform: rotate(8deg);
}
.hm-story-code {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  color: #1b1b1b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}
.hm-brand-copy {
  align-self: center;
  max-width: 610px;
  padding: 5rem max(2rem, calc((100vw - min(1320px, calc(100vw - 2rem))) / 2)) 5rem 5rem;
}
.hm-brand-copy h2 {
  margin: 0 0 1.4rem;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.hm-brand-copy > p:not(.hm-kicker) {
  color: #b9b9b9;
  line-height: 1.7;
  max-width: 32rem;
}
.hm-brand-points {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid #444;
}
.hm-brand-points li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 0.8rem 0;
  border-bottom: 1px solid #444;
  font-weight: 650;
}
.hm-brand-points span {
  color: var(--brand);
  font-size: 0.72rem;
}
.hm-brand-copy .btn {
  border-radius: 3px;
}

.hm-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #d9d9d9;
  border: 1px solid #d9d9d9;
}
.hm-product-grid .product-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}
.hm-product-grid .product-card:hover {
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.hm-product-grid .product-media {
  background: #f2f2f2;
}
.hm-product-grid .product-body {
  padding: 1.1rem;
}
.hm-product-grid .product-body h3 {
  min-height: 2.65em;
}
.hm-product-grid .product-body form {
  margin-top: auto;
}
.hm-product-grid .product-body .btn {
  width: 100%;
  border-radius: 2px;
}
.hm-product-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-brand-strip {
  width: 100vw;
  min-height: 460px;
  margin: clamp(4rem, 8vw, 7rem) 0 0 calc(50% - 50vw);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  overflow: hidden;
  color: #fff;
  background: var(--brand);
}
.hm-brand-strip-copy {
  align-self: center;
  padding: 4rem 2rem 4rem max(2rem, calc((100vw - min(1320px, calc(100vw - 2rem))) / 2));
}
.hm-brand-strip-copy .hm-kicker { color: #fff; opacity: 0.76; }
.hm-brand-strip-copy h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(2.6rem, 4.8vw, 5.3rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.hm-brand-strip-copy > p:not(.hm-kicker) {
  max-width: 30rem;
  color: rgba(255,255,255,0.76);
}
.hm-brand-strip-products {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.28)),
    repeating-linear-gradient(-45deg, transparent 0 39px, rgba(255,255,255,0.04) 39px 40px);
}
.hm-brand-strip-products img {
  position: absolute;
  object-fit: contain;
  max-height: 82%;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.35));
}
.hm-brand-strip-products img:nth-child(1) {
  width: 31%;
  left: 1%;
  bottom: 3%;
  transform: rotate(-8deg);
}
.hm-brand-strip-products img:nth-child(2) {
  width: 30%;
  left: 35%;
  top: 4%;
  transform: rotate(3deg);
  z-index: 2;
}
.hm-brand-strip-products img:nth-child(3) {
  width: 34%;
  right: 1%;
  bottom: 0;
  transform: rotate(8deg);
}

.hm-service-row {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #cfcfcf;
}
.hm-service-row > div {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  padding: 1.35rem;
}
.hm-service-row > div + div { border-left: 1px solid #cfcfcf; }
.hm-service-icon {
  grid-row: span 2;
  color: var(--brand);
  font-size: 0.67rem;
  font-weight: 800;
}
.hm-service-row strong { font-size: 0.9rem; }
.hm-service-row small { color: #777; }

@media (max-width: 1100px) {
  .hm-hero {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .hm-hero-copy {
    padding-left: 2rem;
  }
  .hm-hero-copy h1 { font-size: clamp(3rem, 6vw, 5rem); }
  .hm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-brand-copy { padding: 4rem 2.5rem; }
}

@media (max-width: 820px) {
  .hm-hero {
    grid-template-columns: 1fr;
  }
  .hm-hero-copy {
    padding: 4rem 1rem 2.5rem;
  }
  .hm-hero-stage {
    min-height: 520px;
  }
  .hm-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-category-card-featured { grid-column: span 2; }
  .hm-brand-story {
    grid-template-columns: 1fr;
  }
  .hm-brand-visual { min-height: 540px; }
  .hm-brand-strip {
    grid-template-columns: 1fr;
  }
  .hm-brand-strip-copy { padding: 3.5rem 1rem; }
  .hm-product-grid,
  .hm-product-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-service-row { grid-template-columns: repeat(2, 1fr); }
  .hm-service-row > div:nth-child(3) { border-left: 0; border-top: 1px solid #cfcfcf; }
  .hm-service-row > div:nth-child(4) { border-top: 1px solid #cfcfcf; }
}

@media (max-width: 560px) {
  .hm-hero { min-height: auto; }
  .hm-hero-copy h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hm-hero-proof { grid-template-columns: 1fr; gap: 0.75rem; }
  .hm-hero-proof div + div {
    border-left: 0;
    padding-left: 0;
  }
  .hm-hero-stage { min-height: 430px; }
  .hm-product-main { width: 61%; left: 0; }
  .hm-product-charger { width: 36%; right: 2%; }
  .hm-product-cable { width: 26%; right: 8%; }
  .hm-section-heading { align-items: flex-start; flex-direction: column; }
  .hm-category-grid { grid-template-columns: 1fr; }
  .hm-category-card-featured { grid-column: auto; }
  .hm-category-card { min-height: 260px; }
  .hm-brand-visual { min-height: 430px; }
  .hm-brand-disc { width: 360px; height: 360px; border-width: 70px; }
  .hm-brand-copy { padding: 3.5rem 1rem; }
  .hm-product-grid,
  .hm-product-grid-compact {
    grid-template-columns: 1fr;
  }
  .hm-brand-strip-products { min-height: 340px; }
  .hm-service-row { grid-template-columns: 1fr; }
  .hm-service-row > div + div {
    border-left: 0;
    border-top: 1px solid #cfcfcf;
  }
}

/* =========================================================
   Marketplace početna — kompaktan retail raspored
   ========================================================= */
.site-header {
  background: #fff;
  backdrop-filter: none;
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 1.5rem;
  min-height: 76px;
}
.header-left { gap: 0; }
.header-search {
  position: relative;
  width: 100%;
  max-width: 720px;
  justify-self: center;
}
.header-search input {
  height: 46px;
  padding: 0 3.5rem 0 1rem;
  border: 1px solid #bcbcbc;
  border-radius: 7px;
  background: #fff;
  font-size: 0.95rem;
}
.header-search input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(208, 0, 0, 0.1);
}
.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.header-actions {
  gap: 0.85rem;
  flex-wrap: nowrap;
}
.header-account {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.header-account:hover { color: var(--brand); }
.header-account > span:last-child {
  display: grid;
  line-height: 1.15;
}
.header-account small {
  color: var(--muted);
  font-size: 0.68rem;
}
.header-account strong { font-size: 0.85rem; }
.header-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  color: var(--brand);
  font-size: 0.55rem;
}
.header-category-bar {
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #e2e2e2;
  background: #fff;
}
.mobile-menu-toggle,
.header-promo-strip {
  display: none;
}
.header-category-inner {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-category-inner .nav-dropdown-btn {
  height: 43px;
  padding-inline: 1rem;
  border: 0;
  border-radius: 0;
  background: var(--brand);
  font-size: 0.84rem;
}
.header-category-inner .nav-dropdown-menu {
  top: calc(100% + 1px);
  max-height: 70vh;
  min-width: 270px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}
.header-category-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  overflow: hidden;
  white-space: nowrap;
}
.header-category-links a {
  color: #3c3c3c;
  font-size: 0.78rem;
  font-weight: 650;
}
.header-category-links a:hover { color: var(--brand); }
.header-category-links .header-sale-link { color: var(--brand); }
.header-delivery-note {
  margin-left: auto;
  flex-shrink: 0;
  color: #666;
  font-size: 0.75rem;
  font-weight: 650;
}

.market-hero {
  position: relative;
  min-height: 410px;
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(105deg, #ffda34 0%, #ffc425 46%, #ff9c24 100%);
}
.market-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--brand);
}
.market-hero-copy {
  align-self: center;
  padding: 3.5rem 1rem 3.5rem clamp(2rem, 5vw, 5rem);
  z-index: 2;
}
.market-hero-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.market-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: clamp(2.3rem, 4.2vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.market-hero h1 strong { color: var(--brand); }
.market-hero-copy > p {
  max-width: 34rem;
  margin: 0 0 1.35rem;
  color: #503e1e;
  font-size: 1rem;
}
.market-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.market-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0.68rem 1.2rem;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  font-size: 0.88rem;
}
.market-primary-button:hover {
  background: var(--brand-dark);
  color: #fff;
}
.market-secondary-link {
  color: #262016;
  font-size: 0.85rem;
  font-weight: 750;
}
.market-secondary-link:hover { color: var(--brand); }
.market-hero-badges {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.5rem;
  color: #594923;
  font-size: 0.75rem;
  font-weight: 650;
}
.market-hero-products {
  position: relative;
  min-height: 410px;
}
.market-hero-circle {
  position: absolute;
  width: 410px;
  height: 410px;
  right: 10%;
  top: 50%;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%);
}
.market-hero-products img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(72, 39, 0, 0.27));
}
.market-hero-box {
  width: 42%;
  max-height: 92%;
  left: 8%;
  bottom: -2%;
  z-index: 2;
  transform: rotate(-6deg);
}
.market-hero-adapter {
  width: 36%;
  max-height: 65%;
  right: 4%;
  bottom: 2%;
  z-index: 3;
  transform: rotate(5deg);
}
.market-hero-cable {
  width: 22%;
  max-height: 52%;
  right: 17%;
  top: 2%;
  z-index: 1;
  transform: rotate(7deg);
}
.market-price-bubble {
  position: absolute;
  right: 3%;
  top: 7%;
  z-index: 5;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(120,0,0,0.25);
  transform: rotate(8deg);
}
.market-price-bubble strong {
  font-size: 1.3rem;
  margin-block: 0.1rem;
}
.market-price-bubble small { font-size: 0.6rem; }

.market-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1rem 0 0;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
}
.market-benefits > div {
  display: grid;
  grid-template-columns: 35px 1fr;
  padding: 1rem 1.2rem;
}
.market-benefits > div + div { border-left: 1px solid #e5e5e5; }
.market-benefits span {
  grid-row: span 2;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
}
.market-benefits strong { font-size: 0.82rem; }
.market-benefits small { color: var(--muted); font-size: 0.7rem; }

.market-section { margin-top: 2.7rem; }
.market-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.market-section-head > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.market-section-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 800;
}
.market-section-head > a {
  color: #555;
  font-size: 0.78rem;
  font-weight: 700;
}
.market-section-head > a:hover { color: var(--brand); }
.market-section-accent {
  width: 5px;
  height: 24px;
  border-radius: 4px;
  background: var(--brand);
}

.market-product-row {
  gap: 0.75rem;
}
.market-product-row-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.market-product-row-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.market-product-row .product-card {
  min-width: 0;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.055);
}
.market-product-row .product-card:hover {
  border-color: #c8c8c8;
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.market-product-row .product-media { background: #f5f5f5; }
.product-card-badge {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  z-index: 3;
  padding: 0.26rem 0.48rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}
.product-card-badge-new { background: #7b2cbf; }
.market-product-row .product-body { padding: 0.8rem; }
.market-product-row .product-body .meta {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.market-product-row .product-body h3 {
  min-height: 2.55em;
  font-family: var(--font);
  font-size: 0.86rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-product-row .price { font-size: 0.9rem; }
.market-product-row .product-body form { margin-top: auto; }
.market-product-row .product-body .btn {
  width: 100%;
  border-radius: 5px;
  padding: 0.48rem 0.65rem;
  font-size: 0.76rem;
}

.market-category-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.market-category-tile {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 8px;
  color: #222;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.market-category-tile:hover {
  color: #222;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.09);
}
.market-category-tone-1 { background: #e7f4ff; }
.market-category-tone-2 { background: #fff0db; }
.market-category-tone-3 { background: #f0eaff; }
.market-category-tone-4 { background: #e5f5ec; }
.market-category-tone-5 { background: #ffe8eb; }
.market-category-tone-6 { background: #fff5c9; }
.market-category-picture {
  aspect-ratio: 1.35 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255,255,255,0.58);
}
.market-category-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.market-category-name {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-category-tile small { color: #777; font-size: 0.68rem; }

.market-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2.7rem;
}
.market-promo {
  position: relative;
  min-height: 205px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
}
.market-promo:hover { color: #fff; }
.market-promo > span {
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem;
}
.market-promo small {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.market-promo strong {
  font-size: 1.35rem;
  line-height: 1.1;
}
.market-promo em {
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 750;
}
.market-promo img {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: 47%;
  height: 105%;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(0,0,0,0.25));
  transition: transform 0.25s ease;
}
.market-promo:hover img { transform: scale(1.04) rotate(2deg); }
.market-promo-red { background: #d00000; }
.market-promo-dark { background: #252525; }
.market-promo-light {
  color: #202020;
  background: #ffd733;
}
.market-promo-light:hover { color: #202020; }

.market-brand-zone {
  margin-top: 2.8rem;
  padding: 1.4rem;
  border-radius: 12px;
  background: #ff641e;
  color: #fff;
}
.market-brand-zone-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 0.4rem 1.1rem;
}
.market-brand-zone-head > span {
  padding: 0.55rem 0.8rem;
  border: 2px solid #fff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.market-brand-zone-head small { opacity: 0.78; }
.market-brand-zone-head h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
}
.market-brand-zone-head a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
}
.market-brand-zone-content {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 0.8rem;
}
.market-brand-product {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: #222;
}
.market-brand-product img {
  width: 100%;
  height: 78%;
  padding: 0.8rem;
  object-fit: contain;
  filter: drop-shadow(0 13px 12px rgba(0,0,0,0.17));
}
.market-brand-product span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  display: grid;
}
.market-brand-product small { color: #777; font-size: 0.65rem; }
.market-brand-product strong { font-size: 0.88rem; }
.market-brand-product-main {
  background: #262626;
  color: #fff;
}
.market-brand-product-main small { color: #bbb; }

.market-newsletter {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.2rem;
  border-radius: 10px;
  background: #fff3f3;
  border: 1px solid #ffd8d8;
}
.market-newsletter small {
  color: var(--brand);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.market-newsletter h2 {
  margin: 0.25rem 0;
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 800;
}
.market-newsletter p { margin: 0; color: #666; }

@media (max-width: 1100px) {
  .header-category-links { gap: 0.8rem; }
  .header-category-links a:nth-child(n+5) { display: none; }
  .market-product-row-five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-product-row-five .product-card:nth-child(5) { display: none; }
  .market-category-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
  }
  .header-account { display: none; }
  .header-category-links,
  .header-delivery-note { display: none; }
  .market-hero {
    grid-template-columns: 1fr;
  }
  .market-hero-copy { padding: 2.5rem 2rem 1rem; }
  .market-hero-products { min-height: 330px; }
  .market-benefits { grid-template-columns: repeat(2, 1fr); }
  .market-benefits > div:nth-child(3) { border-left: 0; border-top: 1px solid #e5e5e5; }
  .market-benefits > div:nth-child(4) { border-top: 1px solid #e5e5e5; }
  .market-product-row-five,
  .market-product-row-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-product-row-five .product-card:nth-child(5) { display: none; }
  .market-promo-grid { grid-template-columns: 1fr; }
  .market-promo { min-height: 180px; }
  .market-brand-zone-content { grid-template-columns: repeat(2, 1fr); }
  .market-brand-product:last-child { display: none; }
}

@media (max-width: 600px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding-block: 0.7rem;
  }
  .header-left { min-width: 0; }
  .brand { max-width: 150px; font-size: 1.35rem; }
  .brand-logo { max-height: 44px; }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .header-category-inner { gap: 0; }
  .header-category-inner .nav-dropdown { width: 100%; }
  .header-category-inner .nav-dropdown-btn {
    width: 100%;
    justify-content: center;
  }
  .market-hero {
    margin-inline: -0.25rem;
    border-radius: 8px;
  }
  .market-hero-copy { padding: 2rem 1.2rem 0.5rem; }
  .market-hero h1 { font-size: 2.65rem; }
  .market-hero-products { min-height: 290px; }
  .market-price-bubble { width: 68px; height: 68px; }
  .market-benefits { grid-template-columns: 1fr; }
  .market-benefits > div + div {
    border-left: 0;
    border-top: 1px solid #e5e5e5;
  }
  .market-category-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .market-category-tile {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }
  .market-section-head { align-items: flex-end; }
  .market-section-head h2 { font-size: 1.12rem; }
  .market-product-row-five,
  .market-product-row-four {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.7rem;
  }
  .market-product-row .product-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
  .market-product-row-five .product-card:nth-child(5) { display: flex; }
  .market-brand-zone { padding: 0.8rem; }
  .market-brand-zone-head {
    grid-template-columns: auto 1fr;
  }
  .market-brand-zone-head > a { display: none; }
  .market-brand-zone-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .market-brand-product {
    min-height: 300px;
  }
  .market-brand-product:not(.market-brand-product-main) { display: none; }
  .market-newsletter {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem;
  }
}

/* Mobilni header — kompaktan raspored kao u marketplace aplikacijama. */
@media (max-width: 600px) {
  .site-header {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  }
  .header-inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: 36px 50px minmax(110px, 1fr) 40px;
    grid-template-rows: 46px;
    gap: 0.35rem;
    align-items: center;
    padding: 0.55rem 0;
  }
  .mobile-menu-toggle {
    grid-column: 1;
    display: grid;
    gap: 4px;
    width: 36px;
    height: 38px;
    place-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 23px;
    height: 3px;
    border-radius: 2px;
    background: #333;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-left {
    grid-column: 2;
    min-width: 0;
  }
  .brand {
    width: 50px;
    max-width: 50px;
    overflow: hidden;
    color: var(--brand);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    white-space: nowrap;
  }
  .brand-logo {
    width: 48px;
    max-width: 48px;
    max-height: 42px;
    object-fit: contain;
  }
  .header-search {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    max-width: none;
  }
  .header-search input {
    height: 42px;
    padding: 0 2.7rem 0 0.8rem;
    border-color: #e0e0e0;
    border-radius: 22px;
    background: #f5f6f7;
    font-size: 0.78rem;
  }
  .header-search button {
    top: 3px;
    right: 3px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
  }
  .header-actions {
    display: contents;
  }
  .cart-toggle {
    grid-column: 4;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
  }
  .cart-toggle svg {
    width: 24px;
    height: 24px;
  }
  .cart-badge {
    top: 0;
    right: 0;
    background: #1e1e1e;
  }
  .header-category-bar {
    overflow: visible;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
  .header-category-inner {
    min-height: 42px;
    display: block;
    overflow: visible;
  }
  .header-category-inner .nav-dropdown {
    position: static;
    width: 0;
    height: 0;
  }
  .header-category-inner .nav-dropdown-btn {
    display: none;
  }
  .header-category-inner .nav-dropdown-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 64px);
    padding: 0.75rem 1rem 1rem;
    border: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.17);
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
  }
  .header-category-inner .nav-dropdown-menu a {
    padding: 0.7rem;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: normal;
  }
  .header-category-links {
    display: flex;
    gap: 1.3rem;
    min-height: 42px;
    padding: 0 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-category-links::-webkit-scrollbar { display: none; }
  .header-category-links a,
  .header-category-links a:nth-child(n+5) {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    flex: 0 0 auto;
    font-size: 0.75rem;
  }
  .header-category-links .header-sale-link {
    order: -1;
    font-weight: 800;
  }
  .header-promo-strip {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
    overflow: hidden;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .header-promo-strip:hover { color: #fff; }
  .header-promo-strip span { display: none; }
  .header-promo-strip strong { font-weight: 900; }
  .header-promo-strip u {
    font-weight: 750;
    text-underline-offset: 2px;
  }
  .header-promo-strip b { font-size: 1.1rem; }
}

/* Sve liste proizvoda na telefonu: tačno dvije jednake kolone. */
@media (max-width: 600px) {
  .product-grid.catalog-market-grid,
  .product-grid.market-product-row,
  .market-product-row-five,
  .market-product-row-four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }
  .market-product-row .product-card,
  .catalog-market-grid .product-card {
    display: flex;
    flex: initial;
    width: auto;
    min-width: 0;
  }
  .market-product-row-five .product-card:nth-child(5) {
    display: flex;
  }
}
