: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;
  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;
}

section,
.home-search-section {
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container {
  width: 100%;
}

.hidden,
.cw-hidden {
  display: none !important;
}

.site-wrapper {
  display: none;
}

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 a.active {
  transition: none;
}

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;
}

a[href="/produkty.php"][target="_blank"] {
  display: block;
}

.home {
  position: relative;
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--page-max);
  padding-inline: 0;
  height: auto;
  aspect-ratio: 16 / 5;
  margin-top: 0.8rem;
  background: #f7f7f8;
  border: 0;
  overflow: hidden;
}

.home .slider-img,
.home .home-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home .slider-img {
  opacity: 1;
  transition: opacity 0.45s ease;
  background: #f7f7f8;
}

.home .slider-img.hidden {
  opacity: 0;
}

.home .home-img,
.home .overlay,
.home .content {
  display: none;
}

.home picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home::after {
  content: none;
}

.home::before {
  content: none;
}

.home .arrow {
  display: none;
}

.home--secondary {
  margin-top: 2.4rem;
}

.home-search-section {
  margin-top: 1.1rem;
}

.home-search-section .container {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--surface);
  padding: 0.8rem 1.2rem;
  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);
}

.home-categories {
  margin-top: 1rem;
}

.home-categories h2 {
  display: block !important;
  width: auto;
  max-width: none;
  margin: 0 0 0.9rem !important;
  padding: 0;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  color: var(--text) !important;
  font-size: clamp(1.8rem, 2.1vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.category-card {
  flex: 1 1 calc(25% - 0.7rem);
  max-width: calc(25% - 0.7rem);
  min-width: 18rem;
  min-height: 12rem;
  padding: 0.9rem 1rem 0.8rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}



.category-card__content {
  order: -1;
  width: 100%;
}

.category-card__content h3 {
  min-height: 2.3em;
  margin: 0;
  font-size: calc(1.16rem + 1.5px);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.category-card__content p {
  display: none;
}

.category-card__image {
  min-height: 7.9rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__image img {
  width: 100%;
  max-width: 16rem;
  max-height: 8rem;
  object-fit: contain;
}

.course {
  margin-top: 1.8rem;
}

.course .heading {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: clamp(1.8rem, 2.1vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.course h5 {
  display: none;
}

.course .box-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.course .box-container > a,
.course .box-container > .product-card-shell {
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.course .box {
  min-height: 100%;
  padding: 0.7rem 0.95rem 0;
  background: linear-gradient(180deg, #eef1f5 0%, #e8ecf1 100%);
  border: 1px solid #e2e6eb;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.course .box.product-card {
  cursor: pointer;
}
.course .box.product-card--daily-sale {
  position: relative;
  border: 2px solid #d32f2f;
  background: linear-gradient(180deg, #fff8f8 0%, #f6e9ea 100%);
  box-shadow: 0 12px 26px rgba(211, 47, 47, 0.22);
}



.daily-sale-badge {
  width: min(100%, 21rem);
  margin: 0.1rem auto 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: #fff;
  text-align: center;
  box-shadow: 0 7px 14px rgba(30, 58, 138, 0.24);
}

.daily-sale-badge__title {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.daily-sale-badge__time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.35rem;
  white-space: nowrap;
}

.daily-sale-badge__time strong {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.daily-sale-badge__time small {
  margin-right: 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.course .box.product-card:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.24);
  outline-offset: 4px;
}



.course .box h4 {
  min-height: 2.3em;
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: calc(1.24rem + 4px);
  line-height: 1.15;
  font-weight: 800;
  padding-top: 5px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.course .box .product-rating-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem auto 0.55rem;
  color: #7a818d;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.course .box .product-rating-summary + span,
.course .box .product-rating-summary + div {
  text-align: center;
}

.course .box .product-rating-summary:focus-visible .product-rating-count {
  color: var(--accent);
}

.course .box .product-rating-summary:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.24);
  outline-offset: 3px;
  border-radius: 999px;
}

.course .box .product-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  color: #f5b301;
  font-size: calc(1.06rem + 2px);
  line-height: 1;
}

.course .box .product-rating-value {
  font-size: calc(1rem + 2px);
  font-weight: 800;
  color: var(--text);
}

.course .box .product-rating-count {
  font-size: calc(0.92rem + 2px);
  color: #8a919d;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.course .box img {
  width: min(100%, 23.8rem);
  height: 20.5rem;
  margin: 0 auto 0.55rem;
  object-fit: contain;
}

.course .box > p {
  min-height: 3.5em;
  margin: 0 0 0rem;
  font-size: calc(0.92rem + 3px);
  line-height: 1.36;
  color: #4b5563;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course .box .kosik {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.course .box .kosik > p {
  margin: 0;
  text-align: center;
  font-size: clamp(2.1rem, 1.25vw, 1.95rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
}

.course .box .kosik > p del,
.course .box .kosik > p s,
.course .box .kosik > p .old-price,
.course .box .kosik > p [style*="line-through"] {
  color: #6b6b6b !important;
  font-size: calc(1em - 3px);
  text-decoration-thickness: 0.12em;
}

.course .box .kosik > p .new-price,
.course .box .kosik > p strong,
.course .box .kosik > p span:last-child {
  color: var(--accent);
  font-size: inherit;
}

.course .box .kosik > p > span {
  gap: 0.2rem 0.4rem !important;
}

.course .box .kosik form,
.course .box .kosik button {
  width: 100%;
}

.course .box .kosik form {
  margin: 0 calc(0.95rem * -1) 0;
  width: calc(100% + 1.9rem);
}

.course .box .kosik button {
  min-height: 3rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.2s ease;
  margin-top: 5px;
  touch-action: manipulation;
}



.course .box .kosik button i {
  font-size: 1rem;
}

.course .box .kosik > p[style] {
  padding-bottom: 0.8rem;
  font-size: 1.05rem;
}

#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: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1001;
}

#loader-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.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);
  }
}

.procenta {
  margin-top: 2.4rem;
  margin-bottom: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.procenta-box {
  min-height: 15.5rem;
  padding: 1.6rem 1.4rem;
  background: #f2f2f2;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.procenta-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}

.procenta-box h5 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--accent);
}

.procenta-box p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #444;
}

.about {
  margin-top: 2.6rem;
  margin-bottom: 3.2rem;
}

.about .test {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.4rem;
  align-items: center;
}

.about .test > img {
  width: 100%;
  height: min(34rem, 38vw);
  object-fit: contain;
}

.about .testtext h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.3vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
}

.about .testtext h3 {
  margin: 0 0 1.4rem;
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 500;
  color: #4b5563;
}

.about .testtext strong {
  color: var(--text);
}

.about .testtext .kratsi {
  display: none;
}

.about .testtext .delsi {
  display: block;
}

.about .testtext a button {
  min-height: 5rem;
  padding: 0 2.2rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.2s ease;
}



#spravodaj {
  margin-top: 2.6rem;
}

.spravodaj-container {
  background: var(--soft-pink);
  padding: 2.2rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
}

.spravodaj-container h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.spravodaj-container .popis {
  margin: 0;
  max-width: 52rem;
  font-size: 1.35rem;
  line-height: 1.45;
  color: #4b5563;
}

.spravodaj-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: stretch;
}

.spravodaj-form input {
  min-height: 5.2rem;
  padding: 0 1.8rem;
  border: 1px solid #fff;
  background: #fff;
  font-size: 1.45rem;
  outline: none;
}

.spravodaj-form button {
  min-width: 18rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  font-weight: 800;
  padding: 0 2rem;
  transition: background 0.2s ease;
}



.souhlas {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: #6b7280;
}

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-brand {
  max-width: 34rem;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  width: clamp(140px, 11vw, 190px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.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 p {
  margin: 0 0 1.4rem;
}

.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: 980px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.6rem;
  }
}

@media (max-width: 640px) {
  footer {
    margin-top: 3.2rem;
  }

  .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: 420px) {
  .footer-container,
  .footer-bottom {
    padding-inline: 1.6rem;
  }

  .contacty ul li {
    grid-template-columns: 1.65rem 1fr;
    gap: 0.75rem;
  }
}

.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 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}

.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 {
  background: var(--accent);
  color: #fff;
  text-align: center;
}

@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);
  }

  .about .test,
  .spravodaj-container {
    grid-template-columns: 1fr;
  }

  .spravodaj-form {
    grid-template-columns: 1fr;
  }

  .spravodaj-form button {
    min-width: 0;
    min-height: 5.6rem;
  }
}

@media (max-width: 1000px) {
  .cart,
  .floating-search-btn,
  #backToTop {
    right: 3rem;
  }

  .open-chat-btn {
    left: 3rem;
    right: auto;
  }
}

@media (max-width: 900px) {
  .course .box-container,
  .procenta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid,
  .course .box-container {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
  }

  .categories-grid {
    gap: 0.9rem;
  }

  .category-card {
    flex-basis: calc(50% - 0.45rem);
    max-width: calc(50% - 0.45rem);
    min-width: 0;
  }

  .about .test {
    padding: 2.2rem;
    gap: 2rem;
  }

  .about .test > img {
    order: 2;
    height: auto;
  }

  .about .testtext .kratsi {
    display: block;
  }

  .about .testtext .delsi {
    display: none;
  }

}

@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;
  }

  .course .box-container {
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 58%;
  }

  #home-search-input {
    font-size: 16px !important;
  }

  header .top-banner h5 {
    font-size: 1.2rem;
  }

  .home::after,
  .home::before {
    bottom: 0.8rem;
    font-size: 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;
  }

  .home-categories {
    margin-top: 0.9rem;
  }

  .home-categories h2 {
    margin-bottom: 0.7rem !important;
    font-size: 1.75rem;
  }

  .categories-grid {
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
  }

  .category-card {
    flex: 0 1 calc(50% - 0.35rem);
    max-width: calc(50% - 0.35rem);
    min-width: 0;
    min-height: 7.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1.1rem;
    border-color: #ecdede;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    text-align: left;
  }

  

  .category-card__content {
    order: 1;
  }

  .category-card__content h3 {
    min-height: 0;
    font-size: calc(1.14rem + 1.5px);
    line-height: 1.22;
  }

  .category-card__image {
    min-height: 5.3rem;
    order: 0;
    justify-content: flex-start;
  }

  .category-card__image img {
    max-width: 5.4rem;
    max-height: 5.3rem;
  }

  .course .box {
    padding: 0.9rem 0.85rem 0;
  }

  .course .box h4 {
    min-height: 2.3em;
    font-size: calc(1.26rem + 2px);
  }

  .course .box .product-rating-summary {
    gap: 0.3rem 0.5rem;
    margin: 0.3rem auto 0.5rem;
  }

  .course .box .product-rating-stars {
    font-size: calc(0.98rem + 2px);
  }

  .course .box .product-rating-value {
    font-size: calc(0.94rem + 2px);
  }

  .course .box .product-rating-count {
    font-size: calc(0.86rem + 2px);
  }

  .course .box img {
    width: min(100%, 18.2rem);
    height: 16.3rem;
  }

  .course .box > p {
    min-height: 3.7em;
    margin-bottom: 0.75rem;
    font-size: 1.02rem;
  }

  .course .box .kosik > p {
    font-size: calc(1.6rem + 3px);
  }

  .course .box .kosik form {
    margin: 0 calc(0.85rem * -1) 0;
    width: calc(100% + 1.7rem);
  }

  .course .box .kosik button {
    min-height: 3.25rem;
    gap: 0.6rem;
    font-size: 0.96rem;
  }

  .spravodaj-container {
    padding: 2.2rem 1.6rem;
  }

  .procenta-box {
    min-height: 0;
    padding: 2rem 1.2rem;
  }

  .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: 420px) {
  section,
  .home-search-section {
    padding-inline: 1.2rem;
  }

  header .container {
    padding-inline: 1.2rem;
  }

  header .logo img {
    width: 14.2rem;
  }

  .categories-grid {
    gap: 0.55rem;
  }

  .category-card {
    flex-basis: calc(50% - 0.275rem);
    max-width: calc(50% - 0.275rem);
    min-height: 7.1rem;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    padding: 0.75rem 0.7rem;
    gap: 0.5rem;
  }

  .category-card__content h3 {
    font-size: calc(1.01rem + 1.5px);
    line-height: 1.18;
  }

  .category-card__image {
    min-height: 4.6rem;
  }

  .category-card__image img {
    max-width: 4.6rem;
    max-height: 4.6rem;
  }

  .course .box > p {
    min-height: 4.3em;
    font-size: 0.95rem;
    -webkit-line-clamp: 4;
  }

  .course .box h4 {
    font-size: calc(1.14rem + 1.5px);
  }

  .course .box .product-rating-summary {
    gap: 0.28rem 0.45rem;
    margin: 0.28rem auto 0.45rem;
  }

  .course .box .product-rating-stars {
    font-size: calc(0.92rem + 2px);
  }

  .course .box .product-rating-value {
    font-size: calc(0.9rem + 2px);
  }

  .course .box .product-rating-count {
    font-size: calc(0.8rem + 2px);
  }

  .course .box img {
    width: min(100%, 15.2rem);
    height: 13.5rem;
  }

  .course .box .kosik > p {
    font-size: calc(1.5rem + 3px);
  }

  .course .box .kosik button {
    min-height: 3rem;
    font-size: 1rem;
  }
}

@media (max-width: 460px) {
  .home {
    height: clamp(160px, 42vw, 210px);
    aspect-ratio: auto;
  }

  .home--secondary {
    margin-top: 1.8rem;
  }
}

@supports (content-visibility: auto) {
  .category-card,
  .course .box,
  .reference-card,
  .sprava-box {
    content-visibility: auto;
  }

  .category-card {
    contain-intrinsic-size: 10rem;
  }

  .course .box {
    contain-intrinsic-size: 36rem;
  }

  .reference-card,
  .sprava-box {
    contain-intrinsic-size: 18rem;
  }
}
/* 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: center;
  justify-content: center;
  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;
  }
}
/* Keep every homepage product-card field on a shared horizontal row. */
.course .box.product-card {
  --index-title-row:3.6rem; --index-rating-row:3.4rem; --index-promo-row:6.8rem; --index-image-row:21.05rem; --index-description-row:5.5rem; --index-benefits-row:5rem; --index-price-row:5rem;
  display:grid; grid-template-rows:var(--index-title-row) var(--index-rating-row) var(--index-promo-row) var(--index-image-row) var(--index-description-row) minmax(0,1fr); align-items:start;
}
.course .box.product-card > h4 { grid-row:1; margin:0; align-self:center; }.course .box.product-card > .product-rating-summary { grid-row:2; margin:auto; align-self:center; }.course .box.product-card > .daily-sale-badge, .course .box.product-card > .product-promo-badge { grid-row:3; align-self:center; }.course .box.product-card > img { grid-row:4; height:var(--index-image-row); margin:0 auto; align-self:center; }.course .box.product-card > p { grid-row:5; min-height:0; margin:0; align-self:start; }.course .box.product-card > .kosik { grid-row:6; min-height:0; margin-top:0; display:grid; grid-template-rows: var(--index-price-row) minmax(3rem, 1fr); gap:0; }.course .box.product-card > .kosik > .product-benefit-badges { margin:0; align-self:start; }.course .box.product-card > .kosik > p { margin:0; align-self:center; }.course .box.product-card > .kosik > form { align-self:end; }
@media (max-width:640px) { .course .box.product-card { --index-title-row:3.8rem; --index-rating-row:3.2rem; --index-promo-row:6.4rem; --index-image-row:16.85rem; --index-description-row:5.7rem; --index-benefits-row:5.2rem; --index-price-row:4.8rem; } } @media (max-width:420px) { .course .box.product-card { --index-title-row:3.7rem; --index-rating-row:3rem; --index-promo-row:6rem; --index-image-row:13.5rem; --index-description-row:5.2rem; --index-benefits-row:5rem; --index-price-row:4.4rem; } }

@media (max-width: 379.98px) {
  .course { padding-left: 0.6rem; padding-right: 0.6rem; }
  .course .box-container { gap: 0.45rem; }
  .course .box-container > .product-card-shell { min-width: 0; }
  .course .box.product-card {
    --index-title-row: 3.5rem;
    --index-rating-row: 2.9rem;
    --index-promo-row: 5.8rem;
    --index-image-row: 12.3rem;
    --index-description-row: 5rem;
    --index-benefits-row: 5.1rem;
    --index-price-row: 4.2rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
  .course .box.product-card .product-benefit-badges { gap: 0.35rem; }
  .course .box.product-card .product-benefit-badge {
    max-width: 100%;
    padding: 0.22rem 0.3rem;
    font-size: 0.9rem;
    line-height: 1.08;
    white-space: normal;
  }
  .course .box.product-card > .product-promo-badge {
    max-width: 100%;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.9rem !important;
  }
  .course .box.product-card > .kosik > p {
    max-width: 100%;
    font-size: 1.35rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .course .box.product-card .daily-sale-price .old-price { font-size: calc(1em - 3px); white-space: nowrap; }
  .course .box.product-card .daily-sale-price .daily-sale-price__new { font-size: inherit; }
  .course .box.product-card > .kosik form {
    width: calc(100% + 1.1rem);
    margin-left: -0.55rem;
    margin-right: -0.55rem;
  }
  .course .box.product-card > .kosik button {
    min-height: 3rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    gap: 0.3rem;
    font-size: 0.82rem;
  }
}

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

/* Keep the crossed-out amount 3px smaller than the current homepage price. */
.course .box.product-card .daily-sale-price .old-price { font-size: calc(1em - 3px); }
.course .box.product-card .daily-sale-price .daily-sale-price__new { font-size: inherit; }

/* Compact spacing for the now single-line price while preserving row alignment. */
.course .box.product-card { --index-benefits-row: 5.5rem; --index-price-row: 3.2rem; }
@media (max-width: 640px) { .course .box.product-card { --index-benefits-row: 5.3rem; --index-price-row: 3.1rem; } }
@media (max-width: 420px) { .course .box.product-card { --index-benefits-row: 5.2rem; --index-price-row: 3rem; } }
@media (max-width: 379.98px) { .course .box.product-card { --index-benefits-row: 4.2rem; --index-price-row: 2.1rem; } }

/* The Daily Deal badge stays centered inside an index product card at every width. */
.course .box.product-card--daily-sale .daily-sale-badge {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 640px) {
  .daily-sale-badge__time strong { font-size: calc(1.45rem - 1px) !important; }
  .daily-sale-badge__time small { font-size: calc(0.84rem - 1px) !important; }
}

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

/* Homatics homepage categories use a white surface with a subtle neutral edge. */
.home-categories .category-card {
  background: #ffffff !important;
  border: 1px solid #dedede !important;
}



/* Apply the listing-page product stage across the complete homepage card. */
.course .box.product-card,
.course .box-container .box.product-card,
.course .box.product-card--daily-sale,
.course .box-container .box.product-card--daily-sale {
  background: linear-gradient(180deg, #ebebeb 0%, #d8d8d8 100%) !important;
  border: 0 !important;
}

/* The complete card is the stage; the product render itself stays transparent. */
body .course .box.product-card > img {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Keep compact homepage category tiles visibly rectangular on phones. */
@media (max-width: 640px) {
  .home-categories .category-card {
    border-radius: 0 !important;
  }
}

@media (max-width: 399.98px) {
  .home-categories .category-card {
    border: 1px solid #dedede !important;
  }
}

.about .test {
  background: #f2f2f2 !important;
  border: 0 !important;
}

.about-home__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.about-home__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-home .testtext > p {
  margin: 0 0 1.4rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #4b5563;
}

@media (max-width: 900px) {
  .about-home__video {
    order: 2;
  }
}

/* The search treatment spans the full viewport while its input remains comfortably readable. */
.home-search-section:not(.search-panel-open):not(.mobile-search-open) {
  width: 100vw;
  max-width: none;
  margin: 1.1rem calc(50% - 50vw) 0;
  padding: 0.8rem var(--page-gutter);
  background: #ffffff;
}

.home-search-section:not(.search-panel-open):not(.mobile-search-open) .container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
}

/* Smarty-inspired homepage product-card order and technical summary. */
.course .box.product-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}

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

.course .box.product-card > img {
  order: 1;
  width: 100%;
  height: 21rem;
  margin: 0 auto;
  object-fit: contain;
  align-self: center;
}

.course .box.product-card > h4 {
  order: 2;
  min-height: 3.2rem;
  margin: 0.65rem 0 0;
  align-self: stretch;
}

.course .box.product-card > .daily-sale-badge {
  order: 3;
  margin-top: 0.65rem;
}

.course .box.product-card > p {
  order: 4;
  min-height: 0;
  margin: 0.65rem 0 0;
  align-self: stretch;
}

.course .box.product-card > .product-card-specs {
  order: 5;
}

.course .box.product-card > .kosik {
  order: 6;
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  margin-top: auto;
}

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

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

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

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

.product-card-specs dt {
  min-width: 0;
  text-align: left;
}

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

@media (max-width: 640px) {
  .course .box.product-card > img {
    height: 16rem;
  }

  .product-card-specs dt,
  .product-card-specs dd {
    font-size: 0.9rem;
  }

  .product-card-specs__row {
    gap: 0.4rem;
  }

  .product-card-specs dd {
    max-width: 7.2rem;
  }
}

/* Compact commerce summary: denser specifications, stronger price and net amount. */
.course .box.product-card > .daily-sale-badge {
  position: absolute;
  top: 0.7rem;
  left: 0;
  z-index: 5;
  max-width: calc(100% - 1.4rem);
  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.product-card--daily-sale,
.course .box-container .box.product-card--daily-sale {
  border: 1px solid #e2a0a0 !important;
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.1) !important;
}

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

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

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

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

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

.course .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: center;
}

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

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

  .course .box.product-card > .kosik > p:not([style]) {
    font-size: 1.9rem !important;
  }
}

/* Compact badges, exact price alignment and mobile-safe card spacing. */
.course .box.product-card:has(> .product-promo-badge),
.course .box.product-card:has(> .daily-sale-badge) {
  box-sizing: border-box;
  padding-top: 3.6rem !important;
}

.course .box.product-card > .product-promo-badge,
.course .box.product-card > .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.product-card > .daily-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

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

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

@media (max-width: 640px) {
  .course .box.product-card:has(> .product-promo-badge),
  .course .box.product-card:has(> .daily-sale-badge) {
    padding-top: 3.35rem !important;
  }

  .course .box.product-card > .product-promo-badge,
  .course .box.product-card > .daily-sale-badge {
    min-height: 2.3rem;
    padding: 0.34rem 0.56rem;
    font-size: max(0.88rem, 10px) !important;
  }

  .course .box.product-card .product-card-price-stack > p {
    font-size: calc(1.26rem + 2px) !important;
  }

  .course .box.product-card .product-card-price-stack > .product-card-net-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .course .box.product-card .product-card-price-stack > p {
    font-size: calc(1.14rem + 1.5px) !important;
  }
}

/* Keep embedded price markup on the same mobile scale as the product title. */
@media (max-width: 640px) {
  .course .box.product-card .product-card-price-stack > p span,
  .course .box.product-card .product-card-price-stack > p strong,
  .course .box.product-card .product-card-price-stack > p b {
    font-size: inherit !important;
  }

  .course .box.product-card .product-card-price-stack > p .old-price {
    font-size: calc(1em - 2px) !important;
  }
}

/* Phone prices are three pixels larger. */
@media (max-width: 640px) {
  .course .box.product-card .product-card-price-stack > p {
    font-size: calc(1.26rem + 5px) !important;
  }
}

@media (max-width: 420px) {
  .course .box.product-card .product-card-price-stack > p {
    font-size: calc(1.14rem + 4.5px) !important;
  }
}

/* Daily Sale matches a regular homepage note and shows only hours and minutes. */
.course .box.product-card:has(> .daily-sale-badge) {
  padding-top: 3.6rem !important;
}

.course .box.product-card > .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.product-card > .daily-sale-badge .daily-sale-badge__title {
  margin: 0 0.28rem 0 0;
}

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

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

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

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

@media (max-width: 640px) {
  .course .box.product-card:has(> .daily-sale-badge) {
    padding-top: 3.35rem !important;
  }

  .course .box.product-card > .daily-sale-badge {
    min-height: 2.3rem;
    padding: 0.34rem 0.56rem;
    font-size: max(0.82rem, 9px) !important;
  }
}

/* Final homepage card price colours and stronger daily-sale label. */
.course .box.product-card .product-card-price-stack > p {
  color: #d32f2f !important;
  font-weight: 900 !important;
}

.course .box.product-card .product-card-price-stack > p del,
.course .box.product-card .product-card-price-stack > p s,
.course .box.product-card .product-card-price-stack > p .old-price,
.course .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.product-card .product-card-price-stack > p .new-price,
.course .box.product-card .product-card-price-stack > p strong,
.course .box.product-card .product-card-price-stack > p b,
.course .box.product-card .product-card-price-stack > p span:last-child {
  color: #d32f2f !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

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

.course .box.product-card > .daily-sale-badge,
.course .box.product-card > .daily-sale-badge * {
  font-weight: 900 !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;
}

/* Reserve the badge row on every homepage card to keep all content tracks level. */
.course .box.product-card {
  box-sizing: border-box;
  padding-top: 3.6rem !important;
}

.course .box.product-card > h4 {
  height: 2.7em;
  min-height: 2.7em;
}

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

/* Include the title's top padding in its reserved two-line mobile row. */
@media (max-width: 640px) {
  .course .box.product-card > h4 {
    height: 2.7em;
    min-height: 2.7em;
    width: calc(100% - 0.8rem);
    margin-left: auto;
    margin-right: auto;
  }
}
/* Subtle fill for category cards. */
.home-categories .category-card {
  background: #f5f5f5 !important;
}

/* Slightly larger category artwork on desktop and mobile. */
.home-categories .category-card__image img {
  max-width: 19.5rem;
  max-height: 9.6rem;
}

@media (max-width: 640px) {
  .home-categories .category-card__image img {
    max-width: 5.8rem;
    max-height: 5.7rem;
  }
}

@media (max-width: 420px) {
  .home-categories .category-card__image img {
    max-width: 5rem;
    max-height: 5rem;
  }
}

/* Wide main-category artwork needs a little more room on phones. */
@media (max-width: 640px) {
  .home-categories .category-card {
    grid-template-columns: 6.1rem minmax(0, 1fr);
  }

  .home-categories .category-card__image {
    min-height: 5.6rem;
  }

  .home-categories .category-card__image img {
    max-width: 6.1rem;
    max-height: 5.6rem;
  }
}

@media (max-width: 420px) {
  .home-categories .category-card {
    grid-template-columns: 5.4rem minmax(0, 1fr);
  }

  .home-categories .category-card__image {
    min-height: 5rem;
  }

  .home-categories .category-card__image img {
    max-width: 5.4rem;
    max-height: 5rem;
  }
}

/* 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;
}
