/* ======================================================
   NOVA SIDEBAR MENU – PREMIUM (ERBOLARIO STYLE)
   Versione 3.2 – Novacommerce
====================================================== */

body.nova-locked { overflow: hidden; }
body, .nova-panel { font-family: 'Poppins', sans-serif; }

/* ============ TRIGGER ============ */
.nova-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease;
}
.nova-trigger:hover { opacity: 0.7; }
.nova-trigger .bars { display: flex; flex-direction: column; gap: 4px; }
.nova-trigger .bars span {
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}
.nova-trigger .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============ OVERLAY & PANEL ============ */
.nova-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(4px);
}
.nova-overlay.active { display: block; }
.nova-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .3s;
}
.nova-overlay.active::before { opacity: 1; }

.nova-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 360px;
  max-width: 90%;
  background: #fff;
  transform: translateX(-100%);
  transition: .35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 2px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  border-radius: 0 12px 12px 0;
  padding-top: 10px; /* margine interno richiesto */
}
.nova-overlay.active .nova-panel { transform: translateX(0); }

/* ============ HEADER ============ */
.nova-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.nova-header .close {
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: #444;
  flex-shrink: 0;
  transition: color .2s;
}
.nova-header .close:hover { color: #2e9e44; }

/* ============ SHORTCUTS ============ */
.nova-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.nova-shortcuts a {
  text-decoration: none;
  color: #000;
  position: relative;
  transition: transform .2s;
}
.nova-shortcuts a:hover { transform: translateY(-2px); }
.nova-shortcuts i { font-size: 20px; margin-bottom: 4px; }
.nova-shortcuts span { display: block; font-size: 11px; font-weight: 500; }
.cart-count {
  position: absolute;
  top: -4px;
  right: 26px;
  background: #2e9e44;
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.2;
}

/* ============ MENU PRINCIPALE ============ */
.nova-nav {
  flex: 1;
  overflow: auto;
  padding: 0;
}
.nova-list, .nova-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nova-list li {
  border-bottom: 1px solid #f2f2f2;
}
.nova-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.nova-list a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.nova-list a:hover { color: #2e9e44; }
.toggle {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  transition: transform .2s;
}
li.open > .row .toggle i { transform: rotate(90deg); }
.sub-menu {
  display: none;
  padding-left: 20px;
  background: #fafafa;
}

/* ============ FOOTER ============ */
.nova-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  background: #fff;
}
.nova-footer .social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.nova-footer .social a {
  font-size: 20px;
  text-decoration: none;
  transition: transform .2s;
}
.nova-footer .social a:hover { transform: scale(1.2); }
.nova-footer .social a[href*="facebook"] i { color: #1877f2; }
.nova-footer .social a[href*="instagram"] i { color: #e4405f; }
.nova-footer .social a[href*="tiktok"] i { color: #010101; }
.nova-footer .social a[href*="whatsapp"] i { color: #25d366; }
.nova-footer .social a[href^="tel"] i { color: #2e9e44; }

.nova-footer .cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 30px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform .2s, box-shadow .2s;
}
.nova-footer .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
