@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100%;
}

html {
  background-color: #0c1117;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0c1117;
}

.professional-page-bg {
  background-color: #0c1117;
  background:
    linear-gradient(180deg, rgba(10, 13, 17, 0.9) 0%, rgba(10, 13, 17, 0.84) 100%),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.sport-page-bg {
  background-color: #e9edf2;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(216, 131, 69, 0.12), rgba(216, 131, 69, 0)),
    radial-gradient(920px 420px at 95% -20%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0)),
    linear-gradient(180deg, rgba(237, 241, 245, 0.94) 0%, rgba(233, 237, 242, 0.95) 42%, rgba(231, 236, 242, 0.96) 100%),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.adrenalin-page-bg {
  background-color: #2a0606;
  background:
    linear-gradient(180deg, rgba(37, 6, 6, 0.9) 0%, rgba(27, 4, 4, 0.88) 100%),
    radial-gradient(1100px 560px at 14% -8%, rgba(239, 68, 68, 0.34), rgba(239, 68, 68, 0)),
    radial-gradient(900px 420px at 92% -16%, rgba(153, 27, 27, 0.32), rgba(153, 27, 27, 0)),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.tactical-page-bg {
  background-color: #07131e;
  background:
    linear-gradient(180deg, rgba(5, 17, 29, 0.92) 0%, rgba(4, 12, 22, 0.9) 100%),
    radial-gradient(980px 540px at 12% -8%, rgba(14, 116, 144, 0.34), rgba(14, 116, 144, 0)),
    radial-gradient(860px 420px at 96% -18%, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0)),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.rescure-page-bg {
  background-color: #10210f;
  background:
    linear-gradient(180deg, rgba(10, 26, 10, 0.92) 0%, rgba(8, 20, 8, 0.9) 100%),
    radial-gradient(1000px 520px at 10% -10%, rgba(74, 222, 128, 0.28), rgba(74, 222, 128, 0)),
    radial-gradient(860px 440px at 92% -18%, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0)),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.pregled-page-bg {
  background-color: #1a1333;
  background:
    linear-gradient(180deg, rgba(18, 12, 38, 0.92) 0%, rgba(14, 10, 30, 0.9) 100%),
    radial-gradient(1040px 520px at 10% -12%, rgba(167, 139, 250, 0.32), rgba(167, 139, 250, 0)),
    radial-gradient(860px 430px at 92% -18%, rgba(236, 72, 153, 0.24), rgba(236, 72, 153, 0)),
    url("bg/background-header.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.sport-page-bg .site-topbar {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.sport-page-bg .site-topbar a {
  color: rgba(15, 23, 42, 0.78);
}

.sport-page-bg .site-topbar a:hover {
  color: #0f172a;
}

@media (max-width: 1024px) {
  .professional-page-bg {
    background-attachment: scroll;
  }

  .adrenalin-page-bg,
  .tactical-page-bg,
  .rescure-page-bg,
  .pregled-page-bg {
    background-attachment: scroll;
  }
}

/* Sprječava horizontalni scroll od širokih dropdowna / flyout panela */
body.professional-page-bg {
  overflow-x: clip;
}

.hero-shell {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
    url("bg/background-header.webp");
  background-position: center;
  background-size: cover;
}

.gateway-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #11161d;
}

.gateway-link {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.gateway-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gateway-card:hover .gateway-image {
  transform: scale(1.04);
}

.gateway-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(8, 11, 15, 0.36);
}

.gateway-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 16, 22, 0.72) 0%, rgba(11, 16, 22, 0.54) 48%, rgba(11, 16, 22, 0.36) 100%);
}

.gateway-link::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
  pointer-events: none;
}

.gateway-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: transparent;
  box-shadow: none;
}

.gateway-card:hover .gateway-panel {
  background: linear-gradient(140deg, rgba(11, 16, 22, 0.8) 0%, rgba(11, 16, 22, 0.6) 50%, rgba(11, 16, 22, 0.42) 100%);
}

.gateway-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.gateway-cta {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(18, 24, 32, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gateway-card:hover .gateway-cta {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(20, 28, 38, 0.9);
}

#professional { --gateway-accent: 96, 165, 250; }
#shop { --gateway-accent: 125, 211, 252; }
#adventure-park { --gateway-accent: 248, 113, 113; }
#pregled-opreme { --gateway-accent: 196, 181, 253; }
#tactical { --gateway-accent: 103, 232, 249; }
#rescure { --gateway-accent: 110, 231, 183; }
#b2b { --gateway-accent: 251, 191, 36; }

.gateway-card[id] .gateway-badge {
  border-color: rgba(var(--gateway-accent), 0.34);
  background: rgba(var(--gateway-accent), 0.12);
}

.gateway-card[id] .gateway-content {
  box-shadow: none;
}

.gateway-card[id] .gateway-cta {
  border-color: rgba(var(--gateway-accent), 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(var(--gateway-accent), 0.22);
}

.gateway-card[id]:hover .gateway-cta {
  border-color: rgba(var(--gateway-accent), 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(var(--gateway-accent), 0.32);
}

.gateway-content h3,
.gateway-content p,
.gateway-content li,
.gateway-content span {
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.52),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

/* CTA foundations by surface (moze se koristiti i kao globalna klasa) */
.cta-surface-dark {
  border-width: 1px;
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cta-surface-light {
  border-width: 1px;
  color: #1f2937 !important;
  text-shadow: none !important;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Elegantni CTA stil za gumbe unutar content blokova */
main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta) {
  border-width: 1px;
  transition:
    transform 180ms ease,
    box-shadow 200ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta):hover {
  transform: translateY(-1px);
}

/* Tamne stranice: cisti i citki CTA */
body:not(.sport-page-bg) main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta) {
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body:not(.sport-page-bg) main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta):hover {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

/* Svijetla stranica (sport): taman tekst na svijetlim CTA */
body.sport-page-bg main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta) {
  color: #1f2937 !important;
  text-shadow: none !important;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.sport-page-bg main section a.inline-flex.items-center.justify-center.rounded-full:not(.shrink-0):not(.mobile-menu-link):not(.gateway-cta):hover {
  box-shadow:
    0 11px 24px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

/* Sport primary CTA fallback (da ne ostane "isprano") */
body.sport-page-bg main section a.inline-flex.items-center.justify-center.rounded-full[class*="bg-bim-orange"] {
  background-color: #d88345 !important;
  border-color: #c87539 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.sport-page-bg main section a.inline-flex.items-center.justify-center.rounded-full[class*="bg-bim-orange"]:hover {
  background-color: #c87539 !important;
  border-color: #b96932 !important;
}

.hero-trust-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 16, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.hero-trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 131, 69, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(10, 15, 20, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1024px) {
  .landing-page .gateway-link::after {
    inset: 0.8rem;
    border-radius: 1.2rem;
  }

  .landing-page .gateway-content {
    padding: 1rem;
    border-radius: 1.2rem;
  }
}

@media (max-width: 640px) {
  .landing-page .hero-shell {
    background-position: 56% center;
  }

  .landing-page .gateway-content h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .landing-page .gateway-content p,
  .landing-page .gateway-content li {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .landing-page .gateway-badge {
    padding: 0.4rem 0.72rem;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
  }
}

.mega-nav {
  position: static;
}

.mega-item {
  position: static;
}

html.mobile-menu-open {
  overflow: hidden;
  height: 100%;
}

body.mobile-menu-open {
  overscroll-behavior: none;
}

/* Wishlist + košarica u headeru */
.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(216, 131, 69, 0.45);
  color: #ffffff;
}

.header-icon-btn:focus-visible {
  outline: 2px solid rgba(216, 131, 69, 0.55);
  outline-offset: 2px;
}

.cart-count-badge {
  position: absolute;
  right: -0.125rem;
  top: -0.125rem;
  display: flex;
  min-width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #d88345;
  padding: 0 0.28rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

/* Badge na kartici proizvoda (Akcija / Popust) */
.product-card-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 2;
  max-width: calc(100% - 1rem);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.product-card-badge--akcija {
  background: rgba(216, 131, 69, 0.96);
  color: #ffffff;
}

.product-card-badge--popust {
  background: #b91c1c;
  color: #ffffff;
}

/* Blokovi filtera (PLP) */
.filter-block {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 26, 0.68);
  padding: 0.8rem 0.9rem;
}

.filter-block-title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.filter-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 19, 24, 0.95);
  padding: 0.45rem 0.68rem;
  font-size: 0.875rem;
  color: #ffffff;
}

.filter-action-btn {
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.15;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.52rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.quick-action-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.quick-action-btn:hover {
  border-color: rgba(216, 131, 69, 0.52);
  background: rgba(216, 131, 69, 0.1);
  color: #ffffff;
}

.quick-action-btn--primary {
  border-color: rgba(216, 131, 69, 0.72);
  background: rgba(216, 131, 69, 0.18);
  color: #ffffff;
}

.quick-action-btn.is-active,
.quick-action-btn.is-success {
  border-color: rgba(216, 131, 69, 0.72);
  background: rgba(216, 131, 69, 0.2);
  color: #ffffff;
}

.product-card-wrap {
  position: relative;
}

.product-card-quick-actions {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 6;
  display: flex;
  gap: 0.35rem;
}

.product-card-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 13, 17, 0.78);
  color: rgba(255, 255, 255, 0.86);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.product-card-icon-btn:hover {
  border-color: rgba(216, 131, 69, 0.6);
  background: rgba(18, 22, 26, 0.92);
  color: #ffffff;
  transform: translateY(-1px);
}

.product-card-icon-btn.is-active,
.product-card-icon-btn.is-success {
  border-color: rgba(216, 131, 69, 0.72);
  background: rgba(216, 131, 69, 0.2);
  color: #ffffff;
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-input:focus {
  border-color: rgba(216, 131, 69, 0.55);
  outline: none;
  box-shadow: 0 0 0 1px rgba(216, 131, 69, 0.25);
}

.filter-checkbox-label,
.filter-radio-label {
  display: flex;
  cursor: pointer;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.filter-checkbox-label:hover,
.filter-radio-label:hover {
  color: #ffffff;
}

/* Prilagođeni checkbox (ne sistemski) */
.filter-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 14, 0.65);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.filter-checkbox-label input[type="checkbox"]:hover {
  border-color: rgba(216, 131, 69, 0.55);
}

.filter-checkbox-label input[type="checkbox"]:focus {
  outline: none;
}

.filter-checkbox-label input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.95), 0 0 0 4px rgba(216, 131, 69, 0.45);
}

.filter-checkbox-label input[type="checkbox"]:checked {
  border-color: #d88345;
  background-color: #d88345;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.7rem auto;
}

/* Prilagođeni radio (ne sistemski) */
.filter-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 14, 0.65);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.filter-radio-label input[type="radio"]:hover {
  border-color: rgba(216, 131, 69, 0.55);
}

.filter-radio-label input[type="radio"]:focus {
  outline: none;
}

.filter-radio-label input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.95), 0 0 0 4px rgba(216, 131, 69, 0.45);
}

.filter-radio-label input[type="radio"]:checked {
  border-color: #d88345;
  background-color: rgba(8, 10, 14, 0.75);
  background-image: radial-gradient(circle, #d88345 0.32rem, transparent calc(0.32rem + 1px));
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.filter-chip:hover {
  border-color: rgba(216, 131, 69, 0.45);
  color: #ffffff;
}

.filter-chip[aria-pressed="true"] {
  border-color: rgba(216, 131, 69, 0.65);
  background: rgba(216, 131, 69, 0.18);
  color: #ffffff;
}

.filter-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
}

.filter-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.filter-switch-thumb {
  position: absolute;
  left: 0.2rem;
  top: 50%;
  height: 1.1rem;
  width: 1.1rem;
  border-radius: 9999px;
  background: #ffffff;
  transition: transform 0.2s ease;
  transform: translateY(-50%);
}

.filter-switch input:checked ~ .filter-switch-ui {
  background: rgba(216, 131, 69, 0.88);
}

.filter-switch input:checked ~ .filter-switch-ui .filter-switch-thumb {
  transform: translate(1.2rem, -50%);
}

.filter-range {
  width: 100%;
  accent-color: #d88345;
}

/* Custom dropdown (bim-dropdown.js) — trigger + floating panel */
.bim-dropdown {
  position: relative;
  display: block;
  width: 100%;
}

.bim-dropdown--sort {
  width: 100%;
}

@media (min-width: 640px) {
  .bim-dropdown--sort {
    width: auto;
  }
}

.bim-dropdown__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(22, 26, 32, 0.98) 0%, rgba(12, 15, 20, 0.98) 100%);
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f4f4f5;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.bim-dropdown__trigger:hover {
  border-color: rgba(216, 131, 69, 0.4);
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.99) 0%, rgba(16, 20, 26, 0.99) 100%);
}

.bim-dropdown__trigger:focus {
  outline: none;
}

.bim-dropdown__trigger:focus-visible {
  border-color: rgba(216, 131, 69, 0.65);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.95), 0 0 0 4px rgba(216, 131, 69, 0.28);
}

.bim-dropdown.is-open .bim-dropdown__trigger {
  border-color: rgba(216, 131, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(216, 131, 69, 0.25);
}

.bim-dropdown.is-open .bim-dropdown__caret {
  transform: rotate(180deg);
}

.bim-dropdown__value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bim-dropdown__caret {
  flex-shrink: 0;
  display: flex;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, color 0.15s ease;
}

.bim-dropdown.is-open .bim-dropdown__caret {
  color: #d88345;
}

/* Sort — pill trigger */
.bim-dropdown--sort .bim-dropdown__trigger {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(16, 21, 27, 0.98);
  border-color: rgba(255, 255, 255, 0.15);
}

.bim-dropdown--sort .bim-dropdown__trigger:hover {
  border-color: rgba(216, 131, 69, 0.38);
  background: rgba(20, 26, 33, 0.99);
}

.bim-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 17, 22, 0.98);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
}

.bim-dropdown--sort .bim-dropdown__list {
  border-radius: 1rem;
}

.bim-dropdown__option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.bim-dropdown__option:hover,
.bim-dropdown__option:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.bim-dropdown__option.is-selected {
  background: rgba(216, 131, 69, 0.16);
  color: #ffffff;
  font-weight: 600;
}

.bim-dropdown__option.is-selected::before {
  content: "";
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #d88345;
}

.filter-color-dot {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-color-dot[aria-pressed="true"] {
  border-color: #d88345;
  box-shadow: 0 0 0 1px rgba(216, 131, 69, 0.4);
}

/* Vizualni cue za scroll filter panela (desktop) */
.filter-scroll-wrap {
  position: relative;
}

@media (max-width: 1023px) {
  html.mobile-filter-open,
  body.mobile-filter-open {
    overflow: hidden;
  }

  .mobile-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(7, 10, 14, 0.68);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .mobile-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-filter-fab {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 245;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transform: translateX(-50%);
    border-radius: 9999px;
    border: 1px solid rgba(216, 131, 69, 0.75);
    background: linear-gradient(180deg, rgba(216, 131, 69, 0.98) 0%, rgba(200, 117, 57, 0.96) 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.72rem 1.15rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    transition: opacity 200ms ease, transform 220ms ease;
  }

  .mobile-filter-fab.is-hidden-near-footer {
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
  }

  .mobile-filter-modal {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 250;
    max-height: min(82vh, 760px);
    border-radius: 1.2rem 1.2rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    background: rgba(16, 21, 27, 0.98);
    backdrop-filter: blur(10px);
    transform: translateY(104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 260ms ease, opacity 200ms ease, visibility 260ms ease;
    padding: 0.75rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  }

  .mobile-filter-modal.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.2rem 0.55rem;
  }

  .mobile-filter-panel {
    max-height: min(68vh, 640px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-filter-modal .filter-scroll-cue {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  [data-filter-scroll-panel] {
    --filter-cue-space: 3.1rem;
    padding-top: var(--filter-cue-space);
    padding-bottom: var(--filter-cue-space);
  }
}

.filter-scroll-cue {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  align-items: flex-end;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.filter-scroll-cue__shadow {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4.25rem;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(180deg, rgba(10, 13, 17, 0) 0%, rgba(10, 13, 17, 0.92) 88%);
  pointer-events: none;
}

.filter-scroll-cue[data-direction="up"] {
  top: 0;
  bottom: auto;
  align-items: flex-start;
}

.filter-scroll-cue[data-direction="up"] .filter-scroll-cue__shadow {
  top: 0;
  bottom: auto;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, rgba(10, 13, 17, 0.92) 12%, rgba(10, 13, 17, 0) 100%);
}

.filter-scroll-cue__pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 0.4rem;
  height: 2.25rem;
  width: min(100%, 10rem);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 19, 24, 0.9);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

.filter-scroll-cue[data-direction="up"] .filter-scroll-cue__pill {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.filter-scroll-cue__pill svg {
  height: 1rem;
  width: 1rem;
  transition: transform 0.18s ease;
}

.filter-scroll-cue:hover .filter-scroll-cue__pill {
  transform: translateY(-2px);
  border-color: rgba(216, 131, 69, 0.5);
  background: rgba(18, 22, 28, 0.95);
  color: #ffffff;
}

.filter-scroll-cue:focus-visible {
  outline: none;
}

.filter-scroll-cue:focus-visible .filter-scroll-cue__pill {
  border-color: rgba(216, 131, 69, 0.65);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(10, 12, 16, 0.95),
    0 0 0 4px rgba(216, 131, 69, 0.24);
}

.filter-scroll-cue[data-direction="up"] .filter-scroll-cue__pill svg {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .filter-scroll-cue {
    display: flex;
  }
}

/* Paginacija (PLP) */
.bim-pagination {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(22, 26, 32, 0.55) 0%, rgba(12, 15, 20, 0.85) 100%);
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .bim-pagination {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
  }
}

.bim-pagination__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (min-width: 640px) {
  .bim-pagination__meta {
    text-align: left;
  }
}

.bim-pagination__meta strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.bim-pagination__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.bim-pagination__edge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.bim-pagination__edge:hover {
  border-color: rgba(216, 131, 69, 0.45);
  background: rgba(216, 131, 69, 0.1);
  color: #ffffff;
}

.bim-pagination__edge:focus-visible {
  outline: none;
  border-color: rgba(216, 131, 69, 0.65);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.95), 0 0 0 4px rgba(216, 131, 69, 0.28);
}

.bim-pagination__edge svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.bim-pagination__edge--disabled {
  cursor: not-allowed;
  opacity: 0.38;
  pointer-events: none;
}

.bim-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0 0.15rem;
}

.bim-pagination__pages li {
  margin: 0;
}

.bim-pagination__num {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: transparent;
  padding: 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.bim-pagination__num:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.bim-pagination__num:focus-visible {
  outline: none;
  border-color: rgba(216, 131, 69, 0.55);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.95), 0 0 0 4px rgba(216, 131, 69, 0.22);
}

.bim-pagination__num[aria-current="page"] {
  border-color: rgba(216, 131, 69, 0.65);
  background: linear-gradient(180deg, rgba(216, 131, 69, 0.35) 0%, rgba(216, 131, 69, 0.2) 100%);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(216, 131, 69, 0.15) inset;
}

.bim-pagination__gap {
  display: inline-flex;
  min-width: 2rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* Scroll bez vidljivog scrollbar-a (Firefox / Safari / Chrome) */
.scrollbar-hidden {
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#mobile-menu-overlay:not(.hidden) {
  touch-action: none;
}

.sticky-mega-row {
  position: sticky;
  top: 0;
  z-index: 120;
  overflow-x: clip;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
}

.sticky-mega-row > div.mx-auto {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.mega-nav-shell {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: -1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(18, 22, 26, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.mega-nav-content {
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 240ms ease;
}

.mega-search-wrap {
  position: absolute;
  right: max(0.5rem, env(safe-area-inset-right, 0px));
  left: 8rem;
  top: 50%;
  transform: translateY(-50%) translateY(-8px);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 240ms ease;
}

.mega-nav-shell.is-search-open .mega-nav-content {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
}

.mega-nav-shell.is-search-open .mega-search-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateY(0);
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 180ms ease;
}

.menu-caret {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1;
}

.mega-item.is-open .mega-trigger {
  color: #ffffff;
}

.mega-panel {
  position: absolute;
  left: 50%;
  top: calc(100% - 20px);
  z-index: 50;
  /* Značajan horizontalni razmak od ruba viewporta; ne dira rub ekrana */
  width: min(1480px, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  transform: translateX(-50%) translateY(0);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background: rgba(18, 22, 26, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  padding: clamp(1.125rem, 2vw, 1.75rem);
  box-sizing: border-box;
  /* Omogućava trećoj razini da izađe izvan panela (prije je klipalo overflow-x) */
  overflow: visible;
}

.mega-panel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.mega-panel-grid > section,
.mega-panel .grid > section {
  min-width: 0;
}

.mega-item.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sublevel-item {
  position: relative;
  z-index: 1;
}

.sublevel-item:hover,
.sublevel-item.is-open {
  z-index: 80;
}

.sublevel-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.sublevel-thumb {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
  padding: 0.4rem;
}

.sublevel-item:hover .sublevel-link,
.sublevel-item.is-open .sublevel-link {
  color: #ffffff;
}

.third-level-panel {
  position: absolute;
  top: -0.75rem;
  left: calc(100% + 0.2rem);
  width: min(15rem, calc(100vw - 2rem));
  z-index: 120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(16, 20, 24, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  padding: 1rem;
  box-sizing: border-box;
}

.third-level-panel::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0;
  bottom: 0;
  width: 0.5rem;
}

.third-level-panel-left {
  left: auto;
  right: calc(100% + 0.2rem);
}

.third-level-panel-left::before {
  left: auto;
  right: -0.5rem;
}

.sublevel-item:hover .third-level-panel,
.sublevel-item.is-open .third-level-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.third-level-title {
  color: #d88345;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.third-level-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.third-level-list li + li {
  margin-top: 0.45rem;
}

.third-level-list a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.third-level-list a:hover {
  color: #ffffff;
}

.third-level-all {
  color: #ffffff !important;
  font-weight: 600;
}

#mobile-menu-drawer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition: transform 280ms ease, opacity 220ms ease, visibility 280ms ease;
  will-change: transform, opacity;
}

#mobile-menu-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

#mobile-menu-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

#mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(14px, 0, 0);
  transition: transform 190ms ease, opacity 170ms ease, visibility 190ms ease;
}

.mobile-menu-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.mobile-menu-panel.is-entering-forward {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(14px, 0, 0);
}

.mobile-menu-panel.is-entering-back {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(-14px, 0, 0);
}

.mobile-menu-panel.is-exiting-back {
  transform: translate3d(14px, 0, 0);
}

.mobile-menu-panel.is-exiting-forward {
  transform: translate3d(-14px, 0, 0);
}

#mobile-menu-drawer .mobile-menu-panel > div.space-y-2 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
}

#mobile-menu-drawer .mobile-menu-panel > div.space-y-2 > * + * {
  margin-top: 0 !important;
}

#mobile-menu-drawer .mobile-menu-panel > .mobile-menu-link-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}

.mobile-menu-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  align-content: start;
}

.mobile-menu-link-grid .mobile-menu-link {
  min-height: 0;
  word-break: break-word;
}

@media (max-width: 360px) {
  .mobile-menu-link-grid {
    grid-template-columns: 1fr;
  }
}

#mobile-menu-drawer .mobile-menu-link {
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
}

.mobile-menu-panel-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-menu-drawer .mobile-menu-panel-head {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-menu-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-menu-back::before {
  content: "←";
  color: #d88345;
  font-size: 1rem;
  line-height: 1;
}

.mobile-menu-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.mobile-menu-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.mobile-segment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.mobile-segment-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-segment-link.is-active {
  color: #d88345;
  border-color: rgba(216, 131, 69, 0.45);
  background: rgba(216, 131, 69, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sport-page-bg #mobile-menu-overlay {
  background: rgba(15, 23, 42, 0.45);
}

.sport-page-bg #mobile-menu-drawer {
  background: #f1f4f7;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

.sport-page-bg #mobile-menu-drawer .mobile-menu-panel-head {
  border-color: rgba(148, 163, 184, 0.35);
}

.sport-page-bg #mobile-menu-drawer .mobile-menu-title,
.sport-page-bg #mobile-menu-drawer .mobile-menu-link,
.sport-page-bg #mobile-menu-drawer .mobile-menu-back {
  color: #0f172a;
}

.sport-page-bg #mobile-menu-drawer .mobile-menu-link {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.45);
}

.sport-page-bg #mobile-menu-drawer .mobile-menu-link:hover {
  background: rgba(15, 23, 42, 0.08);
}

.sport-page-bg #mobile-menu-drawer .mobile-segment-link {
  color: rgba(15, 23, 42, 0.72);
}

.sport-page-bg #mobile-menu-drawer .mobile-segment-link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

.sport-page-bg #mobile-menu-drawer .mobile-segment-link.is-active {
  color: #0f172a;
  border-color: rgba(216, 131, 69, 0.55);
  background: rgba(216, 131, 69, 0.2);
}

.sport-page-bg #mobile-menu-drawer #mobile-menu-close {
  border-color: rgba(148, 163, 184, 0.45);
  background: #f7f8fa;
  color: #0f172a;
}

.sport-page-bg .mega-nav-shell {
  background: #f1f4f7;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

#landing-menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

#landing-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#landing-menu-drawer {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 220ms ease, visibility 220ms ease;
}

#landing-menu-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.sport-page-bg .sticky-mega-row {
  background: transparent;
}

.sport-page-bg .mega-trigger {
  color: rgba(15, 23, 42, 0.82);
}

.sport-page-bg .mega-nav {
  color: rgba(15, 23, 42, 0.84);
}

.sport-page-bg .mega-item.is-open .mega-trigger,
.sport-page-bg .mega-trigger:hover {
  color: #0f172a;
}

.sport-page-bg .menu-caret {
  color: rgba(15, 23, 42, 0.62);
}

.sport-page-bg .mega-panel {
  background: #f7f8fa;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.sport-page-bg .mega-panel-grid > section,
.sport-page-bg .mega-panel .grid > section {
  border-color: rgba(148, 163, 184, 0.3);
}

.sport-page-bg .sublevel-link {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(148, 163, 184, 0.4);
  color: #0f172a;
}

.sport-page-bg .sublevel-item:hover .sublevel-link,
.sport-page-bg .sublevel-item.is-open .sublevel-link {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.65);
}

.sport-page-bg .third-level-panel {
  background: #f7f8fa;
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.sport-page-bg .third-level-title,
.sport-page-bg .third-level-list a {
  color: #0f172a;
}

.sport-page-bg .third-level-list a:hover {
  color: #d88345;
}

.sport-page-bg .mega-panel ul,
.sport-page-bg .mega-panel li,
.sport-page-bg .mega-panel a {
  color: rgba(15, 23, 42, 0.84);
}

.sport-page-bg .mega-panel a:hover {
  color: #0f172a;
}

.sport-page-bg .mega-panel a.font-medium {
  color: #0f172a;
}

.sport-page-bg .mega-search-wrap input {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.55);
  color: #0f172a;
}

.sport-page-bg .mega-search-wrap input::placeholder {
  color: rgba(15, 23, 42, 0.5);
}

.sport-page-bg .sticky-mega-row .header-icon-btn {
  border-color: rgba(148, 163, 184, 0.55);
  background: #ffffff;
  color: #0f172a;
}

.sport-page-bg .sticky-mega-row .header-icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.sport-page-bg .sticky-mega-row #desktop-search-toggle,
.sport-page-bg .sticky-mega-row #desktop-search-close,
.sport-page-bg .sticky-mega-row .mobile-menu-toggle {
  border-color: rgba(148, 163, 184, 0.55);
  background: #f5f7fa;
  color: #0f172a;
}

.sport-page-bg .hero-slider {
  background: #e2e8f0;
}

.sport-page-bg .hero-slide-panel--light {
  background: linear-gradient(160deg, rgba(246, 248, 250, 0.98) 0%, rgba(235, 240, 245, 0.98) 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.35);
}

.sport-page-bg .hero-slider-arrow {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(244, 246, 249, 0.95);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.sport-page-bg .hero-slider-arrow:hover {
  background: #f7f8fa;
  border-color: rgba(216, 131, 69, 0.7);
  color: #0f172a;
}

/* Soft-white overrides for Tailwind utility whites on sport page */
.sport-page-bg .bg-white {
  background-color: #f3f5f7 !important;
}

.sport-page-bg .bg-slate-50 {
  background-color: #eceff3 !important;
}

.sport-page-bg .hero-slider-dot {
  background: rgba(15, 23, 42, 0.28);
}

.sport-page-bg .hero-slider-dot.is-active {
  background: #d88345;
}

.mobile-menu-arrow {
  color: #d88345;
  font-size: 1rem;
  line-height: 1;
  margin-left: 0.5rem;
}

.top-header-nav {
  display: none;
}

.site-topbar {
  min-height: 46px;
}

.site-topbar-inner {
  min-height: 46px;
}

.site-topbar-left,
.site-topbar-right {
  line-height: 1.25;
}

.site-topbar a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
}

.site-topbar a:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  .site-topbar {
    overflow: hidden;
  }

  .site-topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-topbar-left,
  .site-topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-topbar-left::-webkit-scrollbar,
  .site-topbar-right::-webkit-scrollbar {
    display: none;
  }

  .site-topbar-right {
    justify-content: flex-start;
  }

  .site-topbar a {
    font-size: 0.92rem;
    line-height: 1.2;
  }
}

.desktop-mega-nav {
  display: none !important;
}

.mobile-menu-toggle {
  display: inline-flex;
}

@media (min-width: 992px) {
  .top-header-nav {
    display: block;
  }

  #mega-nav-content.desktop-mega-nav {
    display: flex !important;
    flex: 1 1 0%;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
  }

  .mega-search-wrap.desktop-mega-nav {
    display: flex !important;
  }

  .mobile-menu-toggle,
  .mobile-menu-layer {
    display: none !important;
  }

  .mega-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .mega-search-wrap {
    left: max(6.5rem, env(safe-area-inset-left, 0px) + 4.5rem);
    right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  .mega-panel {
    width: min(1480px, calc(100vw - 1.75rem));
    max-width: calc(100vw - 1.75rem);
    padding: 1.125rem 1.25rem;
  }
}

@media (min-width: 1400px) {
  .mega-panel-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.hero-slider {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: clamp(16rem, 34vw, 28rem);
  background: #0b1016;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-split {
  display: flex;
  height: 100%;
  width: 100%;
  min-height: 100%;
}

.hero-slide-media {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  background: #0b1016;
  clip-path: polygon(0 0, 100% 0, calc(100% - 3rem) 100%, 0 100%);
}

.hero-slide-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 50%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  margin-left: -2.25rem;
  padding: 1.25rem 1.25rem 1.25rem calc(2.25rem + 0.75rem);
  background: linear-gradient(160deg, rgba(14, 18, 24, 0.98) 0%, rgba(8, 11, 15, 0.99) 100%);
  clip-path: polygon(3rem 0, 100% 0, 100% 100%, 0 100%);
  border-left: 1px solid rgba(216, 131, 69, 0.22);
}

.hero-slider--light {
  background: #ffffff;
}

.hero-slide-panel--light {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 253, 0.98) 100%);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-slide-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 17, 22, 0.68);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.hero-slider-arrow:hover {
  background: rgba(15, 20, 26, 0.92);
  border-color: rgba(216, 131, 69, 0.7);
}

.hero-slider-prev {
  left: 1rem;
}

.hero-slider-next {
  right: 1rem;
}

.hero-slider-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.5rem;
}

.hero-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-slider-dot.is-active {
  background: #d88345;
  transform: scale(1.15);
}

@media (max-width: 1024px) {
  .hero-slider {
    aspect-ratio: 16 / 6.2;
    min-height: clamp(14rem, 35vw, 22rem);
  }

  .hero-slide-panel {
    padding: 1rem 1rem 1rem calc(2rem + 0.5rem);
  }

  .hero-slider-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.45rem;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    aspect-ratio: auto;
    min-height: clamp(22rem, 72vh, 30rem);
  }

  .hero-slide-split {
    flex-direction: column;
  }

  .hero-slide-media {
    flex: 0 0 auto;
    min-height: 10.75rem;
    max-height: 32vh;
    clip-path: none;
  }

  .hero-slide-panel {
    flex: 1 1 auto;
    margin-left: 0;
    padding: 0.9rem 1rem 3.1rem;
    clip-path: none;
    border-left: none;
    border-top: 1px solid rgba(216, 131, 69, 0.2);
  }

  .hero-slider-arrow {
    display: none !important;
    top: auto;
    bottom: 0.7rem;
    transform: none;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem;
    z-index: 8;
  }

  .hero-slider-prev {
    left: 0.7rem;
  }

  .hero-slider-next {
    right: 0.7rem;
  }

  .hero-slider-dots {
    display: inline-flex !important;
    left: 50%;
    bottom: 0.95rem;
    transform: translateX(-50%);
    z-index: 8;
    gap: 0.42rem;
    padding: 0.3rem 0.5rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
  }

  .sport-page-bg .hero-slider-dots {
    background: rgba(255, 255, 255, 0.78);
  }
}

.product-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}

.product-card-modern {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.product-card-modern::before {
  content: "";
  position: absolute;
  inset: -42% auto -42% -130%;
  width: 58%;
  background: linear-gradient(110deg, transparent 0%, rgba(216, 131, 69, 0.08) 18%, rgba(216, 131, 69, 0.28) 50%, rgba(216, 131, 69, 0.08) 82%, transparent 100%);
  transform: translateX(0) rotate(0.001deg);
  opacity: 0;
  pointer-events: none;
}

.product-card-modern img {
  transition: transform 280ms ease, filter 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 131, 69, 0.55);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
  }

  .product-card-modern:hover::before {
    animation: product-card-sheen 860ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .product-card-modern:hover img {
    transform: scale(1.035);
    filter: saturate(1.06);
  }
}

@keyframes product-card-sheen {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.55;
  }
  62% {
    opacity: 0.42;
  }
  100% {
    transform: translateX(360%);
    opacity: 0;
  }
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-filter-chip {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.category-filter-chip:hover {
  border-color: rgba(216, 131, 69, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.category-filter-chip.is-active {
  border-color: rgba(216, 131, 69, 0.68);
  background: rgba(216, 131, 69, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(216, 131, 69, 0.15);
}

.category-filter-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.category-filter-card.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.category-filter-card.is-hidden {
  display: none !important;
}

.category-filter-grid.is-animating {
  overflow: hidden;
  transition: height 260ms ease, opacity 220ms ease;
}

.category-filter-grid.is-refreshing {
  opacity: 0.38;
}

.category-tile-modern {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.category-tile-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(216, 131, 69, 0.08), rgba(216, 131, 69, 0));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.category-tile-modern:hover::after {
  opacity: 1;
}

.category-tile-modern img {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

#category-filter-grid .category-filter-card {
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

#category-filter-grid .category-filter-card img {
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.category-grid-responsive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 991px) {
  .category-grid-responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .category-grid-responsive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .shadow-panel {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  }
}
