/* ==========================================================================
   MENU HAMBURGER & NAV DRAWER LATERALE
   ========================================================================== */
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  left: auto;
  width: 300px;
  height: 100%;
  background: var(--card-bg, #12121a);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.nav-drawer-header .drawer-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.nav-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-drawer-list li {
  margin-bottom: 1.2rem;
}

.nav-drawer-list a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-drawer-list a:hover {
  color: var(--accent-blue);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
}

.nav-overlay.open {
  display: block;
}

/* ==========================================================================
   CARRELLO SLIDE-OVER (DRAWER)
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background-color: #12121a !important; /* Sfondo solido per non far traspari il footer */
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 1.5rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.cart-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #12121a;
}

/* ==========================================================================
   PAGINA DETTAGLIO PRODOTTO
   ========================================================================== */
.product-detail-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: start;
}

.product-detail-img {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.product-detail-img img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-detail-info h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-detail-price {
  font-size: 2.2rem;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.product-specs {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.product-specs h3 {
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.btn-add-cart-detail {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.site-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Badge Ultimi Pezzi Rimasti */
.badge-low-stock {
  color: #ff3366;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
  animation: pulse-red 2s infinite ease-in-out;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}