* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #1f2937;
  background: #fefaf4;
}

/* Layout con footer fisso */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #7b2d26;
  color: #fffaf0;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #7b2d26;
  color: #fffaf0;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.button:hover {
  background: #5f1e1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button.secondary {
  background: #f4d1c0;
  color: #7b2d26;
}

.button.secondary:hover {
  background: #e8b5a0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.grid article,
.placeholder {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.site-footer {
  background: #7b2d26;
  color: #fffaf0;
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

/* Autenticazione */
.auth-container {
  max-width: 480px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.auth-container h1 {
  margin-top: 0;
  color: #7b2d26;
  font-size: 1.875rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #7b2d26;
}

.auth-form .help-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.field-errors,
.form-errors {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #fee;
  border-left: 4px solid #dc2626;
  border-radius: 4px;
  color: #991b1b;
  font-size: 0.875rem;
}

.form-errors {
  margin-bottom: 1.5rem;
}

.messages {
  margin-bottom: 1.5rem;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.message.error {
  background: #fee;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

.btn-primary {
  width: 100%;
  background: #7b2d26;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #5b1f1a;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #f4d1c0;
  color: #7b2d26;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e8c1ae;
}

.auth-alternative {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.auth-alternative p {
  margin-bottom: 1rem;
  color: #6b7280;
}

/* Toast Messages (notifiche auto-dismiss) */
.messages-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.message-toast {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease-out;
}

.message-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.message-toast.success {
  background: #10b981;
  color: white;
  border-left: 4px solid #059669;
}

.message-toast.error {
  background: #ef4444;
  color: white;
  border-left: 4px solid #dc2626;
}

.message-toast.warning {
  background: #f59e0b;
  color: white;
  border-left: 4px solid #d97706;
}

.message-toast.info {
  background: #3b82f6;
  color: white;
  border-left: 4px solid #2563eb;
}

/* ============================================
   PROFILE - Modifica profilo utente
   ============================================ */

.profile-page {
  display: grid;
  gap: 1.5rem;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-header h1 {
  margin: 0 0 0.5rem;
  color: #7b2d26;
  font-size: 2rem;
}

.profile-header p {
  margin: 0;
  color: #6b7280;
}

.profile-email {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  min-width: 220px;
}

.profile-email span {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.profile-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.profile-form {
  display: grid;
  gap: 2rem;
}

.profile-section h2 {
  margin: 0 0 1rem;
  color: #7b2d26;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.5rem;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-form label {
  font-weight: 600;
  color: #374151;
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
  outline: none;
  border-color: #7b2d26;
  box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.12);
}

.profile-form input[disabled] {
  background: #f3f4f6;
  color: #6b7280;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.profile-actions .button,
.profile-actions .btn-secondary {
  min-width: 200px;
  text-align: center;
}

@media (max-width: 640px) {
  .profile-card {
    padding: 1.5rem;
  }

  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================
   SHOP - Catalogo Prodotti Moderno
   ============================================ */

.shop-header {
  text-align: center;
  margin-bottom: 2rem;
}

.shop-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #7b2d26;
}

.shop-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

/* Filtri Shop */
.shop-filters-container {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-filters {
  width: 100%;
}

.filters-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-item {
  flex: 1;
  min-width: 180px;
}

.filter-search {
  flex: 2;
}

.filter-input-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.filter-input-search:focus {
  outline: none;
  border-color: #7b2d26;
  box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

.filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #7b2d26;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-filter {
  padding: 0.75rem 1.5rem;
  background: #7b2d26;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-filter:hover {
  background: #5b1f1a;
}

.btn-reset {
  padding: 0.75rem 1.25rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
}

.btn-reset:hover {
  background: #e5e7eb;
}

/* Info risultati */
.results-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.results-count {
  font-weight: 600;
  color: #374151;
}

.filter-badge {
  padding: 0.25rem 0.75rem;
  background: #f4d1c0;
  color: #7b2d26;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Griglia Prodotti */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f9fafb;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f4d1c0 0%, #e8c1ae 100%);
  color: #7b2d26;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  font-size: 0.875rem;
  opacity: 0.8;
}

.product-category-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7b2d26;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.product-price-section {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #7b2d26;
}

.add-to-cart-form {
  flex: 1;
}

.btn-add-cart {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #7b2d26;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-cart:hover {
  background: #5b1f1a;
  transform: scale(1.02);
}

.btn-add-cart:active {
  transform: scale(0.98);
}

.cart-icon {
  font-size: 1.125rem;
}

.btn-login-required {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: block;
  transition: background 0.2s;
}

.btn-login-required:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h2 {
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-header h1 {
    font-size: 2rem;
  }
  
  .filters-row {
    flex-direction: column;
  }
  
  .filter-item,
  .filter-search {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
  
  .product-footer {
    flex-direction: column;
  }
  
  .product-price {
    font-size: 1.5rem;
  }
}

/* ============================================
   PAGINA CONTATTI
   ============================================ */

.contacts-page {
  margin-bottom: 3rem;
}

.contacts-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contacts-header h1 {
  font-size: 2.5rem;
  color: #7b2d26;
  margin-bottom: 0.5rem;
}

.contacts-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card Info Azienda */
.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #7b2d26;
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4d1c0;
  border-radius: 10px;
  flex-shrink: 0;
}

.info-content strong {
  display: block;
  color: #374151;
  margin-bottom: 0.25rem;
}

.info-content p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.info-content a {
  color: #7b2d26;
  text-decoration: none;
  font-weight: 500;
}

.info-content a:hover {
  text-decoration: underline;
}

/* Form di Contatto */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #7b2d26;
  font-size: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #fefaf4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7b2d26;
  box-shadow: 0 0 0 3px rgba(123, 45, 38, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  margin-top: 0.5rem;
}

/* Sezione Mappe */
.maps-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.maps-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #7b2d26;
  font-size: 1.5rem;
}

.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-card {
  background: #fefaf4;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #f4d1c0;
}

.location-card h3 {
  margin: 0 0 0.5rem 0;
  color: #7b2d26;
  font-size: 1.125rem;
}

.location-card p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
}

/* Responsive Contatti */
@media (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contacts-header h1 {
    font-size: 2rem;
  }
}

/* ============================================
   CARRELLO - Stili Migliorati
   ============================================ */

.cart-table {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.cart-table thead {
  background: #7b2d26;
  color: #fff;
}

.cart-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
}

.cart-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-table tbody tr:hover {
  background: #fefaf4;
}

.cart-table tfoot {
  background: #f4d1c0;
  font-weight: 600;
}

.cart-table tfoot td {
  padding: 1.25rem;
  color: #7b2d26;
  border: none;
}

.cart-table input[type="number"] {
  padding: 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 70px;
  text-align: center;
}

.cart-table input[type="number"]:focus {
  outline: none;
  border-color: #7b2d26;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: #7b2d26;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 0.5rem;
}

.btn-small:hover {
  background: #5b1f1a;
}

.btn-danger {
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #dc2626;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-actions .btn-primary {
  width: auto;
  padding: 1rem 2rem;
}

.cart-actions .btn-secondary {
  padding: 1rem 2rem;
}

/* ============================================
   ORDERS - I miei ordini
   ============================================ */

.orders-page {
  display: grid;
  gap: 2rem;
}

.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.orders-header h1 {
  margin: 0 0 0.5rem;
  color: #7b2d26;
  font-size: 2.25rem;
}

.orders-subtitle {
  margin: 0;
  color: #6b7280;
}

.orders-grid {
  display: grid;
  gap: 1.5rem;
}

.order-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.order-card-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #111827;
}

.order-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.order-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.order-status {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.order-status.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-total {
  font-weight: 700;
  color: #7b2d26;
  font-size: 1.1rem;
}

.order-items {
  margin-top: 1.25rem;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.order-table thead th {
  text-align: left;
  padding: 0.75rem 0;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.order-table tbody td {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.order-table tfoot td {
  padding-top: 1rem;
  font-weight: 700;
  color: #7b2d26;
  border-bottom: none;
}

.orders-empty {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.orders-empty h2 {
  margin: 0 0 0.75rem;
  color: #7b2d26;
}

.orders-empty p {
  margin: 0 0 1.5rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .order-card {
    padding: 1.5rem;
  }

  .order-table thead {
    display: none;
  }

  .order-table tbody tr {
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .order-table tbody td {
    padding: 0;
    border: none;
  }

  .order-table tfoot td {
    display: block;
  }
}

/* ============================================
   HOME PAGE - Miglioramenti
   ============================================ */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, #fefaf4 0%, #f4d1c0 100%);
  border-radius: 20px;
  margin-bottom: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #7b2d26;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.grid article {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #f4d1c0;
}

.grid article h2 {
  color: #7b2d26;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

.grid article p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cart-table {
    font-size: 0.9rem;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 0.75rem;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .cart-actions .btn-primary,
  .cart-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

