/* ============================================
 CSS VARIABLES - ZJEDNODUŠENÝ SYSTÉM
============================================ */
:root {
  /* Základné premenné */
  --menu-idx: 100;
  --close-btn-width: 2.5rem;
  --app-width: 1200px;
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 3rem;
  /* Typografia */
  --font-primary: Inter, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  /* Farebná paleta - spoločné pre obe témy */
  --color-primary: rgb(37 99 235);
  --color-primary-dark: rgb(29 78 216);
  --color-primary-light: rgb(219 234 254);
  --color-secondary: rgb(16 185 129);
  --color-danger: rgb(239 68 68);
  --color-warning: rgb(245 158 11);
  --color-orange: rgb(234 88 12);
  --color-orange-dark: rgb(194 65 12);
  --color-orange-light: rgb(254 215 170);
  --color-red: rgb(220 38 38);
  --color-success: rgb(16 185 129);
  --slate-900: rgb(15 23 42);
  --orange-500: rgb(249 115 22);
  --orange-bg-100: rgb(255 237 213);
  --slate-50: rgb(248 250 252);
  --slate-500-400: rgb(100 116 139);
  --slate-700-300: rgb(51 65 85);
  /* Neutrálne farby - Light mode (default) */
  --color-bg-primary: rgb(255 255 255);
  --color-bg-secondary: rgb(248 250 252);
  --color-bg-tertiary: var(--slate-50);
  /*rgb(203 213 225); */
  --color-bg-tertiaty-active: rgb(203 213 225);
  --color-bg-surface: rgb(255 255 255);
  --color-bg-surface-border: rgb(226 232 240);
  --color-text-primary: rgb(30 41 59);
  --color-text-secondary: rgb(100 116 139);
  --color-text-tertiary: rgb(148 163 175);
  --color-border: rgb(226 232 240);
  --color-border-hover: rgb(203 213 225);
  --color-overlay: rgb(0 0 0 / 0.5);
  /* Špeciálne premenné pre light mode */
  --app-bg: rgb(248 250 252);
  --app-bg-2: var(--color-bg-primary);
  --app-bg-2-active: rgb(248 250 252);
  --hero-section-bg: var(--slate-900);
  --bg-color: rgb(255 255 255 / 0.8);
  --item-bg: var(--color-bg-primary);
  --item-bg-img: var(--color-bg-primary);
  --btn-text: var(--color-text-tertiary);
  --input-bg: var(--color-bg-tertiary);
  --item-btn: rgb(30 41 59);
  --item-btn-text: rgb(255 255 255);
  --filter-border: rgb(0 0 0);
  --icon-hover: var(--color-orange);
  --icon-hover-bg: var(--color-bg-tertiary);
  --text-primary: var(--color-text-primary);
  --orange-shadow: var(--color-orange-light);
  --highlight-rgb: 255 247 237;
  --highlight-bg: rgb(var(--highlight-rgb) / 0.5);
  --highlight-border: rgb(255 237 213 / 0.5);
  --highlight-text: var(--color-orange-dark);
  --color-section-icon: var(--color-orange);
  --color-section-icon-bg: var(--orange-bg-100);
  --btn-text-glass: rgb(71 85 105);
  --text-disabled: var(--slate-500-400);
  --brand-600: rgb(234, 88, 12);
  --bg-hdr-color: rgba(255, 255, 255, 0.8);
  --hwrap: 0.5rem;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-300: #fdba74;
  /* Hero section (stále tmavá) */
  --hero-bg: #0f172a;
  /* slate-900 */
  --hero-text: #ffffff;
  --hero-paragraph: #cbd5e1;
  /* slate-300 */
  --blue-blob: #2563eb;
  /* Category Bar - Light Mode */
  --cat-bg: rgba(248, 250, 252, 0.95);
  /* slate-50 */
  --cat-border: #e2e8f0;
  /* slate-200 */
  --cat-btn-bg: #ffffff;
  --cat-btn-text: #475569;
  /* slate-600 */
  --cat-btn-border: #e2e8f0;
  /* border glow */
  --spot-hsl: 214 32% 91%;
  /*neon 221 83% 53%;*/
  /*orange 21 90% 48%*/
  --spot-alpha: 1;
  --spot-fade: 18vmin;
  --bw: 3px;
  --mx: --9999;
  --my: --9999;
  --green-light: #dcfce7;
  --green-dark: #166534;
  --size-step-0: clamp(1rem, 0.9661rem + 0.1695vw, 1.125rem);
  --size-step-1: clamp(1.125rem, 1.0243rem + 0.5034vw, 1.4963rem);
  --size-step-2: clamp(1.2656rem, 1.0692rem + 0.9822vw, 1.99rem);
  --size-step-3: clamp(1.4238rem, 1.0921rem + 1.6585vw, 2.6469rem);
  --size-step-4: clamp(1.6019rem, 1.0817rem + 2.6008vw, 3.52rem);
  --size-step-5: clamp(1.8019rem, 1.0209rem + 3.9051vw, 4.6819rem);
  --space-2xs: clamp(0.5rem, 0.4831rem + 0.0847vw, 0.5625rem);
  --space-xs: clamp(0.75rem, 0.7161rem + 0.1695vw, 0.875rem);
  --space-s: clamp(1rem, 0.9661rem + 0.1695vw, 1.125rem);
  --space-m: clamp(1.5rem, 1.4492rem + 0.2542vw, 1.6875rem);
  --space-l: clamp(2rem, 1.9322rem + 0.339vw, 2.25rem);
  --space-xl: clamp(3rem, 2.8983rem + 0.5085vw, 3.375rem);
  --space-m-xl: clamp(1.5rem, 0.9915rem + 2.5424vw, 3.375rem);
  --space-mega: clamp(6rem, 4.5763rem + 7.1186vw, 11.25rem);
  --gutter: var(--space-s);
  --logo-width: 11rem;
}

/* ============================================
 DARK MODE - ZJEDNODUŠENÉ PREPISOVANIE
============================================ */
body.dark {
  /* Neutrálne farby pre dark mode */
  --orange-500: rgb(235, 89, 12);
  --slate-900: rgb(255, 255, 255);
  --slate-400: rgb(148 163 184);
  --slate-500-400: rgb(148 163 184);
  --slate-700-300: rgb(203 213 225);
  --color-bg-primary: rgb(15 23 42);
  --color-bg-secondary: rgb(15 23 4);
  /*rgb(2 6 23); */
  --color-bg-tertiary: rgb(30 41 59);
  --color-bg-surface: rgb(30 41 59);
  --color-bg-surface-border: rgb(51 65 85);
  --color-text-primary: rgb(241 245 249);
  --color-text-secondary: rgb(203 213 225);
  --color-text-tertiary: rgb(148 163 175);
  --color-border: hsl(215, 25%, 27%);
  --color-border-hover: rgb(71 85 105);
  --color-overlay: rgb(0 0 0 / 0.7);
  /* Špeciálne premenné pre dark mode */
  --app-bg: rgb(2 6 23);
  --app-bg-2: rgb(30, 41, 59);
  --app-bg-2-active: rgb(62 71 88 / 0.9);
  /*rgb(30 41 59 / 0.5); */
  --hero-section-bg: rgb(0 0 0);
  --bg-color: rgb(15 23 42 / 0.8);
  --item-bg: var(--color-bg-surface);
  --item-bg-img: var(--color-bg-surface);
  --btn-text: var(--color-text-tertiary);
  --input-bg: var(--color-bg-surface);
  --item-btn: rgb(255 255 255);
  --item-btn-text: rgb(0 0 0);
  --filter-border: rgb(255 255 255);
  --icon-hover: var(--color-orange);
  --icon-hover-bg: var(--color-bg-surface);
  --text-primary: var(--color-text-primary);
  --orange-shadow: var(--color-orange-dark);
  --highlight-bg: rgb(124 45 18 / 0.2);
  --highlight-border: rgb(124 45 18 / 0.3);
  --highlight-text: rgb(253 186 116);
  --color-section-icon: var(--orange-500);
  --color-section-icon-bg: rgb(124 45 18 / 0.3);
  --bg-hdr-color: rgba(15, 23, 42, 0.8);
  --cat-bg: rgba(2, 6, 23, 0.95);
  --cat-border: #1e293b;
  /* slate-800 */
  --cat-btn-bg: #0f172a;
  /* slate-900 */
  --cat-btn-text: #94a3b8;
  /* slate-400 */
  --cat-btn-border: #1e293b;
  --spot-hsl: 215 25% 27%;
}

/* ============================================
 1. RESET & ZÁKLADNÉ ŠTÝLY
============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@view-transition {
  navigation: auto;
}

.glow-border {
  position: relative;
}

* {
  scrollbar-width: thin;
}

h2 {
  font-size: var(--size-step-2);
}

.f {
  display: flex;
}

.fe {
  justify-content: flex-end;
}

.hc {
  justify-content: center;
}

.gap {
  gap: 1rem;
}

.btn-primary {
  background-color: var(--orange-500);

  &:hover {
    background-color: var(--color-orange-dark);
  }
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at calc(var(--mx) * 1px) calc(var(--my) * 1px),
      hsl(var(--spot-hsl) / var(--spot-alpha)) 0%,
      transparent var(--spot-fade));
  background-attachment: fixed;
  padding: var(--bw);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glow-border::after {
  content: none;
}

/* Priraď unikátne meno logu na oboch stránkach */
/* #uchmatni_svg {
  view-transition-name: main-logo;
} */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--app-bg);
  line-height: 1.5;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

svg.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  stroke-width: 0;
  vertical-align: middle;
}

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
 2. UTILITY CLASSES (Typografia & Layout)
============================================ */
.wrapped {
  max-width: min(calc(100vw - 1rem), var(--app-width));
  margin-inline: auto;
  width: 100%;
}

.hcenter {
  display: flex;
  justify-content: center;
}

.inline-flex {
  display: inline-flex !important;
}

.z-50 {
  z-index: 50;
  position: sticky;
  top: 0;
}

/* Spacing */
.hwrap {
  padding-inline: 0.5rem;
}

.vwrap {
  padding-block: 0.5rem;
}

.px-2 {
  padding-inline: 0.5rem;
}

/* Text sizes & weights */
.text-6xl {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
}

.text-4xl {
  font-size: 3.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.extra-bold {
  font-weight: 800;
}

.font-bold {
  font-weight: 700;
}

/* Letter spacing */
.tight {
  letter-spacing: -0.025rem;
}

.tighter {
  letter-spacing: -0.05em;
}

.wider {
  letter-spacing: 0.05em;
}

.widest {
  letter-spacing: 0.1em;
}

/* Colors */
.text-orage {
  color: var(--orange-500);
}

.bg-oragnge-500 {
  background-color: var(--orange-500);
}

/* Helpers */
.rounded {
  border-radius: 10rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-bottom: 1px solid var(--color-border);
}

.trim {
  display: -webkit-box;
  -webkit-line-clamp: var(--trim-lines, 2);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
 3. TLAČIDLÁ (Zjednotený komponent)
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover:not(:disabled) {
  border-color: var(--icon-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Modifikátory */
.btn.primary {
  background-color: var(--item-btn);
  color: var(--item-btn-text);
  border: none;
}

.btn.primary.inverted {
  background-color: var(--color-border);
  color: var(--item-btn);
  border: var(--color-border-hover);
}

.btn.glass {
  background-color: transparent;
  color: var(--btn-text-glass);
}

.btn.glass.active:not(.disabled) {
  background-color: var(--orange-500);
  color: var(--app-bg);
}

.btn.active {
  background-color: var(--icon-hover);
  color: var(--app-bg-2);
  font-weight: 700;
}

.btn.load-more {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
}

.btn.clear {
  border-color: transparent;
  text-transform: none;
}

/* Ripples / Hover effect */
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
}

.btn:active::before {
  width: 120%;
  height: 120%;
}

/* ============================================
 4. KOMPONENTY (Modaly, Loadery, Panely)
============================================ */
.close-btn {
  position: fixed;
  width: 2.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--icon-hover);
  border: 1px solid var(--app-bg);
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
  color: var(--brand-600);
}

.btn.loading {
  color: transparent;
  cursor: wait;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
 5. ŠPECIFICKÉ SEKcie
============================================ */
.info-panel {
  display: flex;
  align-items: center;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "\00203A";
  margin-inline: var(--spacing-sm);
  color: var(--text-primary);
}

.paging-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ============================================
 6. DARK MODE ADJUSTMENTS
============================================ */
.dark .section-group-items .item {
  --item-bg: rgb(31 41 55);
}

.dark .btn.active {
  background: var(--icon-hover);
  color: var(--app-bg-2);
}

/* spinner */
/* Spinner Animation */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
}

.loader-btn {

  &.no-loading,
  &.disabled {
    display: flex;

    svg {
      display: none;
    }
  }

  &.is-loading {
    margin-inline: 3rem;

    span {
      display: none;
    }
  }
}

.sort-btn .title {
  text-wrap: nowrap;
}

/* ============================================
   2. ITEM CARD (Základná štruktúra)
   ============================================ */
.item {
  display: flex;
  flex-direction: column;
  /* display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: inherit; */
  background-color: var(--item-bg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item:hover {
  /* z-index: 2;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px); */
}

.item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* ============================================
   3. IMAGE WRAPPER & BADGES
   ============================================ */
.img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Vyvážený pomer strán */
  display: flex;
  align-items: center;
  flex-grow: 1;
  /*sposobuje ze nie vsetky obrazky maju rovnaku vysku*/
  justify-content: center;
  padding: 1rem;
  background-color: white;
}

.image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.item:hover .image img {
  transform: scale(1.05);
}

/* Štýl pre zľavový štítok */
.discount-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-red, #dc2626);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.discount-badge::before {
  content: "-";
}

.discount-badge::after {
  content: "%";
}

/* Indikátor variantov (+1 varianta) */
.img-wrapper .placeholder {
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  background: var(--item-bg);
  border-radius: 0.5rem 0 0 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

/* ============================================
   4. CONTENT (Brand, Title, Price)
   ============================================ */
.content-wrapper {
  padding: 1.25rem;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brand-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 0.75rem;
  color: var(--orange-500);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eshop {
  font-size: 0.75rem;
  color: var(--btn-text);
  background: var(--app-bg-2-active);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Obmedzenie nadpisu na 2 riadky */
.item-title {
  color: var(--slate-900);
  font-size: 1rem;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item:hover .item-title {
  color: rgb(251 146 60);
}

/* Sekcia cien */
.item-price {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.prices {
  display: flex;
  flex-direction: column;
}

.old {
  color: var(--btn-text);
  text-decoration: line-through;
  font-size: 0.875rem;
  font-weight: 500;
}

.current {
  color: var(--color-red);
  font-size: 1.5rem;
  font-weight: 900;
}

/* ============================================
   5. BUTTONS & FOOTER INFO
   ============================================ */
.btn-view-details {
  /* background-color: var(--orange-500); */
  background-color: var(--item-btn);
  color: var(--item-btn-text);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-view-details:hover {
  background-color: var(--color-orange-dark);
}

.btn-view-details svg {
  width: 1rem;
  height: 1rem;
}

/* Spodná lišta s informáciou o úspore */
.discount-info {
  --highlight-bg: var(--green-light);
  --highlight-text: var(--green-dark);
  background-color: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--highlight-border);
}

.discount-info .icon {
  width: 14px;
  height: 14px;
}

/* ============================================
   6. RESPONSIVE (Tablet & Mobile)
   ============================================ */
@media screen and (max-width: 1024px) {
  .items.grid {
    --card-width: 210px;
  }

  .img-wrapper {
    aspect-ratio: 1 / 1;
    padding: 0.75rem;
  }

  .image img {
    max-height: 160px;
  }

  /* Na mobile skryjeme text v tlačidle, ostane len šípka */
  .btn-view-details {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .btn-view-details .caption {
    display: none;
  }

  .item-price .current {
    font-size: 1.2rem;
  }

  /* Skrytie info lišty pre úsporu vertikálneho miesta */
  .discount-info {
    display: none;
  }

  .discount-badge {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ============================================
   SIMILAR PRODUCTS & FULL WIDTH
============================================ */
/* ============================================
   HORIZONTÁLNY SCROLL PRE PODOBNÉ PRODUKTY
============================================ */
.rollable-container {
  margin-inline: var(--space-l);
}

.similar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 1.5rem;
  padding: 0.5rem 0 1.5rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--item-bg) transparent;
  width: 100%;
  /* Gradient na okrajoch pre "fade" efekt pri scrollovaní */
  /* Výrazný fade efekt na oboch stranách */
  /* mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 5%,
      black 8%,
      black 92%,
      rgba(0, 0, 0, 0.15) 95%,
      transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 5%,
      black 8%,
      black 92%,
      rgba(0, 0, 0, 0.15) 95%,
      transparent 100%); */
}

.similar-grid::-webkit-scrollbar {
  height: 6px;
}

.similar-grid::-webkit-scrollbar-track {
  background: var(--pd-bg-tertiary-light);
  border-radius: 10px;
}

.similar-grid::-webkit-scrollbar-thumb {
  background: var(--pd-text-tertiary);
  border-radius: 10px;
}

.similar-item {
  scroll-snap-align: start;
  width: 100%;
  background: var(--pd-bg-white);
  border: 1px solid var(--pd-border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: var(--pd-transition);
}

.similar-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--pd-shadow);
}

.similar-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.similar-item .item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.similar-item .brand {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--pd-accent);
  text-transform: uppercase;
}

.similar-item .name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pd-text-secondary);
}

.similar-item .prices {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.similar-item .price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--pd-text-primary);
}

/* Responzivita */
@media screen and (max-width: 768px) {
  .similar-grid {
    grid-auto-columns: 260px;
    gap: 1rem;
  }
}

/* Poistka proti roztiahnutiu stránky */
.full-width-section {
  overflow-x: hidden;
}

@media screen and (max-width: 500px) {
  :root {
    font-size: 12px;
  }
}

/* horizontal scoll silimar-grid */
/* Container, ktorý drží grid a šípky */
.scroll-container {
  position: relative;
  display: block;
  width: 100%;
}

/* Tieňové indikátory (Inner Shadow Fade) */
.scroll-container::before,
.scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 20;
  pointer-events: none;
  /* Aby sa dali klikať produkty pod tieňom */
  transition: opacity 0.3s;
}

/* Tieň vľavo */
.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, var(--surface1) 0%, transparent 100%);
}

/* Tieň vpravo */
.scroll-container::after {
  right: 0;
  background: linear-gradient(to left, var(--surface1) 0%, transparent 100%);
}

/* Úprava tvojho gridu */
.similar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  /* Šírka karty */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Skryje scrollbar vo Firefoxe */
  padding: 1rem 2rem;
  /* Padding aby tiene neprekrývali text */
}

.similar-grid::-webkit-scrollbar {
  display: none;
  /* Skryje scrollbar v Chrome/Safari */
}

/* Štýl pre šípky */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--hero-bg);
  border: 1px solid var(--slate-400);
  color: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(var(--surface-shadow), 0.2);
  transition: all 0.2s;
}

.scroll-btn:hover {
  /* background-color: var(--slate-400); */
  color: var(--brand-600);
  /* border-color: var(--brand); */
}

.scroll-btn.left {
  left: -2rem;
}

.scroll-btn.right {
  right: -2rem;
}

.scroll-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Skrytie šípok na mobiloch (tam je swipe prirodzený) */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }

  .scroll-container::before, .scroll-container::after {
    width: 20px;
  }
}

/* end of */
/* Základné nastavenie kontajnera */
/* Layout a Grid */
.app-wrapper {
  max-width: var(--app-width);
  flex-wrap: nowrap;
  margin-inline: auto;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

/* Responzivita: Desktop (od 768px vyššie) */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start {
  align-items: flex-start;
}

/* Rozmery a Odsadenia */
.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

/* Orámovanie */
.border-t {
  border-top: 1px solid;
}

.border-slate-100 {
  border-color: #f1f5f9;
}

/* Typografia */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Farby (Slate paleta) */
.text-slate-600 {
  color: var(--slate-700-300);
}

.text-slate-900 {
  color: #0f172a;
}

/* Tvoja brand farba pre ikony */
.text-orange-500 {
  color: #f97316;
}

/* SVG nastavenie */
svg {
  display: block;
  vertical-align: middle;
}

/* --- LAYOUT A GRID --- */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

/* Responzivita: Na tabletoch a desktopoch (nad 768px) chceme 3 stĺpce */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- FLEXBOX --- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start {
  align-items: flex-start;
}

/* --- SPACING (Odsadenia) --- */
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* --- HRANICE --- */
.border-t {
  border-top: 1px solid;
}

.border-slate-100 {
  border-color: #f1f5f9;
}

/* --- TYPOGRAFIA --- */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-bold {
  font-weight: 700;
}

.leading-relaxed {
  line-height: 1.625;
}

/* --- FARBY (Slate & Orange) --- */
.text-slate-900 {
  color: #0f172a;
}

.text-orange-500 {
  color: #f97316;
}

/* --- I_KONY (SVG) --- */
.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

/* Jemný hover efekt na ikony, aby to žilo */
.flex:hover .text-orange-500 {
  transform: translateY(-3px);
  transition: transform 0.2s ease-in-out;
}

.flex:hover svg {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

/* --- UTILITY FOOTER (Spodná lišta) --- */
.utility-footer {
  /* Jemne tmavšie pozadie ako SEO sekcia pre oddelenie */
  /* background-color: #f8fafc; */
  border-top: 1px solid var(--slate-400);
}

/* Flexbox správanie */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-4 {
  gap: 1rem;
}

/* Odsadenia */
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Typografia */
.text-xs {
  font-size: 0.75rem;
}

.text-slate-400 {
  color: var(--slate-400);
}

/* Štýl odkazov v navigácii */
.utility-footer nav a {
  text-decoration: none;
  color: inherit;
  /* Preberie farbu slate-500 */
  transition: color 0.2s ease;
}

.utility-footer nav a:hover {
  /* Pri hoveri použijeme tvoju brandovú oranžovú alebo tmavú bridlicovú */
  color: #f97316;
}

/* --- RESPONSIVITA --- */
/* Na malých mobiloch (pod 480px) to nechceme v jednom riadku, 
   lebo by sa texty mohli prekrývať alebo byť príliš natlačené */
@media (max-width: 480px) {
  .utility-footer .hwrap {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}