/*
Theme Name: Glowing Child Theme
Theme URI: https://glowing.g5plus.net/
Author: G5 Theme
Author URI: https://themeforest.net/user/g5theme
Description: Child theme for Glowing Theme
Version: 1.0.0
Template: glowing
Text Domain: glowing-child
*/

/* ---------------------------------------------------------
   MENU MOBILE G5Core (off-canvas)
   --------------------------------------------------------- */
.g5core-menu-mobile .main-menu-wrapper a.x-menu-link {
  font-size: 1.1rem !important;
  color: #fff !important;
  font-weight: 500;
}

.g5core-menu-mobile .main-menu-wrapper a.x-menu-link:hover {
  color: #ddd !important;
}

/* Social networks nel menu mobile */
#g5core_menu_mobile .mobile-socials {
  display: flex;
  justify-content: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#g5core_menu_mobile .g5core-social-networks {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#g5core_menu_mobile .g5core-social-networks a {
  color: #000 !important;
  font-size: 22px;
  transition: color 0.2s ease;
}

#g5core_menu_mobile .g5core-social-networks a i {
  color: #fff !important;
}

#g5core_menu_mobile .g5core-social-networks a:hover,
#g5core_menu_mobile .g5core-social-networks a:hover i {
  color: #ddd !important;
}

/* ---------------------------------------------------------
   CATEGORIE DESKTOP
   --------------------------------------------------------- */
.wc-block-product-categories > ul li {
  margin-top: 1.5rem !important;
  font-weight: 600 !important;
}

.wc-block-product-categories > ul li ul li {
  margin-top: 0 !important;
  font-weight: 400 !important;
}

.wc-block-product-categories > ul li > a,
.wp-block-page-list li > a,
.wp-block-archives li > a,
.wp-block-categories li > a {
  margin: 3px 0 !important;
}

/* ---------------------------------------------------------
   HEADER SEARCH BAR CUSTOM
   --------------------------------------------------------- */
.agape-header-search-bar {
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  position: relative;
  z-index: 20;
}

.agape-header-search-bar .container {
  max-width: 1850px !important;
}

.agape-header-search-bar__inner {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0;
}

.agape-product-search-form {
  width: 25%;
  min-width: 400px;
}

.agape-product-search-form__field {
  position: relative;
}

.agape-product-search-input {
  width: 100%;
  height: 46px;
  border: 1px solid #ececec;
  border-radius: 22px;
  background: #fff;
  padding: 0 58px 0 18px;
  font-size: 0.95rem;
  line-height: 1;
  outline: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.agape-product-search-input:focus {
  background: #ececec;
  border-color: #ececec;
  box-shadow: none;
}

.agape-product-search-input::placeholder {
  color: #666;
}

.agape-product-search-submit {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.agape-product-search-submit:hover {
  background: #111;
}

.agape-search-icon {
  width: 15px;
  height: 15px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z'/%3E%3C/svg%3E");
}

.agape-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.agape-search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: #111;
  background: #fff;
  transition: background-color 0.18s ease;
}

.agape-search-suggestion + .agape-search-suggestion {
  border-top: 1px solid #f4f4f4;
}

.agape-search-suggestion:hover,
.agape-search-suggestion.is-active {
  background: #f7f7f7;
}

.agape-search-suggestion--empty {
  display: block;
  padding: 12px 14px;
  color: #666;
  cursor: default;
}

.agape-search-suggestion__thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agape-search-suggestion__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agape-search-suggestion__thumb--empty {
  background: #f3f3f3;
}

.agape-search-suggestion__title {
  font-size: 0.93rem;
  line-height: 1.3;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .agape-product-search-form {
    width: 35%;
    min-width: 280px;
  }
}

/* Search custom nel gruppo header after_menu - desktop */
@media (min-width: 992px) {
  .agape-header-search-bar.agape-header-search-bar--in-header {
    background: transparent;
    border: 0;
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    margin: 0 1rem 0 0;
    padding: 0;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header .container {
    max-width: none !important;
    width: auto;
    padding: 0;
    margin: 0;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header
    .agape-header-search-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header
    .agape-product-search-form {
    width: 320px;
    min-width: 320px;
    margin: 0;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header
    .agape-product-search-form__field {
    position: relative;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header
    .agape-product-search-input {
    height: 40px;
    background: #f5f5f5;
    border: none;
  }

  .agape-header-search-bar.agape-header-search-bar--in-header
    .agape-search-suggestions {
    top: calc(100% + 10px);
  }

  .g5core-header-customize-after_menu .g5core-header-customize-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
}

/* ---------------------------------------------------------
   FOOTER TAXONOMY COLUMNS
   --------------------------------------------------------- */
footer {
  background-color: #000 !important;
}

.agape-footer-taxonomy-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agape-footer-taxonomy-list__item {
  margin: 0 0 2px 0;
  padding: 0;
}

.agape-footer-taxonomy-list__link {
  font-size: 14px;
  font-weight: 400;
  color: #fff !important;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.agape-footer-taxonomy-list__link:hover {
  opacity: 0.7;
}

#site-footer .ube-heading-title,
#site-footer h2.ube-heading-title,
#site-footer h3.ube-heading-title,
#site-footer .elementor-heading-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------------------------------------------------------
   GENERIC / WISHLIST / PRODUCT
   --------------------------------------------------------- */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  display: none !important;
}

.yith-wcwl-share li a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  padding: 7px;
  display: grid;
  place-items: center;
  border: none;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  margin: 0 0.2rem;
  margin-bottom: 1rem;
}

.copy-target {
  width: 100%;
}

.wishlist-title-container {
  display: none !important;
}

/* ---------------------------------------------------------
   TEMPLATE ELEMENTOR CLEAN
   --------------------------------------------------------- */
body.page-template-page-elementor-clean .g5core-page-title,
body.page-template-page-elementor-clean #sidebar,
body.page-template-page-elementor-clean .primary-sidebar,
body.page-template-page-elementor-clean .breadcrumbs-wrap,
body.page-template-page-elementor-clean .page-title-inner {
  display: none !important;
}

body.page-template-page-elementor-clean.has-sidebar #main-content,
body.page-template-page-elementor-clean #main-content,
body.page-template-page-elementor-clean #main-content.col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.page-template-page-elementor-clean #primary-content > .container,
body.page-template-page-elementor-clean #primary-content > .container > .row,
body.page-template-page-elementor-clean #main-content {
  max-width: 100% !important;
  width: 100% !important;
}

body.page-template-page-elementor-clean #primary-content > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-elementor-clean #primary-content {
  padding-top: 0 !important;
}

body.page-template-page-elementor-clean .wrapper-content {
  padding-top: 0 !important;
}

body.page-template-page-elementor-clean .agape-elementor-clean-template {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-template-page-elementor-clean
  .agape-elementor-clean-template
  > *:first-child {
  margin-top: 0 !important;
}

body.page-template-page-elementor-clean
  .agape-elementor-clean-template
  .elementor-section.elementor-section-boxed
  > .elementor-container,
body.page-template-page-elementor-clean
  .agape-elementor-clean-template
  .e-con-boxed,
body.page-template-page-elementor-clean .agape-elementor-clean-template .e-con {
  max-width: 100%;
}

/* ---------------------------------------------------------
   MOBILE / TABLET
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .single-product .g5shop__panel-heading h4 {
    position: relative;
    margin-right: 20px !important;
    cursor: pointer;
  }

  .single-product .g5shop__panel-heading h4::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    transform-origin: center;
    transition: transform 0.25s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  }

  .single-product .g5shop__panel-heading h4[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .agape-header-search-bar.agape-header-search-bar--below-header {
    background: #fff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    position: relative;
    z-index: 20;
    display: block;
    width: 100%;
  }

  .agape-header-search-bar.agape-header-search-bar--below-header .container {
    max-width: 1850px !important;
  }

  .agape-header-search-bar.agape-header-search-bar--below-header
    .agape-header-search-bar__inner {
    display: flex;
    justify-content: stretch;
    padding: 10px 0;
  }

  .agape-header-search-bar.agape-header-search-bar--below-header
    .agape-product-search-form {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  /* Shop mobile: 2 prodotti affiancati */
  .g5shop__listing-inner.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -7px !important;
    margin-right: -7px !important;
  }

  .g5shop__listing-inner.row > article.g5shop__product-item,
  .g5shop__listing-inner.row > article.g5core__gutter-item.g5shop__product-item,
  .g5shop__listing-inner.row > article.col-12 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 16px !important;
  }

  .g5shop__listing-inner.row
    > article.g5shop__product-item
    .g5core__post-item-inner {
    height: 100% !important;
  }

  .g5shop__listing-inner.row .g5shop__loop-product-title {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  .g5shop__listing-inner.row .g5shop__product-info .price {
    font-size: 1rem !important;
  }

  /* Mobile shop filters custom */
  #sidebar.agape-sidebar-mobile-hidden,
  .sidebar.agape-sidebar-mobile-hidden,
  aside.agape-sidebar-mobile-hidden,
  .g5core-page-sidebar.agape-sidebar-mobile-hidden {
    display: none !important;
  }

  .agape-mobile-shop-filters {
    padding: 18px 15px 18px 15px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 18px;
  }

  .agape-mobile-shop-filters__groups {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
  }

  .agape-mobile-shop-filters__subgroups {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      max-height 0.32s ease,
      opacity 0.25s ease,
      transform 0.32s ease;
    border-top: 1px solid #f7f7f7;
    padding-top: 14px;
  }

  .agape-mobile-shop-filters__subgroups.is-open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .agape-filter-group-btn,
  .agape-filter-subgroup-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 16px !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      transform 0.2s ease,
      box-shadow 0.25s ease;
  }

  .agape-filter-group-btn:active,
  .agape-filter-subgroup-link:active {
    transform: scale(0.98);
  }

  .agape-filter-group-btn.is-active,
  .agape-filter-subgroup-link.is-active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
  }

  .agape-filter-group-btn {
    font-weight: 600 !important;
  }

  .agape-filter-subgroup-link {
    font-weight: 500 !important;
    padding: 8px 14px !important;
  }

  .g5shop__shop-toolbar-mobile .g5shop__filter-button {
    display: none !important;
  }

  .g5core-page-title-default .page-title-inner {
    padding: 30px 0 !important;
    padding-bottom: 10px !important;
  }

  .g5shop__shop-toolbar-bottom-inner {
    display: none !important;
  }

  #primary-content {
    padding-top: 0 !important;
  }

  .woocommerce .products.related > h2,
  .woocommerce .products.upsells > h2 {
    margin-bottom: 35px !important;
  }

  /* Header search mobile */
  .agape-header-search-bar__inner {
    justify-content: stretch;
    padding: 10px 0;
  }

  .agape-product-search-form {
    width: 100%;
    min-width: 0;
  }

  .agape-product-search-input {
    height: 44px;
  }

  .agape-search-suggestion__title {
    font-size: 0.9rem;
  }

  .page-main-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  /* Footer taxonomy mobile */
  .agape-footer-taxonomy-list__link {
    font-size: 14px;
  }

  /* Wishlist mobile */
  .wishlist_table.mobile li .product-add-to-cart a.button {
    background-color: #fff;
    border: solid 1px #000;
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    justify-content: center;
    letter-spacing: 0.02rem;
  }

  .wishlist_table.mobile li .product-add-to-cart a.button:hover {
    background-color: #000;
    border: solid 1px #000;
    color: #fff;
  }

  .shop_table.cart.wishlist_table.wishlist_view.responsive.mobile {
    margin-top: 0.5rem;
  }

  .yith_wcwl_wishlist_footer > div {
    margin-top: 0;
  }

  .g5shop__mini-cart .widget_shopping_cart_content {
    right: -45px !important;
  }
}

@media (max-width: 575.98px) {
  /* Correlati mobile: 2 card per riga dentro slick */
  .single-product .related.products .slick-slide {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .single-product .related.products .slick-list {
    margin-left: -7px !important;
    margin-right: -7px !important;
  }

  .single-product .related.products .g5shop__loop-product-title {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  .single-product .related.products .price {
    font-size: 1rem !important;
  }
}

.g5shop_header-action-icon.g5shop__header-action-my-account {
  margin-right: 1rem;
}

/* ---------------------------------------------------------
   SOTTOTITOLO PRODOTTO ACF
   --------------------------------------------------------- */

.single-product .bbcos-product-subtitle {
  margin: 0;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  color: #000;
  line-height: 1.4;
}

.woocommerce ul.products li.product .bbcos-loop-product-subtitle,
.g5shop__product-item .bbcos-loop-product-subtitle {
  margin: 4px 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025rem;
  color: #555;
  line-height: 1.25;
}

/* ==========================================================================
   Top bar promozionale personalizzata
   Gestisce la fascia superiore del sito con messaggio scorrevole e messaggio fisso.
   Usata per comunicazioni commerciali, scontistiche, promo e info di spedizione.
   ========================================================================== */

.g5core-top-bar .container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.g5core-top-bar-inner,
.g5core-top-bar-left,
.g5core-top-bar-item {
  width: 100%;
}

.g5core-top-bar,
.g5core-top-bar .container,
.g5core-top-bar-inner,
.g5core-top-bar-left,
.g5core-top-bar-item {
  border: 0;
  box-shadow: none;
}

.topbar-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.topbar-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  background: #9190c4;
}

.topbar-marquee-track {
  display: flex;
  width: max-content;
  animation: topbar-marquee 32s linear infinite;
}

.topbar-marquee-group {
  display: flex;
  align-items: center;
  min-width: 100vw;
  flex-shrink: 0;
}

.topbar-marquee-group span {
  display: inline-block;
  padding: 8px 40px;
  font-weight: 600;
}

.topbar-static {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-weight: 700;
  border: 0;
  background: #000;
}

@keyframes topbar-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.box-shadow-description {
  text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------
   ARCHIVIO CATEGORIE ARTICOLO - CLEAN HEADER/FOOTER
   Template Elementor: categorie-articolo
   Elementor ID: 7497
   --------------------------------------------------------- */

/* Nasconde elementi del tema non necessari nell'archivio categoria articoli */
body.category.elementor-page-7497 .g5core-page-title,
body.category.elementor-page-7497 .breadcrumbs-wrap,
body.category.elementor-page-7497 .page-title-inner,
body.category.elementor-page-7497 #sidebar,
body.category.elementor-page-7497 .primary-sidebar {
  display: none !important;
}

/* Rende il contenuto principale full width */
body.category.elementor-page-7497 #main-content,
body.category.elementor-page-7497 #main-content.col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Porta il wrapper contenuto a larghezza piena */
body.category.elementor-page-7497 #primary-content > .container,
body.category.elementor-page-7497 #primary-content > .container > .row,
body.category.elementor-page-7497 #main-content {
  max-width: 100% !important;
  width: 100% !important;
}

/* Rimuove padding laterali del container del tema */
body.category.elementor-page-7497 #primary-content > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Rimuove spazio superiore generato dal tema */
body.category.elementor-page-7497 #primary-content,
body.category.elementor-page-7497 .wrapper-content {
  padding-top: 0 !important;
}

/* Evita margini indesiderati sulla riga principale */
body.category.elementor-page-7497 #primary-content > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Evita padding interni del main content */
body.category.elementor-page-7497 #main-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Frecce gallery prodotto */
.woocommerce-product-gallery .flex-control-thumbs {
  position: relative;
  padding: 0 48px;
}

.woocommerce div.product div.images .flex-control-thumbs {
  overflow: visible;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s ease;
  opacity: 1 !important;
  z-index: 20;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-arrow:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-prev {
  position: absolute;
  left: 10px;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-next {
  position: absolute;
  right: 10px;
}

.woocommerce-product-gallery .flex-control-thumbs .slick-arrow i {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

/* Disabilitata visibile ma soft */
.woocommerce-product-gallery .flex-control-thumbs .slick-disabled {
  opacity: 0.35 !important;
  cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-product-gallery .flex-control-thumbs {
    padding: 0 40px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-arrow {
    width: 30px;
    height: 30px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-arrow i {
    font-size: 16px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-prev {
    left: 6px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-next {
    right: 6px;
  }
}

@media (max-width: 480px) {
  .woocommerce-product-gallery .flex-control-thumbs {
    padding: 0 34px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-arrow {
    width: 28px;
    height: 28px;
  }

  .woocommerce-product-gallery .flex-control-thumbs .slick-arrow i {
    font-size: 15px;
  }
}

.poptin-popup .poptin-credit {
  display: none !important;
}

/* ---------------------------------------------------------
   HOMEPAGE - Slider categorie Elementor con Slick
   Sezione: elementor-element-e291c1c
   --------------------------------------------------------- */

/* Nasconde il conteggio "items" solo nella sezione categorie */
.elementor-element-e291c1c .woocommerce-loop-category__title .count,
.elementor-element-e291c1c mark.count {
  display: none !important;
}

/* Scope principale: lavora solo sulla sezione categorie */
.elementor-element-e291c1c.agape-home-category-slider {
  position: relative;
}

/* Contenitore reale delle categorie */
.elementor-element-e291c1c.agape-home-category-slider [data-items-container] {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Slick viewport */
.elementor-element-e291c1c.agape-home-category-slider .slick-list {
  overflow: hidden;
  margin-left: -12px;
  margin-right: -12px;
  padding-top: 10px;
  padding-bottom: 32px;
}

/* Track */
.elementor-element-e291c1c.agape-home-category-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

/* Gap tra le categorie: 24px totali */
.elementor-element-e291c1c.agape-home-category-slider .slick-slide {
  height: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.elementor-element-e291c1c.agape-home-category-slider .slick-slide > div {
  height: 100%;
}

/* Neutralizza le larghezze/padding della griglia solo dentro questo slider */
.elementor-element-e291c1c.agape-home-category-slider article.product-category,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}

/* Mantiene la card alta uguale dentro Slick */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__post-item-inner,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__post-item-inner {
  height: 100%;
}

/* ---------------------------------------------------------
   Frecce slider categorie
   --------------------------------------------------------- */

.elementor-element-e291c1c.agape-home-category-slider
  .agape-category-slider-arrow {
  border: 2px solid var(--g5-color-border);
  border-radius: 50%;
  background: #fff;
  color: #000;
  position: absolute;
  top: 42%;
  margin: 0;
  transform: translateY(-50%);
  transform-origin: center;
  width: 48px;
  height: 48px;
  line-height: 48px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  box-shadow: none;
}

.elementor-element-e291c1c.agape-home-category-slider
  .agape-category-slider-arrow:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.elementor-element-e291c1c.agape-home-category-slider
  .agape-category-slider-arrow
  i {
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

.elementor-element-e291c1c.agape-home-category-slider
  .agape-category-slider-prev {
  left: -60px;
}

.elementor-element-e291c1c.agape-home-category-slider
  .agape-category-slider-next {
  right: -60px;
}

/* ---------------------------------------------------------
   Hover foto categorie: no overlay scuro, sì box-shadow
   --------------------------------------------------------- */

/* Rimuove overlay scuro generato dal tema solo in questa sezione */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__post-featured::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__post-featured::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__post-featured::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__post-featured::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
}

/* Wrapper immagine */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__post-featured,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__post-featured,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail {
  position: relative;
  overflow: visible;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Hover foto: ombra dietro, niente scurimento */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  .g5core__post-featured,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  .g5core__post-featured,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  .g5shop__product-category-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  .g5shop__product-category-thumbnail {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

/* Immagine sempre pulita */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  img,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  img,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  img,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  img {
  opacity: 1 !important;
  filter: none !important;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

/* Tablet: 3 categorie */
@media (max-width: 991.98px) {
  .elementor-element-e291c1c.agape-home-category-slider .slick-list {
    margin-left: -9px;
    margin-right: -9px;
    padding-top: 8px;
    padding-bottom: 28px;
  }

  .elementor-element-e291c1c.agape-home-category-slider .slick-slide {
    padding-left: 9px;
    padding-right: 9px;
  }

  .elementor-element-e291c1c.agape-home-category-slider
    .agape-category-slider-prev {
    left: -16px;
  }

  .elementor-element-e291c1c.agape-home-category-slider
    .agape-category-slider-next {
    right: -16px;
  }
}

/* Mobile: 2 categorie */
@media (max-width: 575.98px) {
  .elementor-element-e291c1c.agape-home-category-slider .slick-list {
    margin-left: -7px;
    margin-right: -7px;
    padding-top: 6px;
    padding-bottom: 24px;
  }

  .elementor-element-e291c1c.agape-home-category-slider .slick-slide {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* Frecce categorie visibili solo su schermi molto larghi */
@media (max-width: 1599.98px) {
  .elementor-element-e291c1c.agape-home-category-slider
    .agape-category-slider-arrow {
    display: none !important;
  }
}

@media (min-width: 1600px) {
  .elementor-element-e291c1c.agape-home-category-slider
    .agape-category-slider-prev {
    left: -60px;
  }

  .elementor-element-e291c1c.agape-home-category-slider
    .agape-category-slider-next {
    right: -60px;
  }
}

/* ---------------------------------------------------------
   HOMEPAGE - Categorie slider: hover foto senza overlay
   --------------------------------------------------------- */

/* Rimuove overlay scuro generato dal tema sulla categoria */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail::after,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail::before,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
}

/* Transizione morbida sulla foto */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  .g5shop__product-category-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  .g5shop__product-category-thumbnail {
  position: relative;
  overflow: visible;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Hover: niente overlay, solo ombra dietro */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  .g5core__entry-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category:hover
  .g5shop__product-category-thumbnail,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category:hover
  .g5shop__product-category-thumbnail {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

/* Mantiene l'immagine pulita */
.elementor-element-e291c1c.agape-home-category-slider
  article.product-category
  img,
.elementor-element-e291c1c.agape-home-category-slider
  article.g5shop__product-category
  img {
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.3s ease;
}

.ppcp-messages,
.paypal-messages,
[data-pp-message] {
  display: none !important;
}

/* ---------------------------------------------------------
   TOP BAR MOBILE - marquee + static + search sotto
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Forza il container header in colonna per controllare l'ordine */
  .g5core-header-mobile,
  .g5core-header-mobile-inner {
    display: flex;
    flex-direction: column;
  }

  /* Top bar mobile sempre in cima */
  .g5core-header-mobile .g5core-top-bar,
  .g5core-top-bar-mobile {
    order: 1;
    width: 100%;
  }

  /* Header principale (logo + icone + menu) */
  .g5core-header-mobile .g5core-header-mobile-main,
  .g5core-header-mobile-content {
    order: 2;
  }

  /* Search bar sotto tutto */
  .agape-header-search-bar.agape-header-search-bar--below-header {
    order: 3;
  }

  /* Marquee mobile: velocità leggermente più alta e padding più compatti */
  .topbar-marquee-track {
    animation-duration: 22s;
  }

  .topbar-marquee-group span {
    padding: 7px 28px;
    font-size: 0.85rem;
  }

  .topbar-static {
    padding: 8px 0;
    font-size: 0.85rem;
  }

  /* Reset eventuali padding/container del theme nella topbar mobile */
  .g5core-header-mobile .g5core-top-bar .container,
  .g5core-header-mobile .g5core-top-bar-inner,
  .g5core-header-mobile .g5core-top-bar-item {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* ---------------------------------------------------------
   STICKY TOPBAR + HEADER - DESKTOP
   --------------------------------------------------------- */
@media (min-width: 992px) {
  /* Topbar fissa in cima */
  body #site-header > .g5core-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: #000;
  }

  body.admin-bar #site-header > .g5core-top-bar {
    top: 32px;
  }

  /* Spazio per la topbar che ora è fuori dal flow */
  body #site-header {
    padding-top: var(--agape-topbar-height, 81px);
  }

  /* Header desktop fixed (sticky JS del theme): si attacca sotto la topbar */
  body .sticky-area-wrap.sticky .sticky-area.g5core-header-desktop-wrapper {
    top: var(--agape-topbar-height, 81px) !important;
    z-index: 1000;
  }

  body.admin-bar
    .sticky-area-wrap.sticky
    .sticky-area.g5core-header-desktop-wrapper {
    top: calc(var(--agape-topbar-height, 81px) + 32px) !important;
  }

  /* Search dentro l'header: z-index basso così la topbar le sta sopra */
  .agape-header-search-bar.agape-header-search-bar--in-header {
    z-index: 1;
  }
}

/* ---------------------------------------------------------
   STICKY TOPBAR + HEADER - MOBILE
   Fissa topbar marquee + "consegna gratuita" + header logo/icone
   La search resta scrollabile sotto
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Wrapper completo dell'header mobile fixed in cima */
  body #site-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: #fff;
  }

  body.admin-bar #site-mobile-header {
    top: 46px;
  }

  /* Spacer per compensare l'header fixed (che è fuori dal flow) */
  body #site-mobile-header::after {
    content: "";
    display: block;
  }

  /* Push del contenuto sotto per non finire coperto */
  body.has-mobile-fixed-header #wrapper_content,
  body #site-mobile-header + * {
    /* il margine verrà gestito via JS con CSS variable */
  }

  /* Search sotto l'header mobile fixed: scrolla normalmente */
  body .agape-header-search-bar.agape-header-search-bar--below-header {
    position: relative;
    z-index: 5;
    margin-top: var(--agape-mobile-header-height, 130px);
  }

  body.admin-bar
    .agape-header-search-bar.agape-header-search-bar--below-header {
    margin-top: calc(var(--agape-mobile-header-height, 130px) + 46px);
  }
}



/* ---------------------------------------------------------
   MINI CART - Fix totale carrello sovrapposto ai prodotti
   --------------------------------------------------------- */

.g5shop__mini-cart .widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
}

/* Lista prodotti */
.g5shop__mini-cart .woocommerce-mini-cart,
.g5shop__mini-cart ul.woocommerce-mini-cart,
.g5shop__mini-cart .cart_list,
.g5shop__mini-cart .product_list_widget {
  position: relative !important;
  overflow: visible !important;
  max-height: none !important;
  margin-bottom: 20px !important;
}

/* Totale / subtotale */
.g5shop__mini-cart .woocommerce-mini-cart__total,
.g5shop__mini-cart .widget_shopping_cart_content .total,
.g5shop__mini-cart .widget_shopping_cart_content p.total {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  clear: both !important;
  margin: 18px 0 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ececec !important;
  z-index: auto !important;
}

/* Bottoni sotto al totale */
.g5shop__mini-cart .woocommerce-mini-cart__buttons,
.g5shop__mini-cart .widget_shopping_cart_content .buttons {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  margin-top: 0 !important;
  z-index: auto !important;
}

/* Evita sovrapposizioni interne dei singoli prodotti */
.g5shop__mini-cart .woocommerce-mini-cart-item,
.g5shop__mini-cart .mini_cart_item {
  position: relative !important;
  overflow: hidden;
}


/* ---------------------------------------------------------
   MINI CART - Scroll unico del contenitore completo
   --------------------------------------------------------- */

/* Quando il mini-cart è aperto, blocca lo scroll della pagina */
body.agape-mini-cart-open {
  overflow: hidden !important;
}

/* Il contenitore del mini-cart è l'unico elemento scrollabile */
.g5shop__mini-cart .widget_shopping_cart_content {
  display: block !important;
  max-height: calc(100dvh - 120px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 60px !important;
  box-sizing: border-box !important;
}

/* La lista prodotti NON deve avere uno scroll proprio */
.g5shop__mini-cart .woocommerce-mini-cart,
.g5shop__mini-cart ul.woocommerce-mini-cart,
.g5shop__mini-cart .cart_list,
.g5shop__mini-cart .product_list_widget {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  margin-bottom: 20px !important;
}

/* Totale nel flusso normale */
.g5shop__mini-cart .woocommerce-mini-cart__total,
.g5shop__mini-cart .widget_shopping_cart_content .total,
.g5shop__mini-cart .widget_shopping_cart_content p.total {
  position: static !important;
  clear: both !important;
  width: 100% !important;
  margin: 18px 0 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ececec !important;
  z-index: auto !important;
}

/* Bottoni nel flusso normale */
.g5shop__mini-cart .woocommerce-mini-cart__buttons,
.g5shop__mini-cart .widget_shopping_cart_content .buttons {
  position: static !important;
  width: 100% !important;
  margin: 0 0 24px 0 !important;
  padding-bottom: 24px !important;
  z-index: auto !important;
}

/* Evita blocchi strani sui singoli prodotti */
.g5shop__mini-cart .woocommerce-mini-cart-item,
.g5shop__mini-cart .mini_cart_item {
  position: relative !important;
  overflow: visible !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  .g5shop__mini-cart .widget_shopping_cart_content {
    max-height: calc(100dvh - 90px) !important;
    padding-bottom: 80px !important;
  }

  .g5shop__mini-cart .woocommerce-mini-cart__buttons,
  .g5shop__mini-cart .widget_shopping_cart_content .buttons {
    margin-bottom: 32px !important;
    padding-bottom: 32px !important;
  }
}




