/*
Theme Name: Formarta Child
Theme URI: https://formarta.qodeinteractive.com
Description: A child theme of Formarta
Author: Elated Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: formarta
Template: formarta
*/

/* Top header section */
@media only screen and (max-width: 1024px) {
  #qodef-top-area {
    display: block;
  }
}

#qodef-page-header .qodef-header-logo-link img {
    max-width: 200px !important;
}
#qodef-page-mobile-header .qodef-mobile-header-logo-link img.qodef--main {
    max-width: 160px !important;
    margin-bottom: 22px !important;
}

/* Watermark */
/* #qodef-page-outer::before {
  content: "";
  position: absolute;
  top: 220px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: url('https://www.deelightwork.gr/wp-content/themes/formarta-child/img/deelightwork-sm-logo.png') no-repeat top right;
  background-size: contain;
  opacity: 0.65;
  pointer-events: none;
} */
.qodef-page-title::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 0;
  right: 20px;
  z-index: 1000;
  width: 100px;
  background: url('https://www.deelightwork.gr/wp-content/themes/formarta-child/img/deelightwork-sm-logo-white.png') no-repeat top right;
  background-size: contain;
  opacity: 0.95;
  pointer-events: none;
}
/* Override */
.qodef-page-title.no-before::before {
  content: none !important; /* removes the pseudo-element */
}
@media only screen and (max-width: 1024px) {
  .qodef-page-title::before {
    width: 80px;
    right: 10px;
    opacity: 1;
  }
}
@media only screen and (max-width: 599px) {
  .qodef-page-title.qodef-title--standard .qodef-m-subtitle {
    max-width: 86%;
  }
}

/* Product Page */
.woocommerce-product-gallery > .woocommerce-product-gallery__trigger {
    display: none !important;
}

.single-product #qodef-page-outer::before,
.woocommerce-page #qodef-page-outer::before,
.woocommerce-cart #qodef-page-outer::before,
.woocommerce-checkout #qodef-page-outer::before,
.woocommerce-account #qodef-page-outer::before {
    top: 150px;
    width: 100px;
    height: 100px;
}
@media screen and (max-width: 799px) {
    #qodef-page-outer::before {
        display: none;
    }
    .mfp-arrow.mfp-arrow-left,
    .mfp-arrow.mfp-arrow-right {
        opacity: 0.80 !important;
        width: 50px !important;
        background-color: #fff;
        box-shadow: 4px 4px 15px #000;
        border-radius: 50%;
    }
    .mfp-arrow.mfp-arrow-left {
        left: 10px !important;
    }
    .mfp-arrow.mfp-arrow-right {
        right: 10px !important;
    }
}

.widget.widget_nav_menu .qodef-widget-title {
    font-size: 13px;
    font-weight: 600 !important;
    letter-spacing: .05em;
}

.home .elementor-element {
    padding: 0px !important;
}

.gg-lang-selector,
.gg-lang-selector p {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: none;
}

.menu-item .gg-lang-selector {
    display: flex;
    margin-top: 8px;
}
.menu-item .gg-lang-selector a {
    margin: 0 5px 0 0;
}
.menu-item .gg-lang-selector strong {
    margin: 0 5px;
}
.menu-item .gg-lang-selector a:first-child {
    margin: 0;
}
@media screen and (min-width: 799px) {
    .menu-item .gg-lang-selector {
        display: none !important;
    }
}

/* Hide quantity buttons and stock info when quantity is hidden */
.qodef-quantity-buttons:has(input.wc-qty-hidden) {
    display: none !important;
}
.single-product:has(input.wc-qty-hidden) .stock {
    display: none !important;
}

.single-product .wc-qty-hidden,
.single-product .wc-qty-hidden .qodef-quantity-buttons,
.single-product .qodef-quantity-buttons.wc-qty-hidden {
    display: none !important;
}

input.wc-qty-hidden ~ .qodef-quantity-minus,
input.wc-qty-hidden ~ .qodef-quantity-plus,
input.wc-qty-hidden ~ label {
    display: none;
}

@media screen and (max-width: 480px) {
    #qodef-woo-page.qodef--single .woocommerce-product-gallery__wrapper > .qodef-woo-thumbnails-wrapper > .woocommerce-product-gallery__image {
        display: block;
    }
    #qodef-woo-page.qodef--single .woocommerce-product-gallery__wrapper {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    .qodef-woo-thumbnails-wrapper {
        padding-top: 20px;
    }
}

/* Page Titles */
.page-title-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.qodef-svg--underline-decoration {
  margin-top: 8px;
  width: 100%;
}

/* FAQs extra css */
#qodef-page-outer.faq-background {
    background-image: url("https://www.deelightwork.gr/wp-content/themes/formarta-child/img/gourds-1.png");
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto;
}

/*----------------------------------------*/
/* 58. Cookie Consent Settings Button */
/*----------------------------------------*/
#cc_change_settings {
    display: block;
    z-index: 1001;
    position: fixed;
    left: 20px;
    bottom: 15px;
    background-color: rgba(0,0,0,.8);
    transition: all .3s ease;
    color: var(--theme-white);
    text-align: center;
    height: 35px;
    outline: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    border-radius: 0;
    border: none;
    text-decoration: none;
    padding: 3px;
    cursor: pointer;
}
#cc_change_settings.cc__gdpr_icon {
    display: -ms-inline-flexbox;
    display: inline-flex;
    line-height: 40px;
    float: left;
    font-size: 30px;
    min-width: 40px;
    height: 40px;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    z-index: 15;
    position: relative;
    background-color: transparent;
}
#cc_change_settings span {
    transition: all .3s ease;
}
#cc_change_settings span svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.mfp-title, .mfp-counter {
  color: #090909 !important;
}

/* Masonry Gallery */

.hm-masonry-gallery {
    column-count: 3;
    column-gap: 1rem;
}

/* Set inside hm_masonry_gallery_shortcode php */
/* @media (max-width: 1200px) {
    .hm-masonry-gallery { column-count: 3; }
} */
/* @media (max-width: 768px) {
    .hm-masonry-gallery { column-count: 2; }
}
@media (max-width: 480px) {
    .hm-masonry-gallery { column-count: 1; }
} */

.hm-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.hm-image-wrapper {
    position: relative;
    overflow: hidden;
    /* border-radius: 12px; */
    cursor: pointer;
}

.hm-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover scale effect */
.hm-image-wrapper:hover img {
    transform: scale(1.1);
}

/* Caption overlay */
.hm-caption {
    position: absolute;
    /* inset: 0; */
    bottom: 0;
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: #fff;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hm-image-wrapper:hover .hm-caption,
.hm-caption.show {
    opacity: 1;
}

.dw_hide {
    display: none !important;
}

/* Hide cart count elements */
.count,
.cart-count,
.wc-block-mini-cart__badge,
.wc-block-mini-cart__items-count,
.qodef-widget-mini-dropdown-cart-outer .qodef-m-opener-count,
.qodef-widget-dropdown-cart-inner .qodef-m-opener-count {
    display: none !important;
}

@media screen and (max-width: 420px) {
    .widget_formarta_core_woo_dropdown_cart .qodef-m-opener .qodef-m-opener-text,
    .widget_shopping_cart .qodef-m-opener .qodef-m-opener-text {
        max-width: 90px;
        word-break: break-all;
        color: #4a4848;
        font-size: 11px;
    }
    
    #qodef-page-mobile-header .qodef-widget-holder .widget {
        margin: 0 !important;
    }
    
    #qodef-page-mobile-header-inner {
        padding: 0 7% 0 3% !important;
    }
}

/* Show Menu-item only in mobile */
@media screen and (min-width: 1025px) {
    .menu-item.only-mobile {
        display: none !important;
    }
}

/* Hide cart widget from mobile header */
#qodef-page-mobile-header-inner .widget_formarta_core_woo_dropdown_cart {
    display: none;
}
