
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family:'Inter', sans-serif;
  background:#fff;
  color:#111;
}

/* =========================
   🔥 CHECKOUT LOADER
========================= */

.checkout-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.checkout-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-content {
  width: 100%;
  max-width: 340px;
  background: white;
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.loader-spinner {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 5px solid #e5e7eb;
  border-top-color: #111827;
  animation: spin 0.8s linear infinite;
}

.loader-content h3 {
  font-size: 24px;
  color: #111827;
  margin-bottom: 10px;
}

.loader-content p {
  color: #6b7280;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: green;
}

.toast.error {
  background: crimson;
}

.toast.warning {
  background: orange;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5%;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
nav img {
  width: 80px;
}

.checkout-wrapper{
  display:grid;
  grid-template-columns: 1fr 500px;
  min-height:100vh;
}

/* LEFT SIDE */

.checkout-left{
  padding:60px 70px;
  max-width:700px;
  width:100%;
}

.section-title{
  font-size:38px;
  font-weight:500;
  margin-bottom:25px;
  letter-spacing:-1px;
}

.field{
  margin-bottom:16px;
  position:relative;
}

.field input,
.field select{
  width:100%;
  height:58px;
  border:1px solid #d9d9d9;
  background:#fff;
  padding:0 16px;
  font-size:16px;
  outline:none;
  border-radius:2px;
  color:#111;
}

.field input::placeholder{
  color:#7a7a7a;
}

.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.search-icon{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:18px;
  color:#777;
}

.info-icon{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border:1px solid #999;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#666;
}

.do-you-agree input {
	width: 15px;
	border-radius: 8px;
}

.do-you-agree label {
	margin: 0;
}

.do-you-agree label a {
	color: black;
}

.do-you-agree {
	display: flex;
	align-items: center;
	gap: 10px;
}

.checkbox label{
  font-size:16px;
}

.pay-now {
  width: 100%;
}

.pay-now button {
  margin-top: 20px;
  border: none;
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
}

/* RIGHT SIDE */

.checkout-right{
  background: #f5f5f5;
  border-left: 1px solid #e6e6e6;
  margin-top: 10px;
  padding: 50px 40px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.product-card{
  display:flex;
  gap:18px;
  margin-bottom:35px;
}

.product-image{
  position:relative;
  width:72px;
  height:90px;
  border-radius:8px;
  background:#fff;
  border:1px solid #ddd;
  flex-shrink:0;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.qty{
  position:absolute;
  top: -10px;
  right: -20px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
}

.product-details{
  flex:1;
}

.top-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:8px;
}

.product-title{
  font-size:20px;
  font-weight:500;
  line-height:1.4;
}

.price{
  font-size:22px;
  font-weight:500;
  white-space:nowrap;
}

.hide-items{
  color:#666;
  font-size:15px;
  margin-bottom:14px;
}

.mini-item{
  display:flex;
  gap:12px;
  margin-bottom:14px;
}

.mini-image{
  width:52px;
  height:66px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  overflow:hidden;
  flex-shrink:0;
}

.mini-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.mini-text{
  font-size:16px;
  line-height:1.5;
  color:#111;
}

.mini-text span{
  color:#666;
}

.discount-box{
  display:flex;
  margin:30px 0;
}

.discount-box input{
  flex:1;
  height:56px;
  border:1px solid #d9d9d9;
  padding:0 16px;
  font-size:16px;
  outline:none;
  background:#fff;
}

.discount-box button{
  width:100px;
  border:none;
  background:#e7e7e7;
  color:#777;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}

.summary{
  margin-top:10px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  margin-bottom:18px;
  font-size:18px;
}

.summary-row.light{
  color:#666;
}

.summary-total{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:30px 0;
}

.summary-total h2{
  font-size:42px;
  font-weight:600;
}

.total-price{
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.currency{
  color:#666;
  font-size:18px;
  margin-bottom:6px;
}

.amount{
  font-size:42px;
  font-weight:700;
}

.note-box{
  border:1px solid #ddd;
  border-radius:10px;
  background:#fafafa;
  padding:22px;
  display:flex;
  gap:14px;
  color:#444;
  line-height:1.6;
  font-size:15px;
}

.note-icon{
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid #999;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:14px;
}

@media(max-width:1100px){

.checkout-wrapper{
    grid-template-columns:1fr;
  }

  .checkout-right{
    border-left:none;
    border-top:1px solid #e6e6e6;
  }

  .checkout-left{
    padding:40px 20px;
  }

  .checkout-right{
    padding:40px 20px;
  }

  .field-row{
    grid-template-columns:1fr;
  }
}