/* ----------cart-page-css----------- */
.cart-section{
max-width:1660px;
margin: auto;
padding: 50px 10px 80px;
}
.cart-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.cart-section h2{
  font-size: 25px;
  font-weight: 600;
  color: #000000;
  padding-bottom: 10px;
  padding-left: 10px;
}
/* Cart Items */
 .cart-section .cart-items {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
 
.cart-section .cart-item {


  padding: 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.2px solid #1414141A
}
 
.cart-section .logo {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  /* Fixed dimensions for consistent sizing */
  width: 200px;
  height: 150px;
  min-width: 200px;
  min-height: 150px;
  max-width: 200px;
  max-height: 150px;
  text-align: center;
  line-height: 1.2;
  overflow: hidden; /* Ensure image doesn't overflow */
  background-color: #f3f4f6; /* Fallback background */
  flex-shrink: 0; /* Prevent shrinking */
}
 
.details h4 {
  font-size:19px;
  font-weight: 700;
color: #141414;
}
 
.details p {
  font-size: 15px;
  color: #5E5E5E;
  font-weight: 400;
}
.cart-price span{
  font-size: 17px;
  color: #141414;
  font-weight: 700;
}
.cart-price p {
  font-size: 15px;
  color: #5E5E5E;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  word-wrap: break-word;
}
.cart-price {
  max-width: 100%;
  width: fit-content;
}
.price span {
  color: #6b7280;
  font-weight: normal;
}
.details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1; /* Take remaining space */
  min-width: 0; /* Allow flex item to shrink */
  max-width: 100%; /* Prevent overflow */
}
.cart-section .deal {
  background: rgb(17, 24, 39);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  font-size: 14px;
  align-items: center;
  font-weight: 700;
  gap: 5px;
  width: fit-content;
  max-width: fit-content;
  white-space: nowrap;
}
.deal span {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 15px;
}
 
.cart-section .remove {
  background: none;
  border: none;
  color: #ef4444;
  display: flex;
  align-items: start;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  margin-left: auto;
}
.remove:hover {
  text-decoration: underline;
}
 
/* Order Summary */
.order-summary {
  flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  height: fit-content;
  border: 1px solid #5752571F;
}
 
.order-summary h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #141414;
  border-bottom: 1px solid #D9D9D9;
  padding-bottom: 20px;
}
.summary-row span {
  font-size: 18px;
  font-weight: 500;
  color: #141414;
}
span.summary-bold {
  font-weight: 700;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;

}
 
.savings span {
  color: #23B56D;
  font-size: 17px;
  font-weight: 700;
}
 
.total {
  font-weight: bold;
  border-bottom: none;
  margin-top: 10px;
  border-bottom: 1px solid #D9D9D9;
}
 
.payment-btn {
  background: #111827;
  color: #FFFFFF;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  margin-top: 24px;
  cursor: pointer;
  justify-content: center;
  font-size: 16px;
  gap: 10px;
  font-weight: 600;
  align-items: start;
}
 
.payment-btn:hover {
  background: #1f2937;
}
.logo-detail{
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* Align items to top for better alignment */
  gap: clamp(10px,1.5vw,20px);
  flex: 1; /* Take available space */
}

.doller-tage {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-section .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop to fit while maintaining aspect ratio */
  object-position: center; /* Center the image */
  border-radius: 10px;
  display: block;
}
/* Responsive Design */
@media (max-width: 1048px) {
  .cart-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .cart-section .logo {
    width: 150px;
    height: 120px;
    min-width: 150px;
    min-height: 120px;
    max-width: 150px;
    max-height: 120px;
  }

  .cart-section .deal {
    white-space: normal;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
  
  .cart-section .logo img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  .cart-price {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 699px) {
  .cart-section .cart-item {
    flex-direction: column;
    align-items: flex-start; /* Align to start instead of center */
    gap: 15px;
  }
 
  .remove {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .cart-section .remove {
    margin-left: unset;
    width: 100%;
    justify-content: center;
  }
  
  .cart-section .logo {
    width: 100%;
    max-width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    min-width: 100%;
  }
  
  .logo-detail {
    flex-direction: column;
    width: 100%;
  }
  
  .details {
    width: 100%;
  }
}

