.cart_main_container {
  display: flex;
  flex-direction: column;
  padding: 3rem;
}
.cart_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  div {
    display: flex;
    flex-direction: column;
    gap: 5px;

    h1 {
      font-size: 3rem;
      font-family: var(--font-heading);
      font-weight: 600;
    }

    p {
      font-size: 1.7rem;
      color: var(--color-surface-dark);
      font-family: var(--font-body);
    }
  }
  button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-size: 1.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.5);
  }
}
.emptyCart {
  /* border: 2px solid red; */
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
}
.cart_sub_container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  justify-content: space-between;
  gap: 3rem;
  margin-top: 54px;
  padding: 15px;
  align-items: start;
}
.cart_product_container {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.5);
}
.cart_table_header {
  display: grid;
  grid-template-columns: 2fr 120px 1fr 1fr;
  gap: 20px;
  padding: 16px 20px;
  background-color: white;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 15px;
  div:nth-child(2),
  div:nth-child(3),
  div:nth-child(4) {
    text-align: center;
  }
}
.cart_products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
}
.cart_product {
  display: grid;
  grid-template-columns: 2fr 120px 1fr 1fr;
  gap: 20px;
  border-radius: inherit;
  padding: 0 10px 0 10px;
  /* border: 2px solid rgba(0, 0, 0, 0.5); */
}
.column {
  padding: 10px;
}
.cart_product_column {
  display: flex;
  align-items: center;
  gap: 15px;

  .product_image {
    height: 100px;
    width: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.2);
  }
  .product_image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .product_info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    .product_name {
      font-size: 1.5rem;
      font-weight: 500;
    }
    .product_details {
      display: flex;
      flex-direction: column;
      gap: 4px;

      .product_detail {
        font-size: 1.3rem;
      }
    }
  }
}

.cart_price_column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .current_price {
    font-size: 1.8rem;
  }
  .original_price {
    font-size: 1.5rem;
    color: var(--color-surface-dark);
    text-decoration: line-through;
  }
}
.cart_quantity_column {
  display: flex;
  justify-content: center;
  /* border: 2px solid red; */
  align-items: center;
}
.quantity_control {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.2);
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  padding: 0;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: inherit;
  background: white;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background-color: #f9f9f9;
  color: #1a1a1a;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  background: white;
}

.quantity-input:focus {
  outline: none;
}

.cart_action_column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  .remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: #fef2f2;
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
  }

  .remove-btn:hover {
    background-color: #ef4444;
    color: white;
  }
  .cartTotalPrice {
    font-size: 1.5rem;
    margin-top: 25px;
  }
}

/* cart price container */
.cart_price_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.5);
  h1 {
    font-size: 2.5rem;
    font-family: var(--font-body);
  }
  .product_price_category {
    display: flex;
    flex-direction: column;
    gap: 5px;

    .price_category {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 1.6rem;
      font-weight: 500;
      margin-bottom: 7px;
    }
  }
}
.categoryTotalPrice {
  color: var(--color-text-muted);
}
.price_category.discount {
  color: #0db452;
}
.price_category.shipping {
  border-bottom: 2px dashed rgba(0, 0, 0, 0.5);
  padding-bottom: 25px;
}
.totalPrice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  font-size: 1.95rem;
}
.discountMgsContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  font-size: 1.5rem;
  color: #027833;
}

/* checkout btns */
.checkOutBtns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.btn-checkout {
  width: 100%;
  padding: 16px 20px;
  background-color: #1a1a1a; /* Dark black */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  text-decoration: none;
}
.btn-checkout button {
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.btn-checkout:hover {
  background-color: #333; /* Slightly lighter on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-checkout:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-checkout i {
  font-size: 18px;
}
.divider {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Full width line (behind text) */
.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: #e5e7eb;
  z-index: 1;
}

.divider-text {
  font-size: 1.2rem;
  position: relative;
  z-index: 2; /* On top of line */
  margin: 0 auto;
  padding: 0 12px;
  background-color: white;
  color: #999;
}
.btn-paypal {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffc439 0%, #ffc439 100%);
  color: #003087;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-paypal:hover {
  background: linear-gradient(
    135deg,
    #ffb81c 0%,
    #ffb81c 100%
  ); /* Darker yellow */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-paypal:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paypal-text {
  font-weight: 400;
  font-size: 15px;
}

.paypal-logo {
  font-weight: 700;
  font-size: 16px;
  color: #003087;
}

/* Responsive Design - Mobile First Approach */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .cart_main_container {
    padding: 2rem 1.5rem;
  }

  .cart_header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;

    div h1 {
      font-size: 2rem;
    }

    div p {
      font-size: 1.4rem;
    }

    button {
      width: 100%;
      justify-content: center;
      font-size: 1.6rem;
      padding: 12px 18px;
    }
  }

  .cart_sub_container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 30px;
    padding: 10px;
  }

  .cart_table_header {
    grid-template-columns: 1.5fr 80px 80px 80px;
    gap: 10px;
    padding: 12px 15px;
    font-size: 11px;
    margin-bottom: 10px;
  }

  .cart_product {
    grid-template-columns: 1.5fr 80px 80px 80px;
    gap: 10px;
    padding: 0 8px;
  }

  .cart_product_column {
    gap: 10px;

    .product_image {
      height: 80px;
      width: 80px;
    }

    .product_name {
      font-size: 1.3rem;
    }

    .product_detail {
      font-size: 1.1rem;
    }
  }

  .cart_price_column {
    .current_price {
      font-size: 1.5rem;
    }

    .original_price {
      font-size: 1.3rem;
    }
  }

  .quantity_control {
    gap: 8px;
  }

  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .quantity-input {
    width: 35px;
    font-size: 13px;
  }

  .cart_price_container {
    padding: 12px;
    gap: 12px;

    h1 {
      font-size: 2rem;
    }

    .price_category {
      font-size: 1.4rem;
      margin-bottom: 5px;
    }
  }

  .totalPrice {
    font-size: 1.7rem;
    margin-top: 15px;
  }

  .discountMgsContainer {
    font-size: 1.3rem;
    margin-top: 20px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .cart_main_container {
    padding: 1.5rem 1rem;
  }

  .cart_header {
    div h1 {
      font-size: 1.6rem;
    }

    div p {
      font-size: 1.2rem;
    }

    button {
      font-size: 1.4rem;
      padding: 10px 15px;
      gap: 5px;
    }
  }

  .emptyCart {
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .cart_sub_container {
    gap: 1.5rem;
    margin-top: 20px;
    padding: 8px;
  }

  .cart_product_container {
    border-radius: 8px;
  }

  .cart_table_header {
    display: none;
  }

  .cart_product {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 12px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: white;
  }

  .cart_product_column {
    width: 100%;
    gap: 10px;

    .product_image {
      height: 70px;
      width: 70px;
    }

    .product_name {
      font-size: 1.2rem;
    }

    .product_detail {
      font-size: 1rem;
    }
  }

  .column {
    padding: 8px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .column::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    min-width: 80px;
  }

  .cart_price_column {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .current_price {
      font-size: 1.4rem;
    }

    .original_price {
      font-size: 1.1rem;
    }
  }

  .cart_quantity_column {
    width: 100%;
    justify-content: space-between;
  }

  .quantity_control {
    gap: 6px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .quantity-input {
    width: 30px;
    font-size: 12px;
  }

  .cart_action_column {
    width: 100%;
    gap: 15px;

    .cartTotalPrice {
      font-size: 1.3rem;
      margin-top: 10px;
    }
  }

  .remove-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .cart_price_container {
    padding: 15px 12px;
    gap: 10px;

    h1 {
      font-size: 1.6rem;
    }

    .price_category {
      font-size: 1.2rem;
      margin-bottom: 4px;
    }
  }

  .categoryTotalPrice {
    font-size: 1.2rem;
  }

  .price_category.shipping {
    padding-bottom: 15px;
  }

  .totalPrice {
    font-size: 1.5rem;
    margin-top: 12px;
  }

  .discountMgsContainer {
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .btn-checkout {
    padding: 14px 15px;
    font-size: 14px;
    margin-bottom: 10px;
  }

  .btn-checkout button {
    font-size: 14px;
  }

  .btn-checkout i {
    font-size: 16px;
  }

  .divider {
    height: 30px;
  }

  .divider-text {
    font-size: 1rem;
    padding: 0 8px;
  }

  .btn-paypal {
    padding: 14px 15px;
    font-size: 14px;
  }

  .paypal-text {
    font-size: 13px;
  }

  .paypal-logo {
    font-size: 14px;
  }

  .checkOutBtns {
    gap: 10px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .cart_main_container {
    padding: 1rem 0.75rem;
  }

  .cart_header {
    div h1 {
      font-size: 1.4rem;
    }

    div p {
      font-size: 1rem;
    }

    button {
      font-size: 1.2rem;
      padding: 8px 12px;
    }
  }

  .cart_product {
    padding: 10px 8px;
  }

  .cart_product_column {
    .product_image {
      height: 60px;
      width: 60px;
    }

    .product_name {
      font-size: 1.1rem;
    }

    .product_detail {
      font-size: 0.9rem;
    }
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .quantity-input {
    width: 28px;
    font-size: 11px;
  }

  .cart_price_container {
    padding: 12px 10px;

    h1 {
      font-size: 1.4rem;
    }

    .price_category {
      font-size: 1.1rem;
    }
  }

  .totalPrice {
    font-size: 1.3rem;
  }

  .btn-checkout,
  .btn-paypal {
    padding: 12px 12px;
    font-size: 13px;
  }
}

/* Large Screens (1024px and above) */
@media (min-width: 1024px) {
  .cart_main_container {
    padding: 3rem;
  }

  .cart_sub_container {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
}