
/* ----------------------------- */
/* 📱 Responsive: Header per dispositivi mobili NEGOZIO*/
/* ----------------------------- */

@media screen and (max-width: 768px) {

  /* === HEADER MOBILE SUPER COMPATTO === */
  header {
    padding: 8px 10px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0 0 8px 8px;
  }

  .logo-img {
    width: 120px;
  }

  .testi-logo h1 {
    font-size: 1.1em;
    margin: 0;
  }

  .testi-logo h2 {
    font-size: 0.9em;
    margin: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  header nav ul li a {
    display: block;
    width: 100%;
    font-size: 0.85em;
    padding: 6px 10px;
    text-align: left;
    border: 1.5px solid white;
  }

  .toggle-btn {
    display: flex;
  }

  /* === BODY CON SFONDO MOBILE === */
  #body-negozio {
    background-image: url('fotoSfondoNegozioMobile.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
  }

  /* === TITOLO & DESCRIZIONE COMPATTI === */
  #titolo-negozio {
    font-size: 1.6rem;
    margin-top: 60px;
    text-align: center;
  }

  #descizione-negozio {
    font-size: 1.15rem;
    margin: 10px 0 20px;
    padding: 0 12px;
    text-align: center;
  }

  /* === LAYOUT IN COLONNA === */
  main {
    flex-direction: column;
    gap: 18px;
    padding: 0 15px 30px;
  }

/* === CARRELLO MOBILE OTTIMIZZATO & ALLUNGATO === */
aside.cart {
  width: 100%;
  padding: 16px 14px;
  max-height: none;
  position: static;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background-color: #fff;
  order: 0;
}

/* === ITEM DEL CARRELLO ALLUNGATO IN ORIZZONTALE === */
.cart-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Testo a sinistra, bottone a destra */
  align-items: center;
  gap: 20px;                      /* Spazio maggiore tra testo e bottone */
  padding: 14px 12px;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: nowrap;              /* Evita che il bottone vada a capo */
}

.cart-item:last-child {
  border-bottom: none;
}

/* === TESTI PIÙ GRANDI === */
.cart-item > *:not(button) {
  font-size: 1.5rem;
  line-height: 1.3;
  flex-grow: 1;                  /* Occupa tutto lo spazio possibile */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;       /* Taglia testo troppo lungo con "..." */
}

/* === BOTTONE RIMUOVI PIÙ VISIBILE E AMPIO === */
.cart-item button {
  font-size: 1rem;
  padding: 8px 18px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;           /* Bottone su una riga sola */
  flex-shrink: 0;                /* Non si restringe mai */
}

.cart-item button:hover {
  background-color: #d32f2f;     /* Hover più scuro */
}

.cart-item button:hover {
  background-color: #d32f2f;
}


  /* === GALLERIA MOBILE === */
  .gallery {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0;
  }

  .photo-box {
    padding: 24px;
    border-radius: 12px;
  }

  .photo-content {
    gap: 8px;
    margin-top: 16px;
  }

  .image-slider {
    height: 380px; /* allungato per far vedere meglio le magliette */
  }

  .image-slider img {
    max-width: 100%;
  }

  .dot {
    width: 9px;
    height: 9px;
    margin: 4px;
  }

  /* === TESTI PRODOTTO MIGLIORATI === */
  .product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
  }

  .price {
    font-size: 1.15rem;
    color: #444;
  }

  .availability {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .book-button {
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  /* === PRELOADER NEGOZIO MOBILE === */
  #preloader-negozio img {
    width: 220px;
  }

  .preloader-text {
    font-size: 1.5rem;
    margin-left: 10px;
    gap: 2px;
  }

  .preloader-text span {
    animation: wave 1.2s infinite;
  }
}
