/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #d9d9d9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ====== CONTAINER ====== */
.container {
  width: 400px;
  max-width: 95%;
  background: #e6e6e6;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 120px;
}

/* ====== HEADER ====== */
.header {
  text-align: center;
  padding: 30px 0 10px;
}

.header h1 {
  font-size: 2.4em;
  color: #5a3b1d;
  line-height: 1.1em;
}

.highlight {
  color: #b43a3a;
}

/* ====== PROMO ====== */
.promo-section {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.promo-card {
  width: 100%;
    max-width: 480px;    /* Regolabile, dipende dal tuo layout */
    margin: 0 auto 20px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo1 {
    aspect-ratio: 1600 / 1066;   /* esempio: 1600/900 = 16/9 */
}

.promo1 {
    aspect-ratio: 1600 / 1066;   /* esempio: 1600/900 = 16/9 */
}
.hidden {
    display: none !important;
}
.promo-card img {
  width: 100%;
    height: 100%;
    object-fit: contain; /* oppure cover */
    object-position: center;
    border-radius: 20px;
}

.promo-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: bold;
  color: #4e2c00;
}

.price {
  color: #2ba84a;
}

.discount {
  color: #d12f2f;
}

/* ====== NAVBAR ====== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  display: flex;
  justify-content: space-around;
  background-color: #4e2c00;
  padding: 12px 0;

  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}


.bottom-nav a img {
  width: 64px;
  height: 64px;
  transition: 0.2s;
}

.bottom-nav a:hover img {
  transform: scale(1.15);
}

.logo {
    width: 70%;
    max-width: 250px;
    display: block;
    margin: 0 auto 10px;
}

/* Logo nella pagina account */
.logo-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.logo-img {
    width: 60%;
    max-width: 220px;
}

/* Contenitore della pagina account */
.account-container {
    padding: 20px;
    margin-bottom: 120px;
}

.account-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.account-subtitle {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.account-form input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.primary-btn {
    padding: 12px;
    background: #ff3b3b;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
}

/* Card profilo */
.profile-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    font-size: 17px;
}

.logout-btn {
    display: block;
    text-align: center;
    margin-top: 25px;
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 12px;
}

/* ====== MENU PAGE ====== */

.menu-section {
    padding: 15px;
    margin-bottom: 90px;
}

.menu-category {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #4e2c00;
    text-align: left;
    padding-left: 5px;
}

.menu-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.menu-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

.menu-info {
    flex: 1;
}

.menu-desc {
    font-size: 14px;
    color: #555;
}

.menu-price {
    font-weight: bold;
    color: #d12f2f;
    margin-top: 5px;
}

.add-btn {
    display: inline-block;
    padding: 10px 12px;
    background: #ff3b3b;
    color: white;
    border-radius: 10px;
    font-size: 15px;
    margin-top: 8px;
    text-decoration: none;
}

.add-btn:hover {
    background: #e03131;
}

/* Contenitore verticale */
.payment-buttons-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
}

/* Pulsante */
.pay-btn-vertical {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Hover */
.pay-btn-vertical:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* IMG Pago Adesso – 1172×314 */
.pay-online-img {
    width: 90%;         /* regola quanto vuoi che sia grande in pagina */
    max-width: 350px;   /* dimensione massima sullo schermo */
    height: auto;
}

/* IMG Pago alla Consegna – 715×298 */
.pay-delivery-img {
    width: 75%;         /* più piccola per rispettare proporzioni reali */
    max-width: 280px;
    height: auto;
}

/* --- POPUP OVERLAY --- */
.popup {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.popup.hidden {
    display: none;
}

/* --- FINESTRA POPUP --- */
.popup-content {
    background: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: popupIn 0.25s ease-out;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- TESTO NEL POPUP --- */
.popup-content h2 {
    margin-top: 0;
}

.popup-prezzo {
    font-size: 20px;
    margin-top: 8px;
}

/* --- TEXTAREA NOTE --- */
#popup-note {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 16px;
    resize: none;
}

/* --- BOTTONI POPUP --- */
.popup-btn {
    width: 100%;
    padding: 14px;
    background: #ff5500;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
}

.popup-btn:hover {
    opacity: 0.9;
}

.popup-close {
    width: 100%;
    padding: 12px;
    background: #cccccc;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}

.popup-close:hover {
    background: #bbbbbb;
}

.menu-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.menu-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.cart-note {
    font-size: 0.9em;
    background: #f4f4f4;
    padding: 6px 10px;
    border-left: 3px solid #ff9900;
    margin-top: 6px;
    border-radius: 6px;
}

/* Barra categorie scorrevole */
.category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}

.category-btn.active {
    background: #ff8400;
    color: white;
}

.category-btn:hover {
    background: #ffad5c;
}

.action-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: #4e2c00;
            color: white;
            text-align: center;
            border-radius: 10px;
            margin-top: 12px;
            font-weight: bold;
            text-decoration: none;
        }
.aggiunta-item {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}
.cart-extras {
  font-size: 0.9em;
  margin-top: 4px;
  color: #444;
}
.cart-extras ul {
  margin: 4px 0 0 12px;
  padding: 0;
}
.cart-extras li {
  list-style-type: "➕ ";
}
.aggiunte-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    margin-top: 12px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.aggiunte-scroll::-webkit-scrollbar {
    display: none; /* nasconde la scrollbar su webkit */
}

.aggiunta-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.aggiunta-btn.selected {
    background: #ff8400;
    color: white;
}

.orari-admin {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
