/*
Theme Name:     Sperky Na Nohy
Theme URI:      https://www.sperkynanohy.cz/
Description:    Vlastni child theme Storefrontu pro ŠperkyNaNohy.cz. Postaveno nad WooCommerce, vsechna data (produkty, kategorie, ceny, sklad) se nacitaji dynamicky.
Author:         Custom
Template:       storefront
Version:        1.7.0
Text Domain:    sperkynanohy
*/

/* =========================================================
   0) PROMENNE / ZAKLADNI NASTAVENI
   Barvu lze doladit v Customizeru (Vzhled > Přizpůsobit >
   Šperky na nohy > Barvy) - tam se prepisuje jako inline CSS.
========================================================= */
:root {
  --snn-blue: #1a56c4;
  --snn-blue-dark: #123f94;
  --snn-blue-light: #eaf1fd;
  --snn-text: #2b2b2b;
  --snn-bg: #ffffff;
  --snn-border: #e7e9ee;
  --snn-radius: 10px;
  --snn-max-width: 1480px;
}

/* Vlastni SVG ikony (nahrada za knihovnu Dashicons - viz
   inc/class-snn-icons.php). Ikona se sama prizpusobi velikosti
   a barve textu, ve kterem stoji. */
.snn-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex: none;
  color: inherit;
}

body,
button,
input,
select,
textarea {
  font-family: 'Poppins', 'Lato', sans-serif;
  color: var(--snn-text);
}

body {
  background: var(--snn-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Lato', sans-serif;
  font-weight: 600;
  letter-spacing: 0 !important;
  color: var(--snn-text);
}

a {
  color: var(--snn-blue);
}
a:hover { color: var(--snn-blue-dark); }

.storefront-breadcrumb {
  margin: 10px 0px 30px;
  padding: 10px;
}

.snn-wrap {
  max-width: var(--snn-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Rodicovsky Storefront ma vychozi sirku obsahu (.col-full) omezenou
   na cca 1064px (66.5em) - proto vypadal obsah stranek (produkty,
   kategorie, kosik, modry pruh s kategoriemi...) uzsi nez homepage,
   ktera pouziva vlastni .snn-wrap na 1320px. Sjednocujeme na stejnou
   sirku, aby cely web pusobil konzistentne. */
.col-full {
  max-width: var(--snn-max-width);
}

/* =========================================================
   1) TOP BAR (nad hlavickou, na celém webu)
========================================================= */
.snn-topbar {
  background: var(--snn-blue-light);
  color: var(--snn-text);
  font-size: 13px;
}
.snn-topbar .snn-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.snn-topbar ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.snn-topbar li { display: flex; align-items: center; gap: 6px; }
.snn-topbar .dashicons,
.snn-topbar svg { width: 15px; height: 15px; }
.snn-topbar-currency { opacity: .85; }

/* Odkaz na clanky vpravo v horni liste (drive tu byla zkratka meny). */
.snn-topbar-articles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--snn-text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}
.snn-topbar-articles:hover { color: var(--snn-blue); }
.snn-topbar-articles .snn-icon { color: var(--snn-blue); }

/* =========================================================
   2) HEADER
   Horni bila lista: logo / vyhledavani / ikonky (Muj ucet,
   Oblibene, Kosik). Modry pruh s kategoriemi je samostatny
   radek pod tim (viz sekce 3) a resi se sam.
========================================================= */
#masthead.site-header {
  border-bottom: 1px solid var(--snn-border);
  background-color: #fff !important;
  background-image: none !important; /* zabrani nechtenemu "Header Image" pozadi */
  padding: 0px;
  margin: 0px;
}

/* Primy potomek #masthead = horni bila lista (logo/search/ikonky).
   Druhy ".col-full" (kategorie) je vnoreny hloubeji, takze ho
   tento selektor nezasahne.
   POZOR: pouziva se grid (ne flex + space-between), protoze pri
   flexu se vyhledavani jen vyplnilo mezi logem a ikonkami - a
   protoze logo a shluk ikonek nemaji stejnou sirku, pole nebylo
   opravdu na strede. Grid s "1fr stred 1fr" ho vycentruje presne. */
#masthead > .col-full {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px) 1fr;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 20px;
  max-width: var(--snn-max-width);
  margin: 0 auto;
  padding: 20px 10px 0px 10px;
}
#masthead .site-branding {
  grid-area: logo;
  justify-self: start;
  margin: 0;
}
#masthead .site-branding img { max-height: 54px; width: auto; display: block; }

/* Vyhledavaci pole uprostred - vlastni formular (snn_render_header_search),
   zadne skryte prvky z WooCommerce widgetu, ktere delaly potize. */
#masthead .snn-search {
  grid-area: search;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  margin: 0;
}
#masthead .snn-search-form {
  position: relative;
  display: flex;
}
#masthead .snn-search-input {
  width: 100%;
  padding: 11px 46px 11px 18px;
  border: 1px solid var(--snn-border);
  border-radius: 999px;
  background: #f4f6fa;
  font-size: 14px;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
/* Potlaceni vychozich "search" dekoraci prohlizece (lupa/krizek vlozene
   samotnym prohlizecem), aby se nemichaly s nasi vlastni ikonou. */
#masthead .snn-search-input::-webkit-search-decoration,
#masthead .snn-search-input::-webkit-search-cancel-button,
#masthead .snn-search-input::-webkit-search-results-button,
#masthead .snn-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
#masthead .snn-search-input:focus {
  outline: none;
  border-color: var(--snn-blue);
  background: #fff;
}
#masthead .snn-search-submit {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--snn-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#masthead .snn-search-submit .dashicons,
#masthead .snn-search-submit .snn-icon { width: 18px; height: 18px; }
#masthead .snn-search-submit:hover { background: rgba(26, 86, 196, 0.08); }

/* FiboSearch (Ajax Search for WooCommerce) - prevlecena do stejneho
   kabatu jako puvodni vlastni pole (zaobleny svetle sedy input, modra
   lupa), aby na strance vypadala uplne stejne, jen s chytrym
   naseptavanim. Trida .snn-fibosearch je predana pres parametr
   shortcode [fibosearch class="snn-fibosearch"] v
   snn_render_header_search(), takze tyto styly cili jen na nasi
   instanci a nezasahnou pripadne jine pouziti FiboSearch na webu.
   Plugin ma vlastni "Pirx" styl (fazolovity tvar, tlacitko jako
   oddeleny kolecko), ktery se jinak chova v prazdnem a vyplnenem
   stavu - proto ikonka "skakala". Nasledujici pravidla to napevno
   prepisuji na jednotny kulaty pill s lupou na FIXNI pozici vpravo
   ve vsech stavech (prazdne/psani/aktivni). */
#masthead .snn-fibosearch-wrap { width: 100%; }
#masthead .snn-fibosearch.dgwt-wcas-search-wrapp {
  width: 100%;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
}
#masthead .snn-fibosearch .dgwt-wcas-sf-wrapp {
  position: relative;
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 999px !important;
}
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input {
  width: 100%;
  height: auto;
  padding: 11px 86px 11px 18px !important;
  border: 1px solid var(--snn-border) !important;
  border-radius: 999px !important;
  background: #f4f6fa !important;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Potlaceni vychozich "search" dekoraci prohlizece (lupa/krizek vlozene
   samotnym prohlizecem), aby se nemichaly s ikonou pluginu. */
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input::-webkit-search-decoration,
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input::-webkit-search-cancel-button,
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input::-webkit-search-results-button,
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
#masthead .snn-fibosearch input[type="search"].dgwt-wcas-search-input:focus {
  outline: none;
  border-color: var(--snn-blue) !important;
  background: #fff !important;
}
/* Tlacitko s lupou - vzdy pripnute uvnitr pillu vpravo, misto
   vyskakovaciho kolecka mimo pill z "Pirx" stylu. */
#masthead .snn-fibosearch .dgwt-wcas-search-submit {
  position: absolute !important;
  top: 50% !important;
  right: 15px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--snn-blue) !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
}
#masthead .snn-fibosearch .dgwt-wcas-search-submit:before,
#masthead .snn-fibosearch .dgwt-wcas-search-submit:after {
  content: none !important;
}
#masthead .snn-fibosearch .dgwt-wcas-search-submit:hover { background: rgba(26, 86, 196, 0.08) !important; }
#masthead .snn-fibosearch .dgwt-wcas-ico-magnifier {
  fill: var(--snn-blue);
  width: 16px;
  height: 16px;
}
/* "X" pro smazani zadaneho textu - fixni pozice kousek nalevo od lupy,
   at nikdy nepreklada text ani se neprekryva s tlacitkem. Prebijeme
   inline "right" hodnotu, kterou tam pluginovy JS pridava dynamicky. */
#masthead .snn-fibosearch .dgwt-wcas-preloader {
  position: absolute !important;
  top: 50% !important;
  right: 54px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
}
#masthead .snn-fibosearch .dgwt-wcas-preloader svg path { fill: #9aa3b2; }
/* Hlasove vyhledavani nepouzivame - schovat prazdny element. */
#masthead .snn-fibosearch .dgwt-wcas-voice-search { display: none !important; }

/* Ikonky Muj ucet / Oblibene / Kosik vpravo */
.snn-header-actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}
.snn-header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--snn-text);
  text-decoration: none;
  white-space: nowrap;
}
.snn-header-icon-link:hover { color: var(--snn-blue); }
.snn-header-icon-link .snn-header-icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: var(--snn-blue);
}
.snn-header-icon-wrap { position: relative; display: inline-flex; }
.snn-cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--snn-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* Skryti vychoziho Storefront "header widget region" (prazdny
   sloupec vpravo v hlavicce, kdyz neni pouzity) */
.header-widget-region {
  display: none;
}

/* =========================================================
   3) HLAVNI NAVIGACE
========================================================= */
.storefront-primary-navigation,
.boutique-primary-navigation,
.snn-primary-navigation {
  background: var(--snn-blue);
  width: 100%;
  display: block;
}
.storefront-primary-navigation .col-full,
.boutique-primary-navigation .col-full,
.snn-primary-navigation .col-full {
  width: 100%;
  max-width: var(--snn-max-width);
  margin: 0 auto;
}
#site-navigation.main-navigation,
.main-navigation {
  width: 100%;
}
/* Polozky musi zustat na jednom radku - zadne zalamovani do dvou
   radku (vypadalo to nehezky a odsouvalo to hero obrazek dolu).
   Misto zalamovani se pri uzsim panelu zmensuje font/odsazeni
   (viz clamp() nize) az do bodu, kdy prevezme mobilni menu. */
.main-navigation ul.nav-menu,
.main-navigation ul.menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}
.main-navigation ul.nav-menu > li,
.main-navigation ul.menu > li {
  flex: 0 1 auto;
}
.main-navigation ul li a {
  display: block;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(11px, 1.05vw, 16px);
  padding: 16px clamp(6px, 1vw, 20px);
  letter-spacing: .01em;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: var(--snn-blue-dark);
  color: #fff;
}
.main-navigation ul ul {
  background: #fff;
  border: 1px solid var(--snn-border);
}
.main-navigation ul ul li a { color: var(--snn-text); }

/* =========================================================
   4) HERO
========================================================= */
.snn-hero {
  position: relative;
  background-color: var(--snn-blue-light);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.snn-hero-bg-wrap {
  display: contents;
}
/* Hero na celou sirku obrazovky (full-bleed) na VSECH sirkach -
   nezavisle na tom, jak siroke odsazeni/max-width ma nadrazeny
   obsahovy kontejner. Vnitrni obsah (.snn-hero .snn-wrap nize)
   zustava vystredeny a citelny v ramci --snn-max-width. */
.snn-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.snn-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.snn-hero .snn-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}
.snn-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.snn-hero-content h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #1c2b4a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.snn-hero-content h1 span,
.snn-hero-content h1 .snn-amp { color: var(--snn-blue); }
.snn-hero-content p {
  font-size: 17px;
  margin-bottom: 24px;
  color: #444;
}
.snn-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.snn-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .15s ease;
}
.snn-btn-solid { background: var(--snn-blue); color: #fff; }
.snn-btn-solid:hover { background: var(--snn-blue-dark); color: #fff; }
.snn-btn-outline { background: #fff; color: var(--snn-blue); border: 1px solid var(--snn-blue); }
.snn-btn-outline:hover { background: var(--snn-blue-light); color: var(--snn-blue); }
.snn-hero.snn-hero--no-image .snn-hero-content h1 span { color: var(--snn-blue); }

/* =========================================================
   5) USP LISTA POD HERO
========================================================= */
.snn-usp {
  border-bottom: 1px solid var(--snn-border);
}
.snn-usp .snn-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.snn-usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  flex: 1 1 150px;
}
.snn-usp-item .dashicons,
.snn-usp-item .snn-icon { color: var(--snn-blue); width: 22px; height: 22px; }

/* =========================================================
   6) KRUHOVE KATEGORIE
========================================================= */
.snn-categories { padding: 32px 0; }
.snn-section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}
.snn-section-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--snn-text-light, #6a6a6a);
  margin: -10px 0 20px;
}
/* Kruhove kategorie - klasicka mrizka (zadny slider, zadne sipky).
   Na PC dost male/uzke sloupce, aby se vsech 8 kategorii veslo do
   jednoho radku bez zalamovani. Pocet sloupcu se prizpusobi poctu
   kategorii (auto-fit), takze i kdyz jich pribude/ubude, poskladaji
   se rovnomerne na jeden radek. */
.snn-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
}
.snn-cat-item {
  text-align: center;
  text-decoration: none;
  color: var(--snn-text);
}
.snn-cat-circle {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--snn-border);
  margin-bottom: 10px;
}
.snn-cat-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snn-cat-item .snn-cat-name { font-size: 15.5px; font-weight: 600; text-transform: uppercase; display: block; line-height: 1.3; }
.snn-cat-item .snn-cat-desc {
  font-size: 12.5px;
  font-weight: 400;
  text-transform: none;
  color: var(--snn-text-light, #6a6a6a);
  display: block;
  line-height: 1.35;
  margin-top: 4px;
}

/* =========================================================
   7) DVE PROMO SEKCE
========================================================= */
.snn-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 0 32px;
}
.snn-promo {
  position: relative;
  border-radius: var(--snn-radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-color: #fbf1e7;
  background-size: cover;
  background-position: right center;
  text-decoration: none;
}
.snn-promo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, #fbf1e7 0%, rgba(251,241,231,.97) 42%, rgba(251,241,231,0) 68%);
}
.snn-promo-content { position: relative; max-width: 56%; padding: 36px 40px; color: var(--snn-text); }
.snn-promo-content h3 {
  color: #1c1c1c;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 12px;
}
.snn-promo-content p { margin: 0 0 22px; font-size: 15px; color: #5b5b5b; }
.snn-promo-content .snn-btn::after {
  content: "\2192";
  margin-left: 8px;
}

/* =========================================================
   6b) VYBERTE SI SVUJ STYL (dle WC atributu "Styl")
   Ctvercove karty - fotka pres celou plochu, pod ni poloprůhledny
   panel s ikonkou+nazvem, popiskem a tlacitkem prelozeny PRES fotku
   (dole). Vzhled navazuje na snn-promo (stejne CSS promenne, radius,
   .snn-btn tlacitka).
========================================================= */
.snn-styles { padding: 8px 0 36px; }
.snn-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.snn-style-card {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  text-decoration: none;
  color: var(--snn-text);
  border: 1px solid var(--snn-border);
  border-radius: var(--snn-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.snn-style-card:hover {
  box-shadow: 0 12px 26px rgba(26, 86, 196, .12);
  transform: translateY(-3px);
  border-color: var(--snn-blue);
}
.snn-style-photo {
  position: absolute;
  inset: 0;
  background-color: var(--snn-blue-light);
  background-size: cover;
  /* Fotky kotnikovych naramku jsou obvykle cele nohy na vysku -
     drzime vyrez u SPODNI casti obrazku, aby byl vzdy videt
     kotnik/naramek a ne prazdne lyto. */
  background-position: center bottom;
}
.snn-style-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(251,241,231,.85);
  padding: 14px 14px 16px;
  text-align: center;
}
.snn-style-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 6px;
}
.snn-style-icon {
  font-size: 28px;
  line-height: 1;
  color: var(--snn-blue);
}
.snn-style-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 21.5px;
  color: #1c1c1c;
}
.snn-style-desc {
  display: block;
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 14px;
}
.snn-style-btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 12.5px;
  background: rgba(255,255,255,.85);
}

/* =========================================================
   10) SPODNI CTA PRUH (uplne dole, nalepeny na paticku)
========================================================= */
.snn-bottom-banner {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  background-color: #fbf1e7;
  background-size: cover;
  background-position: right center;
  overflow: hidden;
  margin-top: 8px;
}
.snn-bottom-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, #fbf1e7 0%, rgba(251,241,231,.95) 40%, rgba(251,241,231,0) 72%);
}
.snn-bottom-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px 0;
}
.snn-bottom-banner-inner h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #1c1c1c;
}
.snn-bottom-banner-inner .snn-btn { white-space: nowrap; }

/* =========================================================
   8) NEJPRODAVANEJSI (dynamicke z WooCommerce)
========================================================= */
.snn-bestsellers { padding: 8px 0 36px; background: #fafbfd; }

/* Slider - obal drzici sipky + posuvny radek karet */
.snn-slider { position: relative; }
.snn-product-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  margin: 0 -2px;
}
/* skryte scrollbary - rolovani je pres sipky nebo tahem prstem */
.snn-product-grid { scrollbar-width: none; -ms-overflow-style: none; }
.snn-product-grid::-webkit-scrollbar { display: none; }

/* Staticka mrizka (Nejnovejsi) - misto vodoroveho rolovani se karty
   zalamuji na dalsi radek, sipky se nepouzivaji. */
.snn-product-grid--static {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: visible;
  padding: 0;
}
.snn-product-grid--static .snn-product-card {
  width: auto;
  flex: none;
  scroll-snap-align: none;
}
.snn-newest { padding: 8px 0 36px; background: #fafbfd; }

/* Sekce "Nejnovejsi" po kategoriich - nadpis kazde skupiny (nazev
   kategorie, proklikatelny na jeji archiv) + jeji vlastni mrizka
   4 produktu. Mezi skupinami je odsazeni, poslednimu se odebira
   spodni mezera, aby sekce hezky konci pred tlacitkem. */
.snn-newest-group { margin-bottom: 32px; }
.snn-newest-group:last-of-type { margin-bottom: 24px; }
.snn-newest-group-cta { text-align: center; margin-top: 18px; }
.snn-newest-group-title {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 16px;
  border-left: 5px solid var(--snn-blue);
  padding-left: 10px;
}
.snn-newest-group-title a {
  color: var(--snn-text);
  text-decoration: none;
}
.snn-newest-group-title a:hover { color: var(--snn-blue); }

.snn-slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--snn-border);
  background: #fff;
  color: var(--snn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: background .15s ease, opacity .15s ease;
  padding: 0;
}
.snn-slider-arrow .dashicons,
.snn-slider-arrow .snn-icon { width: 20px; height: 20px; }
.snn-slider-arrow:hover { background: var(--snn-blue-light); }
.snn-slider-arrow[disabled] { opacity: 0; pointer-events: none; }
.snn-slider-prev { left: -21px; }
.snn-slider-next { right: -21px; }

.snn-product-card {
  flex: 0 0 auto;
  width: clamp(155px, 15.5vw, 232px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--snn-border);
  border-radius: var(--snn-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease;
}
.snn-product-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.snn-product-card-link {
  display: block;
  text-decoration: none;
  color: var(--snn-text);
  position: relative;
}
/* Tlacitko "Pridat do kosiku" je uvnitr te same karty (viz border+
   overflow:hidden na .snn-product-card vyse) - zadny vlastni
   ramecek/stin, aby to bylo vizualne jedna spojita krabicka, ne dva
   kousky nad sebou. */
.snn-product-cta {
  display: block;
  padding: 4px 14px 14px;
  text-align: center;
}
.snn-product-cta .add_to_cart_button,
.snn-product-cta .button {
  background: var(--snn-blue);
  color: #fff !important;
  text-align: center;
  border-radius: 6px;
}
.snn-product-cta .added_to_cart {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--snn-blue);
}
.snn-product-thumb { display: block; position: relative; aspect-ratio: 1/1 !important; overflow: hidden; background: #f4f5f7; }
.snn-product-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.snn-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--snn-blue); color: #fff;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.snn-badge--sale { background: #e0293e; }
.snn-badge--bestseller { background: var(--snn-blue); }
.snn-badge--new { background: var(--snn-blue); }
/* Srdicko "Pridat do oblibenych" (TI WooCommerce Wishlist) - plovouci
   bily kolecko v pravem hornim rohu fotky, presne jako v katalogu
   produktu. Je to SOUROZENEC odkazu karty (ne uvnitr nej), aby v HTML
   nebyl odkaz vnoreny v odkazu - proto pozicujeme vuci .snn-product-card
   (position: relative nastavene vyse), ne vuci .snn-product-thumb. */
.snn-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snn-wishlist-btn .tinv-wraper,
.snn-wishlist-btn .tinvwl_add_to_wishlist_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: var(--snn-blue) !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0 !important;
}
.snn-wishlist-btn .tinvwl-txt { display: none !important; } /* jen ikonka, bez textu "Pridat do oblibenych" */
.snn-wishlist-btn i,
.snn-wishlist-btn svg {
  font-size: 15px !important;
  width: 15px;
  height: 15px;
  color: var(--snn-blue) !important;
}
.snn-product-info {
  padding: 12px 14px 4px;
  display: block !important;
  visibility: visible !important;
}
.snn-product-cat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--snn-blue);
  margin: 0 0 4px;
}
.snn-product-info h3 {
  display: block !important;
  font-size: 13.5px; font-weight: 500; margin: 0 0 6px; font-family: 'Poppins', sans-serif; line-height: 1.3;
}
.snn-product-price {
  display: block !important;
  font-weight: 700; color: var(--snn-blue); font-size: 17px; margin: 6px 0 4px;
}
/* Puvodni cena (preskrtnuta): #999 na bilem pozadi mel kontrast jen 2,8:1
   a Lighthouse ho hlasil jako necitelny. #6a6a6a ma 5,7:1 - stale je to
   svetle seda, ale uz splnuje pristupnost. */
.snn-product-price del,
.snn-product-price del .woocommerce-Price-amount,
.snn-product-price del .woocommerce-Price-currencySymbol { color: #6a6a6a; }
.snn-product-price del { font-weight: 400; font-size: 13px; margin-right: 6px; }
.snn-product-rating { display: flex; align-items: center; gap: 5px; }
.snn-product-stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--snn-border);
}
.snn-product-stars::before {
  content: "★★★★★";
  position: absolute;
  top: 0; left: 0;
  width: var(--snn-rating, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: #f6b400;
}
.snn-product-rating-number { font-size: 12.5px; font-weight: 700; color: var(--snn-text); }
.snn-product-rating-count { font-size: 11.5px; color: #888; }
.snn-view-all { text-align: center; margin-top: 28px; }

/* =========================================================
   9) INSPIRACE / GALERIE
========================================================= */
.snn-gallery { padding: 16px 0 36px; text-align: center; }
.snn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.snn-gallery-grid a { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 6px; }
.snn-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.snn-gallery-grid a:hover img { transform: scale(1.05); }

/* =========================================================
   10) PATICKA
========================================================= */
#colophon.site-footer { background: #14213d; color: #cfd6e6; font-size: 15px; }
#colophon .footer-widgets .widget-title { color: #fff; font-size: 19px; text-transform: uppercase; }
#colophon a { color: #cfd6e6; }
#colophon a:hover { color: #fff; }
.snn-payment-icons { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.snn-footer-categories { list-style: none; margin: 0; padding: 0; }
.snn-footer-categories li { margin-bottom: 8px; }
.snn-payment-icons span {
  background: #fff; color: #14213d; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px;
}

/* Nadpis "Souvisejici produkty" (a "Mozna se vam bude take libit" -
   up-sells) pod detailem produktu - vychozi WooCommerce/Storefront
   mezera pod nadpisem byla moc mala, karta pod nim pusobila
   "nalepena". */
.related.products > h2,
.upsells.products > h2 {
  margin-bottom: 28px;
}

/* =========================================================
   11) OBECNA PRODUKTOVA MRIZKA (archiv/shop)
========================================================= */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px;
}
/* WooCommerce na kategoriich nekdy prida do ul.products navic dlazdici
   podkategorie (li.product-category) nebo jiny prazdny prvek pred
   skutecne produkty. V grid rozlozeni si i prazdna/skryta polozka
   porad drzi svoji bunku -> prvni radek pak vypadal, ze zacina az
   od 2. sloupce. Cokoliv, co neni skutecny produkt, proto schovame. */
.woocommerce ul.products > li:not(.product) {
  display: none !important;
}
/* Rodicovsky Storefront motiv ma na ul.products clearfix
   (::before/::after s content:"" a display:table) - pro puvodni
   float layout. V CSS gridu se ale tyto pseudo-elementy chovaji
   jako 2 dalsi (neviditelne) polozky mrizky a "ukradnou" prvni
   bunku prvniho radku. Timhle je z gridu uplne vyradime. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
.woocommerce ul.products li.product {
  background: #f0f0f0;
  border: 1px solid #f0f0f0;
  border-radius: var(--snn-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(20, 33, 61, .06);
  transition: box-shadow .15s ease;
  /* Storefront (rodicovsky motiv) dava kartam float + width v % pro columns-3/columns-4,
     coz se bije s nasi mrizkou (grid) a karty se extremne zuzi. Timhle to prebijeme. */
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 10px 26px rgba(20, 33, 61, .12);
}
.woocommerce ul.products li.product img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: block;
  padding: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  padding: 20px 24px 0;
  margin: 0 0 4px;
  color: #222;
}
.jojo_woocommerce_short_description p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  padding: 0 24px;
  margin: 0 0 18px;
}
/* cena jako "vestička" primo pres fotku (vpravo nahore), ne pod
   nazvem/popiskem nad tlacitkem. "top" misto "bottom" pouzivame
   schvalne - vyska fotky se meni podle sirky karty, ale zacatek
   fotky (top:0 uvnitr odkazu) je vzdycky na stejnem miste. */
.woocommerce ul.products li.product .price {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-block;
  width: auto;
  text-align: right;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  padding: 6px 12px;
  margin: 0;
  background: linear-gradient(135deg, #6495ed, #40e0d0);
  box-shadow: 3px 0 0 0 #40e0d0;
  border-radius: 6px;
}
.woocommerce ul.products li.product .price del {
  display: block;
  color: rgba(255, 255, 255, .8);
  font-weight: 400;
  font-size: 13px;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}
.wb-posted_in {
  display: none;
}
.woocommerce ul.products li.product .onsale {
  background: var(--snn-blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  min-height: 0;
  min-width: 0;
  line-height: 1.4;
  top: 10px;
  left: 10px;
  right: auto;
}
.woocommerce ul.products li.product a.button {
  margin: 0 24px 24px;
  display: inline-block;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce input.button, .woocommerce #respond input#submit.alt {
  background: var(--snn-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  padding: 12px 22px;
  border: none;
  font-size: 18px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--snn-blue-dark);
  color: #fff;
}

/* =========================================================
   12) MOBIL
========================================================= */
@media (max-width: 782px) {
  .snn-topbar { display: none; }

  /* Poloviny okraje stranky na mobilu (z 20px na 10px), aby bylo
     vic mista pro obsah - tlacitka a nadpisy se pak nezalamuji tak
     brzy (napr. "PROHLÉDNOUT BOTY" uz nerozdeli "T" na druhy radek). */
  .snn-wrap { padding-left: 10px; padding-right: 10px; }

  #masthead.site-header { position: sticky; top: 0; z-index: 200; }
  #masthead > .col-full {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
    padding: 12px 16px;
    gap: 10px;
  }
  .snn-header-actions { gap: 28px; }
  #masthead .snn-search { max-width: none; }
  .snn-header-icon-label { display: none; } /* na mobilu jen ikonky, aby se lista nerozpadla */

  /* ===== Redesign HERO na mobilu =====
     Kremove pozadi, fotka jen v prave casti (ne pres celou sirku),
     serifovy nadpis vlevo, tlacitka pod sebou se sipkou a USP lista
     jako plovouci bila karta presahujici pres spodni okraj fotky. */
  .snn-hero {
    min-height: 0;
    background: #fbf1e7;
    padding-bottom: 52px;
  }
  .snn-hero .snn-wrap {
    padding-top: 32px;
    padding-bottom: 0;
    padding-left: 30px;
    padding-right: 30px;
  }
  .snn-hero-bg {
    left: auto;
    width: 62%;
    height: 94%;
    object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
            mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  }
  .snn-hero-content {
    align-items: flex-start;
    text-align: left;
    max-width: 58%;
    margin: 0;
  }
  .snn-hero-content h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 30px;
    color: #1c2b4a;
  }
  .snn-hero-content p { color: #5b5b5b; }
  .snn-hero-cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }
  .snn-hero-cta .snn-btn { width: auto; }
  .snn-hero-cta .snn-btn::after {
    content: "\2192";
    margin-left: 8px;
  }

  /* USP jako plovouci karta presahujici pres spodni hranu hero fotky */
  .snn-usp {
    border-bottom: none;
    position: relative;
    z-index: 2;
    margin: -38px 16px 24px;
  }
  .snn-usp .snn-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(20, 30, 60, .12);
    padding: 20px 12px;
    max-width: none;
    /* Mrizka 2+3: prvni radek 2 polozky (kazda pulka sirky), druhy
       radek 3 polozky (kazda tretina sirky) - misto nahodneho
       zalamovani (2+2+1). 6 sloupcu = spolecny jmenovatel pro
       poloviny i tretiny. */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 22px;
    column-gap: 10px;
  }
  .snn-usp-item {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    font-size: 12.5px;
  }
  .snn-usp-item:nth-child(1) { grid-column: 1 / span 3; }
  .snn-usp-item:nth-child(2) { grid-column: 4 / span 3; }
  .snn-usp-item:nth-child(3) { grid-column: 1 / span 2; }
  .snn-usp-item:nth-child(4) { grid-column: 3 / span 2; }
  .snn-usp-item:nth-child(5) { grid-column: 5 / span 2; }

  /* Kruhove kategorie na mobilu: klasicka mrizka po 3 v radku,
     vsechny kategorie jsou vzdy videt - zadne rolovani ani sipky. */
  .snn-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  /* ===== PROMO dlazdice na mobilu =====
     Stejny princip jako na desktopu (kremova karta, foto jen vpravo,
     verzalkovy nadpis, tlacitko se sipkou) - jen mensi rozmery a uzsi
     sloupec pro text. */
  .snn-promo-grid { grid-template-columns: 1fr; gap: 18px; }
  .snn-promo { min-height: 220px; background-position: center; }
  .snn-promo::before {
    background: linear-gradient(to right, #fbf1e7 0%, rgba(251, 241, 231, .96) 48%, rgba(251, 241, 231, 0) 70%);
  }
  .snn-promo-content {
    max-width: 62%;
    padding: 24px 22px;
  }
  .snn-promo-content h3 { font-size: 20px; }

  /* Slider produktu na mobilu: kartička skoro na sirku obrazovky
     + kousek dalsi karty vykukuje vpravo, aby bylo jasne, ze jde
     rolovat prstem doprava. Sipky na mobilu schovavame - prekryvaly
     obrazek produktu a pusobily rusive - listovani je cely na tazeni
     prstem (viz scroll-snap na .snn-product-grid vyse). */
  .snn-product-card { width: 76vw; max-width: 300px; }
  .snn-slider-arrow { display: none; }
  .woocommerce ul.products {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 28px;
  }

  /* Staticka mrizka "Nejnovejsi" na mobilu: 2 karty vedle sebe. */
  .snn-product-grid--static { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .snn-gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Cisla stranek + sipky u strankovani - na mobilu byla mala a
     spatne se do nich trefovalo prstem, takze jsou tu skoro
     dvojnasobne oproti desktopu (46px kolecko -> 84px atd.) */
  nav.woocommerce-pagination .page-numbers,
  .woocommerce-pagination .page-numbers {
    min-width: 84px;
    height: 84px;
    padding: 0 14px;
    font-size: 34px;
  }
  nav.woocommerce-pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers {
    gap: 14px;
  }
  nav.woocommerce-pagination .page-numbers.next,
  nav.woocommerce-pagination .page-numbers.prev,
  .woocommerce-pagination .page-numbers.next,
  .woocommerce-pagination .page-numbers.prev {
    font-size: 36px;
  }

  /* Znacky (wb-thumb-wrapper z pluginu WooCommerce Brands) - na
     mobilu byly kazda na celou sirku (1 pod druhou s velkymi
     mezerami), chceme 2 vedle sebe stejne jako na desktopu. */
  .wb-thumb-wrapper.wb-row [class*="wb-col-xs-"] {
    width: 50% !important;
  }

  /* Mobilní menu musí být vždy ve statickém toku dokumentu (nikdy
     absolute/fixed) - jen tak je jiste, ze se rozbaluje smerem DOLU
     pod hamburger tlacitko, nikdy nahoru. */
  #site-navigation.main-navigation,
  .main-navigation {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  .main-navigation ul.nav-menu,
  .main-navigation ul.menu {
    display: block;
    width: 100%;
    position: static !important;
  }

  /* ===== Hamburger tlacitko na mobilu =====
     Misto celeho modreho pruhu s napisem "Menu" chceme jen
     jednoduchou ikonku (tri cary), stejne strizlive jako na
     desktopu - bez pozadi, bez ramecku, bez textu. Modra barva
     zustava jen na samotne rozbalene nabidce polozek. */
  .storefront-primary-navigation,
  .boutique-primary-navigation,
  .snn-primary-navigation {
    background: transparent;
  }
  .storefront-primary-navigation .col-full,
  .boutique-primary-navigation .col-full,
  .snn-primary-navigation .col-full {
    padding-top: 0;
    padding-bottom: 0;
  }
  .main-navigation ul.nav-menu,
  .main-navigation ul.menu {
    background: var(--snn-blue);
  }

  /* Tlacitko je pres JS (custom.js) presunuto primo do .snn-header-actions,
     tedy do stejne radky jako Muj ucet / Kosik - zobrazuje se proto uplne
     vpravo nahore, na stejne urovni jako ikonka kosiku. Zadne margin: auto
     pozicovani uz neni potreba, o to se stara flex + gap rodicovskeho
     .snn-header-actions. */
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 18px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    position: relative;
  }
  .menu-toggle::before,
  .menu-toggle::after {
    content: "" !important;
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--snn-blue);
    border-radius: 2px;
    transition: transform .2s ease, top .2s ease, bottom .2s ease, box-shadow .2s ease;
  }
  .menu-toggle::before {
    top: 0;
    box-shadow: 0 7.5px 0 var(--snn-blue);
  }
  .menu-toggle::after {
    bottom: 0;
    box-shadow: none;
  }
  .menu-toggle.toggled::before,
  .menu-toggle[aria-expanded="true"]::before {
    top: 7.5px;
    transform: rotate(45deg);
    box-shadow: none;
  }
  .menu-toggle.toggled::after,
  .menu-toggle[aria-expanded="true"]::after {
    bottom: 7.5px;
    transform: rotate(-45deg);
  }
  .main-navigation ul.nav-menu li,
  .main-navigation ul.menu li {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .main-navigation ul.nav-menu > li:first-child,
  .main-navigation ul.menu > li:first-child {
    border-top: none;
  }
  .main-navigation ul.nav-menu li a,
  .main-navigation ul.menu li a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }
  .main-navigation ul ul {
    position: static;
    width: 100%;
    float: none;
    box-shadow: none;
  }
  .main-navigation ul ul li a { padding-left: 32px; }
}

@media (max-width: 1024px) and (min-width: 783px) {
  .snn-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .snn-product-card { width: clamp(160px, 27vw, 220px); }
  .snn-product-grid--static { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .snn-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   12) WIDGET AREA (sidebar)
========================================================= */
.widget-area .widget {
  font-size: 17px;
}

/* =========================================================
   13) AKCE MESICE - postranni panel (custom HTML widget)
   Kazdy produkt je tu zvlast zabaleny v <div class="woocommerce">
   <ul class="products columns-3"><li>...jedina polozka. Globalni
   pravidlo "3 sloupce" by z ni udelalo jen 1/3 sirky panelu, proto
   tady layout prebijeme na rádek: foto vlevo, nazev vpravo,
   cena jako "vestička" prilepena na fotku.
========================================================= */
.widget-area .woocommerce ul.products {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0;
}
.widget-area .woocommerce ul.products li.product {
  display: block !important;
  width: 100% !important;
  float: none !important;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0 0 20px !important;
}
.widget-area .woocommerce:last-child ul.products li.product {
  margin-bottom: 0 !important;
}
.widget-area .woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  position: relative !important;
  width: 100%;
}
.widget-area .woocommerce ul.products li.product img {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  flex: 0 0 90px !important;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}
.widget-area .woocommerce ul.products li.product .woocommerce-loop-product__title {
  flex: 1 1 auto;
  width: auto !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0 !important;
  margin: 0 !important;
  color: #222;
}
/* na malem panelu nechceme popisek, stitek slevy, brand ani tlacitko - jen foto + nazev + cenu */
.widget-area .woocommerce ul.products li.product .jojo_woocommerce_short_description,
.widget-area .woocommerce ul.products li.product .onsale,
.widget-area .woocommerce ul.products li.product a.button,
.widget-area .woocommerce ul.products li.product .wb-posted_in {
  display: none !important;
}
/* cena jako "vestička" primo pres fotku (vlevo dole na obrazku) */
.widget-area .woocommerce ul.products li.product .price {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  right: auto !important;
  z-index: 2;
  display: inline-block !important;
  width: auto !important;
  max-width: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 9px;
  margin: 0 !important;
  background: linear-gradient(135deg, #6495ed, #40e0d0);
  box-shadow: 2px 0 0 0 #40e0d0;
  border-radius: 0 4px 0 8px;
}
.widget-area .woocommerce ul.products li.product .price del {
  display: none;
}
.widget-area .woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

/* =========================================================
   14) SPODNI LISTOVANI POD VYPISEM PRODUKTU
   Pod vypisem produktu se stejne jako nahore opakuje cely
   panel (razeni + pocet vysledku + pocet na stranku + cisla
   stranek). Dole chceme nechat jen cisla stranek - velka,
   na stred, jako u Googlu - a schovat razeni/filtrovani,
   ktere uz clovek jednou videl nahore.
========================================================= */
.woocommerce ul.products ~ .woocommerce-result-count,
.woocommerce ul.products ~ .woocommerce-ordering,
.woocommerce ul.products ~ select,
.woocommerce ul.products ~ .storefront-sorting > .woocommerce-result-count,
.woocommerce ul.products ~ .storefront-sorting > .woocommerce-ordering,
.woocommerce ul.products ~ .storefront-sorting > select {
  display: none !important;
}
.woocommerce ul.products ~ .storefront-sorting {
  display: block;
  border: none;
  padding: 0;
  margin: 0;
}
/* Skryt VESKERE strankovani ve vychozim stavu - resi to duplicitu, kdy
   se stejna navigace (Storefront/WooCommerce) vykresluje jak NAD, tak
   POD vypisem produktu. Chceme ji zobrazit jen jednou, dole. */
nav.woocommerce-pagination,
.woocommerce-pagination {
  display: none !important;
}
/* Znovu zobrazit VYHRADNE tu instanci, ktera nasleduje AZ PO ul.products
   (tedy tu pod produkty) - selektor s ul.products ~ ma vyssi specificitu
   nez pravidlo vyse, takze ho prebije jen pro tento konkretni pripad. */
.woocommerce ul.products ~ .woocommerce-pagination,
.woocommerce ul.products ~ nav.woocommerce-pagination,
.woocommerce ul.products ~ .storefront-sorting nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  margin: 48px 0 0 !important;
  padding-top: 32px;
  border-top: 1px solid var(--snn-border);
}
.woocommerce ul.products ~ .woocommerce-pagination ul.page-numbers,
.woocommerce ul.products ~ nav.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.woocommerce ul.products ~ .woocommerce-pagination .page-numbers,
.woocommerce ul.products ~ nav.woocommerce-pagination .page-numbers,
nav.woocommerce-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--snn-text);
  border-radius: 50%;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.woocommerce ul.products ~ .woocommerce-pagination a.page-numbers:hover,
.woocommerce ul.products ~ nav.woocommerce-pagination a.page-numbers:hover,
nav.woocommerce-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
  background: var(--snn-blue-light);
  color: var(--snn-blue);
}
.woocommerce ul.products ~ .woocommerce-pagination .page-numbers.current,
.woocommerce ul.products ~ nav.woocommerce-pagination .page-numbers.current,
nav.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
  background: var(--snn-blue);
  color: #fff;
}
.woocommerce ul.products ~ .woocommerce-pagination .page-numbers.dots,
.woocommerce ul.products ~ nav.woocommerce-pagination .page-numbers.dots,
nav.woocommerce-pagination .page-numbers.dots,
.woocommerce-pagination .page-numbers.dots {
  color: #999;
}
.woocommerce ul.products ~ .woocommerce-pagination .page-numbers.next,
.woocommerce ul.products ~ .woocommerce-pagination .page-numbers.prev,
.woocommerce ul.products ~ nav.woocommerce-pagination .page-numbers.next,
.woocommerce ul.products ~ nav.woocommerce-pagination .page-numbers.prev,
nav.woocommerce-pagination .page-numbers.next,
nav.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
  font-size: 20px;
  font-weight: 700;
}

/* =========================================================
   12) CLANKY (BLOG) - moderni karty
   Pouziva se na homepage (nahodne clanky) i na archivni strance
   kategorie "clanky" (category-clanky.php).
========================================================= */
.snn-articles { padding: 40px 0; }
.snn-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.snn-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--snn-border);
  border-radius: var(--snn-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.snn-article-card:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.09);
  transform: translateY(-2px);
  color: inherit;
}
.snn-article-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: var(--snn-blue-light) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snn-article-thumb .dashicons,
.snn-article-thumb .snn-icon { width: 34px; height: 34px; color: var(--snn-blue); opacity: .5; }
.snn-article-body { padding: 16px 18px 20px; }
.snn-article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--snn-text);
  margin-bottom: 10px;
}
.snn-article-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--snn-blue);
}
.snn-article-read .dashicons,
.snn-article-read .snn-icon { width: 15px; height: 15px; transition: transform .15s ease; }
.snn-article-card:hover .snn-article-read .dashicons,
.snn-article-card:hover .snn-article-read .snn-icon { transform: translateX(3px); }

/* Archivni strankovani na strance kategorie "clanky" - stejny kruhovy
   vzhled jako u WooCommerce strankovani produktu. */
.snn-article-pagination { margin: 30px 0 10px; text-align: center; }
.snn-article-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--snn-text);
  border-radius: 50%;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.snn-article-pagination .page-numbers:hover { background: var(--snn-blue-light); color: var(--snn-blue); }
.snn-article-pagination .page-numbers.current { background: var(--snn-blue); color: #fff; }
.snn-article-pagination .page-numbers.dots { color: #999; }

@media (max-width: 1000px) {
  .snn-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .snn-article-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   13) DETAIL CLANKU (single post) - modernejsi typografie
   Pracuje se standardnimi Storefront trridami (entry-header,
   entry-title, entry-content, posted-on, post-author), aby
   zustaly zachovane drobecky, SEO/schema znacky apod.
========================================================= */
.single-post #primary { padding-top: 26px; padding-bottom: 50px; }
.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-footer,
.single-post .comments-area {
  max-width: 780px;
  margin: 0;
  padding: 0;
}

/* Nadpis clanku - vyrazne vetsi a modernejsi */
.single-post .entry-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--snn-text);
  margin: 6px 0 14px;
}
@media (max-width: 620px) {
  .single-post .entry-title { font-size: 28px; }
}

/* Meta radek (datum, autor) nad nadpisem */
.single-post .entry-header .posted-on,
.single-post .entry-header .post-author,
.single-post .entry-header .post-comments {
  font-size: 13px;
  color: var(--snn-text-light, #6a6a6a);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.single-post .entry-header .posted-on a,
.single-post .entry-header .post-author a,
.single-post .entry-header .post-comments a { color: inherit; text-decoration: none; }
.single-post .entry-header .post-author { margin-left: 10px; }
.single-post .entry-header .post-comments { margin-left: 10px; }

/* Perex pod nadpisem */
.snn-single-perex {
  font-size: 19px;
  line-height: 1.55;
  color: #4a4a4a;
  font-weight: 400;
  margin: 0 0 22px;
}

/* Hlavni obrazek clanku (vklada Storefront automaticky do entry-content) */
.single-post .entry-content > img,
.single-post .entry-content > p:first-child > img,
.single-post .entry-content .wp-post-image {
  width: 100%;
  height: auto;
  border-radius: var(--snn-radius);
  margin-bottom: 26px;
  display: block;
}

/* Modernejsi typografie textu clanku - MENSI mezery mezi odstavci,
   ale porad citelne. */
.single-post .entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--snn-text);
}
.single-post .entry-content p {
  margin: 0 0 10px;
}
.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 10px;
  padding-left: 22px;
}
.single-post .entry-content li { margin-bottom: 4px; }
.single-post .entry-content a {
  color: var(--snn-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single-post .entry-content a:hover { color: var(--snn-blue-dark); }

/* Mezinadpisy uvnitr clanku - vyrazne vetsi, s odsazenim shora, aby
   vizualne oddelily sekce, ale s malym odsazenim zdola k odstavci
   pod nimi. */
.single-post .entry-content h2 {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--snn-text);
  margin: 26px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--snn-border);
}
.single-post .entry-content h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--snn-text);
  margin: 18px 0 8px;
}
.single-post .entry-content h2:first-child,
.single-post .entry-content h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.single-post .entry-content ul:not(.entry-content li ul) li::marker,
.single-post .entry-content ol li::marker { color: var(--snn-blue); font-weight: 700; }
@media (max-width: 620px) {
  .single-post .entry-content h2 { font-size: 22px; margin: 20px 0 8px; padding-top: 14px; }
  .single-post .entry-content h3 { font-size: 18px; margin: 16px 0 6px; }
  .single-post .entry-content p { margin: 0 0 8px; }
  .single-post .entry-content { line-height: 1.6; }
  .snn-single-perex { font-size: 17px; }
}


.single-post .entry-footer { margin-top: 30px; }

/* Pojistka proti duplicitnimu radku "Publikovano.../Autor.../Napsat
   komentar" dole pod clankem - tyto standardni Storefront tridy
   (.posted-on/.post-author/.post-comments) patri do horni hlavicky
   clanku (.entry-header). Pokud se stejny radek vypise znovu i mimo
   ni (napr. v patice nebo u komentaru - typicky pridano pluginem
   nebo snippetem mimo tento theme balicek), schovame ho, aby se
   nezobrazoval dvakrat. */
.single-post .entry-footer .posted-on,
.single-post .entry-footer .post-author,
.single-post .entry-footer .post-comments,
.single-post .comments-area > .posted-on,
.single-post .comments-area > .post-author,
.single-post .comments-area > .post-comments {
  display: none;
}

/* Kategorie pod clankem ("Kategorie: Clanky") jako stitek/pill */
.single-post .entry-footer .posted-in,
.single-post .entry-footer .cat-links {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--snn-blue);
  background: var(--snn-blue-light);
  padding: 6px 14px;
  border-radius: 999px;
}
.single-post .entry-footer .posted-in a,
.single-post .entry-footer .cat-links a { color: inherit; text-decoration: none; }

/* Navigace na predchozi/dalsi clanek - dve karty vedle sebe */
.single-post .post-navigation,
.single-post .navigation.post-navigation {
  margin-top: 26px;
  border-top: 1px solid var(--snn-border);
  padding-top: 20px;
}
.single-post .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.single-post .nav-previous,
.single-post .nav-next {
  border: 1px solid var(--snn-border);
  border-radius: var(--snn-radius);
  padding: 14px 16px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.single-post .nav-previous:hover,
.single-post .nav-next:hover { box-shadow: 0 6px 16px rgba(0,0,0,.06); border-color: var(--snn-blue); }
.single-post .nav-next { text-align: right; }
.single-post .nav-links a { text-decoration: none; color: var(--snn-text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.single-post .nav-links .nav-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--snn-blue);
  margin-bottom: 4px;
}
@media (max-width: 620px) {
  .single-post .nav-links { grid-template-columns: 1fr; }
  .single-post .nav-next { text-align: left; }
}

/* Formular komentare - jemny box misto holeho textu */
.single-post .comments-area {
  margin-top: 34px;
  padding: 24px;
  background: #faf8f6;
  border-radius: var(--snn-radius);
}
.single-post .comment-reply-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; }

/* =========================================================
   PRAVY BOX V DETAILU CLANKU
   Vyhledavani + 5 nejctenejsich clanku + nejprodavanejsi
   produkty skladem (1 ks z kazde kategorie).
   Vykresluje ho inc/class-snn-article-sidebar.php misto
   vychozi Storefront widgetove oblasti - jen v detailu clanku.
========================================================= */
/* ROZLOZENI STRANKY S BOXEM
   Storefront resi dva sloupce pomoci "floatu" (obsah 73,9 %, sloupec
   s widgety 21,7 %), coz zalezi na poradi prvku v HTML a v praxi
   nechavalo vpravo prazdne misto. Prepiname proto detail clanku na
   flex: clanek dostane VSECHNU zbylou sirku a box zustava vzdy
   vpravo od nej, bez ohledu na poradi v HTML.
   Cili se jen na #content > .col-full (vnejsi obal obsahu) - vnoreny
   .col-full uvnitr drobeckove navigace zustava nedotcen. */
.snn-has-article-sidebar #content > .col-full {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 36px;
}

/* Vse ostatni uvnitr (drobeckova navigace apod.) drzime nad
   sloupci pres celou sirku. */
.snn-has-article-sidebar #content > .col-full > * {
  order: 1;
  flex: 1 1 100%;
  min-width: 0;
}

/* Clanek - zbytek sirky */
.snn-has-article-sidebar #content > .col-full > .content-area {
  order: 2;
  flex: 1 1 0%;
  width: auto;
  max-width: none;
  min-width: 0;
  float: none;
  margin: 0;
}

/* Pravy box - pevna sirka */
.snn-has-article-sidebar #content > .col-full > .widget-area {
  order: 3;
  flex: 0 0 320px;
  width: 320px;
  max-width: 100%;
  float: none;
  margin: 0;
}

/* Text clanku uz neomezujeme na 780 px - ma vyplnit misto vedle boxu. */
.snn-has-article-sidebar .entry-header,
.snn-has-article-sidebar .entry-content,
.snn-has-article-sidebar .entry-footer,
.snn-has-article-sidebar .comments-area,
.snn-has-article-sidebar .single-post .entry-header,
.snn-has-article-sidebar .single-post .entry-content,
.snn-has-article-sidebar .single-post .entry-footer,
.snn-has-article-sidebar .single-post .comments-area {
  max-width: none;
}

/* Hlavni obrazek clanku at se roztahne na novou sirku obsahu. */
.snn-has-article-sidebar .single-post .entry-content > img,
.snn-has-article-sidebar .single-post .entry-content > p:first-child > img,
.snn-has-article-sidebar .single-post .entry-content .wp-post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Uzsi obrazovky (tablet naslirku) - o neco uzsi box, at clanku
   zbyde dost mista. */
@media (max-width: 1100px) and (min-width: 768px) {
  .snn-has-article-sidebar #content > .col-full { column-gap: 26px; }
  .snn-has-article-sidebar #content > .col-full > .widget-area {
    flex: 0 0 270px;
    width: 270px;
  }
}

/* Mobil - box pod clankem pres celou sirku. */
@media (max-width: 767px) {
  .snn-has-article-sidebar #content > .col-full > .widget-area {
    flex: 1 1 100%;
    width: 100%;
  }
}

.snn-has-article-sidebar .snn-article-sidebar {
  margin-top: 0;
}

/* Box "jede" s obsahem clanku - pri dlouhem textu zustava
   pripnuty u horniho okraje obrazovky, aby byl porad po ruce. */
.snn-article-sidebar-inner {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.snn-sidebar-block {
  background: #fff;
  border: 1px solid var(--snn-border);
  border-radius: var(--snn-radius);
  padding: 18px 18px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.snn-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--snn-blue-light);
  color: var(--snn-text);
  letter-spacing: 0;
}

/* --- 1) Vyhledavani --- */
.snn-sidebar-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.snn-sidebar-search-form .snn-search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--snn-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  box-shadow: none;
}
.snn-sidebar-search-form .snn-search-input:focus {
  border-color: var(--snn-blue);
  outline: none;
}
.snn-sidebar-search-form .snn-search-input::-webkit-search-decoration,
.snn-sidebar-search-form .snn-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.snn-sidebar-search-form .snn-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--snn-blue);
  color: #fff;
  cursor: pointer;
}
.snn-sidebar-search-form .snn-search-submit:hover { background: var(--snn-blue-dark); }
.snn-sidebar-search-form .snn-search-submit .dashicons,
.snn-sidebar-search-form .snn-search-submit .snn-icon {
  width: 17px;
  height: 17px;
}
/* FiboSearch v boxu - at se vejde do sirky sloupce */
.snn-sidebar-search .snn-fibosearch-wrap,
.snn-sidebar-search .dgwt-wcas-search-wrapp { width: 100%; max-width: 100%; }

/* --- 2) + 3) Spolecny seznam (clanky i produkty) --- */
.snn-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.snn-sidebar-item + .snn-sidebar-item {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--snn-border);
}
.snn-sidebar-item { margin-bottom: 8px; }
.snn-sidebar-item:last-child { margin-bottom: 0; }

.snn-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--snn-text);
}
.snn-sidebar-link:hover .snn-sidebar-item-title { color: var(--snn-blue); }

.snn-sidebar-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--snn-blue-light) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.snn-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.snn-sidebar-thumb .dashicons,
.snn-sidebar-thumb .snn-icon {
  width: 22px;
  height: 22px;
  color: var(--snn-blue);
  opacity: .5;
}

.snn-sidebar-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.snn-sidebar-item-cat {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6a6a6a;
}
.snn-sidebar-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--snn-text);
  transition: color .15s ease;
  /* Dlouhy nazev se zkrati na 3 radky, aby box nerostl do vysky. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.snn-sidebar-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--snn-blue);
}
.snn-sidebar-item-price del {
  color: #6a6a6a;
  font-weight: 400;
  font-size: 12px;
  margin-right: 5px;
}
.snn-sidebar-item-price ins { text-decoration: none; }

.snn-sidebar-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--snn-blue);
  text-decoration: none;
}
.snn-sidebar-all:hover { color: var(--snn-blue-dark); }
.snn-sidebar-all .dashicons,
.snn-sidebar-all .snn-icon { width: 15px; height: 15px; }

/* Na tabletu/mobilu Storefront prepne sloupce pod sebe - box se
   pak zobrazi POD clankem a "pripnuti" (sticky) uz nedava smysl. */
@media (max-width: 767px) {
  .snn-article-sidebar-inner { position: static; }
  .snn-has-article-sidebar .snn-article-sidebar { margin-top: 30px; }
}
@media (max-width: 480px) {
  .snn-sidebar-thumb { flex: 0 0 54px; width: 54px; height: 54px; }
}

/* =========================================================
   COOKIE LISTA (plugin CookieScript) - KONTRAST TLACITKA
   Lighthouse hlasil zelene tlacitko "VŠE PŘIJMOUT" s bilym
   textem jako necitelne (kontrast cca 2,8:1). Plugin si barvu
   vklada primo do HTML, proto ji tu prebijeme tmavsi zeleni
   (kontrast cca 5,3:1) - vzhledove je to porad stejne zelene
   tlacitko, jen citelnejsi. Kdybyste barvu chteli jinou,
   nastavuje se i primo v pluginu (CookieScript > vzhled).
========================================================= */
#cookiescript_accept,
#cookiescript_injected #cookiescript_accept {
  background: #1c7c3f !important;
  color: #ffffff !important;
}
#cookiescript_accept:hover,
#cookiescript_injected #cookiescript_accept:hover {
  background: #166432 !important;
}

/* =========================================================
   BLOK PRODUKTU UVNITR CLANKU
   Vklada se shortcodem [snn_produkty] - viz
   inc/class-snn-shortcodes.php
========================================================= */
.snn-inline-products {
  margin: 30px 0;
  padding: 24px 22px 22px;
  background: var(--snn-blue-light);
  border-radius: var(--snn-radius);
}
.snn-inline-products-title {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 700;
  color: var(--snn-text);
}
.snn-inline-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* Karta uvnitr clanku nema pevnou sirku jako v slideru na HP. */
.snn-inline-products-grid .snn-product-card {
  width: auto;
  max-width: none;
}
.snn-inline-products-more {
  /* Vetsi odstup od karet - tlacitko se drive lepilo primo na ne. */
  margin: 30px 0 4px;
  text-align: center;
}

@media (max-width: 1100px) {
  .snn-inline-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 782px) {
  .snn-inline-products-grid { grid-template-columns: repeat(2, 1fr); }
  .snn-inline-products { padding: 18px 16px 18px; }
  .snn-inline-products-more { margin-top: 24px; }
}

/* OPRAVA: odkazy uvnitr bloku produktu v clanku
   Text clanku ma vlastni styl odkazu (modry, podtrzeny). Ten se
   ale nesmi vztahovat na karty produktu a tlacitko uvnitr bloku -
   modry text na modrem tlacitku neni videt a nazvy produktu maji
   byt tmave a bez podtrzeni, stejne jako ve zbytku webu. */
.single-post .entry-content .snn-inline-products a,
.entry-content .snn-inline-products a {
  text-decoration: none;
}
.single-post .entry-content .snn-inline-products .snn-product-card-link,
.entry-content .snn-inline-products .snn-product-card-link {
  color: var(--snn-text);
}
.single-post .entry-content .snn-inline-products .snn-btn-solid,
.entry-content .snn-inline-products .snn-btn-solid,
.single-post .entry-content .snn-inline-products .snn-btn-solid:hover,
.entry-content .snn-inline-products .snn-btn-solid:hover {
  color: #fff;
}
/* Tlacitko "Pridat do kosiku" uvnitr karty (WooCommerce) */
.single-post .entry-content .snn-inline-products .snn-product-cta a.button,
.entry-content .snn-inline-products .snn-product-cta a.button {
  text-decoration: none;
}

/* ODSTUP TLACITKA POD KARTAMI
   Tlacitko je odstavec <p> a text clanku ma pro odstavce vlastni
   pravidlo (margin: 0 0 8px), ktere ma vyssi prednost - odsazeni
   se proto drive vubec neprojevilo a tlacitko se lepilo na karty.
   Tady ho prebijeme stejne "silnym" zapisem. */
.single-post .entry-content .snn-inline-products .snn-inline-products-more,
.entry-content .snn-inline-products .snn-inline-products-more,
.snn-inline-products .snn-inline-products-more {
  margin: 34px 0 6px;
  padding: 0;
  text-align: center;
}
/* Trochu vzduchu i pod celym blokem. */
.single-post .entry-content .snn-inline-products,
.entry-content .snn-inline-products {
  padding-bottom: 26px;
}

@media (max-width: 782px) {
  .single-post .entry-content .snn-inline-products .snn-inline-products-more,
  .entry-content .snn-inline-products .snn-inline-products-more,
  .snn-inline-products .snn-inline-products-more {
    margin: 26px 0 4px;
  }
  .single-post .entry-content .snn-inline-products,
  .entry-content .snn-inline-products {
    padding-bottom: 20px;
  }
}
