body {
    font-family: 'DM Sans', Arial, sans-serif;
    background:#f5f5f5;
    margin:0;
    padding:0;
    color:#333;
  }

  header {
    background:#fffefa; /* warna oranye ala Alibaba */
    padding:15px 10px;
    color:#fff;
    font-size:20px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:1000;
  }

  header a {
    color:#fff;
    text-decoration:none;
    font-size:16px;
  }

   /* Styling untuk Logo */
        .logo {
            max-width: 150px; /* Ukuran maksimal, sesuaikan dengan logo Anda */
            height: auto;
            display: block;
        }
        
        /* Styling untuk Link Kembali */
        .back-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #000000; /* Warna biru untuk link */
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 5px;
            transition: background-color 0.2s, color 0.2s;
            background-color: ;
        }
        
        
        .back-link i {
            margin-right: 8px; /* Jarak antara icon dan teks */
            font-size: 20px;
        }

  .container {
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:20px;
    max-width:1200px;
    margin:30px auto;
    padding:0 20px;
  }

  .card {
    width: auto;
    background:#fff;
    border-radius:8px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .card-pembeli {

    margin-top: 20px;
    padding: 20px;
  }

  h1, h2 {
    margin-top:0;
    margin-bottom:15px;
    font-size:17px;
    font-weight: 400;
    color: #999;
  }

 .cart-item {
  display: flex;
  align-items: flex-start;   /* gambar + twi sejajar atas */
  gap: 15px;                 /* jarak antara gambar dan info */
  margin-bottom: 20px;
  border-bottom: 1px solid #d3d3d3;
}

.cart-item a {
  text-decoration: none;   /* hilangkan garis bawah */
  color: inherit;          /* biar warnanya ikut teks default, bukan biru */
}

.cart-item img {
  width: 80px;      /* atur ukuran gambar */
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.twi {
  display: flex;
  padding-bottom: 10px;
  flex-direction: column;  /* susun kebawah */
  justify-content: space-around;
  flex: 1;                 /* biar isi sisa ruang */
  background-color: ;
}

.twi .name {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.twi .qty-control {
    max-width: fit-content;
    border-radius:20px;
  display: flex;
      border: 1px solid #ededed;
  align-items: center;
  margin-bottom: 8px;
}

.twi .qty-btn {
  width: 30px;
  height: 30px;
  background: transfarent;
  border: none;
  color: #a3a3a3;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.twi input[type="number"] {
  width: auto;
  text-align: center;
  margin: -5px;
}

.twi .price {
  font-size: 16px;
  font-weight: bold;
  color: #e65c00;
}



  .qty-btn {
    background: transparent;
    color: #333;
    border:none;
    width: 28px;   /* agak kecil biar pas */
    height: 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center; /* ikon + / - tepat di tengah */
    transition: background 0.2s;
  }
  .qty-btn:hover {
    background: transparent;
  }
  
  .qty-control input {
    text-align: center;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 14px;
    width: auto;       /* biarkan auto */
    min-width: 2ch;    /* minimal selebar 2 digit */
    max-width: 6ch;    /* maksimal selebar 6 digit */
  }

  a{
    text-decoration: none;
  }
  
  
  
  .cart-item .price {
    display: flex;
    align-items: center;
    justify-content: ;
    gap: 8px;
    font-weight: bold;
    color: #e60012;
    font-size: 15px;
  }
  
  .remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    transition: color 0.2s;
  }
.remove-btn:hover {
  color: ;
}

  .totale {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 60px;
    background-color: ;
  }

  h3 {
    color: #999;
    margin-left: 70px;
    font-size: 15px;
    font-weight: 500;
  }

  #cart-count, #cart-total {
    font-weight: 700;
    font-size: 18px;
    color: #e60012;
    margin-right: 20px;
  }
  

  /* Form Checkout */
  form {
    display:flex;
    flex-direction:column;
    gap:15px;
  }
  input, textarea {
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    width:100%;

  }
  textarea {
    resize: vertical;
    min-height:80px;
  }

  /* Terapkan ke semua input dan textarea */
.card input[type="text"],
.card textarea {
    width: 100%;               /* agar menyesuaikan parent */
    padding: 10px;             /* jarak dalam */
    margin-bottom: 10px;       /* jarak antar elemen */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;    /* kunci lebar agar tidak overflow */
    font-size: 14px;
}

  button {
    background:#ff6a00;
    color:#fff;
    border:none;
    padding:15px;
    font-size:16px;
    border-radius:6px;
    cursor:pointer;
    font-weight:;
    transition:0.2s;
  }
  button:hover {
    background:;
  }

   /* Overlay gelap */
        #addressPopup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 999;
            animation: fadeIn 0.3s ease;
        }

        /* Kotak popup */
        #addressPopup .popup-content {
            background: #fff;
            max-width: 450px;
            width: 90%;
            margin: 80px auto;
            padding: 20px;
            border-radius: 12px;
            position: relative;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
            animation: slideUp 0.3s ease;
        }

        /* Judul */
        #addressPopup h3 {
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 20px;
            text-align: center;
            color: #333;
        }

        /* Tombol alamat */
        #addressList button {
            display: block;
            width: 100%;
            text-align: left;
            margin: 8px 0;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: #f9f9f9;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        #addressList button:hover {
            background: #e9ecef;
            border-color: #007bff;
            color: #007bff;
        }

        /* Tombol tutup */
        #addressPopup .close-btn {
            display: block;
            margin: 15px auto 0;
            background: #dc3545;
            color: #fff;
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }

        #addressPopup .close-btn:hover {
            background: #b02a37;
        }

        /* Animasi */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(40px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
  
    /* Tambahkan di style_checkout.css */
.shipping-section {
    position: relative;
    margin-bottom: 15px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.shipping-info {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    font-weight: bold;
}

#shippingCostDisplay {
    margin-top: 10px;
}

.promo-special {
    background: #f0f8ff !important;
    border-left: 4px solid #4169e1 !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

.cakung-special {
    background: #fff8e1 !important;
    border-left: 4px solid #ffc107 !important;
}

.free-shipping {
    background: #f0fff0 !important;
    border-left: 4px solid #28a745 !important;
}

.original-cost {
    text-decoration: line-through !important;
    color: #999 !important;
    margin-right: 8px;
}
  

  /* Responsif */
  @media(max-width:768px) {
    .logo {
                max-width: 120px; /* Lebih kecil di mobile */
            }
            
            .back-link {
                font-size: 14px;
            }
  .container {
    display: block;       /* jangan grid kalau di HP */
    max-width: 100%;      /* hilangkan batas 1200px */
    width: 100%;          /* penuh */
    margin: 0;            /* hilangkan auto center */
    padding: 0;           /* hilangkan padding kiri kanan */
    background-color: greenyellow;
  }

  .card {
    background:#fff;
    width: 100%;
    border-radius:0;
    padding:20px;
    box-shadow:none;
    box-sizing:border-box;
  }

  .card-pembeli {
    
    margin-top: 20px;
    padding: 20px;
  }

  h1, h2 {
    margin-top:0;
    margin-bottom:15px;
    font-size:12px;
    font-weight: 400;
    color: #999;
  }

 .cart-item {
  display: flex;
  align-items: flex-start;   /* gambar + twi sejajar atas */
  gap: 15px;                 /* jarak antara gambar dan info */
  margin-bottom: 20px;
}

.cart-item img {
  width: 80px;      /* atur ukuran gambar */
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.twi {
  display: flex;
  flex-direction: column;  /* susun kebawah */
  justify-content: flex-start;
  flex: 1;                 /* biar isi sisa ruang */
}

.twi .name {
  font-weight: normal;
  font-size: 12px;
  margin-bottom: 8px;
  display: block;
}

.twi .qty-control {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.twi .qty-btn {
  width: 30px;
  height: 30px;
  background: transfarent;
  border: none;
  color: #a3a3a3;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.twi input[type="number"] {
  width: auto;
  text-align: center;
  margin: -5px;
}

.twi .price {
  font-size: 16px;
  font-weight: bold;
  color: #e65c00;
}



  .qty-btn {
    background: transparent;
    color: #333;
    border: none;
    width: 28px;   /* agak kecil biar pas */
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center; /* ikon + / - tepat di tengah */
    transition: background 0.2s;
  }
  .qty-btn:hover {
    background: transparent;
  }
  
  .qty-control input {
    text-align: center;
    border: none;
    border-radius: 4px;
    padding: 4px;
    font-size: 14px;
    width: auto;       /* biarkan auto */
    min-width: 2ch;    /* minimal selebar 2 digit */
    max-width: 6ch;    /* maksimal selebar 6 digit */
  }

  a{
    text-decoration: none;
  }
  
  
  
  .cart-item .price {
    display: flex;
    align-items: center;
    justify-content: ;
    gap: 8px;
    font-weight: bold;
    color: #e60012;
    font-size: 15px;
  }
  
.remove-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #dc3545;
    transition: transform 0.2s, color 0.2s;
    padding: 10px;
    border-radius: 50%;
}

.remove-btn:hover {
    color: #a71e2a;
    transform: scale(1.1);
    background-color: rgba(220, 53, 69, 0.1);
}

  .totale {
    background-color: rgb(255, 255, 255);
    margin: 0 auto;
    display: flex;
    flex-direction: ;
    align-items: center;
    justify-content: flex-start;
    padding-right: 0;
    background-color: ;
  }

  h3 {
    margin-left: 0;
    margin:0;
    font-size: 13px;
    font-weight: 400;
  }

  #cart-count, #cart-total {
    font-weight: 700;
    font-size: 13px;
    color: #e60012;
  }
  

  /* Form Checkout */
  form {
    display:flex;
    flex-direction:column;
    gap:15px;
  }
  input, textarea {
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:14px;
    width:100%;

  }
  textarea {
    resize: vertical;
    min-height:80px;
  }

  /* Terapkan ke semua input dan textarea */
.card input[type="text"],
.card textarea {
    width: 100%;               /* agar menyesuaikan parent */
    padding: 10px;             /* jarak dalam */
    margin-bottom: 10px;       /* jarak antar elemen */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;    /* kunci lebar agar tidak overflow */
    font-size: 14px;
}

  button {
    background:#ff9100;
    color:#fff;
    border:none;
    padding:10px 15px;
    font-size:13px;
    border-radius:6px;
    cursor:pointer;
    font-weight:;
    transition:0.2s;
  }
  button:hover {
    background:;
  }

    

    }

  /* Responsive untuk HP */
@media(max-width: 768px) {

}
