/* ============================================================
   DRUZICOVA – GLOBAL STYLES
============================================================ */

/* --- Základné nastavenia --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: #111;
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* --- Odkazy --- */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Nadpisy --- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px 0;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.3px;
}

h1 { font-size: 52px; }
h2 { font-size: 44px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
p  { margin: 0 0 16px 0; }

/* --- Obrázky --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Univerzálne kontajnery --- */
.wrapper,
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: var(--wrapper-height);
  --wrapper-height: 6rem;
}

/* Ak už používaš .wrapper v headeri, toto je OK */
.wrapper:after,
.container:after {
  content: "";
  display: table;
  clear: both;
}

/* --- Tlačidlá / button linky --- */
.btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-block;
  background: #0ea56f;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  opacity: 0.92;
  text-decoration: none;
}

/* --- Form prvky --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
}

textarea { min-height: 140px; }

/* --- Helpery --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Gutenberg: rozumné šírky --- */
.entry-content,
.wp-site-blocks,
.site-main {
  width: 100%;
}

.entry-content > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* plná šírka blokov (cover, group alignfull) */
.entry-content > .alignfull {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* široké bloky */
.entry-content > .alignwide {
  max-width: 1300px;
}

/* ============================================================
   HEADER
============================================================ */

/**
 * Header
 * --------------------------------------------------------------------------- */

#header {
  height: 6rem;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  position: fixed;
  width: 100vw;
  left: 0;
  top: calc(0px + var(--wp-admin--admin-bar--height,0px));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  z-index: 300;
  transition: all var(--wp--custom--animation-speed) ease-in;
  box-shadow: none;
}

#header.hidden {           /* header hider while scrolling down  */
  top: -20rem;
} 

#header.scrolled {                        /* header shows while scrolling up */
  --header-height: 6rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(3px);
  
  @media screen and (max-width: 600px) { 
    --wp-admin--admin-bar--height: 0px;
  }
}

#header > .wrapper {
  display: flex;
  padding-top: unset !important;
}

#header + * {                             /* container after header has to be offset by headers height */
  margin-top: var(--header-height);
}

.header-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.header-logo svg {
  width: auto;
  max-width: unset;
  height: auto;
  display: block;
}

/**
 * Menus
 * --------------------------------------------------------------------------- */

/* ====== Menu General ====== */

.menu, .menu > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--wp--style--block-gap);
  padding-left: 0;
  list-style: none;
}

.menu li {
  padding: 0;
  list-style: none;
}

.menu li.current-menu-item > a,
.menu li.current_page_parent > a {
  
}

.menu li a {
  font-weight: var(--wp--custom--font-weight--default);
  display: block;
}
.menu li a:hover,
.menu li a:focus {
  color: var(--wp--preset--color--green);
}

/* ====== Aftar Main Menu ====== */

#extras {
  display: flex;
  align-items: center;
  gap: var(--wp--style--block-gap);
  margin: 0 0 0 var(--wp--style--block-gap);
}

#header-menu-icons {
  display: flex;
  align-items: center;
  gap: var(--wp--style--block-gap);
}

#header-menu-icons > a {
  color: var(--wp--preset--color--black);
  position: relative;
}

.cart-number {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: var(--wp--custom--font-weight--bold);
  line-height: 1;
  color: inherit;
  margin-left: 0.15rem;
  margin-top: 0.5rem;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 1rem;
  text-align: center;
}

/* ====== Main Menu ====== */

.menu-main ul {
  gap: 0;
  padding-left: 0;
}
.menu-main li a {
  color: inherit;
  padding: var(--wp--preset--spacing--8) var(--wp--style--block-gap);
  font-weight: 700;
  text-transform: uppercase;
}

.menu-main li a:hover{
  color: var(--wp--preset--color--green);
}
@media screen and (max-width: 1280px) {
  #header-menu.menu-main {
    display: none;
  }
  label#menutogglebutton {
    display: flex !important;
  }
  #header .wrapper{
    justify-content: space-between;
    display: grid;
    grid-template-columns: auto auto;
  }
}


/* ====== Hamburger Menu ====== */

.menu-toggle {
  display: flex;
  width: 2rem;
  padding: 0;
  cursor: pointer;
  z-index: 400;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
}
input#menutoggle:checked ~ .menu,
input#menutoggle:focus   ~ .menu {
  transform: translateX(0);
  display: flex;
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--wp--preset--color--black);
  margin: 0.15rem 0;
  position: relative;
  transition: all var(--wp--custom--animation-speed);
}
label#menutogglebutton {
  display: none;
  align-items: flex-end;
  margin: 0 0 0 var(--wp--style--block-gap);
}
#hamburger {
  position: fixed;
  background: var(--wp--preset--color--black);
  width: max(50vw, 24rem);               /* either 50vw on desktops or 24rem on smaller screens */
  max-width: 100%;                       /* on mobile, max 100% */
  height: 100dvh;
  overflow-y: auto;
  margin: 0;
  right: 0;
  top: 0;
  padding: calc(var(--wp--preset--spacing--56) + var(--wp-admin--admin-bar--height,0px)) var(--wp--preset--spacing--56) var(--wp--preset--spacing--160);
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100vw);
  z-index: 100;
  transition: transform 0.2s ease-in-out;
  overscroll-behavior: contain;
  color: white;
  display: none;
}
#hamburger.menu-main ul {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
#hamburger.menu-main li a {
  padding: var(--wp--preset--spacing--12) 0;
}
#hamburger.menu-main li.menu-item-has-children:focus-within > a::after,       /* opened dropdown */
#hamburger.menu-main li.menu-item-has-children.active > a::after {
  transform: rotate(180deg);
}
input#menutoggle {
  visibility: hidden;
  width: 0;
  margin: 0;
  position: absolute;
}
input#menutoggle:checked ~ label span {
  background: white;
  transform: rotate(45deg);
  top: 0;
}
input#menutoggle:checked ~ label span:nth-child(2) {
  transform: rotate(-45deg);
  top: -6px;
}
input#menutoggle:checked ~ label span:nth-child(3) {
  display: none;
}

.background-overlay {
  position: fixed;
  top: 0;
  right: -100vw;
  height: 100vh;
  width: 100vw;
  bottom: 0;
  z-index: 90;
  opacity: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(3px);
  transition: right 0s, opacity .2s;
}
body.menu-shown .background-overlay {
  right: 0;
  opacity: 1;
}

body.menu-shown #header.scrolled {              /* keep the header visible at all times when menu is opened */
  top: 0 !important;
}
body.admin-bar.menu-shown #header.scrolled {    /* adjust positions for visible admin bar */
  top: var(--wp-admin--admin-bar--height) !important;
}
body.admin-bar.menu-shown #header.scrolled #hamburger {
  --wp-admin--admin-bar--height: 0px;
}


/* ============================================================
   MAIN
============================================================ */

#main,
.site-main {
  width: 100%;
}

#main:has(.grey), #main:has(.posts) {
  background-color: var(--wp--preset--color--grey);
}

/* ============================================================
   FOOTER
============================================================ */

#footer,
.site-footer {
  width: 100%;
  background: #0f1720; /* tmavé */
  color: #fff;
  padding: 40px 0 20px 0;
}

/* vnútri footeru */
#footer .wrapper,
.site-footer .wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: unset;
}

.footer-logo{
    display: grid;
    grid-template-columns: auto;
}
/* 3 stĺpce cez float */
.footer-columns{
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
}
.is-style-no-bullets{
  list-style: none;
  padding: 0;
}

.site-footer:after,
#footer:after {
  content: "";
  display: table;
  clear: both;
}

/* footer linky */
#footer a,
.site-footer a {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
}

#footer a:hover,
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* spodný pás */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 782px) {
  #footer .footer-links ul{
    flex-direction: column;
    gap: unset !important;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 980px) {
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }

  /* menu pod seba (bez flex/grid) */
  #header .site-logo,
  #header .custom-logo-link,
  #header nav,
  #header .main-navigation,
  #header .menu {
    float: none;
  }

  #header .menu > ul > li,
  #header ul.menu > li {
    float: none;
    margin-left: 0;
  }

  #header .menu a,
  #header ul.menu a {
    padding: 10px 0;
    display: block;
    align-self: start;
  }

  /* footer na 2 stĺpce */
  .footer-col { width: 50%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 34px; }
  h2 { font-size: 30px; }

  /* footer na 1 stĺpec */
  .footer-col { width: 100%; }
}


/* =========================================================
   PAGE LOADER (ASIDE)
========================================================= */

.page-loader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}

.page-loader[aria-hidden="true"]{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* wrapper */
.page-loader-wrapper{
  position: absolute;
  inset: 0;
}

/* centrovanie obsahu */
.page-loader__inner{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

/* logo */
.page-loader__logo{
  width: 110px;
  height: 110px;
}

.page-loader__logo svg{
  width: 100%;
  height: 100%;
  display: block;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

/* dots */
.page-loader__dots{
  display: inline-flex;
  gap: 8px;
}

.page-loader__dots span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .25;
  animation: loaderDots 1s infinite ease-in-out;
}

.page-loader__dots span:nth-child(2){ animation-delay: .15s; }
.page-loader__dots span:nth-child(3){ animation-delay: .30s; }

.entry-featured-image {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
	margin-bottom: 30px;
}

.entry-featured-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}


/* animácie */
@keyframes loaderPulse{
  0%{ transform: scale(1); opacity:.9; }
  50%{ transform: scale(1.06); opacity:1; }
  100%{ transform: scale(1); opacity:.9; }
}

@keyframes loaderDots{
  0%, 80%, 100%{ transform: translateY(0); opacity:.25; }
  40%{ transform: translateY(-6px); opacity:1; }
}

/* blokovanie scrollu */
html.is-loading,
body.is-loading{
  overflow: hidden;
}
