:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-primary-blue: #3366c0;
  --color-primary-violet: #8a66c0;
  --color-footer-main: #7d5cad;
  --color-green-light: #a1fac0;
  --color-green-dark: #00b07c;
  --color-orange: #e94a00;
  --color-bg-hero: #f9fbfc;
  --color-bg-articles: #f0f5fa;
  --color-bg-search: #f6f7fc;
  --color-border-light: #f0f0f5;
  --color-text-muted: #8fa0aa;
  --color-icon-muted: #a0afaf;
}

/* =========================================================
   ZÁKLADNÍ NASTAVENÍ (RESET & GLOBAL)
   ========================================================= */

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

section {
  width: 100%;
}

/* =========================================================
   1) HEADER – logo, vyhledávání, zákaznický servis
   ========================================================= */

.header-top {
  background: var(--color-white);
  min-height: 95px;
  box-shadow: 0 15px 0 0 rgba(0, 0, 0, 0.7);
}

/* řada v headeru – čistý Materialize grid */
.header-top .row {
  margin: 0;
}

/* tři sloupce – vertikální zarovnání obsahu */
.header-logo-col,
.header-search-col,
.header-support-col {
  display: flex;
  align-items: center;
}

/* Logo */
.header-logo-col {
  justify-content: flex-start;
}

.header-logo-col a {
  display: inline-block;
  line-height: 0;
  width: auto;
  height: auto;
}

.header-logo-img {
  display: block;
  width: auto;
  height: 90px;
  max-height: none;
}

/* Vyhledávání – „pilulka“ uprostřed */
.header-search-col {
  justify-content: center;
}

.header-search {
  width: 94%;
  display: flex;
  align-items: center;
  background: var(--color-bg-search);
  border-radius: 999px;
  padding: 8px 20px;
  margin-top: 17px;
  position: relative;
}

/* input – transparentní, bez defaultních stínů */
.header-search input {
  border: none !important;
  box-shadow: none !important;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 !important;
  height: 32px;
  padding-right: 52px;
  /* místo pro tlačítko s lupou */
}

.header-search input::placeholder {
  color: var(--color-text-muted);
}

/* tlačítko pro lupu */
.header-search-button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  /* o kousek menší než pilulka */
  height: 50px;
  border-radius: 999px;
  border: none;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease;
  /* plynulé zmizení stínu */
  -webkit-tap-highlight-color: transparent;
}

.header-search-button:focus,
.header-search-button:active {
  outline: none;
  box-shadow: none;
  background: var(--color-white);
}

.header-search-button::-moz-focus-inner {
  border: 0;
}

/* samotná ikonka uvnitř tlačítka */
.header-search-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Zákaznický servis vpravo */

.header-support-col {
  justify-content: flex-end;
}

.header-support {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* vertikální čára */
.header-divider {
  width: 2px;
  height: 60px;
  background: var(--color-bg-search);
}

/* kruhová fotka podpory */
.header-support-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.header-support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* texty podpory */
.header-support-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1.2;
}

.support-line1 {
  color: var(--color-primary-blue);
  font-weight: 400;
}

.support-line2 {
  color: var(--color-primary-blue);
  font-weight: 600;
}

.support-line3 {
  color: var(--color-icon-muted);
  font-weight: 400;
}

/* ── Foto thumbnails pod hlavnim obrazkem ── */
.p-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.p-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.p-thumb:hover,
.p-thumb-active {
  border-color: var(--color-primary-violet);
}
/* ── Foto thumbnails pod hlavnim obrazkem ── end of */ 

/* =========================================================
   1.1) RESPONSIVNÍ ÚPRAVY HEADERU (STATICKÝ)
   ========================================================= */

@media (max-width: 1200px) {
  .header-search {
    width: 100%;
  }
}

/* 992px–600px: servis vedle loga, vyhledávání pod nimi */
@media (max-width: 992px) and (min-width: 600px) {
  .header-top .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-logo-col,
  .header-support-col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0;
  }

  .header-search-col {
    flex: 0 0 100%;
    max-width: 100%;
    order: 2;
    margin-bottom: 20px;
  }

  .header-logo-col {
    justify-content: flex-start;
  }

  .header-support-col {
    justify-content: flex-end;
  }
}

/* < 600px: servis skrýt, logo + search pod sebou */
@media (max-width: 600px) {
  .header-support-col {
    display: none;
  }

  .header-logo-col,
  .header-search-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .header-logo-col {
    justify-content: left;
  }

  .header-logo-img {
    width: auto;
    height: 110px;
  }

  .header-search-col {
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 20px;
  }
}


/* =========================================================
   2) STICKY HEADER TRANSFORMACE (PLOVOUCÍ HLAVIČKA)
   ========================================================= */

#sticky-header-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 990;
}

/* Sidenav overlay musí být vždy nahoře */
.sidenav {
  z-index: 2000 !important;
}

.sidenav-overlay {
  z-index: 1999 !important;
}

/* Aktivní sticky stav */
#sticky-header-container.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.2);
  /* Silnější rozostření */
  animation: slideDown 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  /* Poloprůhledná bílá */
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Zmenšení headeru */
.is-sticky .header-top {
  min-height: 60px;
  padding: 5px 0;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  /* Odstranění kolidujícího stínu */
}

/* Zarovnání řádku */
.is-sticky .header-top .row {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  flex-wrap: nowrap;
}

/* Skrytí menu proužku v sticky módu */
.is-sticky .header-menu-strip {
  display: none !important;
}

/* Sloupec loga */
.is-sticky .header-logo-col {
  flex: 0 0 auto !important;
  width: auto !important;
  padding-right: 20px;
  display: flex;
  align-items: center;
  order: 1;
}

.is-sticky .header-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Sloupec podpory - SKRÝT */
.is-sticky .header-support-col {
  display: none !important;
}

/* Vyhledávání - VYCENTROVANÉ */
.is-sticky .header-search-col {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  justify-content: center;
  align-items: center !important;
  padding: 0 20px !important;
  order: 2;
}

.is-sticky .header-search {
  margin-top: 0;
  width: 100%;
  max-width: 600px;
  /* Limit šířky pro vycentrovaný vzhled */
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 40px;
}

/* OVLÁDACÍ PRVKY STICKY MENU (E-shop, User, Cart) */
.sticky-controls-col {
  display: none;
  /* Defaultně skryté */
}

.is-sticky .sticky-controls-col {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  /* Zarovnat doprava */
  flex: 0 0 auto;
  padding-left: 0;
  margin-left: auto;
  order: 3;
}

.sticky-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Tlačítko E-shop */
.sticky-eshop-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-violet);
  color: var(--color-white);
  padding: 0 24px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.3s;
  cursor: pointer;
  white-space: nowrap;
  height: 40px;
}

.sticky-eshop-btn:hover {
  background: var(--color-footer-main);
  color: var(--color-white);
}

.sticky-eshop-icon-img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Ikony User & Cart (Fialové) */
.sticky-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-violet);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  height: 40px;
}

.sticky-icon img {
  width: 24px;
  height: 24px;
  /* Filtr pro přebarvení na fialovou #8a66c0 */
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(222deg) brightness(85%) contrast(87%);
}

.sticky-cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Text košíku (Desktop) */
.sticky-cart-text {
  display: inline-block;
}

/* Odznak košíku (Skrytý na Desktopu) */
.sticky-cart-badge {
  display: none;
}

/* RESPONSIVITA STICKY DESIGNU: Tablet (<993px) a Mobil */
@media (max-width: 992px) {

  /* Reset stínu pro jistotu */
  .is-sticky .header-top {
    box-shadow: none !important;
    min-height: 56px;
  }

  /* Kompaktní layout */
  .is-sticky .header-logo-col {
    padding-right: 10px;
  }

  .is-sticky .header-logo-img {
    height: 45px;
    /* Větší logo pro Tablet/Mobil */
  }

  .is-sticky .header-search-col {
    padding: 0 10px !important;
  }

  .is-sticky .header-search {
    height: 36px;
    top: 10px;
  }

  .is-sticky .header-search input {
    height: 36px;
    font-size: 0.85rem;
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
  }

  /* Specificky pro IS-STICKY */
  .is-sticky .header-search-button {
    width: 32px;
    height: 32px;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
  }

  /* Kompaktní ovládání */
  .sticky-controls {
    gap: 10px;
  }

  /* Tlačítko E-shop */
  .sticky-eshop-text {
    display: none;
  }

  .sticky-eshop-btn {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
    min-width: 36px;
  }

  /* Ikony */
  .sticky-icon {
    height: 36px;
  }

  .sticky-icon img {
    width: 24px;
    height: 24px;
  }

  /* Skrýt text */
  .sticky-cart-text,
  .sticky-user span {
    display: none !important;
  }

  /* Zobrazit odznak */
  .sticky-cart-badge {
    display: flex;
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff5252;
    /* Červená */
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
  }
}

/* Mobil (<600px) Tweaky */
@media (max-width: 600px) {
  .is-sticky .header-top {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .is-sticky .header-logo-img {
    height: 36px;
  }

  .is-sticky .header-search-col {
    /* Flexibilní, ale omezená šířka */
    flex: 0 1 auto !important;
  }

  .is-sticky .header-search {
    max-width: 130px;
    top: 20px;
  }

  .is-sticky .header-search input::placeholder {
    content: "Hle...";
    /* Hack pro zkrácení placeholderu */
  }

  .sticky-controls {
    gap: 8px;
  }
}

/* Sidenav Extra odkazy - Viditelné na Sticky/Desktop */
body.sticky-mode .sidenav .nav-extra {
  display: block !important;
}

body.sticky-mode .sidenav .nav-section-divider {
  display: block !important;
}


/* =========================================================
   PRODUCT PAGE REFACTOR
   ========================================================= */

/* Nadpis: Menší, Primární modrá */
.p-title-refactored {
  color: var(--color-primary-blue);
  font-size: 1.5rem;
  /* Menší než H1 default */
  font-weight: 700;
  margin-bottom: 20px;
}

/* Výběr varianty */
.p-variant-select-wrapper {
  margin-bottom: 20px;
}

.p-variant-select-wrapper label {
  font-size: 0.9rem;
  color: var(--color-black);
  display: block;
  margin-bottom: 5px;
}

/* Přepsání Materialize selectu nebo standardní stylování */
.p-variant-select-wrapper select {
  display: block;
  /* Přepsat materialize 'display: none', pokud není inicializován */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* Zvýraznění ceny */
.p-price-block-refactored {
  margin-bottom: 15px;
}

.p-price-label-refactored {
  font-size: 1rem;
  margin-right: 10px;
  color: var(--color-black);
}

.p-price-value-refactored {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  /* Černá nebo fialová dle preference */
}

/* Meta Data - méně výrazná */
.p-meta-weak {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.p-meta-weak span {
  margin-right: 15px;
  display: inline-block;
}

.p-meta-weak strong {
  font-weight: 500;
  color: #888;
  /* Mírně tmavší než muted */
}

/* Popis v pravém sloupci */
.p-description-right {
  margin-top: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
  color: var(--color-black);
}


.header-menu-strip {
  background: var(--color-primary-violet);
  min-height: 45px;
  color: var(--color-white);
  display: flex;
  align-items: center;
}

.header-menu-strip a {
  color: var(--color-white);
  text-decoration: none;
}

/* řada v menu */
.header-menu-row {
  margin: 0;
  display: flex;
  align-items: center;
}

/* E-shop / Menu tlačítko vlevo */

.header-menu-left {
  display: flex;
  align-items: center;
}

.header-eshop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--color-white);
  border-radius: 40px;
  padding: 4px 18px;
  font-weight: 600;
  background: transparent;
  white-space: nowrap;
}

.header-eshop-btn .menu-icon {
  width: 18px;
  height: 18px;
}

/* prostření hlavní menu */

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

.header-menu-scroll {
  width: 100%;
  overflow: visible;
}

.header-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  white-space: nowrap;
  font-weight: 500;
}

/* pravá část: přihlášení + košík */

.header-menu-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.header-menu-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-menu-right img {
  width: 18px;
  height: 18px;
}

/* Hover */

.header-menu-strip a:hover {
  text-decoration: underline;
}

/* LADĚNÍ MENU – plynulé zmenšování písma od L do M */

/* 1200+ */
@media (max-width: 1320px) and (min-width: 1220px) {
  .header-menu-list {
    gap: 25px;
    font-size: 0.94rem;
  }
}

/* 1219–1120 */
@media (max-width: 1219px) and (min-width: 1120px) {
  .header-menu-list {
    gap: 20px;
    font-size: 0.9rem;
  }
}

/* 1119–993 */
@media (max-width: 1119px) and (min-width: 993px) {
  .header-menu-list {
    gap: 15px;
    font-size: 0.85rem;
  }
}

/* TEXT „E-shop“ / „Menu“ */

.header-eshop-btn .label-eshop {
  display: inline;
}

.header-eshop-btn .label-menu {
  display: none;
}

/* OD M DOLŮ (<= 992px) – nahoře jen E-shop/Menu + login/košík */

@media (max-width: 992px) {
  .header-menu-strip {
    min-height: 50px;
  }

  .header-menu-row {
    flex-wrap: wrap;
  }

  .header-menu-left,
  .header-menu-right {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 4px;
  }

  .header-menu-left {
    justify-content: flex-start;
  }

  .header-menu-right {
    justify-content: flex-end;
  }

  /* prostřední menu se úplně schová – je v sidenavu */
  .header-menu-center {
    display: none;
  }

  /* změna textu tlačítka */
  .header-eshop-btn .label-eshop {
    display: none;
  }

  .header-eshop-btn .label-menu {
    display: inline;
  }
}

/* od S dolů – jemnější úpravy */

@media (max-width: 600px) {
  .header-eshop-btn {
    padding: 3px 14px;
    font-size: 0.9rem;
  }

  .header-menu-right span {
    font-size: 0.9rem;
  }
}

/* Doplňkové menu v sidenavu (Nákupní řád, Prodejny, ...)
   – skryté na desktopu, viditelné od M dolů */

.sidenav .nav-section-divider,
.sidenav .nav-extra {
  display: none;
}

@media (max-width: 992px) {

  .sidenav .nav-section-divider,
  .sidenav .nav-extra {
    display: block;
  }
}

/* =========================================================
   4) ESHOP SIDENAV – strom kategorií + accordion
   ========================================================= */

.eshop-sidenav {
  padding-top: 4px;
}

/* hlavní kategorie */

.eshop-sidenav .sidenav-section>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-primary-blue);
  padding: 4px 12px;
}

/* jemné oddělení sekcí */

.eshop-sidenav .sidenav-section+.sidenav-section>a {
  border-top: 1px solid var(--color-border-light);
}

/* šipka vpravo */

.sidenav-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-icon-muted);
  border-bottom: 2px solid var(--color-icon-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

/* podkategorie – defaultně schované */

.eshop-sidenav .sidenav-sub {
  display: none;
  margin: 4px 0 8px 0;
  padding: 0 16px 0 32px;
  list-style: none;
}

.eshop-sidenav .sidenav-sub li a {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-black);
  padding: 3px 0;
  display: block;
}

/* otevřená sekce */

.eshop-sidenav .sidenav-section.open>.sidenav-sub {
  display: block;
}

.eshop-sidenav .sidenav-section.open>a .sidenav-arrow {
  transform: rotate(225deg);
}

/* hover */

.eshop-sidenav a:hover {
  background-color: var(--color-bg-hero);
}

/* aktivní hlavní kategorie */
.eshop-sidenav .sidenav-section > a.active {
  color: var(--color-primary-violet);
  font-weight: 700;
  background-color: var(--color-bg-hero);
}

/* aktivní podkategorie */
.eshop-sidenav .sidenav-sub li a.active {
  color: var(--color-primary-violet);
  font-weight: 600;
}

/* horní řádek s logem a křížkem */
.eshop-sidenav-top {
  padding: 4px 0;
  /* žádné vnitřní odsazení do stran */
}

/* odsadíme obsah zvlášť – posune logo i křížek více ke krajům */
.eshop-sidenav-top .eshop-sidenav-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-primary-blue);
  padding: 0 8px;
  width: 100%;
}

/* malinké logo vlevo */
.eshop-sidenav-logo img {
  display: block;
  height: 60px;
  margin-left: -2px;
}

/* křížek vpravo */
.eshop-sidenav-close-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-right: -2px;
}

.eshop-sidenav-top .eshop-sidenav-close:hover {
  color: var(--color-primary-blue);
}

/* DESKTOP: úzké → rozšířené dvousloupcové */

@media (min-width: 993px) {

  /* základ: úzké menu jen s kategoriemi */
  .eshop-sidenav {
    padding: 8px 0;
    width: 260px;
    transition: width 0.25s ease;
  }

  .eshop-sidenav .sidenav-section {
    width: 100%;
    padding-right: 0;
  }

  .eshop-sidenav .sidenav-sub {
    display: none;
  }

  .eshop-sidenav.expanded {
    width: 540px;
  }

  .eshop-sidenav.expanded .sidenav-section {
    width: 48%;
    padding-right: 8px;
    min-width: 260px;
  }

  .eshop-sidenav.expanded .sidenav-sub {
    position: absolute;
    top: 8px;
    right: 0;
    width: 52%;
    max-height: calc(100% - 16px);
    overflow-y: auto;
    margin: 0;
    padding: 0 16px;
    border-left: 1px solid var(--color-border-light);
    background: var(--color-white);
  }

  .eshop-sidenav.expanded .sidenav-section.open>.sidenav-sub {
    display: block;
  }

  .eshop-sidenav .sidenav-section>a .sidenav-arrow {
    transform: rotate(-45deg);
  }

  .eshop-sidenav .sidenav-section.open>a .sidenav-arrow {
    transform: rotate(45deg);
  }
}


/* MOBIL / TABLET (accordion) */

@media (max-width: 992px) {

  /* Materialize nechává position: fixed; */
  .eshop-sidenav {
    width: 320px;
  }

  .eshop-sidenav .sidenav-section {
    width: 100%;
    padding-right: 0;
  }

  .eshop-sidenav .sidenav-sub {
    position: static;
    width: auto;
    max-height: none;
    border-left: none;
    padding: 0 16px 0 32px;
  }
}

/* =========================================================
   5) HERO – 4 boxy (1 široký + 3 úzké)
   ========================================================= */

.hero-bg {
  background: var(--color-bg-hero);
  padding: 40px 0 60px;
}

/* wrapper pro slider */
.hero-slider {
  position: relative;
}

/* DESKTOP: grid 2:1:1:1 */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* společný vzhled boxů */
.hero-card {
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

/* barvy jednotlivých boxů */
.hero-grid .hero-card:nth-child(1) {
  background: #ffffff;
}

.hero-grid .hero-card:nth-child(2) {
  background: #def1ff;
}

.hero-grid .hero-card:nth-child(3) {
  background: #f1efff;
}

.hero-grid .hero-card:nth-child(4) {
  background: #e0f5ed;
}

/* obrázek nahoře */
.hero-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* obsah */
.hero-card-content {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* typografie – hlavní box */
.hero-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0 0 4px 0;
}

.hero-card-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0 0 14px 0;
}

.hero-card-text {
  font-size: 1rem;
  font-weight: 400;
  color: #1e2933;
  line-height: 1.5;
  margin: 0;
}

/* menší boxy */
.hero-card-tag {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary-blue);
  margin-bottom: 8px;
}

.hero-card-title-small {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e2933;
  margin: 0 0 8px 0;
}

.hero-card-text-small {
  font-size: 0.95rem;
  color: #1e2933;
  line-height: 1.5;
  margin: 0;
}

/* patička boxu – drží místo pro tlačítko */
.hero-card-footer {
  margin-top: auto;
  position: relative;
  height: 60px;
}

/* tlačítko „Více…“ */
.hero-card-button {
  position: absolute;
  bottom: 6px;
  right: -26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 30px 8px 24px;
  border-radius: 999px 0 0 999px;
  border-width: 2px 0 2px 2px;
  border-style: solid;
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.hero-card-button:hover {
  background: var(--color-primary-blue);
  color: var(--color-white);
}

.hero-card-button:active {
  transform: translateY(1px);
}

/* šipky – defaultně skryté (jen mobil / tablet) */
.hero-slider-next,
.hero-slider-prev {
  display: none;
}

/* SLIDER – od M dolů (≤ 992px) */

@media (max-width: 992px) {

  /* místo gridu horizontální slider */
  .hero-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    scrollbar-width: none;
  }

  .hero-grid::-webkit-scrollbar {
    display: none;
  }

  .hero-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  .hero-card-main {
    flex-basis: 85%;
  }

  /* šipky */
  .hero-slider-next,
  .hero-slider-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
    padding: 0;
  }

  .hero-slider-next {
    right: -6px;
  }

  .hero-slider-prev {
    left: -6px;
  }

  .hero-slider-next-icon,
  .hero-slider-prev-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-primary-blue);
  }
}

/* =========================================================
   6) HERO DIVIDER – BENEFITS & HISTORY
   ========================================================= */

.hero-divider {
  background: var(--color-white);
  padding: 40px 0;
}

.benefits-row {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
}

.benefit-col {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

/* desktop: zarovnání sloupců */
@media (min-width: 601px) {
  .benefit-col {
    margin-bottom: 0;
    justify-content: flex-start;
  }

  /* prostřední sloupec na střed */
  .benefit-col:nth-child(2) {
    justify-content: center;
  }

  /* pravý sloupec doprava */
  .benefit-col:nth-child(3) {
    justify-content: flex-end;
  }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 360px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.benefit-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.benefit-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-primary-blue);
  line-height: 1.3;
}

.benefit-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* HISTORY DIVIDER (Mezi Products a Stores) */
.history-divider {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-white);
}

.history-text {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-primary-violet);
  margin: 0;
}

/* =========================================================
   7) SEKCE PRODUKTY
   ========================================================= */

.products-bg {
  background: var(--color-bg-search);
  padding-bottom: 60px;
  padding-top: 60px;
  min-height: 900px;
}

.section-title {
  text-align: center;
  color: var(--color-primary-blue);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 40px;
}

.products-row {
  margin-bottom: 0;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  margin-bottom: 1.5em;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-labels {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.label {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--color-white);
  text-transform: uppercase;
}

.label-sale {
  background: #90ee90;
  color: #006400;
}

.label-new {
  background: #20b2aa;
}

.label-tip {
  background: #00a86b;
}

.label-query {
  background: #ffa500;
}

.product-image {
  margin-bottom: 15px;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
}

.product-price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 400;
}

.product-stock {
  font-size: 0.8rem;
  font-weight: 600;
}

.stock-ok {
  color: #28a745;
}

.stock-query {
  color: #fd7e14;
}

.product-title {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-title a {
  color: #000;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--color-primary-blue);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  margin-top: auto;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
}

.qty-btn {
  background: none;
  border: 1px solid var(--color-primary-violet);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  color: var(--color-primary-violet);
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
}

.qty-btn:hover,
.qty-btn:focus {
  background: var(--color-primary-violet);
  color: var(--color-white);
  outline: none;
}

.qty-input {
  width: 30px !important;
  height: 32px !important;
  border: none !important;
  text-align: center;
  margin: 0 !important;
  font-size: 1.2rem;
  font-weight: 400;
  padding: 0 !important;
  color: #000;
  background: transparent;
}

.btn-cart {
  flex-grow: 0;
  width: auto;
  min-width: 130px;
  background: var(--color-primary-violet);
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin: 0;
  text-align: center;
}

.btn-cart:hover {
  background: var(--color-footer-main);
}

/* Oprava pro tlačítka v rozmezí 993px - 1350px */
@media (min-width: 993px) and (max-width: 1350px) {
  .btn-cart {
    min-width: auto;
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .qty-input {
    width: 20px !important;
    font-size: 0.9rem;
  }

  .quantity-selector {
    gap: 0;
  }

  .product-stock {
    font-size: 0.7rem;
  }
}


/* =========================================================
   8) SEKCE PRODEJNY
   ========================================================= */

.stores-bg {
  background: var(--color-white);
  min-height: auto;
  padding-bottom: 60px;
  padding-top: 60px;
}

.stores-bg h3,
.stores-bg h4,
.stores-bg h5 {
  color: var(--color-primary-blue);
}

.stores-bg h4 {
  font-size: 1.6rem;
}

.stores-bg h5 {
  font-size: 1.3rem;
}

/* Záložky (Tabs) */
.stores-tabs {
  background: transparent;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  height: auto;
}

.stores-tabs .tab {
  text-transform: none;
  line-height: 40px;
  height: 40px;
  margin: 0 10px;
}

.stores-tabs .tab a {
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.stores-tabs .tab a:hover {
  color: var(--color-primary-blue);
  background: rgba(0, 0, 0, 0.05);
}

.stores-tabs .tab a:focus,
.stores-tabs .tab a:focus.active {
  background: #f0f5fa;
  outline: none;
  color: var(--color-primary-blue);
}

.stores-tabs .tab a.active {
  background: #f0f5fa;
  color: var(--color-primary-blue);
  font-weight: 700;
  text-decoration: none;
}

/* Odstranění default indikátoru */
.stores-tabs .indicator {
  display: none;
}

/* Karta prodejny */
.store-card {
  background: var(--color-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f5fa;
}

/* Desktop: split pozadí */
@media (min-width: 993px) {
  .store-card {
    background: linear-gradient(to right, #f0f5fa 41.666667%, #ffffff 41.666667%);
  }

  .store-card-left {
    background: transparent !important;
  }
}

.store-card .row {
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.store-card-left {
  background: #f0f5fa;
  padding: 30px 30px 60px 30px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  margin: 0 !important;
}

.store-card-left .btn-map {
  margin-top: auto;
}

.store-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.store-hours h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: #333;
}

.hours-row span:first-child {
  font-weight: 600;
}

/* Responzivní úpravy pro Stores */
@media (max-width: 992px) {

  .store-card-left,
  .store-card-right {
    padding: 20px !important;
  }

  .store-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .stores-tabs {
    flex-wrap: wrap;
    height: auto;
  }

  .stores-tabs .tab {
    margin: 5px;
  }
}


/* =========================================================
   9) ČLÁNKY A AKTUALITY
   ========================================================= */

.articles-bg {
  /* Desktop: Split background using gradient */
  background: linear-gradient(to right, #f9fbfc 66.666667%, #f0f5fa 66.666667%);
  padding: 80px 0;
  overflow: hidden;
}

.articles-left,
.articles-right {
  background: transparent !important;
  padding: 0 !important;
}

@media (min-width: 993px) {
  .articles-right {
    padding-left: 80px !important;
    padding-right: 20px !important;
  }
}

.container-left-part,
.container-right-part {
  padding: 0;
}

/* Mobile: Stacked view */
@media (max-width: 992px) {
  .articles-bg {
    background: #f9fbfc;
  }

  .articles-right {
    background: #f0f5fa !important;
    margin-top: 0;
    padding: 40px 20px !important;
  }

  .articles-left {
    padding-bottom: 40px !important;
  }

  .container-left-part,
  .container-right-part {
    padding: 40px 20px;
  }
}

.text-left {
  text-align: left !important;
  margin-left: 0 !important;
}

/* Article Item */
.article-item {
  display: flex;
  margin-bottom: 40px;
  gap: 30px;
}

.article-image {
  flex: 0 0 200px;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

@media (min-width: 993px) {
  .flex-row-lg {
    display: flex;
    flex-wrap: wrap;
  }
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 600;
}

.article-meta a {
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color 0.3s;
}

.article-meta a:hover {
  color: var(--color-primary-violet);
  text-decoration: none;
}

.article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.article-title a,
.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.article-title a:hover,
.news-title a:hover {
  color: var(--color-primary-violet);
}

/* Map Button */
.btn-map {
  display: block;
  background: var(--color-white);
  color: var(--color-primary-blue);
  border: 2px solid var(--color-primary-blue);
  padding: 15px 20px;
  text-align: center;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 30px;
  transition: all 0.3s;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.btn-map:hover {
  background: var(--color-primary-blue);
  color: var(--color-white);
  text-decoration: none;
}

/* News Item */
.news-item {
  margin-bottom: 40px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.news-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.news-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.news-link:hover {
  text-decoration: none;
}

/* Tlačítka */
.articles-btn-wrapper,
.news-btn-wrapper {
  margin-top: 30px;
}

.btn-outline-violet {
  display: inline-block;
  border: 1px solid var(--color-primary-violet);
  color: var(--color-primary-violet);
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-outline-violet:hover {
  background: var(--color-primary-violet);
  color: var(--color-white);
}

@media (max-width: 992px) {
  .article-item {
    flex-direction: column;
    gap: 15px;
  }

  .article-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }
}


/* =========================================================
   10) FOOTER (PATIČKA)
   ========================================================= */

.footer-main {
  background: var(--color-footer-main);
  /* padding: 30px 0 20px 0; */
  min-height: 150px;
  /* Upřednostnit novější nastavení, ale zachovat padding pro obsah */
  padding: 50px 0 20px 0;
  color: var(--color-white);
}

.footer-content {
  background: #8a66c0;
  padding: 50px 0 60px 0;
  color: var(--color-white);
}

.pl-0 {
  padding-left: 0 !important;
}

.footer-logo img {
  height: 80px;
  width: auto;
  display: block;
}

.footer-top-row {
  display: flex !important;
  align-items: center;
}

.footer-up-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
  gap: 5px;
  transition: opacity 0.3s;
}

.footer-up-link:hover {
  opacity: 0.8;
  color: var(--color-white);
}

.footer-up-link img {
  width: 24px;
  height: 24px;
}

.footer-up-link span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Sloupce patičky */
.footer-col h5 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.footer-spacer {
  height: 20px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration-color: var(--color-white);
}

@media (min-width: 993px) {
  .right-align-desktop {
    text-align: right;
  }
}

.footer-bottom {
  background: var(--color-primary-violet);
  min-height: 350px;
}

/* =========================================================
   12) LOGIN PAGE – Stránka přihlášení
   ========================================================= */

.login-bg {
  background: var(--color-bg-search);
  /* Světle šedá/modrá */
  min-height: 600px;
  padding: 60px 0;
}

/* =========================================================
   13) USER DASHBOARD – Můj účet
   ========================================================= */

.user-dashboard-section {
  background: #f9f9fb;
  /* Very light gray for contrast */
  min-height: 600px;
  padding: 40px 0 60px 0;
}

/* Sidebar Styling */
.user-sidebar-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
}

.user-profile-summary {
  padding: 30px 20px;
  text-align: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.user-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--color-bg-search);
  color: var(--color-primary-blue);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  color: #333;
}

.user-email {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.user-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.user-nav li:last-child {
  border-bottom: none;
}

.user-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #555;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}

.user-nav a:hover,
.user-nav a.active {
  background: #fdfdfd;
  color: var(--color-primary-violet);
  padding-left: 25px;
  border-left: 4px solid var(--color-primary-violet);
}

.user-nav .nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  /* primary-blue: #3366c0 */
  filter: invert(35%) sepia(60%) saturate(700%) hue-rotate(196deg) brightness(90%) contrast(100%);
  transition: filter 0.3s;
}

.user-nav a:hover .nav-icon,
.user-nav a.active .nav-icon {
  /* primary-violet: #8a66c0 */
  filter: invert(42%) sepia(30%) saturate(800%) hue-rotate(230deg) brightness(95%) contrast(95%);
}

/* Logout specific */
.logout-link {
  color: #d9534f !important;
}

.logout-link:hover {
  background: #fff5f5 !important;
  border-left-color: #d9534f !important;
  color: #c9302c !important;
}

/* Main Content Styling */
.dashboard-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-primary-blue);
  margin: 0 0 30px 0;
}

.dashboard-widgets-row {
  margin-bottom: 30px;
}

.dashboard-widget {
  background: var(--color-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  height: 100%;
}

.widget-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.widget-icon.primary {
  background: rgba(138, 102, 192, 0.1);
  /* Violet alpha */
}

.widget-icon.secondary {
  background: rgba(255, 193, 7, 0.1);
  /* Gold alpha */
}

.widget-img-filter {
  width: 28px;
  height: 28px;
  /* Filter needed for svg color if not pre-colored, strictly reusing existing svgs */
}

.points-icon {
  font-size: 1.8rem;
  color: #ffc107;
}

.widget-content {
  display: flex;
  flex-direction: column;
}

.widget-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.widget-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.widget-link {
  font-size: 0.85rem;
  color: var(--color-primary-violet);
  font-weight: 500;
  text-decoration: none;
}

.widget-link:hover {
  text-decoration: underline;
}

/* Recent Orders Table */
.recent-orders-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: #333;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.dashboard-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.dashboard-table td {
  font-size: 0.95rem;
  padding: 15px 5px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-shipped {
  background: #e3f2fd;
  color: #2196f3;
}

.status-delivered {
  background: #e8f5e9;
  color: #4caf50;
}

.btn-small-outline {
  display: inline-block;
  border: 1px solid var(--color-border-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-small-outline:hover {
  border-color: var(--color-primary-violet);
  color: var(--color-primary-violet);
}

@media (max-width: 600px) {
  .dashboard-widgets-row .col {
    margin-bottom: 20px;
  }

  .responsive-table-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 992px) {

  /* Tablet view: Widgets full width and stacked */
  .dashboard-widgets-row .col.s12.m6 {
    width: 100%;
    /* Force 100% width on tablet/smaller desktop below L breakpoint */
    margin-bottom: 20px;
  }

  .dashboard-widgets-row {
    margin-bottom: 10px;
  }
}

@media (max-width: 992px) {

  /* Tablet view: Widgets full width and stacked */
  .dashboard-widgets-row .col.s12.m6 {
    width: 100%;
    /* Force 100% width on tablet/smaller desktop below L breakpoint */
    margin-bottom: 20px;
  }

  .dashboard-widgets-row {
    margin-bottom: 10px;
  }
}

/* Flex row for equal height columns */
.login-bg .row {
  display: flex;
  flex-wrap: wrap;
}

.login-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  /* Ensures card fills the flex column */
  display: flex;
  flex-direction: column;
}

.login-title {
  color: var(--color-primary-blue);
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 10px 0;
}

.login-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
}

/* Custom Input Field */
.input-field-custom {
  margin-bottom: 25px;
}

.input-field-custom label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  border: 1px solid var(--color-border-light) !important;
  /* Override Materialize */
  background: #fcfcfc !important;
  border-radius: 4px !important;
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 1rem !important;
  color: #333 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s !important;
}

.form-input:focus {
  border-color: var(--color-primary-violet) !important;
  background: #fff !important;
}

/* Actions */
.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  /* Push actions to bottom if needed, though form is usually not full height */
  margin-top: 30px;
}

.forgot-password {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: underline;
}

.forgot-password:hover {
  color: var(--color-primary-blue);
  text-decoration: none;
}

.btn-primary-violet, a.btn-primary-violet {
  background: var(--color-primary-violet);
  color: white;
  border: none;
  padding: 0 30px;
  height: 48px;
  line-height: 48px;
  border-radius: 24px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary-violet:hover, a.btn-primary-violet:hover {
  background: var(--color-footer-main);
}

a.btn-primary-violet {
  display: inline-block;
}

/* Registration */
.registration-card {
  border: 2px dashed var(--color-border-light);
  background: transparent;
  box-shadow: none;
}

.registration-benefits {
  margin-bottom: 30px;
}

.registration-benefits p {
  font-weight: 600;
  margin-bottom: 15px;
}

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

.benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green-dark);
  font-weight: bold;
}

.registration-action {
  margin-top: auto;
}

.btn-register {
  width: auto;
  min-width: 180px;
  /* ensure legible width but not full */
  text-align: center;
  height: 48px;
  line-height: normal;
  /* allow flex centering to work better */
  padding: 0 30px;
  /* Match login button padding */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumbs */
.breadcrumbs-section {
  padding: 15px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumbs-section .container {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.breadcrumb-item {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
  margin: 0 8px;
  font-size: 0.85rem;
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--color-primary-blue);
  font-size: 0.85rem;
}

@media (max-width: 655px) {
  .login-card {
    padding: 30px 20px;
    /* Reduce padding on smaller screens */
  }

  .btn-register,
  .btn-primary-violet {
    width: 100%;
    /* Full width on mobile/narrow tablet */
    padding: 0 15px;
  }
}

@media (max-width: 600px) {
  .login-actions {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .forgot-password {
    text-align: center;
    order: 2;
  }

  .btn-primary-violet {
    order: 1;
    width: 100%;
  }

  .login-bg .row {
    display: block;
    /* Stack columns on mobile */
  }

  .login-card {
    height: auto;
    margin-bottom: 20px;
  }
}

/* =========================================================
   14) PRODUCT PAGE - Layout Refinement
   ========================================================= */

/* Inline Buy Box */
.p-buy-box-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  /* allow wrapping on very small screens */
}

.p-buy-box-inline .quantity-selector {
  margin: 0;
  width: auto !important;
  /* Fix for potential 100% width override */
  flex: 0 0 auto;
}

.p-buy-box-inline .btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  /* Match standard inputs better */
  padding: 0 25px;
  gap: 10px;
}

/* 1. Title Size Reduction & Spacing */
.p-title-main {
  color: var(--color-primary-blue);
  margin-top: 30px;
  /* Increased top margin to 60px */
  font-size: 2.4rem !important;
  font-weight: 500;
  /* Reduced weight */
}

/* 2. Label Position (Top Left) - Style matches homepage by default class .label-new */
.p-image-container {
  position: relative;
}

.p-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

/* Removed custom .label-new override to inherit global style (Teal) */

/* 3. Meta Data Stacking */
.p-meta-weak {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.p-meta-weak span {
  display: block;
}

/* 4. Cart Icon Size in Button */
.btn-add-cart .btn-icon {
  width: 14px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* 5. Stock & Delivery Info */
.p-stock-status {
  margin-bottom: 10px;
}

.stock-delivery-info {
  display: block;
  /* New line */
  color: var(--color-text-muted);
  /* Gray */
  font-size: 0.8rem;
  /* Smaller */
  margin-top: 2px;
  font-weight: 400;
}

/* =========================================================
   15) CATEGORY PAGE
   ========================================================= */

.category-description {
  margin-bottom: 30px;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Subcategories List */
.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.subcategory-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-bg-light);
  /* Light Gray */
  color: var(--color-text-heading);
  border-radius: 4px;
  /* Slightly rounded */
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid #e0e0e0;
}

.subcategory-link:hover {
  background-color: var(--color-primary-violet);
  color: #fff;
  border-color: var(--color-primary-violet);
}

/* Filter Bar (Horizontal) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-label {
  font-weight: 700;
  color: var(--color-text-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.filter-check-group {
  display: flex;
  gap: 15px;
}

.filter-check-group label {
  margin-bottom: 0;
  /* Override block margin */
}

/* Move Sort to right on large screens */
.ml-auto {
  margin-left: auto;
}

@media only screen and (max-width: 992px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .ml-auto {
    margin-left: 0;
  }
}

/* Grid Section Background */
.grid-section-bg {
  background-color: var(--color-bg-articles);
  padding: 40px 0;
  width: 100%;
}

/* Ensure grid takes full width in container */
.grid-section-bg .container {
  width: 90%;
  max-width: 1280px;
}

/* Filter Sidebar */
.filter-sidebar {
  background: #fff;
  padding: 0;
  margin-bottom: 30px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.filter-options label {
  display: block;
  margin-bottom: 10px;
}

.filter-options span {
  color: var(--color-text-body);
  font-size: 0.95rem;
}

/* Articles Page */
.article-card {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
  width: 300px;
  /* Fixed width for image */
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  flex-grow: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
}

.article-title {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.article-title a {
  color: var(--color-text-heading);
  text-decoration: none;
  transition: color 0.2s;
}

.article-title a:hover {
  color: var(--color-primary-violet);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.article-perex {
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-read-more {
  align-self: flex-start;
  color: var(--color-primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.article-read-more:hover {
  color: var(--color-primary-violet);
  text-decoration: underline;
}

/* Category Tabs */
.article-filters {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.article-tab {
  padding: 10px 20px;
  border-radius: 30px;
  background: #f5f5f5;
  color: var(--color-text-heading);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.article-tab.active,
.article-tab:hover {
  background: var(--color-primary-violet);
  color: #fff;
}

/* Response for mobile */
@media only screen and (max-width: 768px) {
  .article-card {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    height: 200px;
  }
}

/* =========================================
   ARTICLE DETAIL PAGE
   ========================================= */
.article-detail-section {
  padding: 40px 0 60px 0;
  background: #fff;
}

.article-detail-title {
  font-size: 32px;
  font-weight: 400;
  color: var(--color-primary-blue);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-detail-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.article-detail-meta .separator {
  margin: 0 10px;
  color: #ddd;
}

.article-detail-meta a {
  color: var(--color-primary-violet);
  text-decoration: none;
}

.article-detail-meta a:hover {
  text-decoration: underline;
}

.article-detail-content {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.article-detail-content a {
  text-decoration: underline;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.article-detail-content a:hover {
  color: var(--color-primary-blue);
}

.article-detail-content p {
  margin-bottom: 20px;
}

/* Shipping Page - Visuals */
.shipping-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.shipping-method:last-child {
  border-bottom: none;
}

.shipping-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-hero);
  border-radius: 50%;
  margin-top: 15px;
}

.shipping-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Specific icon color filtering if needed */
.shipping-icon img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(50%) saturate(1633%) hue-rotate(190deg) brightness(89%) contrast(89%);
  /* Approx primary-blue */
}

.shipping-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.shipping-info p {
  margin-bottom: 10px;
}


.article-detail-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-detail-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-footer-actions {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.btn-back {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--color-primary-violet);
  color: var(--color-primary-violet);
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-back:hover {
  background: var(--color-primary-violet);
  color: #fff;
}

@media only screen and (max-width: 600px) {
  .article-detail-title {
    font-size: 24px;
  }

  .article-detail-section {
    padding: 20px 0;
  }
}


/* ╔═══════════════════════════════════════════════════════════════╗
   ║  PRODUCT GRID FIX – přidáno 2026-05-29                       ║
   ║  Účel: produktové karty se špatně skládaly, pokud měly různě  ║
   ║  vysoké obrázky nebo delší text (přelom na více řádků).       ║
   ║  Řešení: přepnout .products-row a #product-grid na CSS Grid.  ║
   ║  ──────────────────────────────────────────────────────────── ║
   ║  Poznámka pro kolegu: tento blok přepisuje jen layout         ║
   ║  kontejneru karet. Samotné .product-card styly níže NEJSOU    ║
   ║  měněny – pouze jim přidán box-sizing a odebrán margin-bottom ║
   ║  (mezery řeší gap v gridu). Ostatní kód souboru je nedotčen. ║
   ╚═══════════════════════════════════════════════════════════════╝ */

/* ── 1. Hlavní grid kontejner ───────────────────────────────────
   Platí pro index.html i category.html.
   Přepisuje Materialize .row (float / flex) na CSS Grid.        */
.products-row,
#product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0 !important;
  /* Zrušit float z Materialize */
  float: none;
}

/* ── 2. Potlačení Materialize .col šířek uvnitř gridu ───────────
   Každý .col s12 m6 l3 se chová jako grid buňka – Materialize
   mu jinak nastaví vlastní šířku a float, který grid narušuje.  */
.products-row > [class*="col"],
#product-grid > [class*="col"] {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  /* Flex kontejner pro .product-card, aby height: 100% fungovalo */
  display: flex;
  flex-direction: column;
}

/* ── 3. Karta – zajistit výplň celé výšky grid buňky ───────────
   Odstraněn margin-bottom (mezery řeší gap výše).
   box-sizing: border-box zabrání přetékání při padding.         */
.products-row .product-card,
#product-grid .product-card {
  margin-bottom: 0;
  box-sizing: border-box;
  /* height: 100% je již v originálním .product-card, ponecháno  */
}

/* ── 4. Skrytá sekce produktů v category.html ─────────────────
   #hidden-products obsahuje vnořenou .row bez třídy products-row,
   proto je potřeba ošetřit zvlášť.                              */
#hidden-products > .row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0 !important;
  float: none;
}

#hidden-products > .row > [class*="col"] {
  width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
}

#hidden-products .product-card {
  margin-bottom: 0;
  box-sizing: border-box;
}

/* ── 5. Responzivní breakpointy ─────────────────────────────── */
@media (max-width: 992px) {
  .products-row,
  #product-grid,
  #hidden-products > .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products-row,
  #product-grid,
  #hidden-products > .row {
    grid-template-columns: 1fr;
  }
}

/* ── END OF PRODUCT GRID FIX ─────────────────────────────────── */