:root {
  --accent: #1e40af;
  --accent-dark: #1e3a8a;
  --text: #121212;
  --muted: #6b7280;
  --surface: #f6f6f7;
  --surface-soft: #fbfbfb;
  --soft-pink: #dbeafe;
  --border: #ece7e7;
  --shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 14px 26px rgba(15, 23, 42, 0.08);
  --page-max: 1140px;
  --page-gutter: clamp(16px, 2.4vw, 28px);
  --floating-edge: max(1rem, calc((100vw - (var(--page-max) + (var(--page-gutter) * 2))) / 2));
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth; overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
}

.hidden,
.cw-hidden {
  display: none !important;
}

.site-wrapper {
  display: none;
}

main {
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin: 0 auto;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(24rem, 26rem) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  padding: 1.6rem var(--page-gutter) 0;
  background: #fff;
}

header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
}

header.header-active {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

header .top-banner {
  min-height: 2.5rem;
  padding: 0 1.6rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header .top-banner h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

header .container {
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin: 0 auto;
  min-height: 6.2rem;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

header .header-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  position: absolute;
  left: var(--page-gutter);
  top: 50%;
  transform: translateY(-50%);
}

header .logo img {
  width: clamp(118px, 9vw, 148px);
  height: auto;
}

header .navbar {
  width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: center;
}

header .navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.8rem, 3vw, 4.8rem);
  width: auto;
  position: relative;
}

header .navbar li {
  position: relative;
}

header .navbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

header .navbar a.active {
  color: var(--accent);
}

header .navbar .mobile-only {
  display: none;
}

header .header-actions {
  position: absolute;
  right: var(--page-gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

header .header-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header .header-flag img {
  width: 2.3rem;
  height: 1.55rem;
  object-fit: cover;
}

header .header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

header .header-cart-link i {
  color: var(--accent);
  font-size: 2.36rem;
}

header .header-cart-link.active {
  color: var(--text);
}

header .fa-bars {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  border: 0;
}

header .fa-bars::after {
  content: "Menu";
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar {
  min-width: 0;
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, #edf1f5 0%, #e6ebf0 100%);
  border: 1px solid rgba(30, 64, 175, 0.08);
  border-radius: 2.6rem;
  padding: 1.8rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(15, 23, 42, 0.05);
}

.sidebar .velde {
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar .velde h2,
.sidebar h2 {
  margin: 0;
  color: var(--accent);
  font-size: 2.15rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.sidebar .velde h2 a {
  color: inherit;
}

.sidebar .contact {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.8rem;
}

.sidebar .contact a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}



.sidebar .contact img {
  width: calc(100% - 1.8rem);
  margin: 0.9rem auto 0;
  aspect-ratio: 1.1 / 1;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #f7f7f8 0%, #edf0f3 100%);
  border-radius: 1.3rem;
  padding: 0.8rem;
}

.sidebar .contact a p {
  margin: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  color: var(--text);
  font-size: 1.48rem;
  line-height: 1.22;
  font-weight: 700;
}

.course {
  min-width: 0;
}

.course h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.95rem, 2.3vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.course h1 i {
  color: var(--accent);
  margin-right: 0.7rem;
}

#custom-alert {
  display: none;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(88vw, 22rem) !important;
  max-width: min(88vw, 22rem) !important;
  padding: 5.3rem 1.1rem 4rem !important;
  background:
    radial-gradient(circle at top right, rgba(30, 64, 175, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%) !important;
  border: 1px solid rgba(30, 64, 175, 0.14) !important;
  border-radius: 1.9rem !important;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18) !important;
  text-align: center !important;
  z-index: 1000 !important;
  overflow: hidden;
}

#custom-alert::before,
#custom-alert::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

#custom-alert::before {
  content: "";
  top: 1.3rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background:
    url("/images/market-cart.png") center / 54% no-repeat,
    linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 12px 22px rgba(30, 64, 175, 0.16);
}

#custom-alert::after {
  content: "";
  bottom: 1.2rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background:
    url("/images/check.png") center / 70% no-repeat,
    linear-gradient(180deg, #ebfff2 0%, #c9f3d8 100%);
  box-shadow: 0 10px 18px rgba(31, 139, 76, 0.18);
}

#custom-alert img {
  display: none !important;
}

#custom-alert h3 {
  margin: 0 !important;
  font-size: clamp(1.34rem, 1.1vw, 1.7rem) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  color: var(--text) !important;
}

#custom-alert h3::after {
  display: none;
}

#custom-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.46) !important;
  backdrop-filter: blur(3px);
  z-index: 999 !important;
}

@media (max-width: 640px) {
  #custom-alert {
    width: min(88vw, 20.5rem) !important;
    max-width: min(88vw, 20.5rem) !important;
    padding: 4.8rem 1rem 3.6rem !important;
    border-radius: 1.7rem !important;
  }

  #custom-alert::before {
    top: 1.15rem;
    width: 3.9rem;
    height: 3.9rem;
  }

  #custom-alert::after {
    bottom: 1.05rem;
    width: 2.9rem;
    height: 2.9rem;
  }

  #custom-alert h3 {
    font-size: 1.22rem !important;
  }
}

#loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  display: none;
  place-items: center;
  z-index: 1001;
}

#loader-overlay.show {
  display: grid;
}

.spinner {
  width: 4.8rem;
  height: 4.8rem;
  border: 4px solid #f0f0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.home-search-section {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.8rem;
  padding: 0;
  background: #ffffff;
}

.home-search-section .container {
  max-width: 52rem;
  margin: 0 auto;
  background: transparent !important;
  padding: 0;
  overflow: visible;
}

.search-section-placeholder {
  width: 100%;
}

.home-search-form {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.home-search-input-wrap {
  position: relative;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #f0eeee;
  border-radius: 999px;
  overflow: clip;
  padding: 0 1.8rem 0 5.4rem;
}

.home-search-input-wrap i {
  position: absolute;
  left: 0.7rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 10px 18px rgba(30, 64, 175, 0.24);
}

#home-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
  color: #222;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

#home-search-input::placeholder {
  color: #737373;
}

.home-search-results {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1400;
}

.home-search-results.active {
  display: block;
}

html.search-panel-open,
body.search-panel-open {
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
}

body.search-panel-open {
  position: fixed;
  left: 0;
  right: 0;
}

.home-search-section.search-panel-open {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8.8rem);
  left: 0;
  right: 0;
  width: min(calc(100vw - 2.4rem), 56rem);
  max-width: calc(100vw - 2.4rem);
  margin-inline: auto;
  z-index: 1200;
  padding: 0;
  transform: none;
  overflow: visible;
}

.home-search-section.search-panel-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.home-search-section.search-panel-open .container {
  width: 100%;
  max-width: 100%;
  padding: 0.95rem 1rem 1.1rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.home-search-section.search-panel-open .home-search-input-wrap {
  overflow: hidden;
  padding-left: 5.4rem;
}

.home-search-section.search-panel-open .home-search-input-wrap i {
  left: 0.55rem;
}

.home-search-section.search-panel-open .home-search-results {
  max-height: min(58vh, 36rem);
  overflow-y: auto;
  z-index: 1401;
}

.home-search-section.search-panel-open .home-search-results.active {
  display: block !important;
}

.home-search-section.ios-search-guard:not(.search-panel-open) #home-search-input {
  pointer-events: none;
}

.floating-search-btn.is-active {
  background: var(--accent-dark);
}

.home-search-result-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-top: 1px solid #f3f4f6;
}

.home-search-result-item:first-child {
  border-top: 0;
}

.home-search-result-item img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}

.home-search-result-text strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.home-search-result-text span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.home-search-no-results {
  padding: 1.4rem;
  text-align: center;
  color: var(--muted);
}

.retro {
  margin-bottom: 1.6rem;
}

.retro-categories {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}

.retro-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(30, 64, 175, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}



.retro-back-link i {
  font-size: 1.2rem;
}

.retro-categories h2 {
  margin: 0 0 1.2rem;
  text-align: center;
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.retro-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}

.retro-category-card {
  min-height: 9rem;
  padding: 1rem 1.35rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 1.1rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 0 0 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
}



.retro-category-card--active {
  border-color: var(--accent) !important;
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.18) !important;
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.retro-category-card--active .retro-category-card__content h3 {
  color: var(--accent);
}

.retro-category-card--no-image {
  justify-content: center !important;
  text-align: center;
}

.retro-category-card--no-image .retro-category-card__content {
  width: 100%;
  text-align: center;
}

.retro-category-card__image {
  flex: 0 0 6.8rem !important;
  width: 6.8rem !important;
  min-width: 6.8rem !important;
  height: 6.8rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.retro-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retro-category-card__content {
  min-width: 0;
}

.retro-category-card__content h3 {
  margin: 0;
  font-size: calc(1.18rem + 1.5px);
  line-height: 1.18;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.retro-category-card__content p {
  display: none;
}

.promo-bubble-inline {
  margin: 0 0 2rem;
  background: var(--accent);
  color: #fff;
  padding: 1.2rem 1.6rem;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 14px 24px rgba(30, 64, 175, 0.18);
}

.promo-bubble-inline i {
  font-size: 1.5rem;
}

.course .box-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem 1.6rem;
  width: 100%;
  margin-bottom: 2.6rem;
}

.course .box-container > a,
.course .box-container > .product-card-shell {
  display: flex;
  flex: 1 1 calc(50% - 0.8rem);
  max-width: calc(50% - 0.8rem);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.course .box-container .box {
  min-height: 23.4rem;
  height: 100%;
  background: #fcfcfc;
  border: 1px solid #e4e7ec;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course .box-container .box.product-card {
  cursor: pointer;
}

.course .box-container .box.product-card:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.24);
  outline-offset: 4px;
}



.course .box-container .box .image {
  flex: 0 0 18.8rem;
  min-width: 20rem;
  background: linear-gradient(180deg, #eef0f3 0%, #dde2e8 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}

.course .box-container .box .image img {
  width: 104%;
  height: 100%;
  max-height: 18.6rem;
  object-fit: contain;
}



.course .box-container .box .kosik {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.45rem 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.course .box-container .box .kosik h5,
.course .hide {
  display: none;
}

.course .box-container .box h2 {
  margin: 0;
  font-size: 1.80rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.course .box-container .box .kosik .product-rating-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.7rem 0 0.15rem;
  color: #7a818d;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.course .box-container .box .kosik .product-rating-summary:focus-visible .product-rating-count {
  color: var(--accent);
}

.course .box-container .box .kosik .product-rating-summary:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.22);
  outline-offset: 3px;
  border-radius: 999px;
}

.course .box-container .box .kosik .product-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  color: #f5b301;
  font-size: calc(1.08rem + 2px);
  line-height: 1;
}

.course .box-container .box .kosik .product-rating-value {
  font-size: calc(1.02rem + 2px);
  font-weight: 800;
  color: var(--text);
}

.course .box-container .box .kosik .product-rating-count {
  font-size: calc(0.96rem + 2px);
  color: #8a919d;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.course .box-container .box h3 {
  margin: 0.9rem 0 0;
  font-size: 1.24rem;
  line-height: 1.42;
  font-weight: 500;
  color: #4b5563;
}

.course .spolecne {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding-bottom: 2rem;
}

.course .box-container .box .kosik > p,
.course .box-container .box .spolecne > p {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.4rem;
  font-size: calc(clamp(1.8rem, 1.1vw, 1.85rem) + 1px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.course .box-container .box .kosik > p del,
.course .box-container .box .kosik > p s,
.course .box-container .box .kosik > p .old-price,
.course .box-container .box .kosik > p [style*="line-through"],
.course .box-container .box .spolecne > p del,
.course .box-container .box .spolecne > p s,
.course .box-container .box .spolecne > p .old-price,
.course .box-container .box .spolecne > p [style*="line-through"] {
  color: #6b6b6b !important;
  font-size: calc(1em - 3px);
  text-decoration-thickness: 0.12em;
}

.course .box-container .box .kosik > p strong,
.course .box-container .box .kosik > p b,
.course .box-container .box .kosik > p .new-price,
.course .box-container .box .kosik > p span:last-child,
.course .box-container .box .spolecne > p strong,
.course .box-container .box .spolecne > p b,
.course .box-container .box .spolecne > p .new-price,
.course .box-container .box .spolecne > p span:last-child {
  color: var(--accent);
  font-size: inherit;
}

.course .box-container .box .kosik > p > span,
.course .box-container .box .spolecne > p > span {
  gap: 0.2rem 0.4rem !important;
}

.course .box-container .box .spolecne > p[style] {
  color: var(--muted);
  font-size: 1.3rem;
  padding-bottom: 0.2rem;
}

.course .box-container .box .form,
.course .box-container .box form {
  margin: 0;
  width: 100%;
  max-width: 22rem;
}

.course .box-container .box button {
  width: 100%;
  min-height: 4.2rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.2s ease;
  touch-action: manipulation;
}



.course .box-container .box button i {
  font-size: 1.3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding-bottom: 1rem;
}

.pagination a {
  color: var(--text);
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  background-color: #f3f4f6;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}



.pagination a.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination a.is-loading {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  opacity: 0.82;
}

.course .box-container > a.is-loading .box,
.course .box-container > .product-card-shell.is-loading .box,
.course .box-container .box.product-card.is-loading {
  opacity: 0.72;
  transform: none !important;
}

.listing-navigation-pending .pagination a,
.listing-navigation-pending .course .box-container > a,
.listing-navigation-pending .course .box-container > .product-card-shell,
.listing-navigation-pending .course .box-container .box.product-card {
  pointer-events: none;
}

.cart,
.floating-search-btn,
#backToTop,
.open-chat-btn {
  position: fixed;
  right: var(--floating-edge);
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  z-index: 150;
}

.cart {
  bottom: 8.2rem;
  background: var(--accent);
}

.cart a {
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.floating-search-btn {
  bottom: 14.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 2.2rem;
}

#backToTop {
  bottom: 1.8rem;
  display: none;
  background: #e9e9ea;
  color: #fff;
  font-size: 2rem;
}

.open-chat-btn {
  left: var(--floating-edge);
  right: auto;
  bottom: 8.2rem;
  background: #fff;
  color: var(--accent);
  border: 2px solid rgba(30, 64, 175, 0.12);
  font-size: 2rem;
}

#chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 230;
}

#chat-widget {
  position: fixed;
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(30rem, calc(100vw - 8rem));
  max-height: min(46rem, calc(100vh - 10rem));
  background: #fff;
  border-radius: 1.6rem;
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  z-index: 240;
}

.cw-header {
  padding: 1.1rem 1.4rem;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.45rem;
}

.cw-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.cw-body {
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.cw-body button,
#cw-submit {
  min-height: 4.1rem;
  border: 0;
  border-radius: 999px;
  background: #f8f9fb;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0 1.2rem;
  text-align: left;
}

#cw-selected-topic,
#cw-final-msg {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
}

.cw-input-container {
  display: grid;
  gap: 1rem;
}

.cw-input-container input,
.cw-input-container textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 1.4rem;
  padding: 1rem 1.2rem;
  outline: none;
  font-size: 12px;
}

.cw-input-container textarea {
  min-height: 8.8rem;
  resize: vertical;
}

#cw-submit,
.cw-input-container button {
  background: var(--accent);
  color: #fff;
  text-align: center;
}

footer {
  width: 100%;
  margin-top: 4.8rem;
  background:
    linear-gradient(180deg, rgba(30, 64, 175, 0.98) 0, rgba(30, 64, 175, 0.98) 4px, transparent 4px),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.18), transparent 30%),
    linear-gradient(135deg, #1f242b 0%, #2e3640 48%, #172554 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 35%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.footer-container,
.footer-bottom {
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.8rem, 2vw, 3.2rem);
  padding-top: 3.2rem;
  padding-bottom: 2.6rem;
}

.footer-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section h3 {
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 0.9rem;
  font-size: 1.68rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.8rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa 0%, #1e40af 100%);
}

.footer-section p,
.footer-section ul li,
.footer-section ul li a,
.contacty ul li span {
  font-size: 1.4rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.78rem;
  width: 100%;
}

.footer-section ul li a {
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}



.contacty ul li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.contacty ul li i {
  color: #60a5fa;
  font-size: 1.45rem;
  margin-top: 0.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}



.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  padding-bottom: 1.9rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1440px) {
  :root {
    --page-max: 1020px;
  }

  html {
    font-size: 56.5%;
  }
}

@media (max-width: 1280px) {
  :root {
    --page-max: 960px;
  }

  html {
    font-size: 55%;
  }

  header .navbar ul {
    gap: 2.8rem;
  }
}

@media (max-width: 1320px) {
  main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 1000px) {
  .cart,
  .floating-search-btn,
  #backToTop {
    right: 3rem;
  }

  .open-chat-btn {
    left: 3rem;
    right: auto;
  }
}

@media (max-width: 1080px) {
  header .container {
    min-height: 6.2rem;
    padding-inline: var(--page-gutter);
    justify-content: space-between;
  }

  header .header-left {
    position: static;
    transform: none;
  }

  header .header-actions {
    display: none;
  }

  header .fa-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.2rem;
    min-height: 4.2rem;
    padding: 0 1.6rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24);
  }

  header .navbar {
    position: absolute;
    top: calc(100% + 1rem);
    left: var(--page-gutter);
    right: var(--page-gutter);
    margin-left: 0;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  header .navbar.nav-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  header .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  header .navbar li {
    position: static;
    transform: none;
    border-top: 1px solid #f2f2f2;
  }

  header .navbar li:first-child {
    border-top: 0;
  }

  header .navbar a {
    width: 100%;
    padding: 1.3rem 1.6rem;
    font-size: 1.7rem;
  }

  header .navbar .mobile-only {
    display: block;
  }

  header .navbar .flag-item a {
    justify-content: flex-start;
    padding: 1.3rem 1.6rem;
  }

  header .navbar .flag-item img {
    width: 2.5rem;
    height: 1.7rem;
  }

  header .navbar .flag-item span {
    display: inline-block;
  }

  header .fa-bars.fa-times {
    background: var(--accent-dark);
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.6rem;
  }
}

@media (max-width: 1000px) {
  .course .box-container > a,
  .course .box-container > .product-card-shell {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .course .box-container .box .image {
    flex-basis: 16.5rem;
    min-width: 16.5rem;
  }

  .course .box-container .box .kosik {
    padding: 1.4rem 1.4rem 0;
  }

  .course .box-container .box h2 {
    font-size: 1.75rem;
  }

  .course .box-container .box .kosik .product-rating-summary {
    margin-top: 0.6rem;
    gap: 0.3rem 0.55rem;
  }

  .course .box-container .box .kosik .product-rating-stars {
    font-size: calc(1rem + 2px);
  }

  .course .box-container .box .kosik .product-rating-value {
    font-size: calc(0.96rem + 2px);
  }

  .course .box-container .box .kosik .product-rating-count {
    font-size: calc(0.9rem + 2px);
  }

  .course .box-container .box .spolecne > p {
    font-size: calc(1.8rem + 4px);
  }

  .course .box-container .box h3 {
    font-size: 1.18rem;
  }

  .course .box-container .box button {
    min-height: 3.7rem;
    font-size: 1.15rem;
  }
}

@media (min-width: 640px) and (max-width: 1000px) {
  .course .box-container .box {
    min-height: 22.6rem;
    height: auto;
  }

  .course .box-container .box .kosik {
    padding: 1.2rem 1.35rem 0;
  }

  .course .box-container .box h3 {
    margin-top: 0.7rem;
    line-height: 1.36;
  }

  .course .spolecne {
    margin-top: 0.75rem;
    padding-top: 0;
    gap: 0.65rem;
    padding-bottom: 0.9rem;
  }
}

@media (max-width: 768px) {
  .retro-categories {
    padding: 1.6rem;
  }

  .retro-categories h2 {
    font-size: 1.55rem;
  }

  .retro-category-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    min-height: 7.8rem;
    padding: 0.9rem;
  }

  .retro-category-card__image {
    flex: 0 0 4.2rem !important;
    width: 4.2rem !important;
    min-width: 4.2rem !important;
    height: 4.2rem !important;
  }

  .retro-category-card__content h3 {
    font-size: calc(1rem + 1.5px);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.6rem;
    padding-bottom: 2rem;
  }

  .footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.58rem;
  }

  .footer-section p,
  .footer-section ul li,
  .footer-section ul li a,
  .contacty ul li span {
    font-size: 1.34rem;
  }

  .footer-section ul {
    gap: 0.65rem;
  }

  .social-icons a {
    width: 3.8rem;
    height: 3.8rem;
  }

  .footer-bottom {
    padding-top: 1.35rem;
    padding-bottom: 1.7rem;
  }

  .footer-bottom p {
    font-size: 1.17rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 58%;
  }

  #home-search-input {
    font-size: 16px !important;
  }

  header .top-banner h5 {
    font-size: 1.2rem;
  }

  main {
    padding-inline: 1.2rem;
    padding-top: 1.2rem;
  }

  .home-search-section .container {
    padding: 0.8rem 1rem;
  }

  .home-search-input-wrap {
    min-height: 4.8rem;
    padding-left: 5.8rem;
  }

  .home-search-input-wrap i {
    left: 0.7rem;
    width: 3.8rem;
    height: 3.8rem;
  }

  .course h1 {
    font-size: 1.9rem;
  }

  .course .box-container .box {
    min-height: auto;
    height: auto;
  }

  .course .box-container .box .image {
    flex-basis: 13.6rem;
    min-width: 13.6rem;
    padding: 1rem;
  }

  .course .box-container .box .image img {
    max-height: 11.8rem;
  }

  .cart,
  .floating-search-btn,
  #backToTop,
  .open-chat-btn {
    right: 2.4rem;
    width: 4.8rem;
    height: 4.8rem;
  }

  .open-chat-btn {
    left: 2.2rem;
    right: auto;
    bottom: 13rem;
  }

  .cart {
    bottom: 13rem;
  }

  .floating-search-btn {
    bottom: 19.4rem;
  }

  #backToTop {
    bottom: 2.4rem;
  }

  #chat-widget {
    left: 50%;
    right: auto;
    top: auto;
    width: min(27.5rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100vh - 9rem));
    bottom: 20rem;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  html.mobile-search-open,
  body.mobile-search-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .home-search-section.mobile-search-open {
    position: fixed;
    inset: 0;
    z-index: 1200;
    margin: 0;
    padding: 8.8rem 1.2rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
  }

  .home-search-section.mobile-search-open .container {
    width: min(52rem, 100%);
    max-width: min(52rem, 100%);
    padding: 0.95rem 1rem 1.1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
  }

  .home-search-section.mobile-search-open .home-search-input-wrap {
    overflow: hidden;
    padding-left: 5.4rem;
  }

  .home-search-section.mobile-search-open .home-search-input-wrap i {
    left: 0.55rem;
  }

  .home-search-section.mobile-search-open .home-search-results {
    max-height: min(58vh, 36rem);
    overflow-y: auto;
  }

  .floating-search-btn.is-active {
    background: var(--accent-dark);
  }
}

@media (max-width: 500px) {
  .course .box-container .box {
    display: grid;
    grid-template-columns: 9.8rem minmax(0, 1fr);
  }

  .course .box-container .box .image {
    min-width: 9.8rem;
    padding: 0.8rem;
  }

  .course .box-container .box .image img {
    max-height: 9.4rem;
  }

  .course .box-container .box .kosik {
    padding: 1rem 1rem 0;
  }

  .course .box-container .box h2 {
    font-size: 1.45rem;
  }

  .course .box-container .box h3 {
    margin-top: 0.6rem;
    font-size: 1.08rem;
  }

  .course .box-container .box .spolecne {
    gap: 0.8rem;
  }

  .course .box-container .box .spolecne > p {
    font-size: calc(1.32rem + 4px);
    gap: 0.25rem 0.7rem;
  }
}

@media (max-width: 420px) {
  header .container {
    padding-inline: 1.2rem;
  }

  header .logo img {
    width: 14.2rem;
  }

  .retro-category-card {
    min-height: 7.2rem;
    padding: 0.8rem;
  }

  .retro-category-card__image {
    flex: 0 0 3.8rem !important;
    width: 3.8rem !important;
    min-width: 3.8rem !important;
    height: 3.8rem !important;
  }

  .retro-category-card__content h3 {
    font-size: calc(0.96rem + 1.5px);
  }

  .footer-container,
  .footer-bottom {
    padding-inline: 1.6rem;
  }

  .contacty ul li {
    grid-template-columns: 1.65rem 1fr;
    gap: 0.75rem;
  }
}

@supports (content-visibility: auto) {
  .course .box-container .box,
  .retro-category-card,
  .sidebar .contact a {
    content-visibility: auto;
  }

  .course .box-container .box {
    contain-intrinsic-size: 38rem;
  }

  .retro-category-card {
    contain-intrinsic-size: 10rem;
  }

  .sidebar .contact a {
    contain-intrinsic-size: 14rem;
  }
}
/* touch-hover-disable */
@media (max-width: 1000px) {
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}

/* Product benefit badges - zkopirovatelne CSS pro obdelniky nad cenu produktu */
.product-benefit-badges {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  margin: 0 0 0.55rem;
}

.product-benefit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.3rem 0.55rem;
  background: #eff6ff;
  color: #172554;
  border: 1px solid #bfdbfe;
  border-radius: 0.25rem;
  font-size: 1.18rem;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.product-benefit-badges + p {
  margin-top: 0 !important;
}

/* On mobile, keep the complete label text inside its border. */
@media (max-width: 640px) {
  .product-benefit-badge {
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Align every field in horizontal listing cards across each card row. */
.course .box-container .box.product-card .kosik {
  --listing-title-row: 4.3rem;
  --listing-rating-row: 3.4rem;
  --listing-promo-row: 6.5rem;
  --listing-description-row: 7.2rem;
  --listing-benefits-row: 5.2rem;
  --listing-price-row: 4.8rem;
  display: grid;
  grid-template-rows: var(--listing-title-row) var(--listing-rating-row) var(--listing-promo-row) var(--listing-description-row) minmax(0, 1fr);
  align-items: start;
}
.course .box-container .box.product-card .kosik > h2 { grid-row: 1; margin: 0; align-self: center; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.course .box-container .box.product-card .kosik > .product-rating-summary { grid-row: 2; margin: 0; align-self: center; }
.course .box-container .box.product-card .kosik > .daily-sale-badge,
.course .box-container .box.product-card .kosik > .product-promo-badge { grid-row: 3; margin-top: auto; margin-bottom: auto; align-self: center; }
.course .box-container .box.product-card .kosik > h3 { grid-row: 4; margin: 0; align-self: start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.course .box-container .box.product-card .kosik > .spolecne {
  grid-row: 5;
  min-height: 0;
  margin-top: 0;
  padding-top: 0.5rem;
  display: grid;
  grid-template-rows: var(--listing-price-row) minmax(4.2rem, 1fr);
  gap: 0;
}
.course .box-container .box.product-card .spolecne > .product-benefit-badges { margin: 0; align-self: start; }
.course .box-container .box.product-card .spolecne > p { margin: 0; align-self: center; }
.course .box-container .box.product-card .spolecne > form { align-self: end; }
@media (max-width: 640px) {
  .course .box-container .box.product-card .kosik {
    --listing-title-row: 4rem;
    --listing-rating-row: 3.2rem;
    --listing-promo-row: 6.2rem;
    --listing-description-row: 6.8rem;
    --listing-benefits-row: 5rem;
    --listing-price-row: 4.5rem;
  }
}

.course .box-container .box.product-card .spolecne > p { align-self: end; }

/* Full product names and a small gap between price and order button. */
.course .box-container .box.product-card .kosik { --listing-title-row: 7.2rem; }
.course .box-container .box.product-card .kosik > h2 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: normal;
  overflow-wrap: anywhere;
}
.course .box-container .box.product-card .spolecne > form { margin-top: 0.8rem; }
@media (max-width: 640px) {
  .course .box-container .box.product-card .kosik { --listing-title-row: 6.8rem; }
}

/* On phones the daily-sale badge follows the left edge of the product content. */
@media (max-width: 640px) {
  .course .box-container .box .kosik > .daily-sale-badge {
    margin-left: 0;
    margin-right: 0;
  }
}

/* A single-column listing does not need cross-card row alignment. */
@media (max-width: 1000px) {
  .course .box-container .box.product-card .kosik { display: flex; flex-direction: column; align-items: stretch; }
  .course .box-container .box.product-card .kosik > h2 { margin: 0; align-self: auto; }
  .course .box-container .box.product-card .kosik > .product-rating-summary { margin: 0.6rem 0 0.15rem; align-self: flex-start; }
  .course .box-container .box.product-card .kosik > .daily-sale-badge,
  .course .box-container .box.product-card .kosik > .product-promo-badge { margin-top: 0.7rem; margin-bottom: 0; align-self: flex-start; }
  .course .box-container .box.product-card .kosik > h3 { margin-top: 0.6rem; align-self: auto; }
  .course .box-container .box.product-card .kosik > .spolecne { display: flex; flex-direction: column; margin-top: 0.75rem; padding-top: 0; gap: 0.8rem; }
  .course .box-container .box.product-card .spolecne > p,
  .course .box-container .box.product-card .spolecne > form { align-self: flex-start; }
  .course .box-container .box.product-card .spolecne > form { margin-top: 0; }
}


/* Every card fills the single-column row below the two-column breakpoint. */
@media (max-width: 1000px) {
  .course .box-container > a,
  .course .box-container > .product-card-shell { width: 100%; min-width: 0; }
  .course .box-container > a > .box.product-card,
  .course .box-container > .product-card-shell > .box.product-card { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
}

/* Product listings keep reviews on the detail page and show compact specifications. */
.course .box-container .box.product-card {
  position: relative;
}

.course .box-container .box.product-card .product-rating-summary {
  display: none !important;
}

.course .box-container .box.product-card .kosik {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

.course .box-container .box.product-card .kosik:has(> .product-promo-badge) {
  padding-top: 4.4rem;
}

.course .box-container .box.product-card .kosik > .product-promo-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 4;
  max-width: calc(100% - 1.6rem);
  margin: 0 !important;
  align-self: auto;
}

.course .box-container .box.product-card .kosik > h2 {
  margin: 0;
  align-self: stretch;
}

.course .box-container .box.product-card .kosik > h3 {
  margin: 0.65rem 0 0;
  align-self: stretch;
}

.course .box-container .box.product-card .product-card-specs {
  width: 100%;
  margin: 0.8rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  color: #20242a;
}

.course .box-container .box.product-card .product-card-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.course .box-container .box.product-card .product-card-specs dt,
.course .box-container .box.product-card .product-card-specs dd {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.25;
}

.course .box-container .box.product-card .product-card-specs dt {
  min-width: 0;
}

.course .box-container .box.product-card .product-card-specs dd {
  max-width: 14rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.course .box-container .box.product-card .kosik > .spolecne {
  margin-top: auto;
}

@media (max-width: 500px) {
  .course .box-container .box.product-card .product-card-specs dt,
  .course .box-container .box.product-card .product-card-specs dd {
    font-size: 0.94rem;
  }

  .course .box-container .box.product-card .product-card-specs__row {
    gap: 0.45rem;
  }

  .course .box-container .box.product-card .product-card-specs dd {
    max-width: 8rem;
  }
}

/* Compact commerce summary shared by product, category and search cards. */
.course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
  padding-top: 4.4rem;
}

.course .box-container .box.product-card .kosik > .daily-sale-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 5;
  max-width: calc(100% - 1.6rem);
  margin: 0 !important;
  background: linear-gradient(135deg, #d9343b, #b71c1c) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(183, 28, 28, 0.2) !important;
}

.course .box-container .box.product-card.daily-sale-card {
  border: 1px solid #e2a0a0 !important;
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.1) !important;
}

.course .box-container .box.product-card .product-card-specs__row {
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 0.5rem;
}

.course .box-container .box.product-card .product-card-specs dd {
  max-width: none;
  text-align: left;
}

.course .box-container .box.product-card .spolecne > p:not([style]) {
  font-size: 2.05rem !important;
  font-weight: 900 !important;
}

.course .box-container .box.product-card .spolecne > p .old-price {
  font-weight: 500 !important;
}

.course .box-container .box.product-card .spolecne > p .new-price,
.course .box-container .box.product-card .spolecne > p strong,
.course .box-container .box.product-card .spolecne > p b,
.course .box-container .box.product-card .spolecne > p span:last-child {
  font-weight: 900 !important;
}

.course .box-container .box.product-card .product-card-net-price {
  display: block;
  margin: 0.22rem 0 0;
  color: #858585;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

@media (max-width: 500px) {
  .course .box-container .box.product-card .product-card-specs__row {
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    gap: 0.34rem;
  }

  .course .box-container .box.product-card .product-card-specs dd {
    max-width: none;
  }

  .course .box-container .box.product-card .spolecne > p:not([style]) {
    font-size: 1.78rem !important;
  }
}

/* Desktop cards mirror the homepage; mobile keeps its horizontal layout. */
.course .box-container .box.product-card:has(.product-promo-badge),
.course .box-container .box.product-card:has(.daily-sale-badge) {
  box-sizing: border-box;
  padding-top: 3.7rem;
}

.course .box-container .box.product-card .kosik:has(> .product-promo-badge),
.course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
  padding-top: 1.45rem;
}

.course .box-container .box.product-card .kosik > .product-promo-badge,
.course .box-container .box.product-card .kosik > .daily-sale-badge {
  width: fit-content;
  min-height: 2.55rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.25rem;
  font-size: 1rem !important;
  line-height: 1.2;
}

.course .box-container .box.product-card .kosik > .daily-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.course .box-container .box.product-card .daily-sale-badge__title {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.course .box-container .box.product-card .daily-sale-badge__time {
  display: none !important;
}

.course .box-container .box.product-card .product-card-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.course .box-container .box.product-card .product-card-price-stack > p {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 2.05rem !important;
  font-weight: 900 !important;
  line-height: 1.12;
  text-align: right;
}

.course .box-container .box.product-card .product-card-price-stack > p .old-price {
  font-weight: 500 !important;
}

.course .box-container .box.product-card .product-card-price-stack > p .new-price,
.course .box-container .box.product-card .product-card-price-stack > p strong,
.course .box-container .box.product-card .product-card-price-stack > p b,
.course .box-container .box.product-card .product-card-price-stack > p span:last-child {
  font-weight: 900 !important;
}

.course .box-container .box.product-card .product-card-price-stack > .product-card-net-price {
  align-self: flex-end;
  margin-top: 0.22rem;
  text-align: right;
}

@media (min-width: 1001px) {
  .course .box-container .box.product-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-height: 54rem;
    background: linear-gradient(180deg, #ebebeb 0%, #d8d8d8 100%) !important;
    border: 0 !important;
  }

  .course .box-container .box.product-card.daily-sale-card {
    border: 1px solid #e2a0a0 !important;
  }

  .course .box-container .box.product-card > .image {
    flex: 0 0 22rem;
    width: 100%;
    min-width: 0;
    height: 22rem;
    padding: 1.2rem 1.4rem;
    background: transparent;
    border: 0;
  }

  .course .box-container .box.product-card > .image img {
    width: 100%;
    height: 100%;
    max-height: 20rem;
    object-fit: contain;
  }

  .course .box-container .box.product-card > .kosik {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 1.25rem 1.4rem 0;
    background: transparent;
  }

  .course .box-container .box.product-card .kosik:has(> .product-promo-badge),
  .course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
    padding-top: 1.25rem;
  }

  .course .box-container .box.product-card .product-card-specs {
    margin-bottom: 1.2rem;
  }

  .course .box-container .box.product-card .kosik > .spolecne {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 0.8rem;
  }

  .course .box-container .box.product-card .product-card-price-stack {
    align-self: center;
    margin: 0 auto;
  }

  .course .box-container .box.product-card .spolecne > form {
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin-top: 0.4rem;
  }
}

@media (max-width: 1000px) {
  .course .box-container .box.product-card .kosik:has(> .product-promo-badge),
  .course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
    padding-top: 1.4rem;
  }

  .course .box-container .box.product-card .product-card-price-stack {
    align-self: flex-start;
  }
}

@media (max-width: 500px) {
  .course .box-container .box.product-card:has(.product-promo-badge),
  .course .box-container .box.product-card:has(.daily-sale-badge) {
    padding-top: 3.25rem;
  }

  .course .box-container .box.product-card .kosik:has(> .product-promo-badge),
  .course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
    padding-top: 1rem;
  }

  .course .box-container .box.product-card .kosik > .product-promo-badge,
  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    min-height: 2.25rem;
    padding: 0.3rem 0.5rem;
    font-size: max(0.82rem, 9px) !important;
  }

  .course .box-container .box.product-card .product-card-price-stack > p {
    font-size: 1.45rem !important;
  }

  .course .box-container .box.product-card .product-card-price-stack > .product-card-net-price {
    font-size: 0.88rem;
  }
}

/* Mobile badges occupy their own row above the unchanged horizontal card. */
@media (max-width: 500px) {
  .course .box-container .box.product-card .kosik > .product-promo-badge,
  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    right: auto;
    left: 0.8rem;
  }

  .course .box-container .box.product-card .product-card-price-stack > p span,
  .course .box-container .box.product-card .product-card-price-stack > p strong,
  .course .box-container .box.product-card .product-card-price-stack > p b {
    font-size: inherit !important;
  }

  .course .box-container .box.product-card .product-card-price-stack > p .old-price {
    font-size: calc(1em - 2px) !important;
  }
}

/* Left-aligned category context and a cache-friendly catalogue sorter. */
.retro-categories > .retro-back-link {
  margin-right: auto;
  margin-left: 0;
}

.retro-categories > h2 {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  text-align: left;
}

.catalog-sort {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 4.2rem;
  margin: 0 0 1.6rem;
  padding: 0 0.45rem;
  overflow-x: auto;
  background: #eeeeee;
  border-bottom: 1px solid #dddddd;
  scrollbar-width: none;
}

.catalog-sort::-webkit-scrollbar {
  display: none;
}

.catalog-sort__item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.8rem 1.25rem;
  color: #171717;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}



.catalog-sort__item.is-active {
  color: var(--accent);
  font-weight: 900;
}

.catalog-sort__item.is-active::after {
  content: '';
  position: absolute;
  right: 0.7rem;
  bottom: 0;
  left: 0.7rem;
  height: 0.22rem;
  background: var(--accent);
}

@media (max-width: 500px) {
  .retro-categories > .retro-back-link {
    justify-content: flex-start;
  }

  .catalog-sort {
    min-height: 3.8rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .catalog-sort__item {
    min-width: auto;
    padding: 0.72rem 1rem;
    font-size: 1.05rem;
  }
}

/* Three equal desktop columns with the same card treatment as the homepage. */
@media (min-width: 1001px) {
  .course .box-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.9rem;
  }

  .course .box-container > a,
  .course .box-container > .product-card-shell {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .course .box-container .box.product-card {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    padding: 0.7rem 0.95rem 0;
    background: linear-gradient(180deg, #eef1f5 0%, #e8ecf1 100%) !important;
    border: 1px solid #e2e6eb !important;
    box-shadow: none;
    overflow: hidden;
  }

  .course .box-container .box.product-card.daily-sale-card {
    border-color: #e2a0a0 !important;
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.1);
  }

  body .course .box-container .box.product-card > .image {
    flex: 0 0 20.5rem;
    width: 100%;
    min-width: 0;
    height: 20.5rem;
    margin: 0 auto 0.55rem;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
  }

  body .course .box-container .box.product-card > .image::before,
  body .course .box-container .box.product-card > .image::after {
    display: none !important;
  }

  body .course .box-container .box.product-card > .image img {
    width: min(100%, 23.8rem);
    height: 20.5rem;
    max-height: none;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
  }

  .course .box-container .box.product-card > .kosik {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
  }

  .course .box-container .box.product-card .kosik:has(> .product-promo-badge),
  .course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
    padding-top: 0;
  }

  .course .box-container .box.product-card .kosik > .product-promo-badge,
  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    top: 0.7rem;
    right: auto;
    left: 0;
  }

  .course .box-container .box.product-card .kosik > h2 {
    min-height: 2.3em;
    margin: 0;
    padding-top: 5px;
    color: var(--text);
    font-size: calc(1.24rem + 4px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .course .box-container .box.product-card .product-card-specs {
    margin: 0.8rem 0 1rem;
    gap: 0.24rem;
  }

  .course .box-container .box.product-card .product-card-specs__row {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 0.45rem;
  }

  .course .box-container .box.product-card .product-card-specs dt,
  .course .box-container .box.product-card .product-card-specs dd {
    font-size: 1.02rem;
  }

  .course .box-container .box.product-card .kosik > .spolecne {
    gap: 0.6rem;
    margin-top: auto;
    padding: 0;
  }

  .course .box-container .box.product-card .product-card-price-stack {
    align-self: center;
    margin: 0 auto;
  }

  .course .box-container .box.product-card .product-card-price-stack > p {
    font-size: 2.2rem !important;
  }

  .course .box-container .box.product-card .spolecne > form {
    width: calc(100% + 1.9rem);
    max-width: none;
    margin: 0 -0.95rem;
  }

  .course .box-container .box.product-card button {
    min-height: 3rem;
    margin-top: 5px;
    font-size: 1.2rem;
  }
}

/* Phone prices are three pixels larger without changing the mobile card layout. */
@media (max-width: 500px) {
  .course .box-container .box.product-card .product-card-price-stack > p {
    font-size: calc(1.45rem + 3px) !important;
  }
}

/* Daily Sale matches a regular note and keeps only hours and minutes. */
.course .box-container .box.product-card:has(.daily-sale-badge) {
  padding-top: 3.7rem !important;
}

.course .box-container .box.product-card .kosik > .daily-sale-badge {
  top: 0.7rem;
  right: auto;
  left: 0;
  display: inline-flex !important;
  flex-direction: row;
  width: fit-content;
  max-width: calc(100% - 1.4rem);
  min-height: 2.55rem;
  padding: 0.42rem 0.72rem;
  border-radius: 0.25rem;
  font-size: 1rem !important;
  line-height: 1.2;
  white-space: nowrap;
}

.course .box-container .box.product-card .daily-sale-badge__title {
  margin: 0 0.28rem 0 0;
}

.course .box-container .box.product-card .daily-sale-badge__time {
  display: inline-flex !important;
  gap: 0.2rem;
}

.course .box-container .box.product-card .daily-sale-badge__time small:not(:last-child) {
  margin-right: 0.18rem;
}

.course .box-container .box.product-card .daily-sale-badge__time strong,
.course .box-container .box.product-card .daily-sale-badge__time small {
  margin: 0;
  font: inherit;
}

.course .box-container .box.product-card [data-countdown-seconds],
.course .box-container .box.product-card [data-countdown-seconds] + small {
  display: none !important;
}

/* On phones the image reaches the top; both notes live inside the right content side. */
@media (max-width: 500px) {
  .course .box-container .box.product-card:has(.product-promo-badge),
  .course .box-container .box.product-card:has(.daily-sale-badge) {
    padding-top: 0 !important;
  }

  .course .box-container .box.product-card .kosik:has(> .product-promo-badge),
  .course .box-container .box.product-card .kosik:has(> .daily-sale-badge) {
    padding-top: 3.75rem;
  }

  .course .box-container .box.product-card .kosik > .product-promo-badge,
  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    top: 0.7rem;
    right: auto;
    left: calc(9.8rem + 0.8rem);
    max-width: calc(100% - 11.4rem);
  }

  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    min-height: 2.25rem;
    padding: 0.3rem 0.5rem;
    font-size: max(0.78rem, 9px) !important;
  }
}

/* Final card price colours and mobile badge alignment. */
.course .box-container .box.product-card .product-card-price-stack > p {
  color: #d32f2f !important;
  font-weight: 900 !important;
}

.course .box-container .box.product-card .product-card-price-stack > p del,
.course .box-container .box.product-card .product-card-price-stack > p s,
.course .box-container .box.product-card .product-card-price-stack > p .old-price,
.course .box-container .box.product-card .product-card-price-stack > p [style*="line-through"] {
  color: #777777 !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 0.12em;
}

.course .box-container .box.product-card .product-card-price-stack > p .new-price,
.course .box-container .box.product-card .product-card-price-stack > p strong,
.course .box-container .box.product-card .product-card-price-stack > p b,
.course .box-container .box.product-card .product-card-price-stack > p span:last-child {
  color: #d32f2f !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.course .box-container .box.product-card .product-card-price-stack > p .daily-sale-price__separator {
  color: var(--text, #111111) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.course .box-container .box.product-card .kosik > .daily-sale-badge,
.course .box-container .box.product-card .kosik > .daily-sale-badge * {
  font-weight: 900 !important;
}

@media (max-width: 500px) {
  .course .box-container .box.product-card .kosik > .product-promo-badge,
  .course .box-container .box.product-card .kosik > .daily-sale-badge {
    right: 0.7rem;
    left: auto;
  }
}

.course .box-container .box.product-card {
  background: linear-gradient(180deg, #ebebeb 0%, #d8d8d8 100%) !important;
}
/* Smarty-like category context: plain heading and cards flowing from the left edge. */
.retro-categories > .retro-grid {
  justify-content: flex-start !important;
}

.retro-categories > .retro-back-link,
.retro-categories > h2 {
  align-self: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.retro-categories > h2 {
  display: block !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 1.4rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111111 !important;
  font-size: clamp(2rem, 2.2vw, 2.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.product-card-vat-note {
  display: block;
  margin-top: 0.15rem;
  color: #8a8a8a;
  font-size: 0.85em;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
}

/* Square blue back-to-category link. */
.retro-categories > .retro-back-link {
  padding: 0.85rem 1.25rem !important;
  color: #1e40af !important;
  background: #ffffff !important;
  border: 1px solid #8fb5ee !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}



/* Brand-colored active subcategory frame. */
.retro-categories .retro-category-card--active {
  background: #ffffff !important;
  border: 3px solid #1e40af !important;
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.14) !important;
}

.retro-categories .retro-category-card--active .retro-category-card__content h3 {
  color: #1e40af !important;
}

/* Reserve the same badge row so every desktop product card stays aligned. */
@media (min-width: 501px) {
  .course .box-container .box.product-card {
    box-sizing: border-box;
    padding-top: 3.7rem !important;
  }

  .course .box-container .box.product-card .kosik > h2 {
    height: calc(2.3em + 5px);
    min-height: calc(2.3em + 5px);
  }
}

.course .box-container .box.product-card.daily-sale-card {
  border: 0 !important;
  outline: 1px solid #e2a0a0;
  outline-offset: -1px;
}
/* Subtle fill for category cards; keep the selected subcategory highlighted. */
.retro-categories .retro-category-card:not(.retro-category-card--active) {
  background: #f5f5f5 !important;
}

/* Align category content with the catalogue section below. */
.retro-categories {
  box-sizing: border-box;
  width: 100%;
  padding-inline: 0 !important;
}

/* Subcategory cards stay white, while their active border remains visible. */
.retro-categories.retro-categories--subcategories .retro-category-card {
  background: #ffffff !important;
}

/* Slightly larger category artwork on desktop and mobile. */
.retro-categories .retro-category-card__image {
  flex-basis: 7.3rem !important;
  width: 7.3rem !important;
  min-width: 7.3rem !important;
  height: 7.3rem !important;
}

@media (max-width: 768px) {
  .retro-categories .retro-category-card__image {
    flex-basis: 4.5rem !important;
    width: 4.5rem !important;
    min-width: 4.5rem !important;
    height: 4.5rem !important;
  }
}

@media (max-width: 420px) {
  .retro-categories .retro-category-card__image {
    flex-basis: 4.1rem !important;
    width: 4.1rem !important;
    min-width: 4.1rem !important;
    height: 4.1rem !important;
  }
}

/* Enlarge only main-category artwork; subcategories keep their current size. */
@media (min-width: 769px) {
  .retro-categories:not(.retro-categories--subcategories) .retro-category-card__image {
    flex-basis: 8.4rem !important;
    width: 8.4rem !important;
    min-width: 8.4rem !important;
    height: 8.4rem !important;
  }
}

@media (max-width: 768px) {
  .retro-categories:not(.retro-categories--subcategories) .retro-category-card__image {
    flex-basis: 5.3rem !important;
    width: 5.3rem !important;
    min-width: 5.3rem !important;
    height: 5.3rem !important;
  }
}

@media (max-width: 420px) {
  .retro-categories:not(.retro-categories--subcategories) .retro-category-card__image {
    flex-basis: 4.9rem !important;
    width: 4.9rem !important;
    min-width: 4.9rem !important;
    height: 4.9rem !important;
  }
}

/* Keep AI-SR together below the model name, including narrow product cards. */
.course .box.product-card > h4:has(> .product-card-title__suffix),
.course .box-container .box.product-card .kosik > h2:has(> .product-card-title__suffix) {
  display: block;
  height: auto;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.course .box.product-card .product-card-title__suffix {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Let AI-SR follow the model name in stacked catalogue cards on mobile/tablet. */
@media (max-width: 1000px) {
  .course .box-container .box.product-card .kosik > h2 > .product-card-title__suffix {
    display: inline-block;
  }
}
