/**
 * VOPEČBUŘT prelaunch RC1 – finální stabilizační vrstva.
 * Neobsahuje ani nedistribuuje fontové soubory.
 */

:root {
  --vb-display-font: "veneer-two", Impact, "Arial Narrow", sans-serif;
  --vb-body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Jednotná typografie: display font jen na nadpisy, systémový font na UI a text. */
.vb-theme,
.vb-theme input,
.vb-theme textarea,
.vb-theme select,
.vb-theme button,
.vb-theme .button,
.vb-theme .vb-btn,
.vb-theme .woocommerce-message,
.vb-theme .woocommerce-info,
.vb-theme .woocommerce-error,
.vb-theme table,
.vb-theme label,
.vb-theme .price,
.vb-theme .amount,
.vb-theme .vb-eyebrow,
.vb-theme .vb-kicker,
.vb-theme .vb-product-card__kicker,
.vb-theme .vb-bought-card__kicker,
.vb-theme .vb-nav,
.vb-theme .vb-topbar,
.vb-theme .vb-footer {
  font-family: var(--vb-body-font) !important;
}

.vb-theme h1,
.vb-theme h2,
.vb-theme h3,
.vb-theme h4,
.vb-theme h5,
.vb-theme h6,
.vb-theme .entry-title,
.vb-theme .product_title,
.vb-theme .woocommerce-loop-product__title,
.vb-theme .vb-category-card strong,
.vb-theme .vb-hero-card strong,
.vb-theme .vb-shop-hero h1,
.vb-theme .vb-shop-products-intro-242 strong,
.vb-theme .vb-shop-categories-242__head strong {
  font-family: var(--vb-display-font) !important;
  font-weight: 400 !important;
  font-style: normal;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.vb-theme h1,
.vb-theme h2,
.vb-theme h3,
.vb-theme .product_title,
.vb-theme .woocommerce-loop-product__title {
  text-wrap: balance;
}

.vb-theme p,
.vb-theme li,
.vb-theme td,
.vb-theme th,
.vb-theme address,
.vb-theme label,
.vb-theme a,
.vb-theme span,
.vb-theme strong,
.vb-theme small {
  min-width: 0;
}

.vb-theme img,
.vb-theme svg,
.vb-theme video,
.vb-theme iframe {
  max-width: 100%;
}

.vb-theme .entry-content a,
.vb-theme .woocommerce-customer-details a,
.vb-theme code,
.vb-theme pre {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vb-theme .price,
.vb-theme .amount,
.vb-theme .vb-cart-inner strong,
.vb-theme .woocommerce-Price-amount,
.vb-theme .woocommerce-Price-currencySymbol {
  white-space: nowrap;
}

/* Grid děti musí smět zmenšit obsah; jinak flex/grid často způsobí overflow. */
.vb-theme .vb-hero__inner > *,
.vb-theme .vb-trust__grid > *,
.vb-theme .vb-section-head > *,
.vb-theme .vb-product-grid > *,
.vb-theme .vb-category-grid > *,
.vb-theme .vb-story__grid > *,
.vb-theme .vb-craft__grid > *,
.vb-theme .vb-care-grid > *,
.vb-theme .vb-footer__grid > *,
.vb-theme .vb-bought-together__grid > *,
.vb-theme ul.products > li.product {
  min-width: 0 !important;
}

/* Homepage a katalog – stabilní, postupné skládání místo skoku 4 -> 1. */
.vb-theme .vb-product-grid,
.vb-theme ul.products,
.vb-theme .vb-bought-together__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2vw, 24px) !important;
}

.vb-theme ul.products::before,
.vb-theme ul.products::after {
  display: none !important;
}

.vb-theme ul.products > li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.vb-theme .vb-category-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.vb-theme .vb-category-card--wide {
  grid-column: span 2 !important;
}

.vb-theme .vb-care-grid--single {
  grid-template-columns: minmax(0, 1fr) !important;
}

.vb-theme .vb-care-grid--single .vb-care-card {
  width: 100%;
  min-height: clamp(320px, 42vw, 480px);
}

.vb-theme .vb-footer__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1.15fr) !important;
  gap: clamp(28px, 4vw, 52px) !important;
}

.vb-theme .vb-footer__menu a,
.vb-theme .vb-nav__list a,
.vb-theme .vb-product-card h3 a,
.vb-theme ul.products li.product .woocommerce-loop-product__title {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.vb-theme .vb-hero h1 {
  font-size: clamp(3.2rem, 7.2vw, 7.4rem) !important;
  line-height: .84 !important;
  max-width: 11ch;
}

.vb-theme .vb-product-card h3,
.vb-theme ul.products li.product .woocommerce-loop-product__title,
.vb-theme .vb-bought-card h3 {
  font-size: clamp(1.85rem, 2.5vw, 2.65rem) !important;
  line-height: .94 !important;
}

.vb-theme .vb-product-card__button,
.vb-theme .vb-bought-card__button,
.vb-theme ul.products li.product .button {
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.vb-theme .vb-product-card__button.added,
.vb-theme .vb-bought-card__button.added {
  opacity: 1;
}

.vb-theme .vb-section-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px) !important;
  gap: clamp(28px, 4vw, 52px) !important;
}

.vb-theme .vb-trust__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.vb-theme .vb-hero__inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 410px) !important;
}

/* WooCommerce tabulky a formuláře nesmějí přesahovat viewport. */
.vb-theme .woocommerce,
.vb-theme .woocommerce-cart-form,
.vb-theme .woocommerce-checkout,
.vb-theme .woocommerce-checkout-review-order,
.vb-theme .cart_totals,
.vb-theme table.shop_table {
  max-width: 100%;
  min-width: 0;
}

.vb-theme .woocommerce-cart-form {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vb-theme input,
.vb-theme textarea,
.vb-theme select {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .vb-theme .vb-product-grid,
  .vb-theme ul.products,
  .vb-theme .vb-bought-together__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .vb-theme .vb-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vb-theme .vb-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
    gap: 40px !important;
  }
}

@media (max-width: 980px) {
  .vb-theme .vb-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vb-theme .vb-category-card--wide {
    grid-column: span 1 !important;
    min-height: 360px !important;
  }

  .vb-theme .vb-hero__inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vb-theme .vb-hero-card {
    max-width: 600px;
  }

  .vb-theme .vb-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vb-theme .vb-trust__grid > div:nth-child(2n) {
    border-right: 0 !important;
  }
}

@media (max-width: 820px) {
  .vb-theme .vb-product-grid,
  .vb-theme ul.products,
  .vb-theme .vb-bought-together__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vb-theme .vb-section-head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .vb-theme .vb-footer__bottom {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
}

@media (max-width: 620px) {
  .vb-theme .vb-category-grid,
  .vb-theme .vb-trust__grid,
  .vb-theme .vb-footer__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vb-theme .vb-footer__grid {
    gap: 32px !important;
  }

  .vb-theme .vb-trust__grid > div {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(242, 226, 201, .14);
    padding-right: 0 !important;
    padding-bottom: 16px;
  }

  .vb-theme .vb-trust__grid > div:last-child {
    border-bottom: 0;
  }

  .vb-theme .vb-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.6rem) !important;
    line-height: .88 !important;
    max-width: 100%;
  }

  .vb-theme .vb-hero__actions,
  .vb-theme .vb-empty-cart-218__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .vb-theme .vb-hero__actions .vb-btn,
  .vb-theme .vb-empty-cart-218__actions .button {
    width: 100% !important;
  }

  .vb-theme .vb-cart-link {
    min-width: 0;
    padding-inline: 10px !important;
  }

  .vb-theme .vb-cart-inner > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 520px) {
  .vb-theme .vb-product-grid,
  .vb-theme ul.products,
  .vb-theme .vb-bought-together__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vb-theme .vb-category-card,
  .vb-theme .vb-category-card--wide {
    min-height: 300px !important;
  }

  .vb-theme .vb-product-card h3,
  .vb-theme ul.products li.product .woocommerce-loop-product__title,
  .vb-theme .vb-bought-card h3 {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-theme *,
  .vb-theme *::before,
  .vb-theme *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.vb-theme .vb-footer__legal-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.vb-theme .vb-footer__legal-actions a,
.vb-theme .vb-footer__cookie-settings {
  color: rgba(242, 226, 201, .72) !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 2px 0 !important;
  cursor: pointer;
}

.vb-theme .vb-footer__legal-actions a:hover,
.vb-theme .vb-footer__legal-actions a:focus-visible,
.vb-theme .vb-footer__cookie-settings:hover,
.vb-theme .vb-footer__cookie-settings:focus-visible {
  color: var(--vb-fire) !important;
}

@media (max-width: 820px) {
  .vb-theme .vb-footer__bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .vb-theme .vb-footer__legal-actions {
    justify-content: start;
  }
}
