/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/



.hot-pill-tag {
    display: inline-block;
    background-color: var(--e-global-color-secondary); /* o il colore che preferisci */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2.5px 11px;
    border-radius: 4px;
    margin-bottom: 4px;
	text-transform: uppercase;
}

.product-customizable-tag {
    display: block;
    width: 180px;
    background-color: #e1ece4;
    color: #5F817F;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px;
    margin: 5px auto 0px auto;
    border-radius: 5px;
    text-align: center;
}

.title-dad h1 {
  font-family: "ohno-blazeface", sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase;
}

.product_type_yith_bundle {
  display: none !important;
}

.elementor-cta__content {
  background: radial-gradient(circle, #A11915, #A11915) !important;
  padding: 10px;
  border-radius: 0 0 20px 20px;
}

/* --- PILL CONTIENE CLIPPER METAL (effetto oro con riflessi) --- */
.metal-pill-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #3b1f0b;
  background: linear-gradient(
    135deg,
    #fff8e1 0%,
    #f9d976 15%,
    #b88700 35%,
    #f6e27a 55%,
    #b88700 100%
  );
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* === BADGE PRODOTTO TONDO (Idea Regalo / Metal) === */
.myclipper-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 5;
}

.gift-idea-badge {
  width: 60px;
  height: 60px;
  background-color: #143263;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: normal;
}

.gift-idea-badge:hover,
.metal-clipper-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.metal-clipper-tag {
  background-color: #4b0000;
}

/* Assicura il posizionamento corretto nel loop */
.product-item,
.woocommerce ul.products li.product,
.elementor-widget-wc-products .woocommerce li.product {
  position: relative !important;
}

/* ===== FILTRI FESTA DEL PAPA ===== */
.papa-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.papa-filters .pf-btn {
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border: none !important;
}

.papa-filters .pf-btn:hover {
  background: #f9f9f9;
  transform: translateY(-1px);
}

.papa-filters .pf-btn.is-active,
.papa-filters .pf-btn[aria-pressed="true"] {
  background: #8699b5;
  color: #fff;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.papa-filters .pf-count {
  background: #f2f2f2;
  color: #111;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

.papa-filters .pf-btn::before {
  content: attr(data-emoji);
  font-size: 16px;
  margin-right: 4px;
}

.novita-pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 4px;
  margin-right: 4px;
  white-space: nowrap;
  background-image: linear-gradient(120deg, #B80707, #ff7a3c, #B80707);
  background-size: 200% 200%;
  animation: novitaGradient 3s ease infinite;
}

@keyframes novitaGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.love-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.love-filters .lf-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.love-filters .lf-btn.is-active,
.love-filters .lf-btn[aria-pressed="true"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

.love-filters .lf-count {
  margin-left: 6px;
  opacity: 0.8;
  font-weight: 600;
}



/* === TAG NEW VOCI MENÙ === */

/* DESKTOP (default) – il badge prende il suo spazio, niente overlap con la voce accanto */
.new-tag-menu {
  position: relative;
  display: inline-block;
  padding-right: 2em; /* spazio extra riservato al tag in apice */
}

.new-tag-menu::after {
  content: "NEW";
  position: absolute;
  top: -0.6em;          /* apice */
  right: 0;             /* agganciato al bordo destro del testo */
  line-height: 1;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5em 0.45em;
  border-radius: 5px;

  /* Gradiente animato metal */
  background-image: linear-gradient(
    120deg,
    #ff1e1e,
    #ffb347,
    #ff1e1e,
    #ff6b6b
  );
  background-size: 300% 100%;
  animation: new-tag-metal 2.5s linear infinite;

  color: #ffffff;
  white-space: nowrap;
}

/* MOBILE – il badge non sposta la voce, sta in apice subito dopo il testo */
@media (max-width: 767px) {
  .new-tag-menu {
    padding-right: 0; /* la voce rimane dov'è */
  }

  .new-tag-menu::after {
    top: -0.6em;          /* sempre apice */
    right: auto;
    left: 100%;           /* subito dopo il testo */
    margin-left: 0.35em;  /* piccolo distacco orizzontale */
  }
}

/* Animazione metal (comune) */
@keyframes new-tag-metal {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* === Contenitore immagine: serve come ancoraggio === */
.woocommerce div.product .woocommerce-product-gallery__image {
  position: relative;
}

/* Badge in alto a sinistra sopra l'immagine */
.fb-official-clipper-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 999;          /* sopra zoom/lightbox */
  pointer-events: none;  /* non intralcia */
}

.fb-official-clipper-badge img {
  display: block;
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
}



/* === Bottone di anteprima (preview-button) === */
.preview-button {
    background-color: var(--e-global-color-primary);
    margin-left: auto !important;
    margin-bottom: auto !important;
    margin-top: 8px !important;
    padding: 16px !important;
    font-size: 12px !important;
    border: 0;
    border-radius: 8px;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.preview-button:hover {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
}

/* === WooCommerce: lente galleria (z-index fix) === */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 50 !important;
}

/* === Sovrascrivere colore prezzi prodotti === */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.price {
    color: var(--e-global-color-secondary) !important;
}

/* === Applica stile al pulsante prodotti esauriti === */

.esaurito {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed;
    pointer-events: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: none;
    border: 1px solid #ccc;
}

a.button.esaurito,
button.button.esaurito,
.woocommerce a.button.esaurito,
.woocommerce button.button.esaurito {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed;
    pointer-events: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: none;
}


/* === Griglia layout prodotti (product-grid & related-products-grid) === */
.product-grid,
.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-start;
    margin-top: 20px;
	align-items: flex-start; /* NEW */
}

/* === Card prodotto e correlati === */
.product-item,
.related-product-item {
    background: #fff;
    border-radius: 35px;
    box-shadow: 5px 15px 40px -20px rgba(0, 0, 0, 0.24) !important;
    padding: 5px 5px 20px;
    width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
	height: auto;           /* NEW */
    align-self: flex-start; /* NEW */
}

@media (min-width: 1024px) {
    .product-item,
    .related-product-item {
        min-height: 430px;  /* prova e aggiusta: 400–500px in base ai contenuti */
    }
}


/* === Prezzo prodotti === */
.related-product-item .woocommerce-Price-amount {
	color: var(--e-global-color-secondary) !important;
}

/* === Immagini prodotto === */
.product-item img,
.related-product-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 32px !important;
    display: block;
    margin-bottom: 1em;
    box-shadow: none;
}

/* === Titoli prodotto === */
.product-title,
.related-product-title {
    color: var(--e-global-color-secondary);
    font-family: futura-pt-bold, Sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
}

/* === Prezzo prodotto === */
.price,
.related-product-item .price {
    color: var(--e-global-color-secondary);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Pulsante Aggiungi al carrello === */
.button.add_to_cart_button,
.related-product-item .button.add_to_cart_button, .button-bundle {
    background-color: var(--e-global-color-primary) !important;
    color: var(--e-global-color-secondary) !important;
    border-radius: 50px !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95em !important;
    text-transform: uppercase;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-family: "futura-pt-bold", Sans-serif;
    line-height: 1.2em;
    padding: 12px 18px 12px 18px;
    margin-top: 0;
	width: 90%;
}


/* FAI QUESTO: bottone sempre in fondo */
.product-item .button.add_to_cart_button,
.related-product-item .button.add_to_cart_button,
.product-item .button-bundle,
.related-product-item .button-bundle {
    margin-top: auto;  /* spinge il bottone al fondo della card */
}

.button.add_to_cart_button:hover,
.related-product-item .button.add_to_cart_button:hover {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
}

/* === Filtri Milleusi (look storico) === */
.myclipper-seasonal-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto 24px;
    padding: 0;
}

.myclipper-seasonal-filters .mf-btn,
.myclipper-seasonal-filters .metal-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #f3f3f3 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--e-global-color-secondary) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "futura-pt-bold", Sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 18px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.myclipper-seasonal-filter-emoji {
    display: none;
}

.myclipper-seasonal-filters [data-emoji]::before {
    content: attr(data-emoji);
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.02em);
}

.mf-count,
.metal-count,
.ls-count {
    background: rgba(8, 51, 107, 0.12) !important;
    border-radius: 999px;
    display: inline-block;
    min-width: 1.2em;
    padding: 2px 6px;
    text-align: center;
}

.myclipper-seasonal-filters .mf-btn:hover,
.myclipper-seasonal-filters .metal-btn:hover {
    background: #ececec !important;
    color: var(--e-global-color-secondary) !important;
}

.myclipper-seasonal-filters .mf-btn.is-active,
.myclipper-seasonal-filters .metal-btn.is-active,
.myclipper-seasonal-filters .mf-btn[aria-pressed="true"],
.myclipper-seasonal-filters .metal-btn[aria-pressed="true"] {
    background: var(--e-global-color-secondary) !important;
    box-shadow: 0 8px 18px rgba(8, 51, 107, 0.18) !important;
    color: #fff !important;
}

.myclipper-seasonal-filters .mf-btn.is-active .mf-count,
.myclipper-seasonal-filters .mf-btn[aria-pressed="true"] .mf-count,
.myclipper-seasonal-filters .metal-btn.is-active .metal-count,
.myclipper-seasonal-filters .metal-btn[aria-pressed="true"] .metal-count {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

/* === Filtri Mamma  === */
/* ===== FILTRI FESTA DELLA MAMMA ===== */
.mamma-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.mamma-filters .mamma-btn {
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border: none !important;
}

.mamma-filters .mamma-btn:hover {
  background: #fff4f8;
  transform: translateY(-1px);
}

.mamma-filters .mamma-btn.is-active,
.mamma-filters .mamma-btn[aria-pressed="true"] {
  background: #E78FB3;
  color: #fff;
  border-color: #D96A9B;
  box-shadow: 0 2px 8px rgba(231, 143, 179, 0.35);
  transform: translateY(-1px);
}

.mamma-filters .mamma-count {
  background: #FCE8F1;
  color: #B84F7F;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

.mamma-filters .mamma-btn::before {
  content: attr(data-emoji);
  font-size: 16px;
  margin-right: 4px;
}

.myclipper-seasonal-load-more {
    display: block;
    margin: 10px auto 0;
}

.myclipper-seasonal-load-more.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

/* === Spinner AJAX (loading stato bottone) === */
.add_to_cart_button.loading {
    pointer-events: none;
    position: relative;
}

.add_to_cart_button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Box informativo spedizione === */
.box-info-spedizione {
    background-color: #f2f2f2; /* grigio chiaro neutro */
    border-radius: 10px;       /* angoli arrotondati */
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;               /* colore base del testo */
    text-align: left;
    max-width: 400px;
    width: 100%;               /* responsivo */
    box-sizing: border-box;    /* assicura padding incluso nella larghezza */
}

/* Paragrafi all'interno */
.box-info-spedizione p {
    margin: 0 0 6px;
    color: var(--e-global-color-secondary, #555); /* fallback se non definito */
}

/* Rimuove margine finale dall’ultimo paragrafo */
.box-info-spedizione p:last-child {
    margin-bottom: 0;
}

/* Responsive: centrato su schermi piccoli */
@media (max-width: 480px) {
    .box-info-spedizione {
        font-size: 14px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === Link checkbox (privacy policy, termini) === */
.woocommerce-form__label-for-checkbox a {
    color: var(--e-global-color-primary);
    text-decoration: underline;
}

/* === Responsive layout === */
@media (max-width: 1024px) {
    .product-item,
    .related-product-item {
        width: calc(50% - 20px); /* Tablet: 2 prodotti per riga */
    }
}

@media (max-width: 768px) {
    .product-item,
    .related-product-item {
        width: 100%; /* Mobile: 1 prodotto per riga */
        margin-bottom: 20px;
    }

    .myclipper-seasonal-filters {
        gap: 10px;
        padding: 0 8px;
    }

    .myclipper-seasonal-filters .mf-btn,
    .myclipper-seasonal-filters .metal-btn {
        max-width: 100%;
    }

    .mamma-filters .mamma-btn {
        max-width: 100%;
    }
}

/* === FIX centratura loop prodotti su mobile & tablet === */
/* Centra SEMPRE la griglia */
.product-grid,
.related-products-grid {
  justify-content: center !important;   /* centra le card */
  align-items: flex-start;               /* mantiene le altezze auto */
}

/* Mobile & Tablet: card larghe max 360px e centrate */
@media (max-width: 1024px) {
  .product-item,
  .related-product-item {
    flex: 0 1 360px !important;   /* base 360, riducibile se serve */
    max-width: 360px !important;  /* non oltre 360 */
    width: 100%;                  /* gestisce padding interni */
    margin: 0 auto 20px !important; /* centra la card nella colonna */
  }
}

/* Smartphone stretti: stessi principi */
@media (max-width: 768px) {
  .product-item,
  .related-product-item {
    flex: 0 1 360px !important;
    max-width: 360px !important;
    width: 100%;
    margin: 0 auto 20px !important;
  }
}

.myclipper-seasonal-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin: 18px auto 0;
  padding-top: 6px;
  width: 100%;
}

.myclipper-seasonal-pagination__status {
  color: var(--e-global-color-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0.82;
  flex-basis: 100%;
  text-align: center;
}

.myclipper-seasonal-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 50px;
  text-decoration: none;
  background-color: #fff;
  color: var(--e-global-color-secondary);
  font-weight: 600;
  border: 1px solid rgba(82, 103, 149, 0.16);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.myclipper-seasonal-pagination__link--prev::before {
  content: '\2190';
  font-size: 0.95em;
}

.myclipper-seasonal-pagination__link--next::after {
  content: '\2192';
  font-size: 0.95em;
}

.myclipper-seasonal-pagination__link:hover,
.myclipper-seasonal-pagination__link:focus {
  background-color: rgba(82, 103, 149, 0.06);
  color: var(--e-global-color-secondary);
  border-color: rgba(82, 103, 149, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .myclipper-seasonal-pagination {
    gap: 8px;
  }

  .myclipper-seasonal-pagination__link {
    width: min(100%, 260px);
  }
}
