input, textarea{
  text-transform: none!important;
}

/* Custom styles split out from the main child stylesheet */

.qodef-woo-product-list.qodef-item-layout--presentational .qodef-e .qodef-e-media-inner {
  border: 1px solid #0000b4;
  padding: 0 !important;
  border-radius: 7px;
}

/* IMG_PRODOTTO_SCROLL deve permettere overflow sopra */
.img_prodotto_scroll {
  position: relative;
  overflow: visible !important;
}

/* Il wrapper della sola immagine diventa la MASCHERA */
.img_prodotto_scroll .qodef-m-image {
  position: relative;
  overflow: visible !important;
  height: 100%;
}

/* Immagine */
.img_prodotto_scroll img {
  display: block;
  width: 50% !important;
  margin: 0 auto;
  position: relative;
  transform: translateY(80%);
  transition: none !important;
  will-change: transform;
}

.mamentia-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 12px 16px 0;
}

.mamentia-breadcrumbs .woocommerce-breadcrumb {
  color: #2c2cb6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mamentia-extra-sections {
  margin-top: 28px;
}

.mamentia-extra-section {
  margin-top: 20px;
}

.mamentia-extra-section h3 {
  margin-bottom: 10px;
  color: #1d1db3;
}

/* Nascondi page title/breadcrumb del tema su prodotto */
.single-product .qodef-page-title {
  display: none !important;
}

/* Nascondi eventuale link alle recensioni residuo */
.single-product .woocommerce-review-link {
  display: none !important;
}

/* Sticky header su mobile */
@media only screen and (max-width: 1024px) {
  #qodef-page-mobile-header {
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  #qodef-page-mobile-header-inner {
    position: static;
    background: #fff;
  }
}

/* Mantieni solo l'icona account (niente avatar/nome) sia desktop che mobile */
#qodef-page-header a[href*="my-account"],
#qodef-page-mobile-header a[href*="my-account"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  min-width: 32px;
  min-height: 32px;
}


/* Forza icona anche per utente loggato (widget membership) */
.qodef-login-opener-widget.qodef-user-logged--in .qodef-logged-in-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
}

.qodef-login-opener-widget.qodef-user-logged--in .qodef-logged-in-user::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23000B99' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7.5' r='3.5'/%3E%3Cpath d='M4.8 19.5c.7-3.1 3.6-5.5 7.2-5.5s6.5 2.4 7.2 5.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.qodef-login-opener-widget.qodef-user-logged--in .qodef-m-user-image,
.qodef-login-opener-widget.qodef-user-logged--in .qodef-m-user-name {
  display: none !important;
}

.qodef-login-opener-widget .qodef-logged-in-user .qodef-m-navigation-items {
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  width: auto !important;
  padding: 10px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(0);
  position: absolute;
  z-index: 9990;
}

.qodef-login-opener-widget .qodef-logged-in-user .qodef-m-navigation-items .qodef-e-icon {
  display: none;
}

.qodef-login-opener-widget .qodef-logged-in-user {
  position: relative;
}

.qodef-login-opener-widget .qodef-logged-in-user:hover .qodef-m-navigation-items,
.qodef-login-opener-widget .qodef-logged-in-user:focus-within .qodef-m-navigation-items,
.qodef-login-opener-widget .qodef-m-navigation-items:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.woocommerce-result-count,
.wp-block-group__inner-container {
  display: none !important;
}

#qodef-woo-page.qodef--single .woocommerce-tabs,
#yith-quick-view-content.single-product .woocommerce-tabs {
  margin-top: 10px !important;
}

/* Sposta i thumbnail sotto l'immagine principale su mobile */
@media only screen and (max-width: 680px) {
  .single-product .woocommerce-product-gallery__wrapper {
    display: flex !important;
    flex-direction: column;
  }

  .single-product .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image {
    order: 1;
  }

  .single-product .woocommerce-product-gallery__wrapper>.qodef-woo-thumbnails-wrapper {
    order: 2;
    margin-top: 14px;
  }
}

/* Pulsante WhatsApp fisso */
#mamentia-whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#mamentia-whatsapp-button svg {
  display: block;
}

@media only screen and (max-width: 680px) {
  #mamentia-whatsapp-button {
    right: 12px;
    bottom: 12px;
  }
}

#mamentia-whatsapp-button {
  color: #25D366;
}

/* area utente */
.woocommerce-dashboard #qodef-page-inner {
  padding-top: 20px !important;
}

/* Shop page */
.shop-header {
  max-width: 960px;
  margin: 0 auto 18px;
  padding: 24px 16px 8px;
  text-align: left;
}

.shop-title {
  line-height: 1.15;
  margin: 0 0 8px;
  color: #0000b4;
}

.shop-subtitle {
  margin: 0;
  font-family: Inter, sans-serif;
  line-height: 1.5em;
  font-weight: 500;
  color: #0000b4;
}

.shop-benefits-bar {
  max-width: 1100px;
  margin: 0 auto 26px;
  padding: 10px 16px;
  background: #f6f6ff;
  color: #0000b4;
  border: 1px solid #e2e5ff;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.shop-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-benefit__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e9ecff;
  color: #13135a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-benefit__icon--skin {
  background: #ffe5f1;
  color: #9b2f5d;
}

.shop-benefit__icon--italy {
  background: #e6f5ec;
  color: #1b5e3c;
}

.shop-info {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.shop-info__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .shop-info__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.shop-card {
  border-radius: 24px;
  padding: 2rem clamp(1.75rem, 3vw, 2.5rem);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shop-card--primary {
  background: linear-gradient(135deg, rgba(255, 184, 217, 0.24), #ffffff);
}

.shop-card--secondary {
  background: #f5f6ff;
}

.shop-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.shop-card__title {
  line-height: 1.2;
  margin: 0;
  color: #0000b4;
}

.shop-variants {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .shop-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shop-variant {
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.shop-variant__name {
  margin: 0 0 0.25rem;
  color: #13135a;
}

.shop-variant__tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
  color: #0c0c5a;
}

.shop-variant__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  color: #3f3f60;
}

.shop-variant__list li::before {
  content: "•";
  margin-right: 0.4rem;
}

.shop-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.shop-highlights__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #3f3f60;
}

.shop-highlights__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e9ecff;
  color: #13135a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-highlights__icon--skin {
  background: #ffe5f1;
  color: #9b2f5d;
}

.shop-highlights__icon--italy {
  background: #e6f5ec;
  color: #1b5e3c;
}

.shop-highlights__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.shop-highlights__item strong {
  font-weight: 600;
  color: #13135a;
}

@media (max-width: 900px) {
  .shop-header {
    text-align: center;
  }
}

.woocommerce-page #qodef-page-inner {
  padding-top: 20px !important;
}

/* disattivazzione scritta paypal e checkbox nel checkout */
.product-template-default .ppcp-messages,
.cart_totals .ppcp-messages,
.hostinger-reach-optin.form-row {
  display: none !important;
}

.privacy-policy #qodef-page-inner,
.template-termini-e-condizioni #qodef-page-inner,
.template-cookie-policy #qodef-page-inner {
  padding-top: 20px !important;
}

.template-cookie-policy #qodef-page-inner p {
  color: black;
  font-weight: normal;
}

.woocommerce-MyAccount-navigation br {
  display: none;
}

/* Footer */
#qodef-page-footer-top-area-inner {
  padding-top: 20px;
  padding-bottom: 20px;
}

#qodef-page-footer-top-area-inner img {
  max-height: 97px;
  width: auto;
}

@media (max-width: 681px) {
  #qodef-page-footer-top-area-inner {
    text-align: center;
  }

  #qodef-page-footer-top-area-inner img {
    max-height: 85px;
    width: auto;
  }
  /* hp hover carrello */
  .qodef-woo-product-list .qodef-e-media-inner .add_to_cart_button, .qodef-woo-product-list .qodef-e-media-inner .added_to_cart, .qodef-woo-product-list .qodef-e-media-inner .product_type_grouped{
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.3s ease;
  }
}


.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details{
  margin-bottom: 48px;
}

/* Applica overflow allo stesso contenitore delle tabelle */
.woocommerce table.shop_table,
.woocommerce table.shop_table_responsive,
table.shop_table,
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Ombra sul contenitore (non sulla tabella) */
.woocommerce table.shop_table::-webkit-scrollbar {
    height: 0; /* nasconde scrollbar per estetica; optional */
}

.woocommerce table.shop_table::after {
    content: "->";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40px;
    pointer-events: none;
    z-index: 2;
}
