/* =====================================================
   ESHOP – HERO (FULL WIDTH)
===================================================== */

/* rimuove padding del container tema */
body.page-id-265 .page-content,
body.page-id-265 main.page-content {
  padding: 0 !important;
}

/* HERO base */
body.page-id-265 .eshop-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: -40px;
  padding: 120px 24px 80px;
  background: url('/wp-content/themes/spicysecrets/assets/hero-spicy-secrets-atmosfera.jpg')
              center / cover no-repeat;
  border-radius: 0;
}

/* overlay */
body.page-id-265 .eshop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.52) 45%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 0;
}

/* stacco verso il contenuto */
body.page-id-265 .eshop-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 30%,
    rgba(255,255,255,0.35) 65%,
    #ffffff 100%
  );
  z-index: 1;
}

/* contenuto sopra overlay */
body.page-id-265 .eshop-hero > * {
  position: relative;
  z-index: 2;
}

/* logo */
.eshop-hero .hero-logo {
  width: 60px;
  margin-bottom: 24px;
}

/* titolo */
body.page-id-265 .eshop-hero h1,
body.page-id-265 .eshop-hero .wp-block-heading {
  color: #fff !important;
  font-size: 3.2rem;
  line-height: 1.05;
  font-weight: 650;
  max-width: 720px;
  margin-bottom: 26px;
}

/* testo */
body.page-id-265 .eshop-hero p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
}

/* CTA secondaria */
body.page-id-265 .eshop-hero p:last-of-type {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75) !important;
  margin: 0;
}

/* =====================================================
   HERO – LETTERA “i” PERSONALIZZATA
===================================================== */

.drop-i {
  position: relative;
  display: inline-block;
  width: 0.3em;
  color: transparent;
}

.drop-i::before {
  content: 'ı';
  color: #fff;
}

.drop-i::after {
  content: '';
  position: absolute;
  left: -0.09em;
  top: 0;
  width: 0.45em;
  height: 0.45em;
  background-color: var(--warm-gold);
  mask: url('/wp-content/themes/spicysecrets/assets/goccia-cuore.svg') center / contain no-repeat;
  -webkit-mask: url('/wp-content/themes/spicysecrets/assets/goccia-cuore.svg') center / contain no-repeat;
}
@media (max-width: 768px){
	.drop-i::after {
		top: -0.1em;
	}
}

/* =====================================================
   HERO – RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  body.page-id-265 .eshop-hero {
    padding: 110px 18px 90px;
  }

  body.page-id-265 .eshop-hero::before {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.70) 0%,
      rgba(0,0,0,0.45) 60%,
      rgba(0,0,0,0.25) 100%
    );
  }
body.page-id-265 .eshop-hero h1,
body.page-id-265 .eshop-hero .wp-block-heading {
    font-size: 2.2rem;
  }

 
  body.page-id-265 .eshop-hero-pills a {
    padding: 5px 13px;
    font-size: 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.22);
  }
}
/* =====================================================
   HERO – CATEGORIE TESTUALI
===================================================== */

/* DESKTOP – 1 RIGA */
body.page-id-265 .eshop-hero-pills {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-wrap: nowrap;            /* ✅ UNA RIGA */
  justify-content: center;
  align-items: center;
  gap: 18px;

  white-space: nowrap;
  z-index: 3;
}

/* link testuali */
body.page-id-265 .eshop-hero-pills a,
body.page-id-265 .eshop-hero-pills .wp-block-button__link {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;

  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;

  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;

  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

body.page-id-265 .eshop-hero-pills a:hover {
  color: #ffffff !important;
  border-bottom-color: rgba(255,255,255,0.6);
}

/* =====================================================
   MOBILE – 2 RIGHE GARANTITE
===================================================== */

@media (max-width: 768px) {

  body.page-id-265 .eshop-hero {
    padding-top: 110px;
  }

  body.page-id-265 .eshop-hero-pills {
    display: grid;

    /* 🔑 BLOCCO STRUTTURALE */
    grid-template-rows: repeat(2, auto); /* SOLO 2 RIGHE */
    grid-auto-flow: column;               /* riempie per colonne */

    column-gap: 18px;
    row-gap: 8px;

    justify-content: center;
    max-width: 320px;

    top: 14px;
  }

  body.page-id-265 .eshop-hero-pills a {
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: center;
  }
    body.page-id-265 .eshop-hero-pills {
    row-gap: 2px;          /* 🔽 distanza reale tra le 2 righe */
  }

  body.page-id-265 .eshop-hero-pills a {
    line-height: 1.05;     /* 🔽 riduce altezza “invisibile” */
  }
}

/* =====================================================
   HERO – FIX ALTEZZA REALE CATEGORIE (GUTENBERG)
===================================================== */

body.page-id-265 .eshop-hero-pills .wp-block-button {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;   /* 🔑 QUESTO */
  height: auto !important;
  line-height: normal !important;

  display: contents;          /* 🔥 elimina il box fantasma */
}

/* link reale */
body.page-id-265 .eshop-hero-pills .wp-block-button__link {
  padding: 2px !important;
  margin: 2px !important;
  min-height: 0 !important;
  height: auto !important;

  line-height: 1.05 !important;
}

/* =====================================================
   NASCONDE TITOLO AUTOMATICO PAGINA
===================================================== */

body.page-id-265 .page-title,
body.page-id-265 .entry-title {
  display: none;
}
/* =====================================================
   ESHOP – CATEGORIE GRID (WRAPPER + FIX GUTENBERG)
===================================================== */

/* contenitore reale (wrapper) */
body.page-id-265 .eshop-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 5;
}

/* neutralizza wrapper Gutenberg */
body.page-id-265 .eshop-categories .wp-block-columns {
  display: contents;
}

/* card: colonna flex per CTA in basso */
body.page-id-265 .eshop-categories .wp-block-column {
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 200px; /* stessa altezza minima */
}

/* elimina margine extra dell’ultimo paragrafo */
body.page-id-265 .eshop-categories .wp-block-column p:last-of-type {
  margin-bottom: 0 !important;
}

/* blocco pulsanti sempre in basso */
body.page-id-265 .eshop-categories .wp-block-buttons {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 0;
}

body.page-id-265 .eshop-categories .wp-block-button {
  margin: 0 !important;
}

/* stile bottone (il tuo era qui) */
body.page-id-265 .eshop-categories .wp-block-button__link {
  background: transparent;
  color: var(--night-black);
  border: 1.5px solid var(--warm-gold);
  padding: 4px 26px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.2;
}

/* tablet */
@media (max-width: 1024px) {
  body.page-id-265 .eshop-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  body.page-id-265 .eshop-categories {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ESHOP – PRODOTTI IN EVIDENZA (FEATURED)
===================================================== */

body.page-id-265 .eshop-featured {
  padding: 80px 20px;
  text-align: center;
}

/* UL prodotti: reset + grid */
body.page-id-265 .eshop-featured ul.products {
  /* reset Woo/theme */
  list-style: none !important;
  padding: 0 !important;
  margin: 40px 0 0 !important;
  float: none !important;
  width: 100% !important;

  /* grid */
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

/* rimuove clearfix/pseudo */
body.page-id-265 .eshop-featured ul.products::before,
body.page-id-265 .eshop-featured ul.products::after {
  display: none !important;
  content: none !important;
}

/* LI prodotto: niente float/width del tema + layout flex */
body.page-id-265 .eshop-featured ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;          /* lascia decidere al grid */
  margin: 0 !important;

  display: flex;
  flex-direction: column;

  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease;
}

body.page-id-265 .eshop-featured ul.products li.product:hover {
  transform: translateY(-4px);
}

/* CTA sempre in basso */
body.page-id-265 .eshop-featured ul.products li.product .button,
body.page-id-265 .eshop-featured ul.products li.product .add_to_cart_button {
  margin-top: auto !important;
  align-self: center;
  min-width: 180px;
  padding: 12px 18px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

/* tablet */
@media (max-width: 1024px) {
  body.page-id-265 .eshop-featured ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile */
@media (max-width: 600px) {
  body.page-id-265 .eshop-featured ul.products {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ESHOP – SALE CAROUSEL
===================================================== */
.eshop-sale-header .drop-i::after {
        top: +0.2em; 
    }

.eshop-sale-header p{
 
  line-height: 1.35;
  text-align: center;
  color: #FFF;
  top: 0;


  overflow: hidden;
}
.eshop-sale-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px 0;
  background: #000;
  overflow: hidden;
}

.eshop-sale-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 5vw;            /* ❗ solo orizzontale */
  align-items: stretch;     /* allinea gli item */
}


/* =====================================================
   CARD
===================================================== */

.eshop-sale-item {
  flex: 0 0 240px;
  max-width: 240px;
  scroll-snap-align: start;
}


.eshop-sale-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
}

/* =====================================================
   IMMAGINE
===================================================== */

.eshop-sale-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f7f7f7;
}


.eshop-sale-thumb img {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
}

/* badge sconto */
.eshop-sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--warm-gold);
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* disabilita badge WooCommerce */
.eshop-sale-carousel .onsale {
  display: none;
}

/* =====================================================
   TESTO
===================================================== */

.eshop-sale-info {
  flex: 1 0 auto;
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}
.eshop-sale-item:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}


.eshop-sale-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  color: #111;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* rompe il layout constrained di Gutenberg SOLO per il carosello */

.eshop-sale-title {
  width: 100%;
  min-width: 0;
}
/* ===============================
   PREZZI CARD CAROSELLO
================================ */

.eshop-price {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
}

.eshop-price .price-regular {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.eshop-price .price-sale {
  font-size: 18px;
  color: #d4af37; /* oro Spicy */
}

.eshop-price .price-current {
  font-size: 18px;
  color: #d4af37;
}


/* ===========================
   SALE CAROUSEL – ARROWS
=========================== */

.eshop-sale-carousel{
  position: relative;
}

.eshop-sale-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;

  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;

  display: grid;
  place-items: center;
  cursor: pointer;

  transition: background .2s ease, transform .2s ease;
}

.eshop-sale-arrow:hover{
  background: rgba(0,0,0,.85);
  transform: translateY(-50%) scale(1.05);
}

.eshop-sale-arrow.prev{ left: 12px; }
.eshop-sale-arrow.next{ right: 12px; }

/* mobile: niente frecce */
@media (max-width: 768px){
  .eshop-sale-arrow{ display: none; }
}
/* fade laterali */
.eshop-sale-carousel::before,
.eshop-sale-carousel::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:60px;
  pointer-events:none;
  z-index:4;
}

.eshop-sale-carousel::before{
  left:0;
  background: linear-gradient(to right, #000 0%, transparent 100%);
}

.eshop-sale-carousel::after{
  right:0;
  background: linear-gradient(to left, #000 0%, transparent 100%);
}
/* FIX scrollbar troppo in basso */
.eshop-sale-track{
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;

  padding-left: 5vw;
  padding-right: calc(5vw + 120px); /* 🔑 mezza card visibile */

  align-items: stretch;
}


/* Chrome / Edge */
.eshop-sale-track::-webkit-scrollbar{
  height: 8px;
}

.eshop-sale-track::-webkit-scrollbar-track{
  background: transparent;
}

.eshop-sale-track::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.35);
  border-radius: 999px;
}

.eshop-sale-carousel{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: #000;
  overflow: hidden;

  /* 🔑 più respiro sopra */
  padding-top: 40px;
  padding-bottom: 40px;
}
/* SNAP MOBILE */
@media (max-width: 768px) {

  .eshop-sale-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .eshop-sale-item {
    scroll-snap-align: center;
  }

}

/* ===========================
   SALE HEADER
=========================== */

.eshop-sale-header{
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 5vw;
  text-align: center;   /* 👈 centro */
}



.eshop-sale-header h2{
  margin: 0;
  color: #fff;

  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.eshop-sale-header h2::after{
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto 0;  /* 👈 centro perfetto */

  background: #c9a24d;
}


/* mobile */
@media (max-width: 768px){
  .eshop-sale-header{
    margin-bottom: 24px;
  }

  .eshop-sale-header h2{
    font-size: 2rem;
  }
}

/* ===========================
   TRUST SECTION – FULL WIDTH
=========================== */

.trust-section{
  position: relative;

  width: 100vw;
  left: 50%;
  margin-left: -50vw;

  background: #fff;
  padding: 20px 6vw;
  z-index: 2;
}

.trust-grid{
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.trust-item{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 10px 10px;
  border-radius: 18px;
  background: #fff;

  text-decoration: none;
  color: inherit;

  transition: background .2s ease, transform .2s ease;
}

.trust-item:hover{
  background: #f2f2f2;
  transform: translateY(-4px);
}

.trust-icon{
  font-size: 34px;
  margin-bottom: 14px;
}

.trust-item h3{
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.trust-item p{
  font-size: .95rem;
  line-height: 1.4;
  color: #555;
}

/* MOBILE */
@media (max-width: 900px){
  .trust-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  .trust-grid{
    grid-template-columns: 1fr;
  }
}

/* ============================
   CATEGORIE ESHOP – OVERLAY
============================ */

/* wrapper sezione */
.ss-eshop-cats {
  margin-top: 48px;
}

/* righe più compatte */
.ss-eshop-cats .wp-block-columns {
  gap: 14px;
  margin-bottom: 14px;
}

/* singola card */
.ss-eshop-cat {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 10px;
}

/* immagine */
.ss-eshop-cat img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: brightness(0.85);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* titolo overlay */
.ss-eshop-cat h3 {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: #ffffff;
  
  align-items: flex-end;
  padding-bottom: 22px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* link overlay: rende cliccabile tutta la card */
.ss-eshop-cat h3 a {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  color: inherit;
  text-decoration: none;
}

/* hover card */
.ss-eshop-cat:hover img {
  filter: brightness(0.6);
  transform: translateY(-2px);
}

/* hover testo */
.ss-eshop-cat:hover h3 {
  color: #d4a64f; /* oro Spicy Secrets */
}

/* mobile */
@media (max-width: 768px) {
  .ss-eshop-cat h3 {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .ss-eshop-cats .wp-block-columns {
    gap: 10px;
    margin-bottom: 10px;
  }
}
.ss-eshop-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

.ss-eshop-cat:hover::before {
  opacity: 0.85;
}

