/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* HEADER + MENU */

header span.menu-text {
  text-transform: uppercase;
}

.fusion-secondary-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.fusion-secondary-header a {
  font-weight: bold;
}

.fusion-secondary-header a i {
  margin-right: 3px;
}

.fusion-secondary-header a:first-of-type {
  margin-right: 10px;
}

/*header .fusion-menu .sub-menu > li.current-menu-item span,
header .fusion-menu .sub-menu > li:hover span {
    color: #fff !important;
}*/

/* PAGE TITLE BAR */

body:not(.home) .fusion-header-wrapper {
  position: relative;
}

.fusion-page-title-captions {
  margin: 2.55rem 0 2rem 0;
}

.fusion-page-title-wrapper {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.fusion-page-title-secondary {
  margin: 0 !important;
  width: 100%;
  text-align: left;
  padding: 1rem;
  background-color: #03a9f4;
}

.fusion-breadcrumbs span a,
.fusion-breadcrumbs span {
  color: #fff;
}

.fusion-breadcrumbs a span:hover {
  color: #fff !important;
  text-decoration: underline;
}

.fusion-breadcrumbs span.breadcrumb-leaf {
  font-weight: bold;
}

/* SIDE BAR */

#sidebar .widget_nav_menu {
  padding: 30px;
  background-color: #f2f2f2;
  margin-bottom: 0;
}

#sidebar .widget_nav_menu .menu-item {
  padding-left: 0;
  border-bottom: 0;
  padding: 5px 10px;
  margin: 0 -10px 8px;
  transition: all 200ms ease;
}

#sidebar .widget_nav_menu .menu-item a::before {
  display: none;
}

#sidebar .widget_nav_menu .menu-item {
  line-height: 1.35;
}

#sidebar .widget-title {
  margin-bottom: 20px !important;
}

#sidebar .widget_nav_menu li {
}

#sidebar .widget_nav_menu li:hover {
  background-color: #fff;
  transition: all 200ms ease;
}

#sidebar .widget_nav_menu li.current-menu-item {
  background: #03a9f4;
  font-weight: bold;
}

#sidebar .widget_nav_menu li.current-menu-item a {
  color: #fff;
}

#sidebar .menu > li.no-function > a {
  pointer-events: none;
  font-weight: bold;
  color: #03a9f4;
}

/* CUSTOM SLIDER */

#slider {
  position: relative;
  min-height: 100vh;
}

/* SLIDER WHITE OVERLAY
#slider .slide::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 10;
    opacity: 0.65;
}
*/

#slider .slide div:first-of-type,
#slider .slide span {
  height: 100%;
  display: block;
}

#slider .slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

#slider .custom-slider-title h2 strong {
  color: #2b9acd;
}

#slider .custom-slider-content {
  width: 100%;
  height: unset;
  max-width: 1200px;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translatex(-50%);
  z-index: 99;
  padding-left: 30px;
  padding-right: 30px;
}

#slider .arrow-left {
  width: 40px !important;
  height: 40px;
  background-color: #03a9f4;
  position: absolute;
  top: 50%;
  left: 100px;
  margin-top: -20px;
  z-index: 100;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 8px;
  transition: all 0.2s ease;
}

#slider .arrow-right {
  width: 40px !important;
  height: 40px;
  background-color: #03a9f4;
  position: absolute;
  top: 50%;
  right: 100px;
  margin-top: -20px;
  z-index: 100;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-left: 8px;
  transition: all 0.2s ease;
}

#slider .arrow-left:hover,
#slider .arrow-right:hover {
  transition: all 0.2s ease;
  background-color: #e5811c;
}

#slider .arrow-left:active,
#slider .arrow-right:active {
  transition: all 70ms ease;
  transform: scale(0.9);
}

#slider .slide.active {
  transform: translateX(0);
  transition: 500ms;
  animation: slide-in 1500ms ease forwards;
}

@keyframes slide-in {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

#slider .slide {
  display: block;
  width: 100%;
  height: 100vh;
  position: absolute;
  transform: translateX(100%);
  transition: 500ms;
  animation: slide-out 1500ms ease forwards;
}

@keyframes slide-out {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

#slider > div .n3.active::after {
  content: "";
  position: absolute;
  display: block;
  right: 80px;
  bottom: 80px;
  height: 150px;
  width: 570px;
  background-image: url("/wp-content/uploads/2021/09/loga-oleje-3.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 99;
  /*filter: brightness(0) invert(0.4);*/
  opacity: 1;
}

#slider > div .n1.active::after {
  content: "";
  position: absolute;
  display: block;
  right: 80px;
  bottom: 80px;
  height: 100px;
  width: 570px;
  background-image: url("/wp-content/uploads/2021/05/Derlak-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 99;
  /* filter: brightness(0) invert(0.4); */
  opacity: 1;
}

/* HOMEPAGE */

.shader > .fusion-column-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 150ms ease;
}

.shader:hover > .fusion-column-wrapper {
  transform: scale(0.97);
  transition: all 150ms ease;
}

.shader > .fusion-column-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0285c1;
  opacity: 0.6;
  transition: all 150ms ease;
}

.shader:hover > .fusion-column-wrapper::before {
  background-image: linear-gradient(
    rgba(232, 130, 28, 0.5) 50%,
    rgba(232, 130, 28, 0.8) 80%
  );
  transition: all 150ms ease;
}

.up-lift {
  z-index: 99;
}

.up-lift h3 {
  text-transform: uppercase;
}

.adv > .fusion-column-wrapper img {
  max-width: 60px;
}

.adv > .fusion-column-wrapper {
  align-items: center;
}

.fusion-text p img {
  margin-right: 35px;
  margin-bottom: 20px;
  position: relative;
}

/* FOOTER */

footer a,
footer p {
  font-size: 14px !important;
  font-weight: 400 !important;
}

footer .menu li {
  padding: 0 !important;
  border-bottom: none !important;
}

footer .menu li a::before {
  display: none !important;
}

.footer-contact-button {
  margin-top: 20px;
  display: inline-block;
  position: relative;
  padding: 10px 30px;
  color: #fff !important;
  background-color: #e8821c;
}

.footer-contact-button:hover {
  background-color: #03a9f4;
  color: #fff !important;
}

.about-us-box::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url("/wp-content/uploads/2021/05/renner.jpg");
  background-size: cover;
  background-position: center;
}

footer.fusion-widget-area::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url("/wp-content/uploads/2021/08/DSC_0232_edit.jpg");
  background-size: cover;
  background-position: center;
}

footer.fusion-widget-area > .fusion-row {
  display: flex;
  justify-content: flex-end;
}

footer .fusion-columns {
  max-width: 50%;
  margin-left: auto;
}

footer .fusion-columns > .fusion-column:first-of-type {
  width: 100%;
  position: relative;
  display: block;
  margin-bottom: 40px;
}

.fusion-footer-widget-area ul {
  margin: 0 -5px;
}

.fusion-footer-widget-area ul li a {
  padding: 6px 14px !important;
  margin: 5px !important;
  background-color: #03a9f4;
}

.fusion-footer-widget-area ul li a:hover {
  background-color: #e8821c;
}

#fusion-menu-widget-2 ul li a:after {
  display: none !important;
}

footer .fusion-columns > .fusion-column:not(:first-of-type) {
  width: 50%;
}

/* CUSTOM TABS */

.tab-content {
  display: none !important;
  transform: scale(0);
  animation: scale-down 500ms ease;
  animation-fill-mode: forwards;
}

@keyframes scale-down {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.tab-content.active {
  opacity: 1;
  transform: scale(1) !important;
  animation: scale-up 500ms ease;
  animation-fill-mode: forwards;
  display: block !important;
  background-color: #f2f2f2;
  padding: 30px 44px;
  margin: 15px 5px 0 !important;
}

@keyframes scale-up {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tabs .tab-btn {
  cursor: pointer;
  padding: 10px 20px;
  display: inline-block;
  position: relative;
  background-color: #03a9f4;
  color: #fff;
  font-weight: bold;
  margin: 5px;
  transition: all 200ms ease;
}

.tabs .tab-btn:hover {
  background-color: #e8821c;
  transition: all 200ms ease;
}

.tabs .tab-btn.active {
  transform: scale(0.95);
  color: #fff;
  background-color: #e8821c;
  box-shadow: inset 0px 8px 5px #ab5d10, inset 0px 40px 30px #db8733;
  transition: all 200ms ease;
}

/* SLIDER CONTENT ANIMATION */
#slider .slide.active .custom-slider-content .custom-slider-title {
  opacity: 0;
  animation: slideinTop 1.3s forwards;
  animation-delay: 0.5s;
}

#slider .slide.active .custom-slider-content .fusion-text {
  opacity: 0;
  animation: slideinTop 1.3s forwards;
  animation-delay: 1.5s;
}

#slider .slide.active .custom-slider-content .fusion-button {
  opacity: 0;
  animation: slideinTop 1.3s forwards;
  animation-delay: 3s;
}

@keyframes slideinTop {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* KONTAKT */

.contact-list .fusion-li-icon.fa-info-square.fas:before {
  content: "DIČ";
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.contact-list .fusion-li-icon.fa-info-circle.fas:before {
  content: "IČ";
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* RESPO */
@media (max-width: 815px) {
  .fusion-page-title-secondary {
    display: none !important;
  }

  footer.fusion-widget-area::before {
    display: none;
  }

  footer.fusion-widget-area > .fusion-row {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .about-us-box .fusion-column-wrapper {
    border-width: 0 !important;
  }

  .about-us-box::after {
    display: none;
  }
}

@media (max-width: 1520px) {
  #slider .arrow-left,
  #slider .arrow-right {
    top: unset;
    bottom: 0 !important;
  }

  #slider .arrow-left {
    left: unset;
    right: 150px;
  }
}

@media (max-width: 950px) {
  #slider {
    height: 60vh !important;
    min-height: 500px;
  }

  #slider .slide {
    height: 60vh;
    min-height: 500px;
  }
  #slider > div .n1.active::after,
  #slider > div .n3.active::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .adv img {
    margin-bottom: 15px;
  }
}

.logo_vyrobce_na_karte {
  position: absolute !important;
  right: 20px;
  top: 20px;
}

.logo_vyrobce_na_karte img {
  width: 80px;
  height: auto;
  max-height: 70px;
}

#wpc-term-taxonomy-product_cat-25 {
  display: none !important;
}

.wpc-filter-content.wpc-filter-product_cat.wpc-filter-has-hierarchy {
  background-color: #444d5512;
  padding: 11px;
  border-radius: 6px;
}

.wpc-filters-main-wrap ul.children {
  list-style: none;
  margin-left: -15px;
}

i.wpc-toggle-children-list:after,
i.wpc-toggle-children-list:before {
  background-color: #e8821c;
}

/* Posuň sub-menu priamo pod nadradenú položku */
.fusion-menu .fusion-dropdown-menu {
  left: 0 !important;
  top: 100% !important;
  transform: none !important;
}

/* Zabráň posunu submenu hore alebo bokom pri hover */
.fusion-menu .fusion-dropdown-menu .fusion-submenu-wrapper {
  left: 0 !important;
  top: auto !important;
}

/* Prvá úroveň submenu = vertikálne dole */
.fusion-menu .fusion-dropdown-menu .sub-menu {
  left: 0 !important;
  top: 100% !important;
}

/* Druhá úroveň submenu nech ostane vpravo (ak ju používaš) */
.fusion-menu .fusion-dropdown-menu .sub-menu .sub-menu {
  left: 100% !important;
  top: 0 !important;
}

.fusion-woo-cart
  .woocommerce-variation
  .woocommerce-variation-price:not(:empty) {
  margin-right: 0.5em;
  font-size: 28px;
  color: #24b524;
}

bdi {
  color: #0087c9 !important;
}

div
  > div
  > div
  > div.fusion-layout-column.fusion_builder_column.fusion-builder-column-2.fusion_builder_column_2_5.\32
  _5.fusion-flex-column
  > div
  > div.fusion-woo-cart.fusion-woo-cart-1
  > form
  > div.single_variation_wrap
  > div.woocommerce-variation.single_variation
  > div.woocommerce-variation-price
  > span
  > span {
  display: none !important;
}

/* Zarovnání variant (hodnot) doprava ve WooCommerce */
.woocommerce div.product form.cart .variations td.value {
  text-align: right;
}
.tppl-open-popup-widget {
  width: 100% !important;
}

/* Aby se i tlačítka variant (např. 1kg, 5kg, 25kg) zarovnala doprava */
.woocommerce
  div.product
  form.cart
  .variations
  td.value
  .variable-items-wrapper {
  justify-content: flex-end !important;
}

/* Spoločné: label vľavo, value vpravo */
.single-product .summary form.cart table.variations {
  width: 100%;
}

.single-product .summary form.cart table.variations td.label {
  width: 30%;
  text-align: left;
  vertical-align: middle;
}

/* KĽÚČOVÉ: všetky value bunky ako flex a doprava */
.single-product .summary form.cart table.variations td.value {
  width: 70%;
  display: flex; /* spraví z bunky flex-kontejner */
  justify-content: flex-end; /* všetko v bunke doprava */
  align-items: center;
}

/* Swatche (1 kg, 25 kg, 5 kg) – nech sa neprilepia naľavo */
.single-product
  .summary
  form.cart
  table.variations
  td.value
  .variable-items-wrapper,
.single-product
  .summary
  form.cart
  table.variations
  td.value
  .woo-variation-items-wrapper {
  display: flex;
  justify-content: flex-end;
}

/* Selecty (Odstín) – text doprava, ale šírka môže zostať 100% */
.single-product .summary form.cart table.variations td.value select {
  width: auto; /* ak chceš menší select; daj 100%, ak má byť cez riadok */
  text-align-last: right;
}

.avada-select-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end !important;
}

/*               KOŠIK                   */

.wc-block-cart .wc-block-cart__submit-container {
  padding: 0;
  background-color: #67b7e1;
  color: #fff;
}

.wc-block-components-button__text {
  color: #fff;
  font-weight: bold;
}

button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
  background-color: #67b7e1;
  border: none;
}

.stock.in-stock {
  font-size: 0;
}

.stock.in-stock::before {
  content: "Skladem";
  font-size: 14px;
  font-weight: inherit;
  color: inherit;
}

.stock.out-of-stock {
  font-size: 0;
}

.stock.out-of-stock::before {
  content: "Není skladem";
  font-size: 14px;
  font-weight: inherit;
  color: inherit;
}

.fusion-woo-cart-1 .woocommerce-variation .price {
  flex-direction: row-reverse;
  color: rgb(130 130 130);
  font-family: inherit;
  font-weight: 400;
}

/* WOO */
table.shop_table,
table.shop_table tfoot,
table.shop_table ul#shipping_method {
  display: flex;
  flex-direction: column;
}
table.shop_table > thead {
  display: flex;
  justify-content: space-between;
}

table.shop_table > thead tr {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
table.shop_table tfoot > tr {
  display: flex;
  justify-content: space-between;
}
table.shop_table tfoot > tr > * {
  flex-basis: 50%;
}
table.shop_table ul#shipping_method {
  gap: 20px;
}

/* POKLADNA */

@media (max-width: 800px) {
  /*  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout .woocommerce-additional-fields {
    flex-direction: column;
  }
  .woocommerce-checkout .woocommerce-billing-fields .woocommerce-column--half,
  .woocommerce-checkout .woocommerce-shipping-fields
    .woocommerce-column--half,
  .woocommerce-checkout .woocommerce-additional-fields
    .woocommerce-column--half {
    width: 100% !important;
  } */
  form.checkout .tppl-selected-branche {
    flex-direction: column;
  }
  form.checkout .tppl-selected-branche > th:first-child {
    display: none;
  }
  form.checkout .tppl-selected-branche > tr.ppl-content {
    width: 100% !important;
  }
  form.checkout table.shop_table tfoot > tr {
    flex-direction: column;
  }
  form.checkout table.shop_table tfoot > tr * {
    width: 100% !important;
    text-align: left !important;
  }
  form.checkout table.shop_table tfoot > tr #shipping_method li {
    display: flex !important;
    flex-direction: row !important;
  }
  form.checkout table.shop_table tfoot > tr #shipping_method li input {
    width: 12px !important;
    height: 34px !important;
  }
  form.checkout table.shop_table tfoot > tr #shipping_method li label {
    display: flex;
    flex-direction: column;
  }
  .cart-subtotal > th {
    padding-bottom: 0 !important;
  }
}
