/*
Theme Name: VitalErex
Template: twentytwentyfive
Description: Child téma pro VitalErex (CZ/HU/RO e-shop). Pravidla: papírový podklad, nulový radius, 1px linky, bez stínů a emoji, serif nadpisy.
Version: 0.3.0
Text Domain: vitalerex
*/
:root{--vx-rule:#D6D2CB;--vx-ease:cubic-bezier(.22,1,.36,1);--vx-hover:600ms;--vx-ui:300ms;--vx-wrap:1280px}
@media (prefers-reduced-motion:reduce){:root{--vx-hover:0ms;--vx-ui:0ms}}

/* Přechod mezi stránkami: tiché prolnutí, hlavička zůstává na místě (Chrome, Edge, Safari) */
@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}
::view-transition-old(root){animation:vx-vt-out 220ms var(--vx-ease) both}
::view-transition-new(root){animation:vx-vt-in 380ms var(--vx-ease) both}
@keyframes vx-vt-out{to{opacity:0}}
@keyframes vx-vt-in{from{opacity:0}}
.vx-header{view-transition-name:vx-header}

/* Geometrie: žádné zaoblení, žádné stíny */
*,*::before,*::after{border-radius:0!important;box-shadow:none!important}

/* Eyebrow: jediný řádkovaný styl */
.vx-eyebrow{font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--muted);margin:0 0 .75rem}

/* Hlavička: papír, dvě řady, linky */
.vx-header{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);border-bottom:1px solid var(--vx-rule)}
/* spodní linka až po začátku rolování (v prohlížečích bez scroll-timeline zůstává vždy) */
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .vx-header{border-bottom-color:transparent;animation:vx-line linear both;animation-timeline:scroll(root);animation-range:0 40px}
  }
}
@keyframes vx-line{to{border-bottom-color:var(--vx-rule)}}
.vx-header a{color:var(--wp--preset--color--ink);text-decoration:none}
.vx-header .wp-block-navigation-item__content{font-size:14px;font-weight:500;padding:.5rem .25rem;border-bottom:1px solid transparent;transition:border-color var(--vx-ui) var(--vx-ease)}
.vx-header .wp-block-navigation-item__content:hover{border-bottom-color:var(--wp--preset--color--ink)}
.vx-header .wc-block-mini-cart__button,.vx-header .wc-block-customer-account a{color:var(--wp--preset--color--ink)}
.vx-header .wc-block-mini-cart__icon,.vx-header .wc-block-customer-account__account-icon{fill:var(--wp--preset--color--ink);color:var(--wp--preset--color--ink)}
.vx-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}
/* logo je světlý lev na černé: na papíře ho převrátíme a bílou necháme zmizet */
.vx-header .wp-block-group.is-layout-flex{align-items:center}
.vx-header-right{--vx-hgap:2.5rem;gap:var(--vx-hgap);justify-content:flex-end}
.vx-header-right>.wp-block-group{gap:var(--vx-hgap)}
.vx-header-right .wp-block-navigation__container{gap:var(--vx-hgap)}
/* ikony bez vnitřních odsazení, aby viditelné mezery mezi symboly byly stejné */
@media (min-width:601px){
  .vx-header-right .wc-block-customer-account__link,.vx-header-right .wc-block-mini-cart__button{padding:0}
  .vx-header-right .vx-search-pc.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper{gap:0;min-width:0;width:auto}
  .vx-header-right .vx-search-pc .wp-block-search__button{padding:0!important}
}
.vx-logo{display:block;line-height:0}
:root{--vx-logo-h:64px;--vx-bar:calc(var(--vx-logo-h) + 1.5rem + 1px)}
.vx-logo img{display:block;height:var(--vx-logo-h);width:auto;filter:invert(1)}
/* Lepivá hlavička: drží se nahoře beze změny výšky; při rolování se jen plynule zmenší logo (transform, běží na GPU, ikony a menu se nehýbou) */
:root{--vx-adm:0px;--vx-range:120px}
body.admin-bar{--vx-adm:32px}
@media (max-width:782px){body.admin-bar{--vx-adm:46px}}
.vx-header>*{margin-block-start:0!important}
.wp-site-blocks>header{position:sticky;top:var(--vx-adm);z-index:100}
.vx-header .vx-logo img{transform-origin:left center}
@media (min-width:901px){
  @supports (animation-timeline:scroll()){
    @media (prefers-reduced-motion:no-preference){
      .vx-header .vx-logo img{animation:vx-mark linear both;animation-timeline:scroll(root);animation-range:0 var(--vx-range)}
      body.home .vx-header .vx-logo img{animation-name:vx-mark-home}
    }
  }
}
@keyframes vx-mark{to{transform:scale(.75)}}
@keyframes vx-mark-home{from{transform:scale(1.3)}to{transform:scale(.75)}}

/* Tlačítka: plná inkoustová, hover převrací výplň a text */
.wp-block-button__link,.wp-element-button{border:1px solid var(--wp--preset--color--ink);transition:background var(--vx-hover) var(--vx-ease),color var(--vx-hover) var(--vx-ease)}
.wp-block-button__link:hover,.wp-element-button:hover{background:transparent;color:var(--wp--preset--color--ink)}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper)}

/* Úvod: nadpis vlevo, popis vpravo, bez fotografie a bez pohybu navíc */
/* Fotografie: výška obrazovky bez hlavičky, popisek pod ní (jediné načítací zjevení) */
.vx-plate{margin:0}
.vx-plate img{display:block;width:100%;height:calc(100svh - 73px);min-height:420px;max-height:900px;object-fit:cover;object-position:30% center;animation:vx-fade 900ms var(--vx-ease) both}
.vx-plate-caption{max-width:var(--vx-wrap);margin:0 auto;padding:.75rem var(--wp--preset--spacing--40);font-size:13px;color:var(--wp--preset--color--muted)}
@keyframes vx-fade{from{opacity:0}}

/* Pás faktů: čtyři sloupce oddělené linkami */

/* Sekce: eyebrow, nadpis a linka pod ním */
.vx-section h2{font-size:clamp(1.75rem,3vw,3.5rem);margin:0}
.vx-rule-top{border-top:1px solid var(--vx-rule)}
.vx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding-bottom:1rem;margin-bottom:2rem;border-bottom:1px solid var(--vx-rule)}
.vx-head .vx-eyebrow{margin-bottom:.75rem}
.vx-head h2{margin:0}

/* WooCommerce karty: bez rámu, hover mění podklad, ne polohu */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:0;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:transparent;border:0;padding:0 0 1.25rem;overflow:hidden;transition:background var(--vx-hover) var(--vx-ease)}
.woocommerce ul.products li.product:hover{background:var(--wp--preset--color--stone)}
.woocommerce ul.products li.product a img{aspect-ratio:4/3;object-fit:cover;width:100%;margin:0 0 1rem;transition:transform var(--vx-hover) var(--vx-ease)}
.woocommerce ul.products li.product:hover a img{transform:scale(1.03)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--wp--preset--font-family--serif);font-weight:300;font-size:1.75rem;line-height:1.15;padding:1rem 1.25rem 0;margin:0;color:var(--wp--preset--color--ink);border-top:1px solid var(--vx-rule)}
.woocommerce ul.products li.product .price{display:block;padding:.5rem 1.25rem 0;font-size:14px;color:var(--wp--preset--color--muted)}
.woocommerce ul.products li.product .button{margin:1rem 1.25rem 0;background:transparent;color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink);font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;padding:.5rem .9rem;transition:background var(--vx-hover) var(--vx-ease),color var(--vx-hover) var(--vx-ease)}
.woocommerce ul.products li.product .button:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper)}
.woocommerce .star-rating,.woocommerce span.onsale{display:none}
.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);border:1px solid var(--wp--preset--color--ink)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:transparent;color:var(--wp--preset--color--ink)}

/* Blog */
.vx-blog .wp-block-post-title{font-size:1.5rem;margin:.75rem 0 .25rem}
.vx-blog .wp-block-post-title a{text-decoration:none}
.vx-blog .wp-block-post-date{font-size:13px;color:var(--wp--preset--color--muted)}
.vx-blog .wp-block-post-featured-image img{aspect-ratio:4/3;object-fit:cover;width:100%}

/* Patička: papír, linka nahoře */
.vx-footer{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);border-top:1px solid var(--vx-rule);font-size:14px}
.vx-footer a{color:var(--wp--preset--color--ink);text-decoration:none;border-bottom:1px solid transparent;transition:border-color var(--vx-ui) var(--vx-ease)}
.vx-footer a:hover{border-bottom-color:var(--wp--preset--color--ink)}
.vx-footer a.vx-logo{border-bottom:0}
.vx-footer p{margin:0 0 .4rem}
.vx-footer .vx-copy{text-align:center;border-top:1px solid var(--vx-rule);font-size:13px;color:var(--wp--preset--color--muted)}

/* Formuláře */
input[type=text],input[type=email],input[type=tel],input[type=search],input[type=password],select,textarea{border:0!important;border-bottom:1px solid var(--vx-rule)!important;background:transparent;transition:border-color var(--vx-ui) var(--vx-ease)}
input:focus,select:focus,textarea:focus{border-bottom-color:var(--wp--preset--color--ink)!important;outline:0}

/* Zlomy podle rozložení */
@media (max-width:1100px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){
}
@media (max-width:560px){.woocommerce ul.products{grid-template-columns:1fr;gap:40px}:root{--vx-logo-h:48px}}

/* Doladění rozložení */
.wp-site-blocks>*{margin-block-start:0}

/* Celoobrazovkové stránky: 404 a "coming soon", stejný papírový podklad */
.vx-screen{position:relative;overflow:hidden;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:6rem 1.25rem;text-align:center}
.vx-soon{min-height:100vh}
.vx-404{min-height:60vh}
.vx-screen>*{max-width:100%}
.vx-screen .vx-logo img{height:72px;margin:0 auto 3rem}
.vx-screen-title{color:var(--wp--preset--color--ink)!important;font-size:clamp(2.25rem,7vw,5rem)!important;font-weight:300;letter-spacing:.02em;text-transform:uppercase;line-height:1.05;margin:0}
.vx-screen .vx-screen-sub{color:var(--wp--preset--color--muted)!important;margin:1.5rem 0 2.5rem;letter-spacing:.3em}
.vx-screen-note{color:var(--wp--preset--color--muted);margin:3rem 0 0}
.vx-screen-copy{font-size:13px;color:var(--wp--preset--color--muted);margin:4rem 0 0}
.vx-404-code{font-family:var(--wp--preset--font-family--serif);font-weight:300;font-size:clamp(5rem,18vw,12rem);line-height:1;margin:0 0 1rem;color:var(--wp--preset--color--ink-3)}
/* ukazatel přípravy (hodnotu mění --vx-progress v šabloně) */
.vx-progress{width:min(100%,420px);margin:0 auto}
.vx-progress-bar{height:1px;background:var(--vx-rule);position:relative}
.vx-progress-bar::after{content:"";position:absolute;left:0;top:-1px;height:3px;width:var(--vx-progress,50%);background:var(--wp--preset--color--ink)}
.vx-progress-labels{display:flex;justify-content:space-between;margin-top:.75rem;font-size:12px;letter-spacing:.14em;color:var(--wp--preset--color--muted)}

/* Coming soon: text a logo nejdou označit ani přetáhnout */
.vx-soon,.vx-soon *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.vx-soon img{pointer-events:none;-webkit-user-drag:none;user-drag:none}

/* 404: stejná ochrana jako na coming soon */
.vx-404,.vx-404 *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.vx-404 img{pointer-events:none;-webkit-user-drag:none;user-drag:none}

/* Cookie banner (Complianz): jemný vjezd zdola, hover na tlačítkách */
@keyframes vx-banner-in{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.cmplz-cookiebanner.cmplz-show{animation:vx-banner-in 500ms var(--vx-ease) both}
.cmplz-cookiebanner .cmplz-btn{transition:background var(--vx-ui) var(--vx-ease),color var(--vx-ui) var(--vx-ease),border-color var(--vx-ui) var(--vx-ease)}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover,.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover{background:var(--wp--preset--color--paper)!important;color:var(--wp--preset--color--ink)!important}
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover{background:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--paper)!important}
.cmplz-cookiebanner{border:1px solid var(--vx-rule)}
@media (prefers-reduced-motion:reduce){.cmplz-cookiebanner.cmplz-show{animation:none}}

/* ===== Úvodní stránka: pohyb ===== */
@keyframes vx-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}



/* Odhalení při rolování (jen s JS) */
.vx-js .vx-reveal{opacity:0;transform:translateY(32px);transition:opacity 800ms var(--vx-ease) var(--vx-delay,0ms),transform 800ms var(--vx-ease) var(--vx-delay,0ms)}
.vx-js .vx-reveal.is-in{opacity:1;transform:none}

/* Slider produktů */
.vx-slider-nav{display:flex;gap:8px}
.vx-slider-btn{width:48px;height:48px;border:1px solid var(--wp--preset--color--ink);background:transparent;color:var(--wp--preset--color--ink);font-size:20px;line-height:1;cursor:pointer;transition:background var(--vx-ui) var(--vx-ease),color var(--vx-ui) var(--vx-ease),opacity var(--vx-ui) var(--vx-ease)}
.vx-slider-btn:hover:not(:disabled){background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper)}
.vx-slider-btn:disabled{opacity:.3;cursor:default}
.vx-slider .woocommerce ul.products{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:auto;scrollbar-width:none;padding-bottom:2px}
.vx-slider .woocommerce ul.products::-webkit-scrollbar{display:none}
.vx-slider .woocommerce ul.products li.product{flex:0 0 calc((100% - 72px)/4);scroll-snap-align:start}
.vx-slider-progress{height:1px;background:var(--vx-rule);margin-top:2rem;position:relative;overflow:hidden}
.vx-slider-progress span{position:absolute;left:0;top:0;height:100%;width:100%;background:var(--wp--preset--color--ink);transition:transform 120ms linear}

/* Jak nakupovat */

@media (max-width:1100px){.vx-slider .woocommerce ul.products li.product{flex-basis:calc((100% - 24px)/2)}}
@media (max-width:900px){
}
@media (max-width:560px){
  .vx-slider .woocommerce ul.products li.product{flex-basis:82%}
  .vx-slider-btn{width:44px;height:44px}
}
@media (prefers-reduced-motion:reduce){
  .vx-plate img{animation:none}
  .vx-js .vx-reveal{opacity:1;transform:none;transition:none}
}

/* ===== Mobil: hlavička a burger menu (podle referenčního webu) ===== */
@media (max-width:900px){
  .vx-header-right{--vx-hgap:.5rem}

  /* burger: tři tenké čáry, 44px plocha na ťuknutí */
  .vx-header .wp-block-navigation__responsive-container-open{display:grid;place-items:center;width:44px;height:44px;padding:0;margin:0 -12px 0 0;color:var(--wp--preset--color--ink)}
  .vx-header .wp-block-navigation__responsive-container-open svg,
  .vx-header .wp-block-navigation__responsive-container-close svg{display:none}
  .vx-header .wp-block-navigation__responsive-container-open::before{content:"";width:20px;height:15px;background:
    linear-gradient(currentColor,currentColor) 0 0/100% 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 50%/100% 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat}

  /* otevřené menu: celé okno, papír, lišta s logem a křížkem, pod ní řádky */
  .vx-header .wp-block-navigation__responsive-container.is-menu-open{padding:0;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink)}
  .vx-header .is-menu-open::before{content:"";position:absolute;left:var(--wp--preset--spacing--40);top:0;width:150px;height:var(--vx-bar);background:url("assets/logo.svg?v=20261030") left center/auto var(--vx-logo-h) no-repeat;filter:invert(1)}
  /* core menu při otevření sjíždí o 8 px; jen prolnutí, aby lišta nepřeskakovala */
  @keyframes vx-menu-in{from{opacity:0}to{opacity:1}}
  .vx-header .wp-block-navigation__responsive-container.is-menu-open{animation:vx-menu-in .15s ease-out}
  .vx-header .is-menu-open::after{content:"";position:absolute;left:0;right:0;top:calc(var(--vx-bar) - 1px);height:1px;background:var(--vx-rule)}
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-close{position:absolute;top:calc((var(--vx-bar) - 44px) / 2);right:calc(var(--wp--preset--spacing--40) - 12px);display:grid;place-items:center;width:44px;height:44px;padding:0}
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-close::before{content:"";width:15px;height:15px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15' fill='none' stroke='%231C1A18' stroke-linecap='square'%3E%3Cpath d='M.5.5l14 14M14.5.5l-14 14'/%3E%3C/svg%3E") center/contain no-repeat}
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-content{padding:var(--vx-bar) 0 0;align-items:stretch;justify-content:flex-start;overflow-y:auto}
  .vx-header .is-menu-open .wp-block-navigation__container{align-items:stretch;gap:0;width:100%;padding:0}
  .vx-header .is-menu-open .wp-block-navigation-item{width:100%;margin:0}
  .vx-header .is-menu-open .wp-block-navigation-item__content{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:0 var(--wp--preset--spacing--40);border-bottom:1px solid var(--vx-rule);font-family:var(--wp--preset--font-family--ui);font-weight:400;font-size:18px;line-height:1.3;transition:background var(--vx-ui) var(--vx-ease)}
  .vx-header .is-menu-open .wp-block-navigation-item__content:hover{background:var(--wp--preset--color--stone)}
  /* šipka vpravo jako v referenci */
  .vx-header .is-menu-open .wp-block-navigation-item__content::after{content:"";flex:none;width:12px;height:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%239A948B' stroke-linecap='square'%3E%3Cpath d='M4 1l5 5-5 5'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* prihlášený: otevřené menu začíná pod lištou administrace */
@media (max-width:900px){
  body.admin-bar .vx-header .wp-block-navigation__responsive-container.is-menu-open{top:32px}
}
@media (max-width:782px){
  body.admin-bar .vx-header .wp-block-navigation__responsive-container.is-menu-open{top:46px}
}
@media (max-width:900px){
  /* core pridává odstup pro admin lištu i dialogu; kontejner už je pod lištou posunutý */
  body.admin-bar .vx-header .is-menu-open .wp-block-navigation__responsive-dialog{margin-top:0}
}
@media (max-width:900px){
  .vx-header .is-menu-open .wp-block-navigation__container{row-gap:0!important;gap:0!important}
  .vx-header .is-menu-open .wp-block-navigation__container>*{margin-block:0!important}
}

/* Mobil: účet a košík jsou v burger menu, v liště zůstává jen logo a burger */
.vx-header .wp-block-navigation-item.vx-nav-mobile{display:none}
@media (max-width:600px){
  .vx-header-right>.wp-block-group{display:none}
  .vx-header-right{gap:0}
  .vx-header .wp-block-navigation-item.vx-nav-mobile{display:flex}
}
@media (max-width:900px){
  .vx-header .is-menu-open .wp-block-navigation-item__content{box-sizing:border-box;padding-left:var(--wp--preset--spacing--40)!important;padding-right:var(--wp--preset--spacing--40)!important}
}
@media (max-width:900px){
  /* core má vlastní horní odstup (56 px), který přebíjel lištu (--vx-bar) */
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:var(--vx-bar)!important}
  /* po otevření core přesune fokus do menu: bez prohlížečového rámečku, klávesnici ukazuje podklad */
  .vx-header .is-menu-open,.vx-header .is-menu-open .wp-block-navigation__responsive-close,
  .vx-header .is-menu-open .wp-block-navigation__responsive-dialog,.vx-header .is-menu-open .wp-block-navigation__responsive-container-content{outline:0}
  .vx-header .is-menu-open .wp-block-navigation-item__content:focus{outline:0}
  .vx-header .is-menu-open .wp-block-navigation-item__content:focus-visible{background:var(--wp--preset--color--stone)}
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-close:focus{outline:0}
}

/* Patička v mobilním menu (stejný obsah jako patička webu): vidět jen při otevřeném burger menu */
.vx-drawer-foot{display:none}
@media (max-width:600px){
  .vx-header:has(.is-menu-open) .vx-drawer-foot{display:block;position:fixed;left:0;right:0;bottom:0;z-index:100001;background:var(--wp--preset--color--paper);border-top:1px solid var(--vx-rule);padding:1.5rem var(--wp--preset--spacing--40) 2rem;font-size:14px}
  .vx-drawer-foot p{margin:0 0 .4rem}
  .vx-drawer-foot p:last-child{margin-bottom:0}
  /* seznam položek se nesmí schovat pod patičku */
  .vx-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-bottom:12rem}
}

/* Desktop, úvodní stránka: hlavička je průhledná přes fotografii; po začátku rolování dostane barvu pozadí (CSS scroll-timeline, bez JS).
   Bez podpory scroll-timeline nebo při omezeném pohybu zůstává hlavička plná jako jinde. */
@media (min-width:901px){
  @supports (animation-timeline:scroll()){
    @media (prefers-reduced-motion:no-preference){
      :root{--vx-hdr:79px}
      body.home .wp-site-blocks>header{margin-bottom:calc(-1 * var(--vx-hdr))}
      body.home .vx-header{background:transparent;border-bottom-color:transparent;animation:vx-solid linear both;animation-timeline:scroll(root);animation-range:0 60px}
      body.home .vx-plate img{height:100svh;min-height:520px;max-height:1000px}
    }
  }
}
@keyframes vx-solid{to{background-color:var(--wp--preset--color--paper);border-bottom-color:var(--vx-rule)}}

/* PC: řádek s logem a menu bez horního odsazení (blíž k hornímu řádku); lepení hlavičky přepočítané na nižší řádek */
@media (min-width:901px){
  :root{--vx-hdr:79px}
  .vx-header>.wp-block-group:last-child{padding-top:.625rem!important;padding-bottom:.25rem!important}
  .vx-plate img{height:calc(100svh - 79px)}
}

/* Hledání: lupa v hlavním řádku (PC), v burger menu pole s hledáním (mobil) */
.vx-search{margin:0}
.vx-search .wp-block-search__inside-wrapper{border:0!important;padding:0;gap:.5rem;align-items:center}
.vx-search .wp-block-search__button{background:transparent!important;color:var(--wp--preset--color--ink)!important;border:0!important;padding:0 2px!important;margin:0!important;min-width:0;width:auto;height:auto;line-height:0}
.vx-search .wp-block-search__button svg{width:18px;height:18px;fill:currentColor}
.vx-search .wp-block-search__input{font-size:14px;padding:.25rem .25rem;min-width:11rem;background:transparent}
.vx-header .vx-search-mobile{display:none}
@media (max-width:600px){
  .vx-header-right>.vx-search-pc{display:none}
  .vx-header .vx-search-mobile{display:block;width:100%;box-sizing:border-box;padding:1rem var(--wp--preset--spacing--40);border-bottom:1px solid var(--vx-rule)}
  .vx-search-mobile .wp-block-search__inside-wrapper{width:100%;border:0!important;background:var(--wp--preset--color--paper)}
  .vx-search-mobile .wp-block-search__input{flex:1;min-width:0;font-size:18px;padding:.5rem 0;border:0!important;background:var(--wp--preset--color--paper)}
}

/* Bez označování a tahání: hero fotografie a obě menu v hlavičce (pole hledání zůstává psatelné) */
.vx-header,.vx-header *,.vx-plate img{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.vx-header input,.vx-header textarea{-webkit-user-select:text;user-select:text}
.vx-header img,.vx-plate img{-webkit-user-drag:none;user-drag:none}

/* Pokladňa: doprava sa volí automaticky podľa sumy (jedna sadzba), výber sa nezobrazuje; cena je v súhrne objednávky. */
.wc-block-checkout__shipping-option{display:none}


/* Pätička vždy na spodku okna: aj pri krátkom obsahu (obchod bez produktov, prázdny košík, blog). */
.wp-site-blocks{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.admin-bar .wp-site-blocks{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px));min-height:calc(100dvh - var(--wp-admin--admin-bar--height,32px))}
.wp-site-blocks>main{flex:1 0 auto}

/* Bežiaci pruh pod hlavnou fotografiou: pomalý, pokojný, zastaví sa pri nabehnutí myšou */
.vx-ticker{overflow:hidden;background:var(--wp--preset--color--stone);border-bottom:1px solid var(--vx-rule);-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.vx-ticker-track{display:flex;width:max-content;animation:vx-ticker 110s linear infinite}
.vx-ticker:hover .vx-ticker-track{animation-play-state:paused}
.vx-ticker-set{display:flex;flex-shrink:0;list-style:none;margin:0;padding:0}
.vx-ticker-set li{display:flex;align-items:center;white-space:nowrap;padding:.9rem 0;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--ink)}
.vx-ticker-set li::after{content:"";flex:none;width:5px;height:5px;margin:0 2.5rem;background:var(--wp--preset--color--sale);transform:rotate(45deg)}
@keyframes vx-ticker{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .vx-ticker{-webkit-mask-image:none;mask-image:none}
  .vx-ticker-track{animation:none;width:auto;justify-content:center}
  .vx-ticker-set[aria-hidden]{display:none}
}

/* Blog: karty článkov */
.vx-cards .wp-block-post-featured-image{overflow:hidden;margin-bottom:1rem}
.vx-cards .wp-block-post-featured-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform var(--vx-hover) var(--vx-ease)}
.vx-cards .wp-block-post-featured-image a:hover img{transform:scale(1.03)}
.vx-cards .wp-block-post-date{font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
.vx-cards .wp-block-post-title{font-size:1.45rem;margin:.4rem 0 .6rem}
.vx-cards .wp-block-post-title a{color:var(--wp--preset--color--ink);text-decoration:none;border-bottom:1px solid transparent;transition:border-color var(--vx-ui) var(--vx-ease)}
.vx-cards .wp-block-post-title a:hover{border-bottom-color:var(--wp--preset--color--ink)}
.vx-cards .wp-block-post-excerpt{font-size:15px;color:var(--wp--preset--color--muted)}
.vx-cards .wp-block-post-excerpt__more-link{display:none}

/* Blog (stránka so zoznamom): nadpis zarovnaný s širokou mriežkou kariet */
main:has(.vx-cards)>.wp-block-post-title,main:has(.vx-cards)>.wp-block-group>.wp-block-post-title{max-width:var(--wp--style--global--wide-size,1280px);margin-bottom:2rem}

/* Detail článku */
.vx-post-date{font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--muted);margin:0 0 .75rem}
.wp-block-post-content h2{font-size:1.75rem;margin-top:2.5rem}
.wp-block-post-content blockquote{margin:2rem 0;padding:.25rem 0 .25rem 1.5rem;border-left:2px solid var(--wp--preset--color--sale)}
.wp-block-post-content blockquote p{font-family:var(--wp--preset--font-family--serif);font-size:1.4rem;font-weight:300;line-height:1.35}
.wp-block-post-content .wp-block-image{margin:2.5rem 0}
.wp-block-post-content .wp-block-image img{width:100%;height:auto}
.wp-block-post-content ul{padding-left:1.25rem}

/* Karty produktov: názov na jeden riadok (dlhší sa skráti trojbodkou), cena a tlačidlo ukotvené k spodku karty */
.woocommerce ul.products li.product{display:flex;flex-direction:column}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.woocommerce ul.products li.product>p:last-of-type{margin-top:auto}

/* Karty produktov: výber množstva a ikona košíka */
.woocommerce ul.products li.product .vx-buy{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:1rem 1.25rem 0}
.vx-qty{display:inline-flex;align-items:stretch;border:1px solid var(--vx-rule);height:44px}
.vx-qty-btn{width:34px;border:0;background:transparent;color:var(--wp--preset--color--ink);font-size:18px;line-height:1;cursor:pointer;transition:background var(--vx-ui) var(--vx-ease)}
.vx-qty-btn:hover{background:var(--wp--preset--color--stone)}
.vx-qty-input{width:38px;border:0;border-left:1px solid var(--vx-rule);border-right:1px solid var(--vx-rule);background:transparent;color:var(--wp--preset--color--ink);text-align:center;font:500 14px/1 var(--wp--preset--font-family--ui);padding:0;-moz-appearance:textfield;appearance:textfield}
.vx-qty-input::-webkit-outer-spin-button,.vx-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.woocommerce ul.products li.product .vx-buy .button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;position:relative}
.vx-buy .button .vx-ic{display:block}
.vx-buy .button.loading{opacity:.5;pointer-events:none}
.vx-buy .button.added .vx-ic{display:none}
.vx-buy .button.added::before{content:"✓";font-size:16px;line-height:1}
.woocommerce ul.products li.product .added_to_cart{display:none}

/* Stránka produktu: množstvo (stepper rovnako vysoký ako tlačidlo) a priestor pod posledným blokom */
.single-product form.cart{display:flex;flex-wrap:wrap;align-items:stretch;gap:.75rem}
.single-product form.cart .quantity{box-sizing:border-box;display:inline-flex;align-items:stretch;height:48px;margin:0;border:1px solid var(--vx-rule)}
.single-product form.cart .quantity .qty{width:56px;height:auto;min-height:0;margin:0;padding:0;border:0;border-left:1px solid var(--vx-rule);border-right:1px solid var(--vx-rule);border-radius:0;background:transparent;color:var(--wp--preset--color--ink);text-align:center;font:500 15px/1 var(--wp--preset--font-family--ui);-moz-appearance:textfield;appearance:textfield}
.single-product form.cart .quantity .qty::-webkit-outer-spin-button,.single-product form.cart .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.single-product form.cart .quantity .vx-qty-btn{width:42px}
.single-product form.cart .single_add_to_cart_button{height:48px;margin:0;padding:0 2rem}
body.single-product main{padding-top:2.5rem;padding-bottom:6rem}
@media(max-width:781px){body.single-product main{padding-top:1.5rem}}
/* Stránka produktu: vzdušné odstupy medzi sekciami (nákup, popis, súvisiace produkty) */
.single-product main>.wp-block-woocommerce-product-details{margin-top:4rem}
.single-product main>.wp-block-woocommerce-product-collection{margin-top:6rem}
.single-product main>.wp-block-woocommerce-product-collection .wp-block-heading{margin-bottom:2rem}
/* Záložky produktu: nadpis panelu opakuje názov záložky (Popis, Další informace), preto sa nezobrazuje */
.woocommerce-Tabs-panel--description>h2:first-child,.woocommerce-Tabs-panel--additional_information>h2:first-child{display:none}
/* Formulár nákupu: bez clearfix pseudo-prvkov a vnútorného odsadenia, aby začínal na rovnakej línii ako okolité prvky */
.single-product form.cart{padding:0}
.single-product form.cart::before,.single-product form.cart::after{content:none!important;display:none!important}
.single-product form.cart .quantity{margin-right:0}

/* Formulár recenzie: polia, popisky a tlačidlo v štýle webu */
#review_form #respond{max-width:44rem}
#review_form #reply-title{display:block;font-family:var(--wp--preset--font-family--serif);font-weight:300;font-size:1.6rem;line-height:1.2;color:var(--wp--preset--color--ink);margin:0 0 1.5rem}
#review_form .comment-form{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem 1.5rem}
#review_form .comment-form>*{grid-column:1/-1;margin:0}
#review_form .comment-form>.comment-form-author,#review_form .comment-form>.comment-form-email{grid-column:auto}
#review_form .comment-form label{display:block;margin:0 0 .5rem;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
#review_form .comment-form .required{color:var(--wp--preset--color--sale)}
#review_form .comment-notes{font-size:13px;color:var(--wp--preset--color--muted)}
#review_form .comment-form input[type=text],#review_form .comment-form input[type=email],#review_form .comment-form textarea{display:block;width:100%;box-sizing:border-box;margin:0;padding:.85rem 1rem;border:1px solid var(--vx-rule)!important;border-radius:0;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);font:400 15px/1.5 var(--wp--preset--font-family--ui);transition:border-color var(--vx-ui) var(--vx-ease),box-shadow var(--vx-ui) var(--vx-ease)}
#review_form .comment-form textarea{min-height:9rem;resize:vertical}
#review_form .comment-form input[type=text]:focus,#review_form .comment-form input[type=email]:focus,#review_form .comment-form textarea:focus{outline:0;border-color:var(--wp--preset--color--ink)!important;box-shadow:0 0 0 1px var(--wp--preset--color--ink)}
#review_form .comment-form-rating .stars{margin:0}
#review_form .comment-form-rating .stars a{color:var(--wp--preset--color--sale)}
#review_form .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:.65rem}
#review_form .comment-form-cookies-consent input{margin:.2rem 0 0;accent-color:var(--wp--preset--color--ink)}
#review_form .comment-form-cookies-consent label{margin:0;font-size:14px;font-weight:400;letter-spacing:0;text-transform:none}
#review_form .form-submit{margin-top:.5rem}
#review_form .form-submit .submit{cursor:pointer;padding:.9rem 2.25rem;border:1px solid var(--wp--preset--color--ink);border-radius:0;font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;transition:background var(--vx-hover) var(--vx-ease),color var(--vx-hover) var(--vx-ease)}
#review_form .form-submit .submit:hover{background:transparent;color:var(--wp--preset--color--ink)}
@media (max-width:640px){#review_form .comment-form{grid-template-columns:1fr}#review_form .comment-form>.comment-form-author,#review_form .comment-form>.comment-form-email{grid-column:1/-1}}

/* Sklad: zobrazuje sa priamo pod výberom množstva (pôvodný blok sa skrýva, text sa vkladá pod formulár) */
.single-product .wp-block-add-to-cart-form .stock:not(.vx-stock){display:none}
.single-product form.cart{margin:0 0 .4rem!important}
.single-product .vx-stock{margin:0 0 1.5rem;font-size:14px;color:var(--wp--preset--color--muted)}
.single-product .vx-stock.out-of-stock{color:var(--wp--preset--color--sale)}

/* ===== Svetlý / tmavý režim =====
   Farby webu idú cez premenné z theme.json, preto stačí prepísať paletu. Predvolene rozhoduje systém,
   atribút data-theme (nastavený prepínačom) má prednosť. */
:root{color-scheme:light}
:root[data-theme="dark"]{
  color-scheme:dark;
  --wp--preset--color--paper:#141210;--wp--preset--color--stone:#1C1A17;--wp--preset--color--stone-deep:#26231F;
  --wp--preset--color--rule:#3B3731;--wp--preset--color--ink:#F1EDE6;--wp--preset--color--muted:#A8A097;
  --wp--preset--color--ink-3:#847D72;--wp--preset--color--sale:#C9A96A;--vx-rule:#3B3731;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --wp--preset--color--paper:#141210;--wp--preset--color--stone:#1C1A17;--wp--preset--color--stone-deep:#26231F;
    --wp--preset--color--rule:#3B3731;--wp--preset--color--ink:#F1EDE6;--wp--preset--color--muted:#A8A097;
    --wp--preset--color--ink-3:#847D72;--wp--preset--color--sale:#C9A96A;--vx-rule:#3B3731;
  }
}
/* Logo je v súbore biele a v svetlom režime sa invertuje na čierne; v tmavom ostáva biele. */
:root[data-theme="dark"] .vx-logo img{filter:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .vx-logo img{filter:none}}
/* Plynulý prechod pri prepnutí */
.vx-theme-anim,.vx-theme-anim *{transition:background-color .25s ease,color .25s ease,border-color .25s ease,fill .25s ease!important}
/* Tlačidlo prepínača v hlavičke */
.vx-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--wp--preset--color--ink);cursor:pointer;border-radius:0;transition:background var(--vx-ui) var(--vx-ease)}
.vx-theme-toggle .vx-theme-sun{display:none}
:root[data-theme="dark"] .vx-theme-toggle .vx-theme-moon{display:none}
:root[data-theme="dark"] .vx-theme-toggle .vx-theme-sun{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .vx-theme-toggle .vx-theme-moon{display:none}
  :root:not([data-theme="light"]) .vx-theme-toggle .vx-theme-sun{display:block}
}

/* Tmavý režim: komponenty WooCommerce blokov (pokladňa, košík) majú pevné biele farby polí */

:root[data-theme="dark"] :is(.wc-block-checkout,.wc-block-cart,.wc-block-components-sidebar-layout) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea){background-color:var(--wp--preset--color--stone)!important;color:var(--wp--preset--color--ink)!important;border-color:var(--vx-rule)!important}
:root[data-theme="dark"] :is(.wc-block-components-text-input,.wc-block-components-select-input,.wc-block-components-combobox,.wc-blocks-components-select,.wc-block-components-textarea) label{color:var(--wp--preset--color--muted)!important}
:root[data-theme="dark"] :is(.wc-block-components-text-input,.wc-block-components-combobox) input::placeholder{color:var(--wp--preset--color--muted)!important}
:root[data-theme="dark"] .wc-blocks-components-select__expand,:root[data-theme="dark"] .wc-block-components-combobox .wc-block-components-combobox-control svg{fill:var(--wp--preset--color--ink)}
:root[data-theme="dark"] .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{background-color:var(--wp--preset--color--stone)!important;border-color:var(--vx-rule)!important}
:root[data-theme="dark"] .wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--wp--preset--color--ink)!important}
:root[data-theme="dark"] .wc-block-components-radio-control .wc-block-components-radio-control__input{background-color:var(--wp--preset--color--stone)!important;border-color:var(--vx-rule)!important}
:root[data-theme="dark"] .wc-block-components-radio-control__option-checked .wc-block-components-radio-control__input:checked::before{background:var(--wp--preset--color--ink)!important}
:root[data-theme="dark"] .wc-block-components-order-summary-item__quantity{background-color:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--paper)!important;border-color:var(--wp--preset--color--paper)!important;box-shadow:none}
:root[data-theme="dark"] .wc-block-components-product-metadata,:root[data-theme="dark"] .wc-block-components-totals-item__description{color:var(--wp--preset--color--muted)}
:root[data-theme="dark"] .wc-block-components-panel__button,:root[data-theme="dark"] .wc-block-components-button:not(.wc-block-components-checkout-place-order-button){color:var(--wp--preset--color--ink)}

@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) :is(.wc-block-checkout,.wc-block-cart,.wc-block-components-sidebar-layout) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea){background-color:var(--wp--preset--color--stone)!important;color:var(--wp--preset--color--ink)!important;border-color:var(--vx-rule)!important}
:root:not([data-theme="light"]) :is(.wc-block-components-text-input,.wc-block-components-select-input,.wc-block-components-combobox,.wc-blocks-components-select,.wc-block-components-textarea) label{color:var(--wp--preset--color--muted)!important}
:root:not([data-theme="light"]) :is(.wc-block-components-text-input,.wc-block-components-combobox) input::placeholder{color:var(--wp--preset--color--muted)!important}
:root:not([data-theme="light"]) .wc-blocks-components-select__expand,:root:not([data-theme="light"]) .wc-block-components-combobox .wc-block-components-combobox-control svg{fill:var(--wp--preset--color--ink)}
:root:not([data-theme="light"]) .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]{background-color:var(--wp--preset--color--stone)!important;border-color:var(--vx-rule)!important}
:root:not([data-theme="light"]) .wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--wp--preset--color--ink)!important}
:root:not([data-theme="light"]) .wc-block-components-radio-control .wc-block-components-radio-control__input{background-color:var(--wp--preset--color--stone)!important;border-color:var(--vx-rule)!important}
:root:not([data-theme="light"]) .wc-block-components-radio-control__option-checked .wc-block-components-radio-control__input:checked::before{background:var(--wp--preset--color--ink)!important}
:root:not([data-theme="light"]) .wc-block-components-order-summary-item__quantity{background-color:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--paper)!important;border-color:var(--wp--preset--color--paper)!important;box-shadow:none}
:root:not([data-theme="light"]) .wc-block-components-product-metadata,:root:not([data-theme="light"]) .wc-block-components-totals-item__description{color:var(--wp--preset--color--muted)}
:root:not([data-theme="light"]) .wc-block-components-panel__button,:root:not([data-theme="light"]) .wc-block-components-button:not(.wc-block-components-checkout-place-order-button){color:var(--wp--preset--color--ink)}
}

/* Tmavý režim, PC, úvodná stránka: priehľadná hlavička nad fotkou ostáva vo vzhľade svetlého režimu (tmavé logo a text)
   a farby sa plynule prelejú do tmavých v rovnakom úseku skrolu (0–60 px), v ktorom hlavička dostáva pozadie.
   Registrované vlastnosti (@property) umožňujú animovať farby aj bez JS. */
@property --vx-h-ink{syntax:'<color>';inherits:true;initial-value:#1C1A18}
@property --vx-h-paper{syntax:'<color>';inherits:true;initial-value:#FCFBF9}
@property --vx-h-stone{syntax:'<color>';inherits:true;initial-value:#F0EEEA}
@property --vx-h-rule{syntax:'<color>';inherits:true;initial-value:#D6D2CB}
@property --vx-h-inv{syntax:'<number>';inherits:true;initial-value:1}
@keyframes vx-header-to-dark{
  from{--vx-h-ink:#1C1A18;--vx-h-paper:#FCFBF9;--vx-h-stone:#F0EEEA;--vx-h-rule:#D6D2CB;--vx-h-inv:1}
  to{--vx-h-ink:#F1EDE6;--vx-h-paper:#141210;--vx-h-stone:#1C1A17;--vx-h-rule:#3B3731;--vx-h-inv:0}
}
@media (min-width:901px){
  @supports (animation-timeline:scroll()){
    @media (prefers-reduced-motion:no-preference){
      
:root[data-theme="dark"] body.home .vx-header{
  --wp--preset--color--ink:var(--vx-h-ink);--wp--preset--color--paper:var(--vx-h-paper);--wp--preset--color--stone:var(--vx-h-stone);--vx-rule:var(--vx-h-rule);
  animation:vx-solid linear both,vx-header-to-dark linear both;
  animation-timeline:scroll(root),scroll(root);
  animation-range:0 60px,0 60px;
}
:root[data-theme="dark"] body.home .vx-header .vx-logo img{filter:invert(var(--vx-h-inv))}

      @media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) body.home .vx-header{
  --wp--preset--color--ink:var(--vx-h-ink);--wp--preset--color--paper:var(--vx-h-paper);--wp--preset--color--stone:var(--vx-h-stone);--vx-rule:var(--vx-h-rule);
  animation:vx-solid linear both,vx-header-to-dark linear both;
  animation-timeline:scroll(root),scroll(root);
  animation-range:0 60px,0 60px;
}
:root:not([data-theme="light"]) body.home .vx-header .vx-logo img{filter:invert(var(--vx-h-inv))}
}
    }
  }
}

/* Tmavý režim: ikona košíka na kartách má rovnako jemný rámik ako výber množstva; hover ostáva výrazný (v svetlom režime ostáva pôvodná) */

:root[data-theme="dark"] .woocommerce ul.products li.product .vx-buy .button{border-color:var(--vx-rule)}
:root[data-theme="dark"] .woocommerce ul.products li.product .vx-buy .button:hover{border-color:var(--wp--preset--color--ink)}

@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .woocommerce ul.products li.product .vx-buy .button{border-color:var(--vx-rule)}
:root:not([data-theme="light"]) .woocommerce ul.products li.product .vx-buy .button:hover{border-color:var(--wp--preset--color--ink)}
}

/* Tmavý režim: plné tlačidlá ostávajú čierne s bielym textom (ako vo svetlom režime), jemný rámik ich oddelí od tmavého pozadia */
:root[data-theme="dark"] .single_add_to_cart_button,
:root[data-theme="dark"] button.single_add_to_cart_button.button.alt,
:root[data-theme="dark"] .wc-block-components-product-button__button,
:root[data-theme="dark"] .form-submit .submit,
:root[data-theme="dark"] .wc-block-components-checkout-place-order-button,
:root[data-theme="dark"] .wc-block-cart__submit-button,
:root[data-theme="dark"] .wc-block-components-button:not(.outlined):not(.is-link):not(.wc-block-components-panel__button),
:root[data-theme="dark"] .wp-block-button:not(.is-style-outline)>.wp-block-button__link{background-color:#0B0A09!important;color:#F1EDE6!important;border:1px solid var(--vx-rule)!important}
:root[data-theme="dark"] .single_add_to_cart_button:hover,
:root[data-theme="dark"] button.single_add_to_cart_button.button.alt:hover,
:root[data-theme="dark"] .wc-block-components-product-button__button:hover,
:root[data-theme="dark"] .form-submit .submit:hover,
:root[data-theme="dark"] .wc-block-components-checkout-place-order-button:hover,
:root[data-theme="dark"] .wc-block-cart__submit-button:hover,
:root[data-theme="dark"] .wc-block-components-button:not(.outlined):not(.is-link):not(.wc-block-components-panel__button):hover,
:root[data-theme="dark"] .wp-block-button:not(.is-style-outline)>.wp-block-button__link:hover{background-color:#1C1A17!important;color:#F1EDE6!important;border-color:var(--vx-rule)!important}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .single_add_to_cart_button,
:root:not([data-theme="light"]) button.single_add_to_cart_button.button.alt,
:root:not([data-theme="light"]) .wc-block-components-product-button__button,
:root:not([data-theme="light"]) .form-submit .submit,
:root:not([data-theme="light"]) .wc-block-components-checkout-place-order-button,
:root:not([data-theme="light"]) .wc-block-cart__submit-button,
:root:not([data-theme="light"]) .wc-block-components-button:not(.outlined):not(.is-link):not(.wc-block-components-panel__button),
:root:not([data-theme="light"]) .wp-block-button:not(.is-style-outline)>.wp-block-button__link{background-color:#0B0A09!important;color:#F1EDE6!important;border:1px solid var(--vx-rule)!important}
:root:not([data-theme="light"]) .single_add_to_cart_button:hover,
:root:not([data-theme="light"]) button.single_add_to_cart_button.button.alt:hover,
:root:not([data-theme="light"]) .wc-block-components-product-button__button:hover,
:root:not([data-theme="light"]) .form-submit .submit:hover,
:root:not([data-theme="light"]) .wc-block-components-checkout-place-order-button:hover,
:root:not([data-theme="light"]) .wc-block-cart__submit-button:hover,
:root:not([data-theme="light"]) .wc-block-components-button:not(.outlined):not(.is-link):not(.wc-block-components-panel__button):hover,
:root:not([data-theme="light"]) .wp-block-button:not(.is-style-outline)>.wp-block-button__link:hover{background-color:#1C1A17!important;color:#F1EDE6!important;border-color:var(--vx-rule)!important}
}

/* Tmavý režim: vysúvací mini košík (prázdny aj plný stav) má tmavé pozadie a svetlý text */
:root[data-theme="dark"] .wc-block-components-drawer,
:root[data-theme="dark"] .wc-block-mini-cart__drawer,
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-contents,
:root[data-theme="dark"] .wp-block-woocommerce-filled-mini-cart-contents-block,
:root[data-theme="dark"] .wp-block-woocommerce-empty-mini-cart-contents-block,
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-title-block,
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-items-block,
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-footer-block,
:root[data-theme="dark"] .wc-block-mini-cart__template-part,
:root[data-theme="dark"] .wc-block-mini-cart__footer{background-color:var(--wp--preset--color--paper)!important;color:var(--wp--preset--color--ink)!important}
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-contents :is(h1,h2,h3,p,strong,span,li,dt,dd,label){color:inherit}
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-contents :is(a:not(.wc-block-components-button):not(.wp-element-button)){color:var(--wp--preset--color--ink)}
:root[data-theme="dark"] .wc-block-mini-cart__footer{border-top-color:var(--vx-rule)!important}
:root[data-theme="dark"] .wp-block-woocommerce-mini-cart-contents :is(.wc-block-cart-items__row,.wc-block-mini-cart__items){border-color:var(--vx-rule)!important}
:root[data-theme="dark"] .wc-block-components-drawer__close svg{fill:var(--wp--preset--color--ink)}
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]) .wc-block-components-drawer,
:root:not([data-theme="light"]) .wc-block-mini-cart__drawer,
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-contents,
:root:not([data-theme="light"]) .wp-block-woocommerce-filled-mini-cart-contents-block,
:root:not([data-theme="light"]) .wp-block-woocommerce-empty-mini-cart-contents-block,
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-title-block,
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-items-block,
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-footer-block,
:root:not([data-theme="light"]) .wc-block-mini-cart__template-part,
:root:not([data-theme="light"]) .wc-block-mini-cart__footer{background-color:var(--wp--preset--color--paper)!important;color:var(--wp--preset--color--ink)!important}
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-contents :is(h1,h2,h3,p,strong,span,li,dt,dd,label){color:inherit}
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-contents :is(a:not(.wc-block-components-button):not(.wp-element-button)){color:var(--wp--preset--color--ink)}
:root:not([data-theme="light"]) .wc-block-mini-cart__footer{border-top-color:var(--vx-rule)!important}
:root:not([data-theme="light"]) .wp-block-woocommerce-mini-cart-contents :is(.wc-block-cart-items__row,.wc-block-mini-cart__items){border-color:var(--vx-rule)!important}
:root:not([data-theme="light"]) .wc-block-components-drawer__close svg{fill:var(--wp--preset--color--ink)}
}

/* Mobil: prepínač režimu naľavo od burger menu s väčšou medzerou; v tmavom režime biele logo a krížik v otvorenom menu */
@media (max-width:600px){
  .vx-header-right>p:has(.vx-theme-toggle){order:-1;margin:0 .75rem 0 0}
  .vx-header-right>p:has(.vx-theme-toggle) .vx-theme-toggle{display:flex}
}
@media (max-width:900px){
  :root[data-theme="dark"] .vx-header .is-menu-open::before{filter:none}
:root[data-theme="dark"] .vx-header .is-menu-open .wp-block-navigation__responsive-container-close::before{filter:invert(1)}
  @media (prefers-color-scheme:dark){
    :root:not([data-theme="light"]) .vx-header .is-menu-open::before{filter:none}
:root:not([data-theme="light"]) .vx-header .is-menu-open .wp-block-navigation__responsive-container-close::before{filter:invert(1)}
  }
}

/* Snack po pridaní do košíka (vpravo dole) */
.vx-snack{position:fixed;right:1.5rem;bottom:1.5rem;z-index:100001;box-sizing:border-box;width:min(380px,calc(100vw - 2rem));padding:1rem;background:var(--wp--preset--color--ink);color:var(--wp--preset--color--paper);font-size:14px;line-height:1.4;box-shadow:0 8px 28px rgba(0,0,0,.28);opacity:0;transform:translateY(1rem);pointer-events:none;transition:opacity .25s var(--vx-ease),transform .25s var(--vx-ease)}
.vx-snack.is-on{opacity:1;transform:none;pointer-events:auto}
.vx-snack-close{position:absolute;top:.2rem;right:.35rem;width:28px;height:28px;padding:0;border:0;background:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;opacity:.7}
.vx-snack-close::before{content:"\00d7"}
.vx-snack-close:hover,.vx-snack-close:focus-visible{opacity:1}
.vx-snack-row{display:flex;align-items:center;gap:.9rem;padding-right:1.5rem}
.vx-snack-img{flex:none;width:64px;height:64px;object-fit:cover;background:#fff}
.vx-snack-text{flex:1 1 auto;min-width:0}
.vx-snack-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:inherit;font-weight:500;text-decoration:none}
.vx-snack-name[hidden]{display:none}
.vx-snack-msg{margin-top:.2rem;font-size:13px;opacity:.75}
.vx-snack-actions{display:flex;gap:.6rem;margin-top:.9rem}
.vx-snack-btn{flex:1 1 0;box-sizing:border-box;padding:.55rem .75rem;border:1px solid currentColor;background:transparent;color:inherit;font-size:12px;font-weight:500;letter-spacing:.12em;text-align:center;text-transform:uppercase;text-decoration:none;transition:background-color .15s ease,opacity .15s ease}
.vx-snack-btn--primary{background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);border-color:var(--wp--preset--color--paper)}
.vx-snack-btn:not(.vx-snack-btn--primary):hover,.vx-snack-btn:not(.vx-snack-btn--primary):focus-visible{background:color-mix(in srgb,currentColor 14%,transparent)}
.vx-snack-btn--primary:hover,.vx-snack-btn--primary:focus-visible{opacity:.82}
@media (max-width:600px){.vx-snack{right:1rem;bottom:1rem;left:1rem;width:auto}}
@media (prefers-reduced-motion:reduce){.vx-snack{transition:none}}

/* Pokladňa a košík: rekapitulácia sa pri prepočte zjemní a zobrazí sa indikátor načítavania */
.vx-busy{position:relative;pointer-events:none}
.vx-busy>*{opacity:.45;transition:opacity .15s ease}
.vx-busy::after{content:"";position:absolute;top:50%;left:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border:2px solid var(--vx-rule);border-top-color:var(--wp--preset--color--ink);border-radius:50%;animation:vx-spin .7s linear infinite;z-index:2}
@keyframes vx-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.vx-busy::after{animation-duration:2s}}

/* Odznak počtu kusov pri ikone košíka: farby z témy, aby bol čitateľný v svetlom aj tmavom režime (inline štýl od WooCommerce sa prebíja) */
.wc-block-mini-cart__badge{background-color:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--paper)!important}

/* Počet kusov na obrázku položky v rekapitulácii objednávky: číslo dedí farbu odznaku (WooCommerce mu dáva pevne biely text) */
.wc-block-components-order-summary-item__quantity{background-color:var(--wp--preset--color--ink)!important;color:var(--wp--preset--color--paper)!important;border-color:var(--wp--preset--color--paper)!important}
.wc-block-components-order-summary-item__quantity span{color:inherit!important}

/* Päta na telefóne: väčšie logo na stred, texty ostávajú vľavo (stĺpce sa pod 782 px skladajú pod seba). */
@media (max-width:781px){
  .vx-footer .wp-block-column:first-child .vx-logo{display:flex;justify-content:center}
  .vx-footer .wp-block-column:first-child .vx-logo img{height:88px;width:auto;margin:0 auto}
}

/* Košík a pokladňa: ikona košíka v hlavičke ostáva viditeľná, ale vypnutá (WooCommerce ju tam skryje cez visibility:hidden). */
.vx-header .wc-block-mini-cart[aria-hidden="true"]{visibility:visible!important;opacity:.35}
.vx-header .wc-block-mini-cart[aria-hidden="true"] .wc-block-mini-cart__button{cursor:not-allowed}

/* Pokladňa: účty nemáme, text „prezeráte ako návštevník“ je zbytočný. */
.wc-block-checkout__guest-checkout-notice{display:none!important}

/* Kontaktný formulár */
.vx-contact{width:100%}
.vx-contact-form{max-width:640px}
.vx-contact-title{font-weight:300;margin:0 0 1.5rem}
.vx-contact-form p{margin:0 0 1.1rem}
.vx-contact-form label{display:block;margin:0 0 .4rem;font-size:13px;letter-spacing:.04em;color:var(--wp--preset--color--muted)}
.vx-contact-form input[type=text],.vx-contact-form input[type=email],.vx-contact-form textarea{width:100%;box-sizing:border-box;padding:.85rem 1rem;border:1px solid color-mix(in srgb,var(--wp--preset--color--ink) 55%,transparent)!important;border-radius:0;background:transparent;color:var(--wp--preset--color--ink);font:inherit}
.vx-contact-form input:focus,.vx-contact-form textarea:focus{outline:2px solid var(--wp--preset--color--ink);outline-offset:1px}
.vx-contact-form textarea{resize:vertical;min-height:9rem}
.vx-contact-note{font-size:13px;color:var(--wp--preset--color--muted)}
.vx-contact-note a{color:inherit}
.vx-contact-send{cursor:pointer}
.vx-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.vx-contact-msg{margin:0 0 1.25rem;padding:.9rem 1rem;border:1px solid var(--vx-rule)}
.vx-contact-msg.is-ok{border-color:#3d8b5a}
.vx-contact-msg.is-error{border-color:#c0392b}
.vx-req{color:#d93025;font-weight:600}
.vx-contact-send:disabled{opacity:.4;cursor:not-allowed}
.vx-contact-form input:focus,.vx-contact-form textarea:focus{border-color:var(--wp--preset--color--ink)!important}

/* Pokladňa: „adresa je výdajný box“ je len pri dodacej adrese, nie pri samostatnej fakturačnej. */
.wc-block-components-checkbox:has(#billing-vitalerex-parcel-box){display:none!important}

/* Potvrdenie objednávky: dodacia a fakturačná adresa majú rovnakú výšku (dodacia má navyše riadok o boxe). */
.wc-block-order-confirmation-address-wrapper>.wp-block-column{display:flex;flex-direction:column}
.wc-block-order-confirmation-shipping-wrapper,.wc-block-order-confirmation-billing-wrapper{display:flex;flex-direction:column;flex:1 1 auto}
.wc-block-order-confirmation-shipping-address,.wc-block-order-confirmation-billing-address{flex:1 1 auto;box-sizing:border-box}

/* Pokladňa: skryté pole (pasca na roboty) je mimo obrazovky. */
.wc-block-components-text-input:has(input[id*="vitalerex-ref"]){position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Mini-košík: zatvorený panel (aria-hidden) nesmie mať fokusovateľné prvky (tlačidlo Zavrieť, odkaz) – pre čítačky obrazovky a klávesnicu. */
.wc-block-mini-cart__drawer[aria-hidden="true"]{visibility:hidden;transition:visibility 0s linear .5s}
.wc-block-mini-cart__drawer[aria-hidden="false"]{visibility:visible}

/* Stránka po objednávke: výrazný odsek s výzvou na potvrdenie e-mailom */
.wc-block-order-confirmation-status p:has(.vx-note){background:var(--wp--preset--color--stone);color:var(--wp--preset--color--ink);border:1px solid var(--wp--preset--color--ink);border-left-width:5px;padding:1.1rem 1.4rem;margin:1.25rem 0;font-size:1.125rem;line-height:1.55;font-weight:500}
.wc-block-order-confirmation-status .vx-note--wait::before{content:"✉ ";font-size:1.25em}
