/* Rosenberg nábytek — komponenty (třídy rb-*). Vychází z design systému „Rosenberg nábytek“ (components/bundle.css),
   doplněno o reset proti Divi 5, hero prodejny, letáky, header, patičku a mobilní úpravy.
   Načítá se po tokens.css. Animuje se jen opacity a transform. */

/* Celošířkové komponenty: sekce/řádek/sloupec Divi kolem nich nemají vlastní odsazení ani šířku –
   šířku a okraje si řídí komponenta sama (desktop 48px, mobil 16px). V Divi: jedna sekce = jeden modul Code. */
:is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module):has(:is(.rb-site-header, .rb-footer, .rb-hero-wrap, .rb-article-head, .rb-archive, .rb-404, .rb-section, .rb-page-hero, .rb-full)) {
  padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background-image: none !important; }
:is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module):has(:is(.rb-site-header, .rb-footer)) { background: none !important; }

/* ==========================================================================
   Základ + reset proti výchozím stylům Divi
   ========================================================================== */
.rb, .rb * { box-sizing: border-box; }
.rb { font-family: var(--font-body); color: var(--ink-900); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.rb h1, .rb h2, .rb h3, .rb h4 { font-family: var(--font-display); margin: 0; padding: 0; color: inherit; font-weight: 600; line-height: 1.15; }
.rb p { margin: 0; padding: 0; }
.rb a:not([class]) { color: inherit; }
.rb img { max-width: 100%; height: auto; }
.rb button { font-family: inherit; }
.rb :focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; border-radius: 4px; }
.rb-spotlight :focus-visible, .rb-footer :focus-visible, .rb-bar:focus-visible { outline-color: var(--white); }
.rb-spotlight--store :focus-visible { outline-color: var(--white); }

.rb-eyebrow { font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-700); }
.rb-eyebrow--dark { color: var(--red-on-dark); }
.rb-h2 { font: 600 40px/48px var(--font-display) !important; letter-spacing: -.015em; margin-top: 8px !important; }
.rb-lead { font-size: 20px; line-height: 32px; color: var(--gray-700); max-width: 46ch; }

/* ==========================================================================
   Tlačítka
   ========================================================================== */
.rb-btn { --rb-btn-bg: var(--red-600); --rb-btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: var(--radius-md); border: 2px solid transparent; background: var(--rb-btn-bg); color: var(--rb-btn-fg) !important;
  font: 700 16px/20px var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast) linear, color var(--dur-fast) linear; }
.rb-btn:active { transform: scale(.97); }
.rb-btn--dark { --rb-btn-bg: var(--ink-900); }
.rb-btn--outline { --rb-btn-bg: transparent; --rb-btn-fg: var(--ink-900); border-color: var(--ink-900); }
.rb-btn--light { --rb-btn-bg: var(--white); --rb-btn-fg: var(--ink-900); }
.rb-btn--ghost { --rb-btn-bg: transparent; --rb-btn-fg: var(--white); border-color: rgba(255,255,255,.4); }
.rb-btn--sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.rb-btn .rb-arrow { transition: transform var(--dur-base) var(--ease-out); flex: none; }
.rb-link { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/20px var(--font-body); color: var(--red-700) !important; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 4px; transition: background-size var(--dur-base) var(--ease-out); }
.rb-link .rb-arrow { transition: transform var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .rb-btn:hover { transform: translateY(-2px); }
  .rb-btn--primary:hover { --rb-btn-bg: var(--red-700); box-shadow: var(--shadow-red); }
  .rb-btn--dark:hover, .rb-btn--light:hover { box-shadow: var(--shadow-lg); }
  .rb-btn--outline:hover { --rb-btn-bg: var(--ink-900); --rb-btn-fg: var(--white); }
  .rb-btn--ghost:hover { border-color: var(--white); }
  .rb-btn:hover .rb-arrow, .rb-link:hover .rb-arrow, .rb-card:hover .rb-arrow { transform: translateX(4px); }
  .rb-link:hover { background-size: 100% 2px; }
}

/* ==========================================================================
   Štítky
   ========================================================================== */
.rb-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-sm);
  font: 700 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rb-badge--akce { background: var(--red-600); color: var(--white); }
.rb-badge--novinka { background: var(--ink-900); color: var(--white); }
.rb-badge--letak { background: var(--white); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line); }
.rb-badge--sleva { background: var(--white); color: var(--red-700); font-family: var(--font-display); font-size: 14px; letter-spacing: 0; }
.rb-badge--soon { background: var(--red-50); color: var(--red-700); }
.rb-badge--ended { background: var(--sand-100); color: var(--gray-700); }
.rb-badge--live { background: var(--white); color: var(--success-700); box-shadow: inset 0 0 0 1px var(--line); }
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; display: inline-block; }
.rb-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: rb-ping 1.6s var(--ease-out) infinite; }
@keyframes rb-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

/* ==========================================================================
   Oznamovací lišta (poslední akce, běží)
   ========================================================================== */
.rb-bar-wrap { position: relative; z-index: 100000; }
.rb-bar { display: block; position: relative; overflow: hidden; background: var(--red-600); color: var(--white) !important; text-decoration: none; height: 44px; }
.rb-bar__track { display: flex; width: max-content; height: 100%; align-items: center; animation: rb-marquee var(--dur-marquee) linear infinite; }
.rb-bar:hover .rb-bar__track, .rb-bar:focus-visible .rb-bar__track { animation-play-state: paused; }
.rb-bar__item { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; font: 700 15px/20px var(--font-body); white-space: nowrap; }
.rb-bar__item b { font-family: var(--font-display); font-size: 18px; }
.rb-bar__sep { width: 26px; height: 11px; flex: none; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11'%3E%3Cpath d='M1 9c6-5 12 1 24-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11'%3E%3Cpath d='M1 9c6-5 12 1 24-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes rb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Header ([rb_header] v Theme Builderu)
   ========================================================================== */
/* Sticky celé oblasti headeru z Theme Builderu; vynuluje odsazení sekce/řádku Divi kolem shortcodu. */
.et-l--header:has(.rb-site-header) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 99990; }
@media (max-width: 600px) { .et-l--header:has(.rb-site-header) { top: 0; } } /* admin lišta WP tu není pevná */
.rb-site-header { position: relative; transition: transform var(--dur-base) var(--ease-out); }
.rb-site-header.is-hidden { transform: translateY(-100%); }

.rb-header { display: flex; align-items: center; gap: 32px; height: 88px; padding: 0 max(48px, calc((100vw - 1240px) / 2)); background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
  transition: height var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.is-scrolled .rb-header, .rb-header.is-scrolled { height: 68px; box-shadow: var(--shadow-sm); }
.rb-header__logo { display: block; height: 34px; flex: none; transition: transform var(--dur-base) var(--ease-out); transform-origin: left center; }
.is-scrolled .rb-header__logo { transform: scale(.9); }
.rb-header__logo img { height: 100%; width: auto; display: block; }
.rb-header__nav { display: flex; gap: 6px; margin-left: auto; }
.rb-header__nav a { position: relative; padding: 10px 14px; font: 500 16px/20px var(--font-body); text-decoration: none; color: var(--ink-900) !important; border-radius: 10px; transition: background-color var(--dur-fast) linear; }
.rb-header__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red-500); border-radius: 2px; }
.rb-nav-akce { color: var(--red-700) !important; font-weight: 700 !important; display: inline-flex !important; align-items: center; gap: 8px; }
.rb-nav-akce .rb-dot { color: var(--red-500); }
.rb-header__tel { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/20px var(--font-body); color: var(--ink-900) !important; text-decoration: none; white-space: nowrap; }
.rb-header__tel svg { color: var(--red-600); }
@media (hover: hover) { .rb-header__nav a:hover { background: var(--sand-100); } }

/* Hamburger */
.rb-burger { display: none; position: relative; width: 48px; height: 48px; margin-left: auto; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; z-index: 3; }
.rb-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink-900); transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear; }
.rb-burger span:nth-child(1) { top: 17px; } .rb-burger span:nth-child(2) { top: 23px; } .rb-burger span:nth-child(3) { top: 29px; }
.rb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.rb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Celoobrazovkové mobilní menu */
.rb-menu { position: fixed; left: 0; right: 0; bottom: 0; top: var(--rb-menu-top, 68px); z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--sand-50); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-12px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.rb-menu[hidden] { display: none; }
.rb-menu.is-open { opacity: 1; transform: none; }
.rb-menu__nav { display: flex; flex-direction: column; }
.rb-menu__link { display: flex !important; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 600 34px/42px var(--font-display) !important; letter-spacing: -.02em; color: var(--ink-900) !important; text-decoration: none;
  opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--rb-i, 0) * 60ms + 80ms); }
.rb-menu__link.rb-nav-akce { color: var(--red-700) !important; }
.rb-menu.is-open .rb-menu__link { opacity: 1; transform: none; }
.rb-menu__info { display: grid; gap: 12px; font-size: 15px; line-height: 24px; color: var(--gray-700); }
.rb-menu__info .rb-btn { width: 100%; }
.rb-menu__info p { margin-top: 8px; }
html.rb-menu-open, html.rb-menu-open body { overflow: hidden; }
.rb-menu-open .rb-site-header .rb-header { background: var(--sand-50); box-shadow: none; position: relative; z-index: 3; }

/* ==========================================================================
   Odpočet
   ========================================================================== */
.rb-countdown { display: inline-flex; gap: 8px; }
.rb-countdown__unit { min-width: 64px; padding: 10px 8px 8px; border-radius: 14px; background: rgba(26,26,24,.22); text-align: center; }
.rb-countdown__num { display: block; font: 700 28px/32px var(--font-display); font-variant-numeric: tabular-nums; }
.rb-countdown__lbl { display: block; font: 700 11px/14px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.rb-countdown--light .rb-countdown__unit { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.rb-countdown--light .rb-countdown__lbl { color: var(--gray-700); }
.rb-countdown__num.is-tick { animation: rb-tick .45s var(--ease-out); }
@keyframes rb-tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ==========================================================================
   Hero: poslední akce (PromoSpotlight) + hero prodejny (--store)
   ========================================================================== */
.rb-hero-wrap { max-width: 1336px; margin: 0 auto; padding: 24px 48px 0; }
.rb-spotlight { --rb-spot-bg: var(--red-600); position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 600px; border-radius: var(--radius-xl); overflow: hidden; background: var(--rb-spot-bg); color: var(--white); isolation: isolate; }
.rb-spotlight--store { --rb-spot-bg: var(--ink-900); }
.rb-spotlight--ended { --rb-spot-bg: #3a3a37; }
.rb-spotlight__body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 56px 56px 56px 64px; }
.rb-spotlight__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rb-spotlight__top .rb-badge--akce { background: var(--white); color: var(--red-700); }
.rb-spotlight__top .rb-badge--date { background: rgba(26,26,24,.18); color: var(--white); }
.rb-spotlight__discount { font: 700 120px/104px var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb .rb-spotlight__title { font: 600 52px/58px var(--font-display); letter-spacing: -.02em; max-width: 14ch; }
.rb .rb-spotlight__title--xl { font-size: 64px; line-height: 68px; max-width: 13ch; }
.rb-spotlight__lead { font-size: 19px; line-height: 30px; max-width: 38ch; }
.rb-spotlight--store .rb-spotlight__lead { color: var(--gray-300); }
.rb-spotlight__countdown { display: grid; gap: 8px; }
.rb-spotlight__cd-label { font: 700 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.rb-spotlight__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 8px; }
.rb-spotlight .rb-link { color: var(--white) !important; }
.rb-spotlight__media { position: relative; overflow: hidden; }
.rb-spotlight__img { position: absolute; inset: -6% 0; will-change: transform; }
.rb-spotlight__img img, .rb-spotlight__img .rb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: rb-kenburns 18s var(--ease-in-out) infinite alternate; }
.rb-spotlight__media::before { content: ""; position: absolute; z-index: 1; left: -1px; top: 0; bottom: 0; width: 90px; background: var(--rb-spot-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 560' preserveAspectRatio='none'%3E%3Cpath d='M0 0h40C90 120 10 260 60 380c18 44 30 110 30 180H0z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 560' preserveAspectRatio='none'%3E%3Cpath d='M0 0h40C90 120 10 260 60 380c18 44 30 110 30 180H0z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }
.rb-spotlight__sticker { position: absolute; z-index: 2; right: 28px; top: 28px; width: 116px; height: 116px; border-radius: 50%; background: var(--ink-900); color: var(--white);
  display: grid; place-items: center; text-align: center; font: 700 14px/17px var(--font-body); letter-spacing: .04em; text-transform: uppercase; animation: rb-spin 22s linear infinite; }
.rb-spotlight__sticker span { animation: rb-spin 22s linear infinite reverse; }
@keyframes rb-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* Rozpad titulku na slova (data-rb-split) */
.rb-split__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.rb-split__i { display: inline-block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--rb-w, 0) * 55ms + 150ms); }
.is-in .rb-split__i, .rb-split.is-in .rb-split__i { transform: none; }

/* ==========================================================================
   Fotka / placeholder
   ========================================================================== */
.rb-media { display: block; width: 100%; height: 100%; background-color: var(--sand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='none' stroke='%23868786' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 44v-12c0-6 4-10 10-10h80c6 0 10 4 10 10v12'/%3E%3Cpath d='M22 44c0-5 4-8 8-8s8 3 8 8v8h84v-8c0-5 4-8 8-8s8 3 8 8v20H22z'/%3E%3Cpath d='M30 64v8M130 64v8M80 36v16'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: min(46%, 220px) auto; }
.rb-media--warm { background-color: #efe7dc; }
.rb-media--dark { background-color: #2b2b28; }

/* ==========================================================================
   Karta příspěvku (akce / leták / novinka)
   ========================================================================== */
.rb-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); text-decoration: none; color: inherit !important;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.rb-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-100); }
.rb-card__media > img, .rb-card__media > .rb-media { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); display: block; }
.rb-card__badges { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.rb-badge--sleva, .rb-card__price { white-space: nowrap; }
.rb-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.rb-card__meta { font-size: 14px; line-height: 20px; color: var(--gray-700); }
.rb .rb-card__title { font: 600 24px/30px var(--font-display); letter-spacing: -.01em; }
.rb-card__text { font-size: 15px; line-height: 24px; color: var(--gray-700); }
.rb-card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rb-card__price { font: 700 24px/28px var(--font-display); color: var(--red-700); }
.rb-card__price s { font: 400 15px/20px var(--font-body); color: var(--gray-700); margin-left: 8px; }
.rb-card--akce { box-shadow: var(--shadow-md), inset 0 0 0 2px var(--red-500); }
.rb-card--akce .rb-card__media { margin: 2px 2px 0; border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0; }
.rb-card--ended { box-shadow: var(--shadow-md); }
.rb-card--ended .rb-card__media { filter: grayscale(1); opacity: .75; margin: 0; }
.rb-card--ended .rb-card__title, .rb-card--ended .rb-card__text { color: var(--gray-700); }
.rb-card--ended .rb-link { color: var(--gray-700) !important; }
.rb-card:active { transform: scale(.985); }
@media (hover: hover) {
  .rb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .rb-card--akce:hover { box-shadow: var(--shadow-red), inset 0 0 0 2px var(--red-500); }
  .rb-card:hover .rb-card__media > img, .rb-card:hover .rb-card__media > .rb-media { transform: scale(1.06); }
}

/* ==========================================================================
   Výpis: hlavička, filtry, grid, stránkování
   ========================================================================== */
.rb-feed__head, .rb-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.rb-chips { display: inline-flex; gap: 6px; padding: 6px; background: var(--sand-100); border-radius: var(--radius-pill); max-width: 100%; }
.rb-chip { height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-900); font: 700 15px/20px var(--font-body); cursor: pointer; white-space: nowrap; flex: none;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear, box-shadow var(--dur-fast) linear; }
.rb-chip[aria-pressed="true"] { background: var(--white); box-shadow: var(--shadow-sm); }
.rb-chip small { font-size: 13px; font-weight: 500; color: var(--gray-700); margin-left: 6px; }
@media (hover: hover) { .rb-chip:hover { background: rgba(255,255,255,.7); } }
.rb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rb-grid > .is-hidden { display: none; }
.rb-feed__more { margin-top: 48px; text-align: center; }
.rb-pager { margin-top: 56px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.rb-pager .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--shadow-sm); font: 700 15px/20px var(--font-body); color: var(--ink-900); text-decoration: none; }
.rb-pager .page-numbers.current { background: var(--ink-900); color: var(--white); }

/* ==========================================================================
   Sortiment (CategoryTile)
   ========================================================================== */
.rb-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rb-cat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; color: var(--white) !important; text-decoration: none; isolation: isolate; }
.rb-cat > img, .rb-cat > .rb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); z-index: -2; }
.rb-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,26,24,.86), rgba(26,26,24,0) 60%); }
.rb-cat__label { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 22px/28px var(--font-display); }
.rb-cat__go { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--white); color: var(--ink-900); display: grid; place-items: center; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .rb-cat__go { transform: translateX(-6px); opacity: 0; }
  .rb-cat:hover .rb-cat__go { transform: none; opacity: 1; }
  .rb-cat:hover > img, .rb-cat:hover > .rb-media { transform: scale(1.07); }
}

/* ==========================================================================
   Kontakt, otevírací doba
   ========================================================================== */
.rb-hours { margin: 0; display: grid; gap: 6px; }
.rb-hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.rb-hours dt { font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.rb-hours dd { margin: 0; text-align: right; white-space: nowrap; }
.rb-hours__today { padding: 0 6px; border-radius: 6px; background: var(--success-700); color: var(--white); font: 700 10px/18px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.rb-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rb-contact__item { display: grid; align-content: start; gap: 12px; padding: 28px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.rb-contact__item a:not([class]) { text-decoration: none; font-weight: 700; }

/* ==========================================================================
   Patička ([rb_footer])
   ========================================================================== */
.rb-footer { position: relative; overflow: hidden; background: var(--ink-900); color: var(--gray-300); padding: 96px max(48px, calc((100vw - 1240px) / 2)) 32px; font-size: 15px; line-height: 24px; }
.rb-footer a:not([class]) { color: var(--white); text-decoration: none; }
.rb-footer a:not([class]):hover { color: var(--red-on-dark); }
.rb-footer__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rb-footer__claim { margin-top: 12px !important; font: 600 44px/52px var(--font-display); letter-spacing: -.02em; color: var(--white); max-width: 18ch; }
.rb-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; position: relative; z-index: 1; }
.rb-footer__brand img { height: 34px; width: auto; margin-bottom: 20px; }
.rb-footer__brand p { max-width: 34ch; }
.rb .rb-footer__h { font: 700 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.rb-footer p + p { margin-top: 12px; }
.rb-footer .rb-hours > div { border-color: rgba(255,255,255,.12); }
.rb-footer .rb-hours dt { color: var(--white); }
.rb-footer__nav { display: grid; gap: 8px; }
.rb-footer__bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.rb-footer__mark { position: absolute; right: -60px; bottom: -40px; width: 420px; height: auto; opacity: .06; pointer-events: none; }

/* ==========================================================================
   Mobilní akční lišta (Zavolat / Navigovat)
   ========================================================================== */
.rb-dock { display: none; }

/* ==========================================================================
   Reveal animace (JS přidá .is-in)
   ========================================================================== */
.rb-reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--rb-i, 0) * var(--dur-stagger)); }
.rb-reveal--left { transform: translateX(-36px); }
.rb-reveal--zoom { transform: scale(.96); }
.rb-reveal.is-in { opacity: 1; transform: none; }
/* Bez JS (nebo než se načte) nic nezůstane schované. */
html:not(.rb-js) .rb-reveal { opacity: 1; transform: none; }
html:not(.rb-js) .rb-split__i { transform: none; }


/* ==========================================================================
   Celý web: pozadí, písmo Divi obsahu (stránky skládané v Divi)
   ========================================================================== */
body.rb-site, body.rb-site #page-container, body.rb-site #main-content, body.rb-site .et-l--body { background-color: var(--sand-50); }
body.rb-site { color: var(--ink-900); overflow-x: clip; } /* clip (ne hidden) – nerozbije sticky header */
/* Výchozí bílé pozadí sekcí Divi → teplá bílá webu. :where() = nízká specificita, sekce s vlastní barvou z Divi vyhrají. */
:where(body.rb-site) .et_pb_section { background-color: transparent; }
body.rb-site #main-content .container::before { display: none; } /* svislá linka sidebaru Divi */

/* ==========================================================================
   Drobečková navigace
   ========================================================================== */
.rb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 14px/20px var(--font-body); color: var(--gray-700); }
.rb-crumbs a { color: var(--gray-700) !important; text-decoration: none; }
.rb-crumbs a:hover { color: var(--ink-900) !important; }
.rb-crumbs span { color: var(--gray-500); }
.rb-hero-wrap + .rb-crumbs, .rb-crumbs + .rb-hero-wrap { margin-top: 0; }
.rb-crumbs:has(+ .rb-hero-wrap) { max-width: 1336px; margin: 0 auto; padding: 24px 48px 0; }

/* ==========================================================================
   Detail příspěvku: záhlaví + obsah
   ========================================================================== */
.rb-article-head { max-width: 1336px; margin: 0 auto; padding: 32px 48px 0; }
.rb-article-head__text { max-width: 860px; margin: 40px auto 0; text-align: center; display: grid; justify-items: center; gap: 20px; }
.rb-article-head .rb-crumbs { justify-content: center; }
.rb-article-head__meta { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-700); }
.rb .rb-article-head__title { font: 600 56px/62px var(--font-display); letter-spacing: -.02em; }
.rb-article-head__img { margin: 48px 0 0; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8; background: var(--sand-100); }
.rb-article-head__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Obsah článku (modul Post Content v šabloně příspěvku) – čitelný sloupec */
body.single-post .et-l--body .et_pb_post_content { max-width: 760px; margin: 0 auto; font: 400 18px/30px var(--font-body); color: var(--ink-900); }
body.single-post .et-l--body .et_pb_post_content .et_pb_section { padding: 0 !important; background: none !important; }
body.single-post .et-l--body .et_pb_post_content .et_pb_row { width: 100% !important; max-width: none !important; padding: 16px 0 !important; }
body.single-post .et-l--body .et_pb_post_content p { padding-bottom: 1em; }
body.single-post .et-l--body .et_pb_post_content a { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }
body.single-post .et-l--body .et_pb_post_content img { border-radius: var(--radius-lg); }
body.single-post .et-l--body .et_pb_post_content .et_pb_gallery_item { border-radius: var(--radius-md); overflow: hidden; }
body.single-post .et-l--body .et_pb_post_content h2, body.single-post .et-l--body .et_pb_post_content h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink-900); line-height: 1.2; padding: .6em 0 .4em; }

/* ==========================================================================
   Archiv rubriky
   ========================================================================== */
.rb-archive { max-width: 1336px; margin: 0 auto; padding: 32px 48px 0; }
.rb-archive__head { display: grid; justify-items: start; gap: 16px; margin-bottom: 48px; }
.rb .rb-archive__title { font: 600 56px/62px var(--font-display); letter-spacing: -.02em; max-width: 18ch; }
.rb-archive__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-top: 8px; background: var(--sand-100); border-radius: var(--radius-pill); }
.rb-archive__tabs .rb-chip { display: inline-flex; align-items: center; text-decoration: none; }
.rb-archive__tabs .rb-chip.is-active { background: var(--white); box-shadow: var(--shadow-sm); }
.rb-archive__hero { margin: 0 -48px 56px; }
.rb-archive__hero .rb-hero-wrap { padding-top: 0; }
.rb-empty { padding: 48px 0; }
.rb-empty a { color: var(--red-700); }

/* ==========================================================================
   404
   ========================================================================== */
.rb-404 { position: relative; max-width: 900px; margin: 0 auto; padding: 120px 48px 96px; display: grid; justify-items: center; gap: 20px; text-align: center; overflow: hidden; }
.rb-404__num { position: absolute; z-index: -1; top: 20px; left: 50%; transform: translateX(-50%); font: 700 300px/1 var(--font-display); letter-spacing: -.06em; color: var(--sand-100); pointer-events: none; }
.rb-404__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* Sekce pod článkem a v šablonách */
.rb-section { max-width: 1336px; margin: 0 auto; padding: 96px 48px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1180px) {
  .rb-header__tel span { display: none; }
  .rb-header { gap: 20px; }
}
@media (max-width: 980px) {
  .rb .rb-article-head__title, .rb .rb-archive__title { font-size: 38px; line-height: 44px; }
  .rb-article-head, .rb-archive { padding: 20px 16px 0; }
  .rb-crumbs:has(+ .rb-hero-wrap) { padding: 16px 16px 0; }
  .rb-article-head__text { margin-top: 24px; }
  .rb-article-head__img { margin-top: 32px; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
  .rb-archive__hero { margin: 0 -16px 40px; }
  .rb-section { padding: 64px 16px; }
  .rb-404 { padding: 80px 16px 64px; }
  .rb-404__num { font-size: 180px; }
  body.single-post .et-l--body .et_pb_post_content { font-size: 17px; line-height: 28px; padding: 0 16px; }
  .rb-h2 { font-size: 30px !important; line-height: 36px !important; }
  .rb-lead { font-size: 18px; line-height: 28px; }
  .rb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .rb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rb-cat { aspect-ratio: 3 / 4; }
  .rb-contact { grid-template-columns: 1fr; }

  .rb-hero-wrap { padding: 12px 16px 0; }
  .rb-spotlight { grid-template-columns: 1fr; min-height: 0; border-radius: var(--radius-lg); }
  .rb-spotlight__media { min-height: 320px; aspect-ratio: 4 / 3; order: -1; }
  .rb-spotlight__img { inset: 0; }
  .rb-spotlight__media::before { display: none; }
  .rb-spotlight__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: var(--rb-spot-bg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V20C80 0 150 34 230 22S350 0 400 10v26z'/%3E%3C/svg%3E") 0 100%/100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V20C80 0 150 34 230 22S350 0 400 10v26z'/%3E%3C/svg%3E") 0 100%/100% 100% no-repeat; }
  .rb-spotlight__body { padding: 20px 24px 32px; gap: 18px; }
  .rb-spotlight__discount { font-size: 72px; line-height: 68px; }
  .rb .rb-spotlight__title { font-size: 34px; line-height: 40px; max-width: none; }
  .rb .rb-spotlight__title--xl { font-size: 40px; line-height: 46px; }
  .rb-spotlight__lead { font-size: 17px; line-height: 27px; }
  .rb-spotlight__sticker { width: 88px; height: 88px; right: 16px; top: 16px; font-size: 12px; line-height: 15px; }
  .rb-spotlight__countdown, .rb-countdown { width: 100%; }
  .rb-countdown__unit { flex: 1; min-width: 0; }

  .rb-header { height: 68px; padding: 0 16px; }
  .is-scrolled .rb-header { height: 60px; }
  .rb-header__nav, .rb-header__cta, .rb-header__tel { display: none; }
  .rb-header__logo { height: 28px; }
  .rb-burger { display: block; }

  .rb-footer { padding: 64px 16px calc(96px + env(safe-area-inset-bottom)); }
  .rb-footer__claim { font-size: 32px; line-height: 38px; }
  .rb-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .rb-footer__brand { grid-column: 1 / -1; }

  /* Zavolat / Navigovat přilepené dole – kamenná prodejna, nejdůležitější akce na mobilu */
  .rb-dock { position: fixed; z-index: 99980; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-radius: 20px; box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform var(--dur-base) var(--ease-out); }
  .rb-dock.is-visible { transform: none; }
  .rb-dock__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; font: 700 15px/20px var(--font-body); text-decoration: none; color: var(--ink-900) !important; background: var(--sand-100); }
  .rb-dock__btn--primary { background: var(--ink-900); color: var(--white) !important; }
  .rb-menu-open .rb-dock { transform: translateY(140%); }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 620px) {
  .rb-archive__tabs { display: flex; flex-wrap: nowrap; width: calc(100% + 32px); margin: 8px -16px 0; padding: 6px 16px; border-radius: 0; background: transparent; overflow-x: auto; scrollbar-width: none; }
  .rb-archive__tabs::-webkit-scrollbar { display: none; }
  .rb-archive__tabs .rb-chip { background: var(--sand-100); }
  .rb-archive__tabs .rb-chip.is-active { background: var(--ink-900); color: var(--white); }
  .rb-archive__tabs .rb-chip.is-active small { color: var(--gray-300); }
  .rb-bar { height: 40px; }
  .rb-bar__item { font-size: 14px; padding: 0 20px; }
  .rb-bar__item b { font-size: 16px; }

  .rb-feed__head, .rb-section-head { margin-bottom: 24px; gap: 16px; }
  /* Filtry: posuvné vodorovně, ne zalomené */
  .rb-chips { display: flex; width: calc(100% + 32px); margin: 0 -16px; padding: 6px 16px; border-radius: 0; background: transparent; overflow-x: auto; scrollbar-width: none; }
  .rb-chips::-webkit-scrollbar { display: none; }
  .rb-chip { background: var(--sand-100); }
  .rb-chip[aria-pressed="true"] { background: var(--ink-900); color: var(--white); }
  .rb-chip[aria-pressed="true"] small { color: var(--gray-300); }

  .rb-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Slider karet s dorazem (scroll-snap) – na úvodní stránce šetří místo */
  .rb-grid--scroll { display: flex; gap: 14px; margin: 0 -16px; padding: 4px 16px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rb-grid--scroll::-webkit-scrollbar { display: none; }
  .rb-grid--scroll > * { flex: 0 0 84%; scroll-snap-align: start; }
  .rb-grid--scroll > .is-hidden { display: none; }
  .rb .rb-card__title { font-size: 21px; line-height: 27px; }
  .rb-card__body { padding: 20px 20px 22px; gap: 10px; }

  .rb-cats { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .rb-cats::-webkit-scrollbar { display: none; }
  .rb-cats > .rb-cat { flex: 0 0 62%; scroll-snap-align: start; }
  .rb-cat__label { left: 16px; right: 16px; bottom: 16px; font-size: 19px; line-height: 24px; }
  .rb-cat__go { width: 34px; height: 34px; }

  .rb-spotlight__media { min-height: 0; aspect-ratio: 5 / 4; }
  .rb-spotlight__cta { width: 100%; gap: 16px; }
  .rb-spotlight__cta .rb-btn { width: 100%; }
  .rb-countdown__unit { padding: 8px 4px 6px; border-radius: 12px; }
  .rb-countdown__num { font-size: 24px; line-height: 28px; }

  .rb-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .rb-footer__cta-btns, .rb-footer__cta-btns .rb-btn { width: 100%; }
  .rb-footer__mark { width: 280px; }
}


/* ==========================================================================
   Sekce skládané v Divi z nativních modulů (třída sekce: rb-blok)
   rb-blok          běžná sekce (padding 96/64, obsah max. 1240px)
   rb-blok--alt     střídavé pozadí sand-100
   rb-blok--dark    tmavá sekce ink-900
   rb-blok--tight   menší horní odsazení (navazuje na předchozí)
   rb-jen-pri-akci  sekce se zobrazí jen když běží akce (jinak je její obsah v hero prodejny)
   ========================================================================== */
.et_pb_section.rb-blok { padding: 96px 0 !important; background-color: transparent; }
.et_pb_section.rb-blok--tight { padding-top: 24px !important; }
.et_pb_section.rb-blok--alt { background-color: var(--sand-100) !important; }
.et_pb_section.rb-blok--dark { background-color: var(--ink-900) !important; color: var(--gray-300); }
.rb-blok .et_pb_row { width: calc(100% - 96px) !important; max-width: 1240px !important; padding: 0 !important; }
.rb-blok .et_pb_row + .et_pb_row { margin-top: 48px !important; }
body:not(.rb-has-akce) .et_pb_section.rb-jen-pri-akci { display: none; }

/* Typografie textových modulů v sekcích */
.rb-blok .et_pb_text_inner { font: 400 17px/28px var(--font-body); color: var(--gray-700); }
.rb-blok .et_pb_text_inner p { padding-bottom: 1em; }
.rb-blok .et_pb_text_inner p:last-child { padding-bottom: 0; }
.rb-blok .et_pb_text_inner h2 { font: 600 40px/48px var(--font-display); letter-spacing: -.015em; color: var(--ink-900); padding: 0 0 20px; }
.rb-blok .et_pb_text_inner h3 { font: 600 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink-900); padding: 0 0 12px; }
.rb-blok .et_pb_text_inner .rb-eyebrow { padding-bottom: 12px; }
.rb-blok .et_pb_text_inner .rb-lead { font-size: 20px; line-height: 32px; color: var(--gray-700); }
.rb-blok .et_pb_text_inner strong { color: var(--ink-900); }
.rb-blok .et_pb_text_inner .rb-btn { margin-top: 12px; }
.rb-blok--dark .et_pb_text_inner { color: var(--gray-300); }
.rb-blok--dark .et_pb_text_inner h2, .rb-blok--dark .et_pb_text_inner h3, .rb-blok--dark .et_pb_text_inner strong { color: var(--white); }
.rb-blok--dark .et_pb_text_inner .rb-eyebrow { color: var(--red-on-dark); }
.rb-blok .et_pb_text_inner ul { list-style: none; padding: 0; margin: 0; }
.rb-blok .et_pb_text_inner li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line); }
.rb-blok .et_pb_text_inner li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; background: var(--red-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11'%3E%3Cpath d='M1 9c6-5 12 1 24-8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11'%3E%3Cpath d='M1 9c6-5 12 1 24-8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.rb-blok .et_pb_text_inner li small { display: block; color: var(--gray-700); font-size: 14px; line-height: 20px; }

/* Obrázkové moduly v sekcích: zaoblené, jemný zoom při najetí */
.rb-blok .et_pb_image .et_pb_image_wrap { border-radius: var(--radius-lg); overflow: hidden; display: block; }
.rb-blok .et_pb_image img { width: 100%; display: block; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .rb-blok .et_pb_image:hover img { transform: scale(1.04); } }

/* Úvod (foto + text): fotka majitele s plovoucím štítkem */
.rb-intro .et_pb_row { display: flex; align-items: center; gap: 64px; }
.rb-intro .et_pb_image .et_pb_image_wrap { border-radius: var(--radius-xl); aspect-ratio: 4 / 5; }
.rb-intro .et_pb_image img { height: 100%; object-fit: cover; }
.rb-intro .et_pb_column:first-child { position: relative; }
.rb-intro--plain .et_pb_column:first-child::after { display: none; }
.rb-intro--plain .et_pb_image .et_pb_image_wrap { aspect-ratio: 4 / 3; }
.rb-intro .et_pb_column:first-child::after { content: "Osobní přístup"; position: absolute; right: -20px; bottom: 32px; padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: var(--shadow-lg); font: 700 15px/20px var(--font-body); color: var(--ink-900); }

/* Recenze zákazníků (sloupce 1/3 s textovým modulem) */
.rb-recenze .et_pb_row:last-child { display: flex; gap: 24px; align-items: stretch; }
.rb-recenze .et_pb_row:last-child > .et_pb_column { margin: 0 !important; flex: 1; display: flex; }
.rb-recenze .et_pb_row:last-child .et_pb_text { flex: 1; display: flex; }
.rb-recenze .et_pb_row:last-child .et_pb_text_inner { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 32px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
@media (hover: hover) { .rb-recenze .et_pb_row:last-child .et_pb_text_inner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.rb-recenze .et_pb_row:last-child .et_pb_text_inner::before { content: "“"; font: 700 72px/48px var(--font-display); color: var(--red-500); height: 36px; }
.rb-recenze .et_pb_text_inner blockquote { margin: 0; padding: 0; border: 0; font: 400 17px/28px var(--font-body); color: var(--ink-900); flex: 1; }
.rb-recenze .et_pb_text_inner blockquote p { padding: 0; }
.rb-recenze .et_pb_text_inner .rb-recenze__kdo { padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.rb-recenze .et_pb_text_inner .rb-recenze__kdo strong { display: block; font-family: var(--font-display); font-size: 17px; }

/* Karty kategorií sortimentu (Prodejna) */
.rb-kategorie .et_pb_row:not(:first-child) { display: flex; gap: 24px; align-items: stretch; }
.rb-kategorie .et_pb_row:not(:first-child) > .et_pb_column { margin: 0 !important; flex: 1; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
@media (hover: hover) { .rb-kategorie .et_pb_row:not(:first-child) > .et_pb_column:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.rb-kategorie .et_pb_row:not(:first-child) > .et_pb_column { gap: 0 !important; }
.rb-kategorie .et_pb_row:not(:first-child) .et_pb_image { margin: 0 !important; }
.rb-kategorie .et_pb_row:not(:first-child) .et_pb_image .et_pb_image_wrap { border-radius: 0; aspect-ratio: 16 / 10; }
.rb-kategorie .et_pb_row:not(:first-child) .et_pb_image img { height: 100%; object-fit: cover; }
.rb-kategorie .et_pb_row:not(:first-child) .et_pb_text { padding: 24px 24px 20px; margin: 0 !important; }
.rb-kategorie .et_pb_text_inner h3 { font-size: 22px; line-height: 28px; }
.rb-kategorie .et_pb_text_inner li { font-size: 15px; line-height: 22px; color: var(--ink-900); }
.rb-kategorie .et_pb_text_inner li:last-child { border-bottom: 0; }
.rb-kategorie .rb-kat__ikona { display: none; }

/* Citát majitele */
.rb-citat .et_pb_row { display: flex; align-items: center; justify-content: center; gap: 56px; max-width: 1040px !important; }
.rb-citat .et_pb_column:first-child { flex: 0 0 240px; width: 240px !important; margin: 0 !important; }
.rb-citat .et_pb_column:last-child { flex: 1; width: auto !important; margin: 0 !important; }
.rb-citat .et_pb_image .et_pb_image_wrap { border-radius: 50%; aspect-ratio: 1; width: 240px; max-width: 100%; box-shadow: 0 0 0 10px var(--white), var(--shadow-lg); }
.rb-citat .et_pb_image img { height: 100%; object-fit: cover; }
.rb-citat .et_pb_text_inner blockquote { margin: 0; padding: 0; border: 0; font: 500 30px/42px var(--font-display); letter-spacing: -.01em; color: var(--ink-900); }
.rb-citat .et_pb_text_inner blockquote p { padding-bottom: 20px; }
.rb-citat .et_pb_text_inner cite { font: 700 15px/20px var(--font-body); font-style: normal; color: var(--red-700); }

/* ==========================================================================
   Záhlaví stránky [rb_page_hero]
   ========================================================================== */
.rb-page-hero { max-width: 1336px; margin: 0 auto; padding: 56px 48px 0; }
.rb-page-hero__text { display: grid; justify-items: start; gap: 16px; max-width: 900px; }
.rb .rb-page-hero__title { font: 600 64px/68px var(--font-display); letter-spacing: -.025em; }
.rb-page-hero__img { position: relative; margin-top: 48px; height: min(560px, 56vw); border-radius: var(--radius-xl); overflow: hidden; background: var(--sand-100); }
.rb-page-hero__img .rb-spotlight__img img { animation: none; }

/* ==========================================================================
   Kontakt – ikonky a velké odkazy
   ========================================================================== */
.rb-contact__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red-50); color: var(--red-700); margin-bottom: 4px; }
.rb-contact__big { font: 600 22px/28px var(--font-display) !important; color: var(--ink-900) !important; text-decoration: none !important; }
.rb-contact__item .rb-eyebrow + p { margin-bottom: 8px; }
.rb-contact__item p { color: var(--ink-900); }

/* ==========================================================================
   Video (náhled → YouTube po kliknutí)
   ========================================================================== */
.rb-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow-lg); }
.rb-video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--white); }
.rb-video__btn img, .rb-video__btn .rb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.rb-video__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,24,.65), rgba(26,26,24,.05) 55%); }
.rb-video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--red-600); display: grid; place-items: center; box-shadow: var(--shadow-red);
  transition: transform var(--dur-base) var(--ease-out); }
.rb-video__play svg { margin-left: 4px; }
.rb-video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: rb-ping 2.2s var(--ease-out) infinite; }
.rb-video__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* jen pro čtečky – náhled má vlastní text */
.rb-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (hover: hover) { .rb-video__btn:hover img { transform: scale(1.04); } .rb-video__btn:hover .rb-video__play { transform: scale(1.08); } }

/* ==========================================================================
   Mapa (načte se po kliknutí)
   ========================================================================== */
.rb-map__inner { position: relative; min-height: 460px; border-radius: var(--radius-xl); overflow: hidden; background-color: var(--sand-100);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; box-shadow: inset 0 0 0 1px var(--line); }
.rb-map__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.rb-map__pin { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg); }
.rb-map__addr { font-size: 17px; line-height: 26px; }
.rb-map__addr strong { font: 600 22px/28px var(--font-display); }
.rb-map__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rb-map__cover small { font-size: 13px; color: var(--gray-700); }
.rb-map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rb-map__inner.is-loaded .rb-map__cover { display: none; }

/* ==========================================================================
   Galerie + prohlížeč
   ========================================================================== */
.rb-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.rb-gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-100); }
.rb-gallery { grid-auto-flow: dense; }
.rb-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.rb-gallery__item:nth-child(6) { grid-column: span 2; }
.rb-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--ease-out); }
.rb-gallery__item::after { content: ""; position: absolute; inset: 0; background: rgba(26,26,24,0); transition: background-color var(--dur-base) linear; }
@media (hover: hover) { .rb-gallery__item:hover img { transform: scale(1.06); } .rb-gallery__item:hover::after { background: rgba(26,26,24,.12); } }
/* Letáky (poměr 4:5) – bez ořezu a bez zvětšených dlaždic */
.rb-gallery--letaky { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.rb-gallery--letaky .rb-gallery__item, .rb-gallery--letaky .rb-gallery__item:first-child, .rb-gallery--letaky .rb-gallery__item:nth-child(6) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
body.single-post .et_pb_post_content .rb-gallery { margin: 8px 0 32px; }
@media (max-width: 620px) { .rb-gallery--letaky { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rb-lb { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 56px 72px; background: rgba(20,20,18,.94); }
.rb-lb[hidden] { display: none; }
.rb-lb__img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: var(--radius-md); opacity: 0; transform: scale(.97); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.rb-lb__img.is-in { opacity: 1; transform: none; }
.rb-lb__btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); font: 400 32px/1 var(--font-body); cursor: pointer; }
.rb-lb__btn:hover { background: rgba(255,255,255,.24); }
.rb-lb__close { top: 16px; right: 16px; }
.rb-lb__prev { left: 12px; top: 50%; margin-top: -26px; }
.rb-lb__next { right: 12px; top: 50%; margin-top: -26px; }
.rb-lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--gray-300); font: 700 14px/20px var(--font-body); }

/* ==========================================================================
   Oznámení (okno)
   ========================================================================== */
.rb-notice { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; padding: 16px; }
.rb-notice[hidden] { display: none; }
.rb-notice__backdrop { position: absolute; inset: 0; background: rgba(26,26,24,.55); opacity: 0; transition: opacity var(--dur-base) linear; }
.rb-notice__box { position: relative; display: grid; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.rb-notice__box--img { width: min(880px, 100%); grid-template-columns: 1fr 1.1fr; }
.rb-notice.is-open .rb-notice__backdrop { opacity: 1; }
.rb-notice.is-open .rb-notice__box { opacity: 1; transform: none; }
.rb-notice__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-notice__body { display: grid; align-content: center; justify-items: start; gap: 14px; padding: 40px; }
.rb .rb-notice__title { font: 600 30px/36px var(--font-display); letter-spacing: -.01em; }
.rb-notice__text { color: var(--gray-700); }
.rb-notice__text p { padding-bottom: .6em !important; }
.rb-notice__text h4, .rb-notice__text strong { color: var(--ink-900); }
.rb-notice__close { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand-100); cursor: pointer; }
.rb-notice__close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: var(--ink-900); border-radius: 2px; transform: rotate(45deg); }
.rb-notice__close span + span { transform: rotate(-45deg); }

/* ==========================================================================
   Sekce na mobilu
   ========================================================================== */
@media (max-width: 980px) {
  .et_pb_section.rb-blok { padding: 64px 0 !important; }
  .et_pb_section.rb-blok--tight { padding-top: 16px !important; }
  .rb-blok .et_pb_row { width: calc(100% - 32px) !important; }
  .rb-blok .et_pb_row + .et_pb_row { margin-top: 32px !important; }
  .rb-blok .et_pb_text_inner h2 { font-size: 30px; line-height: 36px; }
  .rb-blok .et_pb_text_inner .rb-lead { font-size: 18px; line-height: 28px; }
  .rb-intro .et_pb_row, .rb-citat .et_pb_row { flex-direction: column; align-items: stretch; gap: 32px; }
  .rb-intro .et_pb_column:first-child::after { right: 16px; bottom: 16px; }
  .rb-intro .et_pb_image .et_pb_image_wrap { aspect-ratio: 4 / 3; }
  .rb-citat .et_pb_column:first-child { flex: 0 0 auto; width: 100% !important; }
  .rb-citat .et_pb_image .et_pb_image_wrap { width: 160px; margin: 0 auto; }
  .rb-citat .et_pb_text_inner blockquote { font-size: 22px; line-height: 32px; }
  .rb-recenze .et_pb_row:last-child, .rb-kategorie .et_pb_row:not(:first-child) { flex-direction: column; gap: 16px; }
  .rb .rb-page-hero__title { font-size: 40px; line-height: 46px; }
  .rb-page-hero { padding: 32px 16px 0; }
  .rb-page-hero__img { height: 64vw; margin-top: 32px; border-radius: var(--radius-lg); }
  .rb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .rb-video, .rb-map__inner { border-radius: var(--radius-lg); }
  /* Oznámení jako spodní panel: vyjede zdola, křížek je vždy vidět, posouvá se jen text */
  .rb-notice { place-items: end center; padding: 0; }
  .rb-notice__box, .rb-notice__box--img { width: 100%; max-height: 88vh; max-height: 88dvh; overflow: hidden; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr);
    border-radius: 28px 28px 0 0; transform: translateY(100%); }
  .rb-notice.is-open .rb-notice__box { transform: none; }
  .rb-notice__img { max-height: 28vh; overflow: hidden; }
  .rb-notice__body { padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .rb-notice__body .rb-btn { width: 100%; }
  .rb-notice__box::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.8); }
  .rb-notice__box:not(.rb-notice__box--img)::before { background: var(--line); }
  .rb-lb { padding: 56px 8px; }
  .rb-lb__prev, .rb-lb__next { top: auto; bottom: 8px; margin: 0; }
}
@media (max-width: 620px) {
  /* Recenze: posuvné karty místo dlouhého sloupce */
  .rb-recenze .et_pb_row:last-child { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 14px; margin: 0 !important; padding: 4px 16px 24px !important; width: 100% !important; max-width: none !important; scrollbar-width: none; }
  .rb-recenze .et_pb_row:last-child::-webkit-scrollbar { display: none; }
  .rb-recenze .et_pb_row:last-child > .et_pb_column { flex: 0 0 84%; scroll-snap-align: start; }
  .rb-recenze .et_pb_row:last-child .et_pb_text_inner { padding: 24px; }
  .rb-video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .rb-map__inner { min-height: 380px; }
}

/* ==========================================================================
   Omezený pohyb
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rb *, .rb *::before, .rb *::after, .rb-reveal, .rb-site-header, .rb-dock { animation: none !important; transition: none !important; }
  .rb-reveal { opacity: 1; transform: none; }
  .rb-split__i { transform: none; }
  .rb-spotlight__img { transform: none !important; }
}
