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

body {
  background-color: #fff9ff;
  color: #222;
} */

.checkout {  
  padding: 35px 50px !important;
  margin: 0% !important;
}

@media (max-width: 768px) {
  .checkout {
    padding: 20px 15px !important;
  }
}

@media (max-width: 480px) {
  .checkout {
    padding: 15px 10px !important;
  }
}

.checkout-container {

  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

/* ============================= */
/* DELIVERY SECTION (LEFT SIDE) */
/* ============================= */
.delivery-section {
  width: calc(60% - 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Delivery Address --- */
.delivery-address {
  border: 1px solid #f4b2c677;

  border-radius: 5px;
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.address-header-cart {
  display: flex !important; 
  justify-content: space-between;
  align-items: center;
}

.address-header-cart p {
  font-size: 15px;
  color: #111;
}

.address-header-cart strong {
  font-weight: 600;
}

.address-tag {
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 6px;
}

.change-btn {
  background: none;
  border: 1px solid #e91e8f;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s ease;
}
.change-btn a{
  color: #e91e8f;
  text-decoration: none;
}
.change-btn:hover a{
  color: white;
}

.change-btn:hover{
  background: #e91e8f;
}

.address-text {
  margin-top: 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* --- Product List --- */
.product-list {
  display: flex;
  flex-direction: column;
  /* gap: 15px; */
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #f4b2c677;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);

}

.product-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #f4b2c677;
  background: #fff;
  padding: 15px;
}

.product-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.product-info p {
  font-size: 13px;
  color: #555;
  margin-bottom: 3px;
}

.seller {
  font-size: 12.5px;
  color: #666;
}

.assured {
  color: #2e7d32;
  font-size: 13px;
  margin-left: 3px;
}

/* --- Price Section --- */
.price-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 13px;
}

.new-price {
  font-weight: 700;
  color: #000;
  font-size: 15px;
}

.discount {
  color: #28a745;
  font-weight: 600;
  font-size: 13px;
}

.extra-offer {
  font-size: 12.5px;
  color: #444;
  margin-top: 2px;
}

.delivery-date {
  font-size: 12.5px;
  color: #222;
  margin-top: 12px;
}

/* --- Quantity & Buttons --- */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}


.quantity {
    display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  width: 90px; /* fixed width */
  justify-content: space-between;
}

.quantity button {
  background: none;
  border: none;
  font-size: 18px;
  width: 30px; /* fixed width for + and - buttons */
  height: 30px;
  cursor: pointer;
  line-height: 1;
  /* padding: 4px 10px; */
}

.quantity span {
  flex: 1;
  text-align: center;
  font-weight: 600;
  min-width: 25px;

}

.save-btn,
.remove-btn {
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #e91e8f;
  transition: 0.3s ease;
}

.save-btn:hover,
.remove-btn:hover {
  text-decoration: underline;
}

/* --- Place Order Button (Bottom of Left Side) --- */
.place-order-bottom {
  text-align: right;
  margin-top: 20px;
}

.place-order-main {
  background: #e91e8f;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.place-order-main:hover {
  background: #c21874;
  transform: translateY(-2px);
}

/* ============================= */
/* ORDER SUMMARY (RIGHT SIDE) */
/* ============================= */
.order-summary {
  width: 40%;
  border: 1px solid #f4b2c677;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.order-summary h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.summary-list {
  border-bottom: 1px solid #ddd;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
  gap: 10px;
}

/* LEFT SIDE (ITEM NAME + QTY) */
.item-text {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 70%;
}

.item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-quantity {
  color: #777;
  font-size: 13px;
}

/* RIGHT SIDE (PRICE) */
.item-price {
  font-weight: 600;
  white-space: nowrap;
}

/* SPECIAL ROWS */
.summary-item.subtotal span:first-child {
  font-weight: 600;
}

.summary-item.discount span:last-child {
  color: #28a745;
}

.summary-item.tax span:last-child {
  color: #555;
}

.summary-item.total {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}

.summary-item .price {
  font-size: 18px;
  color: #e91e8f;
  white-space: nowrap;
}



/* =============== Order Summary Text Handling =============== */
.summary-item .item-name {
  display: inline-block;
  width: 20%; /* adjust width as needed */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.particular-item{
  display: flex;
  justify-content: space-evenly;
   align-items: center;
}


.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.summary-item.subtotal span:first-child {
  font-weight: 600;
}

.summary-item.discount span {
  color: #28a745;
}

.summary-item.total {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.summary-item .price {
  font-size: 18px;
  color: #e91e8f;
}

.payment-methods {
  margin-block: 25px;
}

.payment-methods label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
  cursor: pointer;
}

.payment-methods input {
  margin-right: 6px;
  accent-color: #e91e8f;
}

.place-order-btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.place-order-btn:hover {
  background: #e91e8f;
  transform: translateY(-2px);
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* Base mobile improvements */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

@media(max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .product-item {
    flex-direction: column;
    text-align: center;
  }
  .product-item img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .actions {
    justify-content: center;
  }
  .place-order-bottom {
    text-align: center;
  }
  .product-info h3 {
    font-size: 17px;
  }
  .product-info p {
    font-size: 14px;
  }
  .new-price {
    font-size: 17px;
  }
  .delivery-address {
    padding: 15px;
  }
  .order-summary {
    padding: 20px;
  }
  .order-summary h2 {
    font-size: 20px;
  }
  .change-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media(max-width: 480px) {
  .checkout {
    padding: 15px 10px !important;
  }
  .product-info h3 {
    font-size: 16px;
  }
  .product-info p {
    font-size: 14px;
  }
  .new-price {
    font-size: 16px;
  }
  .old-price {
    font-size: 14px;
  }
  .place-order-main {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
  .order-summary {
    padding: 18px 15px;
  }
  .order-summary h2 {
    font-size: 20px;
  }
  .product-list {
    padding: 0;
  }
  .product-item {
    padding: 18px 12px;
  }
  .product-item img {
    width: 140px;
    height: 140px;
  }
  .delivery-address {
    padding: 15px 12px;
  }
  .address-header-cart p {
    font-size: 16px;
  }
  .address-text {
    font-size: 15px;
  }
  .change-btn {
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
  }
  .summary-item {
    font-size: 15px;
  }
  .summary-item.total {
    font-size: 18px;
  }
  .summary-item .price {
    font-size: 20px;
  }
  .place-order-btn {
    padding: 14px;
    font-size: 16px;
  }
  .coupon input {
    padding: 12px;
    font-size: 15px;
  }
  .coupon button {
    padding: 12px 20px;
    font-size: 15px;
  }
  .payment-method label {
    font-size: 15px;
  }
  .payment-method select {
    padding: 12px;
    font-size: 15px;
  }
  .quantity {
    width: 100px;
  }
  .quantity button {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .remove-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
  .shiprocket-status {
    padding: 12px;
    font-size: 14px;
  }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
  .checkout {
    padding: 12px 8px !important;
  }
  .product-item img {
    width: 120px;
    height: 120px;
  }
  .product-info h3 {
    font-size: 15px;
  }
  .new-price {
    font-size: 15px;
  }
  .order-summary {
    padding: 15px 12px;
  }
  .order-summary h2 {
    font-size: 18px;
  }
  .summary-item {
    font-size: 14px;
  }
  .summary-item.total {
    font-size: 17px;
  }
  .summary-item .price {
    font-size: 19px;
  }
  .delivery-address {
    padding: 12px 10px;
  }
  .address-header-cart p {
    font-size: 15px;
  }
  .address-text {
    font-size: 14px;
  }
  .change-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  .place-order-btn {
    padding: 12px;
    font-size: 15px;
  }
  .coupon input {
    padding: 10px;
    font-size: 14px;
  }
  .coupon button {
    padding: 10px 18px;
    font-size: 14px;
  }
}
 /* === Coupon Section === */
.coupon {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.coupon input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.coupon button {
  background: var(--third-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px ;
  cursor: pointer;
  font-weight: 500;
}

.coupon button:hover {
  background: var(--primary-color);
}


@media only screen and (max-width:1085px){
  .checkout-container {
    flex-direction: column;
    gap: 25px;
  }
  .delivery-section {
    width: 100%;
  }
  .order-summary {
    width: 100%;  
  }
  .price-section {
    justify-content: center;
  }
  .actions {
    justify-content: center;
  }
  .delivery-date {
    text-align: center;
  }
}
@media only screen and (max-width:500px){
  .address-header-cart {
    flex-direction: column;
    gap: 12px;
  }
  .address-header-cart > div:first-child {
    width: 100%;
  }
  .change-btn {
    width: 100%;
  }
}
 /* --- Product List --- */
.product-list {
  flex-direction: column;
  
}

.coupon {
  flex-direction: column;
}


/* Text */
.product-info h3 {
  font-size: 16px;
}

.product-info p {
  font-size: 13px;
}






/* -------------------------------------------- */
/*      MOBILE RESPONSIVENESS (IMPORTANT)       */
/* -------------------------------------------- */
@media (max-width: 600px) {
  .product-item {
    flex-direction: column;
    padding: 15px;
  }
  .product-item img {
    width: 160px;
    height: 160px;
  }
  .price-section {
    justify-content: center;
    gap: 10px;
  }
  .actions {
    justify-content: center;
    gap: 12px;
  }
  .delivery-date {
    text-align: center;
    font-size: 14px;
  }
  .quantity {
    width: 110px;
  }
  .quantity button {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
