:root {
      --primary-color: #2c3e50;
      --accent-color: #3498db;
      --whatsapp-color: #25D366;
      --bg-light: #f8f9fa;
    }

    body {
      background-color: var(--bg-light);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* Navbar */
    .navbar {
      background-color: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .navbar-brand {
      font-weight: 700;
      color: var(--primary-color) !important;
    }

    /* Product Card */
    .product-card {
      border: none;
      border-radius: 12px;
      background: #fff;
      transition: all 0.3s ease;
      height: 100%;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .product-card .badge {
      z-index: 10;
      font-size: 1rem;
      padding: 0.5em 0.8em;
    }

    .card-img-top {
      height: 200px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .product-card:hover .card-img-top {
      transform: scale(1.05);
    }

    .card-body {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-weight: 600;
      font-size: 1.1rem;
    }

    .price-tag {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .btn-add-cart {
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 10px;
      transition: background 0.2s;
      margin-top: auto;
      /* Spinge il bottone in fondo */
    }

    .btn-add-cart:hover {
      background-color: var(--accent-color);
      color: white;
    }

    /* Cart Sidebar / Box */
    .cart-box {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 20px;
      padding: 20px;
    }

    .cart-item {
      border-bottom: 1px solid #eee;
      padding: 10px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      animation: fadeIn 0.3s ease-in-out;
    }

    .cart-item:last-child {
      border-bottom: none;
    }

    .cart-controls button {
      width: 24px;
      height: 24px;
      padding: 0;
      line-height: 22px;
      font-size: 12px;
      border-radius: 50%;
    }

    .cart-total {
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--primary-color);
      border-top: 2px solid #eee;
      padding-top: 15px;
      margin-top: 15px;
    }

    /* WhatsApp Button */
    .btn-whatsapp {
      background-color: var(--whatsapp-color);
      color: white;
      font-weight: 600;
      border: none;
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      margin-top: 15px;
      transition: filter 0.2s;
    }

    .btn-whatsapp:hover {
      filter: brightness(0.95);
      color: white;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-in-element {
      animation: fadeIn 0.6s ease-out forwards;
    }

    /* Badge */
    .badge-cart {
      background-color: var(--accent-color);
      font-size: 0.7rem;
      position: absolute;
      top: 0;
      right: 0;
      transform: translate(50%, -50%);
    }

    /* Empty State */
    .empty-cart-msg {
      text-align: center;
      color: #aaa;
      padding: 20px 0;
      font-style: italic;
    }