/*!
 * ecwid-child.css
 * Stili personalizzati per lo shop Ecwid (solo UI, nessuna logica).
 * Autore: Francesco Solfaroli / biocarecosmetics.store
 */

/* ==========================================
 * 00 – Font Ecwid allineati al sito
 * ========================================== */

/* Font base per tutto lo store Ecwid */
#my-store-126084007,
#my-store-126084007 * {
  font-family: var(--default-font) !important;
}

/* Titolo prodotto e nome prodotto con font dei heading */
#my-store-126084007 .ec-product__title,
#my-store-126084007 .grid-product__title,
#my-store-126084007 .details-product__name {
  font-family: var(--heading-font) !important;
  font-weight: 600;
}

/* Pulsanti principali con font del menu di navigazione */
#my-store-126084007 .ec-cart__button,
#my-store-126084007 .form-control__button,
#my-store-126084007 button {
  font-family: var(--nav-font) !important;
}

/* ==========================================
 * Override 01 – Titolo shop solo nella home
 * ========================================== */

#best-sellers .section-title {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#best-sellers .section-title.is-visible {
  display: block;
  opacity: 1;
}

/* ==========================================
 * Override 02 – Styling prodotto nella griglia
 * ========================================== */

#my-store-126084007 .ec-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

#my-store-126084007 .ec-product-grid .ec-product {
  flex: 1 0 30%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

#my-store-126084007 .ec-product-grid .ec-product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================
 * Override 03 – CTA moderne
 * ========================================== */

.ec-size .ec-store .btn {
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

.ec-size .ec-store .ec-cart__button {
  background-color: #111;
  color: #fff;
  border: none;
}

.ec-size .ec-store .ec-cart__button:hover {
  background-color: #444;
}

/* ==========================================
 * Override 04 – Box prodotto arrotondato
 * ========================================== */

#my-store-126084007 .ec-product {
  border-radius: 12px;
  overflow: hidden;
}

#my-store-126084007 .ec-product img {
  border-radius: 12px 12px 0 0;
}

/* ==========================================
 * Override 05 – Lazy load immagini
 * ========================================== */

#my-store-126084007 .ec-product img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#my-store-126084007 .ec-product img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==========================================
 * Override 06 – Filtri
 * ========================================== */

.ec-size .ec-store .ec-category-filter {
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 10px;
}

.ec-size .ec-store .ec-category-filter .ec-filter {
  margin: 0;
  padding: 5px 10px;
  background-color: #fff;
  border: 1px solid #ddd;
}

.ec-size .ec-store .ec-category-filter .ec-filter:hover {
  background-color: #f1f1f1;
}

/* ==========================================
 * Override 07 – Header Ecwid sticky (interno store)
 * ========================================== */

#ec-store-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================
 * FIX HEADER PRINCIPALE DEL SITO
 * (ok tenerlo, non tocca Ecwid)
 * ========================================== */

#header.header.sticky-top {
  position: sticky;
  top: 0;
  z-index: 11000 !important;
  background-color: #fff;
}

/* ==========================================
 * Override 08 – Padding interno shop
 * ========================================== */

body:not(.ecwid-home) #my-store-126084007 {
  padding-top: 50px;
}

/* ==========================================
 * Override 09 – Nascondi IVA
 * ========================================== */

.product-details__product-price-taxes,
.ec-footer {
  display: none !important;
}

/* ==========================================
 * Override 10 – Header shop Ecwid in cima
 * (footer Ecwid con iconcine sopra la griglia)
 * ========================================== */

.ec-size .ec-store .ec-store__content-wrapper {
  display: flex;
  flex-direction: column;
}

.ec-size .ec-store .ec-footer {
  order: -1;
  margin-bottom: 24px;
  text-align: center;
}

.ecwid-overlay,
.ecwid-popup,
.ecwid-ProductBrowserPopup {
  display: none;
}

.fallback-message {
  position: absolute;
  top: 265px;
  /* regolabile */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  /* per stare nel container */
  z-index: 999;
  padding: 20px 30px;
}

.fallback-message .alert {
  margin: 0 auto;
}


html#ecwid_html body#ecwid_body div.ecwid-productBrowser {
  padding: 0 !important;
}

html#ecwid_html body#ecwid_body .ec-size .ec-store .ec-store__content-wrapper {
  margin: 0 !important;
}

.ec-page-title {
  display: none !important;
}

/* Desktop: tutto normale */
.account-shortcuts {
  display: none;
}

/* Mobile: sostituiamo la breadcrumb con la mini-nav */
@media (max-width: 767.98px) {

  .page-title .breadcrumbs {
    display: none !important;
  }

  .account-shortcuts {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0.5rem 0.0rem 0.5rem;
    border-radius: 0 0 10px 10px;
  }

  .account-shortcut {
    text-decoration: none;
    font-size: 0.72rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .account-shortcut i {
    font-size: 1.2rem;
    display: block;
  }

  .account-shortcut span {
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

.nav-blog {
  display: none !important;
}

html#ecwid_html body#ecwid_body .ec-size .ec-store .ec-store__content-wrapper:not(.ec-store__content-wrapper--wide) {
  max-width: 100% !important;
}