/* ————— Contenitore elenco prodotti ————— 
.epv-product-list {
  display: grid;
   Usa CSS Grid per layout responsive 
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;  spazio tra le “card” 
  margin: 0 auto;
  padding: 20px 10px;
  max-width: 1200px;
}

 ————— Singola card prodotto ————— 
.epv-product-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  padding: 16px;
}

.epv-product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

 ————— Immagine prodotto ————— 
.epv-product-item .epv-thumb {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}

 ————— Titolo prodotto ————— 
.epv-product-item h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  line-height: 1.3;
  color: #333333;
}

 ————— Prezzo prodotto ————— 
.epv-product-item .epv-price {
  font-size: 1rem;
  font-weight: bold;
  color: #0073aa;
  margin-top: 4px;
}

 ————— Paginazione ————— 
.epv-pagination {
  text-align: center;
  margin: 30px 0;
}

.epv-pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  color: #0073aa;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.epv-pagination a:hover {
  background-color: #0073aa;
  color: #ffffff;
}

.epv-pagination a.active {
  background-color: #0073aa;
  color: #ffffff;
  border-color: #0073aa;
}

 ————— Dettaglio prodotto ————— 
.epv-product-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.epv-product-detail h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #333333;
}

.epv-product-detail .epv-detail-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.epv-product-detail .epv-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 20px;
}

.epv-product-detail p {
  line-height: 1.6;
  color: #555555;
  margin-bottom: 16px;
}

.epv-product-detail a {
  color: #0073aa;
  text-decoration: none;
}

.epv-product-detail a:hover {
  text-decoration: underline;
}

.epv-category-tree {
  list-style: none;
  padding-left: 20px;
  font-family: inherit;
}

.epv-category-tree li {
  margin: 4px 0;
  position: relative;
}

.epv-category-tree a {
  color: #0073aa;
  text-decoration: none;
}

.epv-category-tree a:hover {
  text-decoration: underline;
}

.epv-cat-toggle {
  cursor: pointer;
  user-select: none;
  margin-right: 6px;
  color: #444;
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

 Sottocategorie nascoste per default 
.epv-category-tree ul {
  display: none;
  margin-left: 15px;
  border-left: 1px dashed #ccc;
  padding-left: 10px;
}

 Nodo aperto 
.epv-category-tree li.open > ul {
  display: block;
  animation: epv-slide-down 0.25s ease;
}

.epv-category-tree li.open > .epv-cat-toggle {
  transform: rotate(90deg);
}

 Animazione slide 
@keyframes epv-slide-down {
  0% { opacity: 0; max-height: 0; }
  100% { opacity: 1; max-height: 500px; }
}

.epv-category-tree-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}*/


/* ---------- Container generali ---------- */
.epv-categories-wrapper,
.epv-product-list,
.epv-category-list {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

/* ---------- Header categoria (immagine + titolo) ---------- */
.epv-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.epv-category-header .epv-cat-thumb,
.epv-category-header .epv-category-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  flex: 0 0 110px;
}
.epv-category-header h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

/* ---------- Griglia categorie (gruppi / sottogruppi) ---------- */
.epv-category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.epv-category-item,
.epv-category-list > li {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 10px;
  border-radius: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.epv-category-item a,
.epv-category-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.epv-category-item:hover,
.epv-category-list > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.epv-category-item .epv-thumb,
.epv-category-list .epv-thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 78px;
}
.epv-category-item h3,
.epv-category-list span {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Lista prodotti ---------- */
.epv-product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.epv-product-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.epv-product-item a { color: inherit; text-decoration: none; display:block; }
.epv-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.epv-product-item .epv-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.epv-product-item h3 { font-size: 1rem; margin: 6px 0; }
.epv-price { color: #444; font-weight: 600; }

/* ---------- Albero categorie (sidebar) ---------- */
.epv-category-tree {
  list-style: none;
  padding-left: 12px;
  margin: 0;
}
.epv-category-tree > li {
  margin: 4px 0;
}
.epv-cat-toggle {
  display: inline-block;
  width: 18px;
  text-align: center;
  cursor: pointer;
  margin-right: 6px;
  transform-origin: center;
  transition: transform .12s ease;
  color: #666;
}
.epv-category-tree li.open > .epv-cat-toggle {
  transform: rotate(90deg);
}
.epv-category-tree li > a {
  text-decoration: none;
  color: #222;
  padding: 2px 6px;
  border-radius: 4px;
}
.epv-category-tree li.active > a {
  background: #f6efe3;
  color: #b97400;
  font-weight: 700;
}

/* Nascondi/mostra figli gestito inline dallo shortcode, ma assicuriamo fallback */
.epv-cat-children { margin-left: 14px; padding-left: 8px; }

/* ---------- Paginazione semplice ---------- */
.epv-pagination { margin-top: 18px; text-align: center; }
.epv-pagination a { display:inline-block; padding:6px 10px; margin:0 4px; border-radius:4px; text-decoration:none; color:#333; border:1px solid rgba(0,0,0,0.06); }
.epv-pagination a.active, .epv-pagination a:hover { background:#f6f6f6; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .epv-category-list, .epv-product-list { grid-template-columns: repeat(2, 1fr); }
  .epv-category-header .epv-cat-thumb { width: 90px; height: 90px; flex:0 0 90px; }
}
@media (max-width: 640px) {
  .epv-category-list, .epv-product-list { grid-template-columns: 1fr; }
  .epv-category-header { gap: 10px; align-items: flex-start; }
  .epv-category-header h2 { font-size: 1.05rem; }
}
