/* ==========================================================================
   Fotta — global design tokens, shared container width, site preloader.

   Loads on every page (was: WPCode "(STYLE) GLOBAL"). Everything else
   (navbar.css, shop.css) builds on the tokens defined here, so the navbar
   and the cart/checkout templates line up on the same grid.
   ========================================================================== */

:root {
  /* --- ink -------------------------------------------------------------
     Muted text is deliberately dark. Anything lighter than these values
     started disappearing into the filled panels. */
  --fotta-ink: #12100d;
  --fotta-ink-soft: rgba(18, 16, 13, 0.74);
  --fotta-ink-faint: rgba(18, 16, 13, 0.56);
  --fotta-ink-ghost: rgba(18, 16, 13, 0.18);

  /* --- surfaces --------------------------------------------------------
     The page is white. Separation comes from FILLED panels, not from
     outlines — borders are down to dividers and a couple of edges. */
  --fotta-paper: #ffffff;
  --fotta-canvas: #ffffff;
  --fotta-surface: #f2f0ea;
  --fotta-surface-2: #e6e3da;

  --fotta-line: rgba(18, 16, 13, 0.1);
  --fotta-line-strong: rgba(18, 16, 13, 0.2);

  /* --- brand colours ---------------------------------------------------
     Saturated on purpose. The tints are strong enough to read as colour
     blocks on white, not as washed-out pastel. */
  --fotta-accent: #ec8700;          /* ginger orange — primary */
  --fotta-accent-dark: #c26e00;
  --fotta-accent-ink: #1a1207;
  --fotta-accent-soft: #ffe0b0;
  --fotta-accent-tint: #fff3e0;

  --fotta-bio: #5faa00;             /* bio green */
  --fotta-bio-soft: #daf2b4;
  --fotta-beet: #8a25b0;            /* beetroot purple */
  --fotta-beet-soft: #eed4f8;
  --fotta-apple: #dc2b20;           /* apple red */
  --fotta-apple-soft: #ffd5d1;
  --fotta-sky: #0072bd;             /* info / delivery blue */
  --fotta-sky-soft: #cfe8fa;

  --fotta-ok: #0b8f44;
  --fotta-ok-soft: #cdeedb;
  --fotta-warn: #c67000;

  /* --- shape ------------------------------------------------------------ */
  --fotta-radius-sm: 10px;
  --fotta-radius: 16px;
  --fotta-radius-lg: 24px;
  --fotta-radius-xl: 32px;
  --fotta-pill: 999px;

  /* Flat by design: depth comes from borders and colour blocks, never from
     shadows, glows or blurs. Anything that needs to read as raised gets a
     stronger border or a filled background instead. */

  --fotta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fotta-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- layout -----------------------------------------------------------
     THE single source of truth for horizontal rhythm. The navbar's inner
     row and the cart/checkout templates both read these, which is what
     keeps the logo lined up with the content below it. */
  --fotta-container: 1240px;
  --fotta-gutter: 24px;
  --fotta-nav-height: 74px;
}

@media (max-width: 720px) {
  :root {
    --fotta-gutter: 18px;
    --fotta-nav-height: 64px;
  }
}

.u-body {
  font-family: SatoshiMedium !important;
}

.fotta-pack-card {
  border: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'SatoshiMedium' !important;
}

p:not(.u-text-variant) {
  font-family: 'SatoshiMedium';
}

/* Shared helper: anything that should sit on the site's content grid. */
.fotta-container {
  width: 100%;
  max-width: var(--fotta-container);
  margin-inline: auto;
  padding-inline: var(--fotta-gutter);
  box-sizing: border-box;
}

/* ==========================================================================
   Preloader

   Printed as the first element inside <body> and removed once the window has
   loaded (or after a hard timeout, so a slow third-party script can never
   leave the site behind a white sheet). The logo is drawn twice: a faint
   outline copy and a clipped copy that fills up with the brand gradient as
   the progress bar advances.
   ========================================================================== */

.fotta-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--fotta-paper, #fff);
  font-family: "SatoshiMedium", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 0.5s var(--fotta-ease-out), visibility 0.5s;
  overflow: hidden;
}

/* Flat brand accents in the corners — solid shapes, no blur. */
.fotta-preloader::before,
.fotta-preloader::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.fotta-preloader::before {
  top: 0;
  left: 0;
  width: 34vmin;
  height: 10px;
  background: var(--fotta-accent);
}
.fotta-preloader::after {
  right: 0;
  bottom: 0;
  width: 22vmin;
  height: 10px;
  background: var(--fotta-bio);
}

.fotta-preloader__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.fotta-preloader__mark {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
}

/* Rotating dashed ring around the logo. */
.fotta-preloader__ring {
  position: absolute;
  inset: 0;
  animation: fotta-spin 7s linear infinite;
}
.fotta-preloader__ring circle {
  fill: none;
  stroke-linecap: round;
}
.fotta-preloader__ring .track {
  stroke: rgba(20, 25, 23, 0.08);
  stroke-width: 2;
}
.fotta-preloader__ring .dash {
  stroke: var(--fotta-accent);
  stroke-width: 3;
  stroke-dasharray: 46 210;
}

@keyframes fotta-spin {
  to { transform: rotate(360deg); }
}

/* The drop that "fills". */
.fotta-preloader__drop {
  width: 66px;
  height: 66px;
  overflow: visible;
}
.fotta-preloader__drop .outline {
  fill: none;
  stroke: rgba(20, 25, 23, 0.16);
  stroke-width: 3;
}
.fotta-preloader__drop .fill {
  fill: var(--fotta-accent);
  transform-origin: center bottom;
  animation: fotta-fill 1.9s var(--fotta-ease) infinite;
}

@keyframes fotta-fill {
  0% { transform: scaleY(0.05); opacity: 0.55; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.05); opacity: 0.55; }
}

/* !important throughout: on the checkout template the theme's own image
   rules win and stretch this to the logo's native pixel size. */
.fotta-preloader__logo {
  height: 26px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 26px !important;
  min-width: 0 !important;
  display: block !important;
  opacity: 0.9;
}

.fotta-preloader__word {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fotta-ink-faint, rgba(20, 25, 23, 0.42));
  margin: 0;
}

.fotta-preloader__bar {
  position: relative;
  z-index: 1;
  width: min(220px, 52vw);
  height: 3px;
  border-radius: var(--fotta-pill);
  background: rgba(20, 25, 23, 0.09);
  overflow: hidden;
}
.fotta-preloader__bar i {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: var(--fotta-accent);
  transition: width 0.35s var(--fotta-ease-out);
}

/* Leaving: the sheet lifts and the page is revealed. */
.fotta-preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.fotta-preloader.is-done .fotta-preloader__stage {
  transform: translateY(-10px) scale(0.97);
  transition: transform 0.5s var(--fotta-ease-out);
}

html.fotta-loading,
body.fotta-loading {
  overflow: hidden !important;
}

/* First paint of the page itself, once the sheet is gone. */
body.fotta-revealed .fotta-reveal {
  animation: fotta-reveal 0.6s var(--fotta-ease-out) both;
}
@keyframes fotta-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fotta-preloader,
  .fotta-preloader__ring,
  .fotta-preloader__drop .fill,
  body.fotta-revealed .fotta-reveal {
    animation: none !important;
    transition: opacity 0.2s linear !important;
  }
}

/* ==========================================================================
   Nicepage: obal shortcodu môže byť širší než okno
   ==========================================================================
   Nicepage renders its shortcode wrappers (.u-shortcode, .custom-expanded) at
   the width of the design canvas — 1440px — even in a 1280px window. Anything
   centred inside them is therefore centred in 1440, so its right-hand edge
   lands past the right edge of the screen and is simply not visible. On a
   1280 or 1366 laptop that quietly cut the cart button off the navbar and the
   contact column off the footer.

   Capping our own full-width roots at the viewport fixes both: the wrapper
   starts at x=0, so 100vw spans exactly the visible area and the container
   inside it centres against the screen again. */
.fotta-navbar,
.fotta-footer {
  max-width: 100vw;
  box-sizing: border-box;
}
