/********************************** HEADER_TEXT ************************************/
/* ZÁKLADNÉ NASTAVENIE TYPOGRAFIE LOGA – PRE CELÝ WEB */

.header-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  font-style: normal !important;
}

.header-logo .site-title,
.header-logo .site-title a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 300 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  line-height: 1.08 !important;
  color: #5a3e2b !important;
}

.header-logo .site-description {
  display: block !important;
  margin: 0 0 0 -30px !important;
  padding: 0 !important;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  color: #7a695e !important;
  opacity: 0.95 !important;
}

/* Jemné vyhladenie písma */
.header-logo .site-title,
.header-logo .site-title a,
.header-logo .site-description {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* ================== JEDNOTNÝ HERO HEADER – HOME + PAGE + BLOG ================== */

/* Hero kontajner ako referenčný rámec */
.home #page-header .entry-header,
.home .entry-header.background-image,
.page #page-header .entry-header,
.page .entry-header.background-image,
.blog #page-header .entry-header,
.blog .entry-header.background-image,
.single #page-header .entry-header,
.single .entry-header.background-image,
.archive #page-header .entry-header,
.archive .entry-header.background-image {
  position: relative !important;
  overflow: visible !important;
}

/* Overlay vrstvy */
.home .entry-header .cvr-container,
.home .entry-header .cvr-outer,
.home .entry-header .cvr-inner,
.page .entry-header .cvr-container,
.page .entry-header .cvr-outer,
.page .entry-header .cvr-inner,
.blog .entry-header .cvr-container,
.blog .entry-header .cvr-outer,
.blog .entry-header .cvr-inner,
.single .entry-header .cvr-container,
.single .entry-header .cvr-outer,
.single .entry-header .cvr-inner,
.archive .entry-header .cvr-container,
.archive .entry-header .cvr-outer,
.archive .entry-header .cvr-inner {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  pointer-events: none !important;
}

/* Kartička s logom */
.home .entry-header .header-logo,
.page .entry-header .header-logo,
.blog .entry-header .header-logo,
.single .entry-header .header-logo,
.archive .entry-header .header-logo {
  pointer-events: auto !important;
  text-align: left !important;
  margin: 15px 0 0 6vw !important;
  padding: 14px 24px !important;
  background: rgba(255, 248, 240, 0.42);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  animation: artistryFadeIn 1s ease-out .2s both !important;
}

/* Dekoratívna línia */
/*.home .entry-header .header-logo::before,
/*.page .entry-header .header-logo::before,
/*.blog .entry-header .header-logo::before,
/*.single .entry-header .header-logo::before,
/*.archive .entry-header .header-logo::before {
/*  content: "";
/*  position: absolute;
/*  left: -14px;
/*  top: 10px;
/*  width: 2px;
/*  background: linear-gradient(
/*    to bottom,
/*    rgba(120,85,65,0.0),
/*    rgba(120,85,65,0.8)
/*  );
/*}

/* Nadpis */
.home .header-logo .site-title a,
.page .header-logo .site-title a,
.blog .header-logo .site-title a,
.single .header-logo .site-title a,
.archive .header-logo .site-title a {
  font-size: clamp(42px, 4.3vw, 64px) !important;
  font-weight: 300 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #4a3b34 !important;
  text-shadow: 0px 1px 5px rgba(255, 255, 255, 0.55);
}

/* Podtitulok */
.home .header-logo .site-description,
.page .header-logo .site-description,
.blog .header-logo .site-description,
.single .header-logo .site-description,
.archive .header-logo .site-description {
  margin-top: 3px !important;
  font-size: clamp(11px, 1.3vw, 15px) !important;
  letter-spacing: 0.28em !important;
  font-weight: 400 !important;
  color: #6b5a52 !important;
  text-shadow: 0px 6px 18px rgba(0,0,0,0.22);
  opacity: .9;
}

/* Fix pre <h1> wrapper na blogu */
.header-logo h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

/* Fade-in animácia */
@keyframes artistryFadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.97);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ================== MOBILE ================== */

@media (max-width: 820px) {

  .home .entry-header .cvr-container,
  .home .entry-header .cvr-outer,
  .home .entry-header .cvr-inner,
  .page .entry-header .cvr-container,
  .page .entry-header .cvr-outer,
  .page .entry-header .cvr-inner,
  .blog .entry-header .cvr-container,
  .blog .entry-header .cvr-outer,
  .blog .entry-header .cvr-inner,
  .single .entry-header .cvr-container,
  .single .entry-header .cvr-outer,
  .single .entry-header .cvr-inner,
  .archive .entry-header .cvr-container,
  .archive .entry-header .cvr-outer,
  .archive .entry-header .cvr-inner {
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .home .entry-header .header-logo,
  .page .entry-header .header-logo,
  .blog .entry-header .header-logo,
  .single .entry-header .header-logo,
  .archive .entry-header .header-logo {
    margin: 18px auto 0 auto !important;
    padding: 10px 18px !important;
    max-width: 80%;
    text-align: center !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  }

  .home .entry-header .header-logo::before,
  .page .entry-header .header-logo::before,
  .blog .entry-header .header-logo::before,
  .single .entry-header .header-logo::before,
  .archive .entry-header .header-logo::before {
    display: none;
  }

  .home .header-logo .site-title a,
  .page .header-logo .site-title a,
  .blog .header-logo .site-title a,
  .single .header-logo .site-title a,
  .archive .header-logo .site-title a {
    font-size: clamp(26px, 7vw, 34px) !important;
    letter-spacing: 0.12em !important;
  }

  .home .header-logo .site-description,
  .page .header-logo .site-description,
  .blog .header-logo .site-description,
  .single .header-logo .site-description,
  .archive .header-logo .site-description {
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0.22em !important;
  }
}

/************************************ KONIEC_HEADER *********************************/


/*************PRIDAT DO KOSIKA*******************/
.single_variation_wrap{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px 18px !important;
  padding:16px 7px !important;
  margin:-15px 0 0 0 !important;
  background:linear-gradient(180deg,#f1e7e2 0%,#ece1dc 100%) !important;
  border:1px solid var(--rose) !important;
  border-radius:0 0 16px 16px !important;/************* PRIDAŤ DO KOŠÍKA – VARIABILNÉ PRODUKTY (MANDALY) *************/

/* Kartička pod cenou – ponechávame vzhľad */
.single_variation_wrap{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px 18px !important;
  padding:16px 7px !important;
  margin:-15px 0 0 0 !important;
  background:linear-gradient(180deg,#f1e7e2 0%,#ece1dc 100%) !important;
  border:1px solid var(--rose) !important;
  border-radius:0 0 16px 16px !important;
  box-shadow:-13px 10px 26px rgba(0,0,0,.08) !important;
}

/* Text + cena */
.single_variation_wrap .woocommerce-variation,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-price .price{
  white-space:nowrap !important;
  word-break:keep-all !important;
  overflow-wrap:normal !important;
}

.single_variation_wrap .woocommerce-variation-price .price{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:.12em !important;
  font-family:"Playfair Display",serif !important;
  font-weight:500 !important;
  font-size:38px !important;
  line-height:1.05 !important;
  color:#3a2a22 !important;
  letter-spacing:0 !important;
  margin:0 !important;
}
.single_variation_wrap .woocommerce-variation-price bdi{
  display:inline-block !important;
  font-variant-numeric:lining-nums tabular-nums !important;
}
.single_variation_wrap .woocommerce-Price-currencySymbol{
  font-size:.6em !important;
  font-weight:600 !important;
  opacity:.9 !important;
  margin-left:.05em !important;
}

/* Riadok: množstvo + tlačidlo – FLEX, nech vie zalomiť dlhý text */
.single_variation_wrap .woocommerce-variation-add-to-cart{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  background:none !important;
  border:none !important;
  border-radius:0 !important;
  padding:10px 12px !important;
  margin:0 !important;
  flex-wrap:wrap !important;      /* dovoľ zalomenie */
  width:100% !important;
  min-width:0 !important;
}

/* Množstvo – menšie, nech ostane viac miesta na CTA */
.single_variation_wrap .quantity{
  display:flex !important;
  align-items:center !important;
  margin:0 !important;
  flex:0 0 auto !important;
}
.single_variation_wrap .quantity .qty{
  width:35px !important;
  height:42px !important;
  padding:6px 5px !important;
  text-align:center !important;
  border:1px solid #e7dfdb !important;
  border-radius:10px !important;
  font-size:15px !important;
  background:#fff !important;
  transition:box-shadow .18s ease, border-color .18s ease !important;
}
.single_variation_wrap .quantity .qty:focus{
  outline:none !important;
  border-color:#5a3e2b !important;
  box-shadow:0 0 0 3px rgba(90,62,43,.18) !important;
}

/* CTA BUTTON – zvládne aj „Vytvoriť rodinnú mandalu“ */
.single_variation_wrap .single_add_to_cart_button{
  background:var(--choco) !important;
  color:#fff !important;
  border:2px solid #fff !important;
  border-radius:999px !important;

  padding:12px 22px !important;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  line-height:1.25 !important;

  /* kľúč: nech sa vie zalomiť a prispôsobiť */
  flex:1 1 220px !important;
  max-width:100% !important;
  white-space:normal !important;
  text-align:center !important;

  box-shadow:0 12px 26px rgba(0,0,0,.10) !important;
  transition:transform .2s, box-shadow .2s, opacity .2s !important;
}
.single_variation_wrap .single_add_to_cart_button:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 14px 30px rgba(0,0,0,.14) !important;
  opacity:.98 !important;
}
.single_variation_wrap .single_add_to_cart_button:disabled,
.single_variation_wrap .single_add_to_cart_button.wc-variation-selection-needed{
  opacity:.88 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

/* TABLET / MENŠÍ DESKTOP – kartička stále ako grid, ale CTA radšej pod seba */
@media (max-width:900px){
  .single_variation_wrap{
    grid-template-columns:1fr !important;
    row-gap:12px !important;
  }
  .single_variation_wrap .woocommerce-variation-add-to-cart{
    width:100% !important;
    justify-content:flex-start !important;
  }
}

/* MOBILNÝ LAYOUT – quantity a CTA na 100 % šírky */
@media (max-width:720px){
  .single_variation_wrap{
    grid-template-columns:1fr !important;
    grid-auto-rows:auto !important;
    gap:10px !important;
  }

  .single_variation_wrap .woocommerce-variation-add-to-cart{
    flex-direction:column !important;
    align-items:stretch !important;
  }

  .single_variation_wrap .quantity{
    width:100% !important;
    justify-content:flex-start !important;
  }
  .single_variation_wrap .quantity .qty{
    width:82px !important;
  }

  .single_variation_wrap .single_add_to_cart_button{
    width:100% !important;
    justify-content:center !important;
  }
}

/* Label fix – ponechávame tvoj pôvodný tweak */
@media (max-width: 820px){
  .wp-block-woocommerce-single-product .variations .label label::after,
  .wp-block-woocommerce-add-to-cart-form .variations .label label::after,
  .wc-block-add-to-cart-form .variations .label label::after,
  .woocommerce div.product .summary .variations .label label::after {
    content:none !important;
  }
}

  box-shadow:-13px 10px 26px rgba(0,0,0,.08) !important;
}

.single_variation_wrap .woocommerce-variation,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-price .price{
  white-space:nowrap !important;
  word-break:keep-all !important;
  overflow-wrap:normal !important;
}
.single_variation_wrap .woocommerce-variation-price .price{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:.12em !important;
  font-family:"Playfair Display",serif !important;
  font-weight:500 !important;
  font-size:38px !important;
  line-height:1.05 !important;
  color:#3a2a22 !important;
  letter-spacing:0 !important;
  margin:0 !important;
}
.single_variation_wrap .woocommerce-variation-price bdi{
  display:inline-block !important;
  font-variant-numeric:lining-nums tabular-nums !important;
}
.single_variation_wrap .woocommerce-Price-currencySymbol{
  font-size:.6em !important;
  font-weight:600 !important;
  opacity:.9 !important;
  margin-left:.05em !important;
}

.single_variation_wrap .woocommerce-variation-add-to-cart{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  background:none !important;
  border:none !important;
  border-radius:none !important;
  padding:10px 12px !important;
  margin:0 !important;
  flex:0 0 auto !important;
  min-width:300px !important;
}

.single_variation_wrap .quantity .qty{
  width:70px !important;
  height:46px !important;
  padding:6px 10px !important;
  text-align:center !important;
  border:1px solid #e7dfdb !important;
  border-radius:14px !important;
  font-size:15px !important;
  background:#fff !important;
}

.single_variation_wrap .single_add_to_cart_button{
  background:var(--choco) !important;
  color:#fff !important;
  border:2px solid #fff !important;
  border-radius:10px !important;
  padding:12px 28px !important;
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:.3px !important;
  box-shadow:0 12px 26px rgba(0,0,0,.10) !important;
  transition:transform .2s, box-shadow .2s, opacity .2s !important;
}
.single_variation_wrap .single_add_to_cart_button:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 14px 30px rgba(0,0,0,.14) !important;
  opacity:.98 !important;
}
.single_variation_wrap .single_add_to_cart_button:disabled,
.single_variation_wrap .single_add_to_cart_button.wc-variation-selection-needed{
  opacity:.88 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

@media (max-width:900px){
  .single_variation_wrap{
    grid-template-columns:1fr !important;
    row-gap:12px !important;
  }
  .single_variation_wrap .woocommerce-variation-add-to-cart{
    min-width:0 !important;
    width:100% !important;
    flex-wrap:wrap !important;
  }
  .single_variation_wrap .quantity .qty,
  .single_variation_wrap .single_add_to_cart_button{
    width:100% !important;
  }
}

@media (max-width: 820px){
  .wp-block-woocommerce-single-product .variations .label label::after,
  .wp-block-woocommerce-add-to-cart-form .variations .label label::after,
  .wc-block-add-to-cart-form .variations .label label::after,
  .woocommerce div.product .summary .variations .label label::after {
    content: none !important;
    font-size:11px;
    margin-left:8px;
    padding:2px 6px;
    border-radius: none;
    background: none;
    color: none;
    border: none;
  }
}

/* EMARTIST – mobilný layout .single_variation_wrap */
@media (max-width: 720px){
  .single_variation_wrap{
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-auto-rows: auto !important;
    gap: 8px 12px !important;
    align-items: center !important;
  }
  .single_variation_wrap .woocommerce-variation-add-to-cart{
    display: contents !important;
  }
  .single_variation_wrap .woocommerce-variation{
    grid-column: 1 / 2 !important;
    margin: 0 !important;
  }
  .single_variation_wrap .woocommerce-variation-price,
  .single_variation_wrap .woocommerce-variation-price .price{
    white-space: nowrap !important;
  }
  .single_variation_wrap .quantity{
    grid-column: 2 / 3 !important;
    justify-self: end !important;
    margin: 0 !important;
  }
  .single_variation_wrap .quantity .qty{
    height: 40px !important;
    width: 82px !important;
    text-align: center !important;
  }
  .single_variation_wrap .single_add_to_cart_button{
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  .single_variation_wrap .woocommerce-variation-add-to-cart input[type="hidden"]{
    display: none !important;
  }
}


/* === ŠTÝLY PRE PRODUKT ID 5889 – DREVENÝ RÁM NA MIERU === */
@media (min-width: 1024px) {
  .single-product.postid-5889 .product {
    max-width: 1200px;
  }
}

/* --- SKRYTIE PÔVODNEJ KATEGÓRIE DOLE --- */
.single-product.postid-5889 .summary .product_meta {
    display: none !important;
}

/* --- NOVÁ KATEGÓRIA NA VRCHU (Z PHP) --- */
.custom-category-top {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    width: 100%;
}

.custom-category-top a {
    color: var(--choco);
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 1024px) {
  .single-product.postid-5889 .product {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "meta meta"
      "title title"
      "gallery summary"
      "tabs tabs";
    column-gap: 48px;
    align-items: start;
    /*max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 30px;*/
  }

  .custom-category-top { grid-area: meta; }

  .single-product.postid-5889 .emwood-title-global {
    grid-area: title;
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 16px;
  }

  .single-product.postid-5889 .woocommerce-product-gallery { grid-area: gallery; }
  .single-product.postid-5889 .summary.entry-summary { grid-area: summary; }

  .single-product.postid-5889 .woocommerce-tabs.wc-tabs-wrapper {
    grid-area: tabs;
    margin-top: 60px;
  }
}

@media (max-width: 1023px) {
  .single-product.postid-5889 .product {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
  }
  .custom-category-top { order: -10; margin-top: 20px; }
  .single-product.postid-5889 .emwood-title-global {
    order: -5;
    text-align: center;
    margin-bottom: 24px;
  }
}

/* --- VŠEOBECNÉ BLOKY --- */
.single-product.postid-5889 .summary.entry-summary,
.single-product.postid-5889 .woocommerce-product-gallery {
  width: 100%;
  max-width: 100%;
}

.single-product.postid-5889 .emwood-custom-fields,
.single-product.postid-5889 .price,
.single-product.postid-5889 .cart {
  margin-bottom: 18px;
}

/* --- HLAVNÝ NADPIS --- */
.single-product.postid-5889 .emwood-title-global .product_title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  color: var(--choco);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

/* --- GALÉRIA --- */
.single-product.postid-5889 .woocommerce-product-gallery__image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-low);
}

/* --- TABS (ZÁLOŽKY AKO KARTY) --- */
.single-product.postid-5889 .woocommerce-tabs.wc-tabs-wrapper {
  padding-top: 0px;
  border-top: none;
  /*max-width: var(--page-max);*/
  margin: -70px auto auto; /* Upravený margin pre lepšiu medzeru */
}

.single-product.postid-5889 ul.tabs.wc-tabs {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin: 0 0 -1px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid var(--line) !important;
  position: relative;
}

.single-product.postid-5889 ul.tabs.wc-tabs li {
  background: #fcf9f6 !important;
  border: 1px solid var(--line) !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.single-product.postid-5889 ul.tabs.wc-tabs li a {
  display: block;
  padding: 10px 24px !important;
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--text-soft) !important;
  text-decoration: none !important;
}

.single-product.postid-5889 ul.tabs.wc-tabs li.active {
  background: #ffffff !important;
  border-bottom: 1px solid #ffffff !important;
  z-index: 2;
}

.single-product.postid-5889 ul.tabs.wc-tabs li.active a {
  color: var(--choco) !important;
  font-weight: 600 !important;
}

/* --- SKRYTIE NADPISOV H2 V OBSAHU ZÁLOŽIEK --- */
.single-product.postid-5889 .woocommerce-Tabs-panel h2:first-child {
  display: none !important;
}

.single-product.postid-5889 .woocommerce-Tabs-panel {
  padding: 40px 0;
}

.single-product.postid-5889 .woocommerce-Tabs-panel p,
.single-product.postid-5889 .woocommerce-Tabs-panel li {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-soft);
  font-family: var(--font-sans);
  line-height: 1.85;
}

/* --- CENA --- */
.single-product.postid-5889 .price {
  display: inline-block;
  background: #f6f0e9;
  padding: 15px 25px;
  border-radius: 16px;
  font-size: 42px !important;
  color: var(--choco);
  font-family: var(--font-display);
  box-shadow: var(--shadow-soft-low);
  margin: 0 0 20px 0 !important;
  line-height: 1;
}

/* --- FORMULÁR --- */
.single-product.postid-5889 .emwood-custom-fields {
  background: #fff;
  padding: 20px;
  border: 1px solid #eadfd4;
  border-radius: 18px;
  box-shadow: var(--shadow-soft-low);
  margin: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-product.postid-5889 .emwood-custom-fields label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.single-product.postid-5889 .emwood-custom-fields input,
.single-product.postid-5889 .emwood-custom-fields select {
  width: 100% !important;
  height: 48px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  font-family: var(--font-sans) !important;
  color: var(--text-dark) !important;
  border: 1px solid #e4d9cf !important;
  border-radius: 12px !important;
  background-color: #fff !important;
}

.single-product.postid-5889 .emwood-custom-fields > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* --- FARBY RÁMU (VYNÚTENÉ ZALOMENIE POD LABEL) --- */
.emwood-colors-wrapper, .emwood-structure-wrapper {
    margin-top: -10px;
    display: flex !important;
    flex-direction: column !important; /* Toto zabezpečí, že mriežka pôjde pod label */
    align-items: flex-start !important;
    width: 100% !important;
    clear: both !important;
}

.emwood-colors-wrapper label {
    width: 100% !important;
    display: block !important;
    margin-bottom: 0px !important;
}

.emwood-color-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 0px !important;
    overflow: hidden;
    max-height: 125px;
    transition: max-height 0.4s ease-in-out;
}

.emwood-color-grid.expanded {
    max-height: 1500px !important;
}
.emwood-color-item { 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; 
    padding: 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer;
    height: 82px !important; /* Kompaktná výška */
    text-align: center;
    box-sizing: border-box !important;
}
.emwood-color-item img {
    width: 30px !important;
    height: 30px !important;
	text-align:center;
	margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 3px !important;
}

.emwood-color-item span {
    font-size: 10px !important;
    line-height: 1.1 !important;
    font-weight: 300;
    display: block;
	margin:15px 0 0 0;
}

.emwood-color-item.selected {
    border: 1px solid #5a3e2b !important; /* Výraznejší rámček pri výbere */
    background: #f9f6f4 !important;
}

.emwood-color-item input[type=radio] { display: none !important; }

.show-more-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 15px !important;
    padding: 12px 0 !important;
    cursor: pointer !important;
    color: var(--choco) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-top: 1px solid #f0e6dd !important;
    background: transparent !important;
    clear: both !important;
}
.emwood-color-item img {
    cursor: zoom-in;
}
.emwood-color-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    padding: 8px;
}

.emwood-color-preview img {
    max-width: 400px;
    max-height: 400px;
    display: block;
    border-radius: 6px;
}
/************************************/





/* --- FAQ SEKCIU --- */
/* === ŠTÝLY PRE PRODUKT ID 5889 – DREVENÝ RÁM NA MIERU === */

/* ... (tvoje predchádzajúce štýly nechaj tak, toto nahraď v sekcii FAQ) ... */

/* --- FAQ SEKCIU - VYLEPŠENÝ DIZAJN --- */
.emwood-faq-js {
    max-width: 900px; /* Zúžené pre lepší čitateľský zážitok */
    margin: 60px auto;
    padding: 0 15px;
}

.emwood-faq-js h2 {
    text-align: center;
    font-family: var(--font-display);
    color: var(--choco);
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 400;
}

.faq-box {
    border: 1px solid #e8ddd3;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
	text-align: left;
}

.faq-box:hover {
    border-color: var(--choco);
    box-shadow: 0 4px 12px rgba(90, 71, 58, 0.08);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 200;
    font-family: var(--font-sans);
    color: var(--text-dark);
    font-size: 17px;
    user-select: none;
}

/* Pridanie šípky pomocou pseudo-elementu */
.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--choco);
    border-bottom: 2px solid var(--choco);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

/* Stav pri otvorení */
.faq-box.active {
    border-color: var(--choco);
}

.faq-box.active .faq-question::after {
    transform: rotate(-135deg); /* Otočenie šípky */
}

.faq-box.active .faq-question {
    color: var(--choco);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    background: #fff;
}

.faq-box.active .faq-answer {
    max-height: 500px; /* Dostatočná výška pre text */
    padding-bottom: 24px;
    border-top: 1px solid #f9f4ef;
}

.faq-answer p, .faq-answer li {
    font-size: 15px !important;
    line-height: 1.6;
    color: var(--text-soft);
    margin-top: 15px;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 0;
}
/* Skryje úplne prázdne odseky v rámci FAQ */
.emwood-faq-js p:empty {display: none !important;}
/* Skryje odseky, ktoré obsahujú len medzeru (častý jav vo WP) */
.emwood-faq-js p:blank {display: none !important;}

/* Oprava rozbitého spodného borderu vo FAQ */
.emwood-faq-js .faq-box, 
.emwood-faq-js .faq-answer {
    overflow: hidden !important; /* Odstrihne vybiehajúce okraje */
}

/* Vynulovanie marginu pre všetky odseky, ktoré vkladá WordPress do FAQ */
.emwood-faq-js p {
    margin-bottom: 15px !important; /* Štandardná medzera medzi textom */
}

/* Kľúčová oprava: Posledný element (často prázdne P) nesmie mať margin */
.emwood-faq-js .faq-answer > *:last-child,
.emwood-faq-js .faq-box > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ak tam WP vloží prázdny odsek na koniec, úplne ho zmenšíme */
.emwood-faq-js p:empty {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
}
#emwood_live_price strong {
    font-weight: 700;
}
.product-custom-description {
	padding:20px 0 0 0;
	text-align: justify;
}













/* ======================================================
   DEFINITÍVNY FIX – CART POD VARIANTAMI (ID 5889)
   ====================================================== */

/* summary NECH JE normálny blok */
.single-product.postid-5889 .summary.entry-summary {
  display: block !important;
}

/* custom fields ostanú hore – prirodzene */
.single-product.postid-5889 .emwood-custom-fields {
  margin-bottom: 28px !important;
}

/* cart ide POD NIMI – bez flex kúziel */
.single-product.postid-5889 form.cart {
  display: block !important;
  width: 100% !important;
  margin-top: 0 !important;
  clear: both !important;
}

/* quantity + button v jednom riadku */
.single-product.postid-5889 form.cart .variations_button,
.single-product.postid-5889 form.cart .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 22px !important;
}

/* quantity */
.single-product.postid-5889 form.cart .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* tlačidlo */
.single-product.postid-5889 form.cart .single_add_to_cart_button {
  flex: 0 0 auto !important;
}

/* express platby vždy POD */
.single-product.postid-5889 .wc-stripe-payment-request-wrapper {
  margin-top: 18px !important;
}




/* ======================================================
   CTA – COMBINED (PERFECT ALIGN)
   Produkt ID 5889
   ====================================================== */

/* spoločná výška CTA */
:root{
  --cta-height: 56px;
}

/* celý CTA riadok */
.single-product.postid-5889 form.cart .woocommerce-variation-add-to-cart,
.single-product.postid-5889 form.cart .variations_button{
  display:flex !important;
  align-items:stretch !important;
  gap:0 !important;
}

/* =========================
   MNOŽSTVO – ĽAVÝ SEGMENT
   ========================= */

.single-product.postid-5889 form.cart .quantity{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  height:var(--cta-height) !important;
  padding:0 16px !important;

  background:#fffdfa !important;
  border:1px solid #eadfd4 !important;
  border-right:none !important;

  border-radius:999px 0 0 999px !important;

  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.06),
    0 8px 22px rgba(90,62,43,.14) !important;
}

/* input presne do stredu */
.single-product.postid-5889 form.cart .quantity input.qty{
  width:48px !important;
  height:100% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  text-align:center !important;
  font-size:17px !important;
  font-weight:500 !important;

  border:none !important;
  background:transparent !important;
  color:var(--choco) !important;
  padding:0 !important;
  line-height:1 !important;
}

.single-product.postid-5889 form.cart .quantity input.qty:focus{
  outline:none !important;
}

/* =========================
   CTA TLAČIDLO – PRAVÝ SEGMENT
   ========================= */

.single-product.postid-5889 form.cart .single_add_to_cart_button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  height:var(--cta-height) !important;
  padding:0 48px !important;

  background:linear-gradient(
    135deg,
    #5a3e2b 0%,
    #6b4a34 100%
  ) !important;

  color:#ffffff !important;
  font-family:var(--font-sans) !important;
  font-size:16px !important;
  font-weight:500 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;

  border:1px solid #5a3e2b !important;
  border-left:none !important;

  border-radius:0 999px 999px 0 !important;

  box-shadow:
    0 8px 22px rgba(90,62,43,.32),
    inset 0 1px 0 rgba(255,255,255,.25) !important;

  cursor:pointer !important;
  transition:
    transform .18s ease,
    box-shadow .18s ease !important;
}

/* hover – jemné zväčšenie OD STREDU */
.single-product.postid-5889 form.cart .single_add_to_cart_button:hover{
  transform: scale(1.04) !important;
  box-shadow:
    0 16px 38px rgba(90,62,43,.45),
    inset 0 1px 0 rgba(255,255,255,.35) !important;
}

/* active – mierne stlačenie späť */
.single-product.postid-5889 form.cart .single_add_to_cart_button:active{
  transform: scale(0.99) !important;
  box-shadow:
    0 8px 18px rgba(90,62,43,.28) !important;
}

/* =========================
   MOBIL – ZOSTÁVA V RIADKU
   ========================= */
/* ======================================================
   FIX: MOBILE – CTA SA NESMIE ZALOMIŤ (ID 5889)
   ====================================================== */

@media (max-width: 480px){

  /* celý CTA riadok */
  .single-product.postid-5889 form.cart .woocommerce-variation-add-to-cart,
  .single-product.postid-5889 form.cart .variations_button{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    width:100% !important;
  }

  /* ZRUŠIŤ WC MOBILE WIDTH */
  .single-product.postid-5889 form.cart .single_add_to_cart_button{
    width:auto !important;        /* ⬅️ KRITICKÉ */
    min-width:0 !important;
    flex:1 1 auto !important;
    height:48px !important;
    padding:0 16px !important;
    font-size:13.5px !important;
    letter-spacing:.05em !important;
    white-space:nowrap !important;
  }

  /* quantity pevná šírka */
  .single-product.postid-5889 form.cart .quantity{
    flex:0 0 48px !important;
    width:48px !important;
    height:48px !important;
  }

  .single-product.postid-5889 form.cart .quantity input.qty{
    width:48px !important;
    height:48px !important;
    font-size:15px !important;
  }
	.single-product.postid-5889 .woocommerce-tabs.wc-tabs-wrapper {
  margin: -30px auto auto; /* Upravený margin pre lepšiu medzeru */
}
}
/* ======================================================
   MOBILE FIX – PREVIEW FARBY (BEZ GLITCHU – iOS SAFE)
   ====================================================== */
/* ==================================================
   DESKTOP – HOVER PREVIEW
   ================================================== */
.emwood-hover-preview{
  position:fixed;
  z-index:9999;
  display:none;
  pointer-events:none;
}

.emwood-hover-preview img{
  max-width:320px;
  max-height:320px;
  background:#fff;
  padding:8px;
  border-radius:14px;
  box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 6px 14px rgba(0,0,0,.2);
}

/* ==================================================
   MOBILE – FULLSCREEN PREVIEW
   ================================================== */
.emwood-mobile-preview{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}

.emwood-mobile-preview.active{
  display:block;
}

/* klikateľný overlay – KĽÚČOVÉ */
.emwood-mobile-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
}

/* vnútro */
.emwood-mobile-inner{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.emwood-mobile-inner img{
  max-width:90vw;
  max-height:85vh;
  background:#fff;
  padding:12px;
  border-radius:18px;
  pointer-events:auto;

  box-shadow:
    0 22px 60px rgba(0,0,0,.45),
    0 8px 18px rgba(0,0,0,.25);
}
.emwood-mobile-preview::after{
  content:"×";
  position:absolute;
  top:18px;
  right:20px;
  width:40px;
  height:40px;
  line-height:40px;
  text-align:center;
  font-size:26px;
  color:#fff;
  opacity:.7;
  pointer-events:none; /* len vizuálny hint */
}

.emwood-hidden {
  display: none !important;
}


.show-more-btn {
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5a3e2b;
  font-size: 14px;
}

.show-more-btn .arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #5a3e2b;
  transition: transform 0.25s ease;
}

.show-more-btn.open .arrow-down {
  transform: rotate(180deg);
}


/* Úvodný text – partnerská mandala (v štýle Emartist landingov) */
.single-product .em-partnerska-intro{
  max-width: 1120px;
  margin: 26px auto 18px;
  padding: 22px 28px;
  border-radius: 24px;
  background: #f8f5f2; /* beige */
  border: 1px solid #eaded5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  color: #25201b; /* text-main */
  text-align: left;
  font-family: "Open Sans", sans-serif;

  /* jemný fade-in */
  opacity: 0;
  transform: translateY(10px);
  animation: em-partner-intro-fade 0.55s ease-out 0.25s forwards;
}

.em-partnerska-intro-inner{
  max-width: 780px;
  margin: 0 auto;
}

/* Kicker – v štýle EmArtist brandu */
.em-partnerska-intro-kicker{
  font-family: "Cormorant SC","Cormorant Garamond",serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #5a473a; /* text-soft */
}

/* Hlavný text */
.em-partnerska-intro-text{
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #5a473a; /* text-soft */
}

/* Fade-in animácia */
@keyframes em-partner-intro-fade{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobil – menší padding, centrovaný text */
@media (max-width: 768px){
  .single-product .em-partnerska-intro{
    margin: 18px 14px 10px;
    padding: 16px 16px 18px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.03);
    text-align: center;
  }

  .em-partnerska-intro-text{
    font-size: 15px;
    line-height: 1.65;
  }
}


