/* Base Styles */
body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: "Century Gothic";

}

/* Cart Container */
.cart-container {
  display: flex;
  justify-content: space-between;
  box-shadow: 5px 6px 30px #efefef;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
}

/* Cart Heading */
#cartheading {
  font-size: 40px;
  color: #34495e;
  font-weight: bold;
  margin-bottom: 30px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Product Table */
.product-tablediv {
  flex: 0 0 65%;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

thead th {
  font-size: 16px;
  padding: 20px;
  background-color: #ecf0f1;
  text-transform: uppercase;
  color: #7f8c8d;
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background-color: #f9f9f9;
}

tbody td {
  padding: 20px;
  text-align: center;
}

.product-image {
  max-width: 80px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.05);
}

/* Remove Button */
.btn-remove {
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-remove:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}

/* Summary Section */
.cart-summary-section {
  flex: 0 0 30%;
  padding: 30px;
  filter: invert(1);
  color: white;
  background: #fff2bb;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cart-summary-section h2 {
  font-size: 28px;
  color: #000000;
  margin-bottom: 20px;
}

.summary-details {
  font-size: 18px;
  color: #000000;
}

#givecode {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  margin: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  background: linear-gradient(to right, #0e001e, #2575fc);
  color: white;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.5s ease-in-out;
}

.btn-checkout:hover {
  background: linear-gradient(to right, #1c1c1c, #000000);
}

.table>:not(caption)>*>* {
  padding: 1.2rem 1rem;
  color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
  background-color: var(--bs-table-bg);
  border-bottom-width: var(--bs-border-width);
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-container {
      flex-direction: column;
      padding: 20px;
  }

  .product-tablediv, .cart-summary-section {
      width: 100%;
  }

  #cartheading {
      text-align: center;
      font-size: 30px;
  }

  table {
      font-size: 14px;
  }

  thead th, tbody td {
      padding: 10px;
  }

  tbody td img {
      width: 50px;
  }

  .cart-summary-section {
      margin-top: 20px;
      padding: 20px;
  }

  .btn-checkout {
      padding: 12px;
  }
  .cart-items-section {
      overflow-y: scroll;
  }
}

@media (max-width: 480px) {
  table {
      font-size: 12px;
  }

  #cartheading {
      font-size: 24px;
  }

  .btn-checkout {
      padding: 10px;
  }
  .cart-items-section {
      overflow-y: scroll;
  }
}
/* General Styling */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f3f7fa;
  color: #333;
}

.main-heading {
  text-align: center;
  font-size: 36px;
  margin: 30px 0;
  color: #2c3e50;
  font-weight: 700;
}

/* Cart Wrapper */
.cart-wrapper {
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin: 0 auto;
}

/* Cart Section */
.cart-section {
  background-color: #f9ffa5;
  filter: invert(1);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.h-cart {
  font-size: 16px;
  font-weight: 900;
  color: black;
}

img {
  filter: invert(1);
}

.cart-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #000;
  font-weight: 600;
  text-align: center;
}

/* Cart Items Styling */
.cart-items {
  max-height: 600px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #000;
  flex-wrap: wrap;
}

.item-image img {
  max-width: 70px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-info p {
  margin: 0;
  font-size: 18px;
  color: #000;
  font-weight: 500;
}

/* Quantity Button Group */
.item-quantity {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid black;
  height: 40px;
  width: 110px;
  border-radius: 25px;
  justify-content: center;
}

.item-quantity button {
  color: white;
  background-color: #000;
  border: none;
  border-radius: 25px;
  padding: 1px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.item-quantity button:hover {
  background-color: #dcdde1;
  color: black;
}

.item-price, .item-total {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

/* Remove Button */
.item-remove button {
  background-color: transparent;
  border: none;
  margin-left: 25px;
  font-size: 40px;
  text-align: center;
  color: #f3fffa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.item-remove button:hover {
  color: #c0392b;
}

/* Cart Summary */
.cart-summary {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.cart-summary p {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.btn-primary {
  background-color: #000;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
}

.btn-primary:hover {
  background-color: #2980b9;
}
