/* ============================================================
   1. LAYOUT APP E GRIGLIA
   ============================================================ */
#app { padding: 20px 20px; min-height: 60vh; max-width: 1200px; }

h1 { color: #004085; font-size: 1.8rem; margin-top: 0px; }
.intro { color: #666; margin-bottom: 30px; max-width: 800px; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
}

/* ============================================================
   2. CARD PRODOTTO (STANDARD E CAROSELLO)
   ============================================================ */
.card { 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 12px; 
    text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

.img-container {
    width: 100%; height: 140px;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 10px;
}
.img-container img { max-width: 100%; max-height: 100%; object-fit: contain; }

.category-tag { font-size: 0.65rem; text-transform: uppercase; color: #0056b3; font-weight: bold; margin-bottom: 8px; display: block; }
.minsan { font-size: 0.7rem; color: #999; margin-bottom: 5px; }
.card h3 { font-size: 0.95rem; margin: 5px 0; color: #222; }
.highlight { color: #d9534f; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; display: block; margin-bottom: 8px; }
.short-desc { font-size: 0.8rem; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }

.btn-acquista { 
    background: #0056b3; color: white; padding: 10px; border-radius: 4px; 
    text-decoration: none; font-size: 0.7rem; font-weight: bold; text-align: center;
}

/* ============================================================
   4. PAGINE STATICHE E UTILITY
   ============================================================ */
.static-page { max-width: 900px; line-height: 1.8; }
.static-page h1 { font-size: 2.2rem; border-bottom: 3px solid #0056b3; display: inline-block; padding-bottom: 5px; }

.loader { text-align: center; padding: 100px 0; color: #0056b3; font-weight: bold; }
.no-image-box { width: 100%; height: 100%; background: #f8f8f8; display: flex; justify-content: center; align-items: center; border: 1px dashed #ccc; font-size: 0.7rem; color: #999; }

.env-badge-test {
    position: fixed;
    top: 20px;         /* Distanza dall'alto */
    right: 20px;       /* Distanza da destra */
    background-color: rgba(243, 156, 18, 0.9); /* Arancione leggermente trasparente */
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none; /* Fondamentale: permette di cliccare ciò che sta sotto */
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
