.kundvagn-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.kundvagn{
    display: flex;
    justify-content: center;
}
.kundvagn h2{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
}
#cart-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  height: auto;
}

#cart-items th,
#cart-items td {
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

#cart-items img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}
.qty-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qty-btn {
  background-color: #1575d1;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.qty-btn:hover {
  background-color: #0d5ca8;
  transform: scale(1.1);
}

.qty-display {
  min-width: 25px;
  text-align: center;
  font-weight: bold;
  font-size: 17px;
}

.totalt li{
    list-style-type: none;
    font-size: 18px;
}

.kundvagn-knappar{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    gap: 20px;
    margin: 0 auto;
}
.emptycart{
    font-weight: bold;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid white;
    background-color: white;
    border-radius: 5px;
    color: white;
}
.proceed{
    height: 50px;
    width: 240px;
    font-weight: bold;
    border: 2px solid white;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;
    background-color: rgb(78, 226, 85);
    color: white;
}
.proceed:hover{
  cursor: pointer;
}
.continue{
    height: 45px;
    width: 120px;
    font-weight: bold;
    border: 2px solid white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;
    background-color: rgb(21, 133, 207);
    color: rgb(255, 255, 255);
    margin-bottom: 100px;
} 
.nypris{
    font-size: 18px;
}
.nypris-struket{
    text-decoration: line-through;
    color: grey;
}


/* Mobilstil för kundvagn (max 650px) */
@media screen and (max-width: 650px) {

    .kundvagn-container {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    table, #cart-items {
        width: 100%;
        display: block;
        overflow-x: auto; /* gör att tabellen scrollar horisontellt om den blir för bred */
    }

    #cart-items th,
    #cart-items td {
        padding: 6px;
        font-size: 14px;
        word-break: break-word;
    }

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

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .qty-display {
        font-size: 15px;
    }

    .proceed {
        width: 90%;
        max-width: 300px;
    }

    .continue {
        width: 60%;
        max-width: 200px;
    }
}
