



.quantity-btn {
      font-size: 20px;
      user-select: none;
      border: none;
      background: black;
      padding: 0 5px;
      margin: 0;
      outline: none;
      line-height: 1;
      cursor: pointer;
    }
    
    .remove-btn {
      color: red;
      font-size: 20px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      outline: none;
      user-select: none;
    }
  
    /* Gesamtes Item als 2-spaltiges Grid: Bild + Details */
    #cart-items div {
      display: grid;
      grid-template-columns: 220px 1fr; /* Bild und Rest */
      gap: 20px;
      align-items: center;
      margin-bottom: 20px;
      min-height: 220px; /* gleiche Höhe für Items */
      border-bottom: 1px solid #ddd;
      padding-bottom: 15px;
    }

    #cart-items img {
      width: 100%;      /* passt in die Grid-Spalte */
      max-width: 120px; /* maximal 120px */
      height: auto;  
      object-fit: cover;
      justify-self: start;
      border-radius: 4px;
      box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }

  

    /* Inneres Div mit den Details als Grid mit 4 Spalten */
    #cart-items div > div {
      display: grid;
      grid-template-columns: 3fr 2fr 2fr 1fr;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      height: 100%;
    }

    #cart-items div > div strong {
      grid-column: 1;
    }

    #cart-items div > div .quantity-controls {
      grid-column: 2;
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 16px;
    }

    #cart-items div > div span.total-price {
      grid-column: 3;
      font-weight: bold;
      font-size: 18px;
    }

    #cart-items div > div button.remove-btn {
      grid-column: 4;
      font-size: 22px;
      justify-self: center;
    }

    /* Mobile Anpassungen */
    @media (max-width: 768px) {
      main {
        margin-left:1px !important;
        margin-right:1px !important;
        max-width: 100%;
      }

      #cart-items div {
        grid-template-columns: 1fr; /* Bild links, Text rechts */
        min-height: auto;
        margin-bottom: 15px;
        padding-bottom: 10px;
      }

      #cart-items img {
        width: 100px;
        height: 100px;
      }

      #cart-items div > div {
        /* 1 Spalte, 2 Zeilen: Titel + (Menge, Preis, Entfernen) */
        display: grid !important;;
        grid-template-rows: auto auto;
        gap: 5px;
        font-size: 14px;
      }

      

      /* Menge, Preis und Entfernen nebeneinander in Zeile 2 */
       #cart-items div > div strong ,
      #cart-items div > div .quantity-controls,
      #cart-items div > div span.total-price,
      #cart-items div > div button.remove-btn {
        grid-row: 2;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
        justify-self: start;
      }

      /* Kleiner Button- und Schriftgrößen */
      .quantity-btn,
      .remove-btn {
        font-size: 16px;
        padding: 0 4px;
      }

      /* Zwischensumme und Button untereinander */
      div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column !important;
        gap: 10px;
        margin: 50px 5px !important;
      }

      div[style*="display: flex; justify-content: space-between"] > h2 {
        width: 100%;
        border-top: 1px solid #ddd;
        padding-top: 10px;
        font-size: 1.1rem;
        font-weight: bold;
        margin: 0;
      }

      #checkout-btn {
        width: 80% ;
        padding: 10px;
        font-size: 0.8rem ;
        margin: 0 auto;
        background-color: #e66e3f;
      }
    }
