/* Base styles (existing) */
.products-in-cart h1 {
  font-weight: 400;
  font-size: 3.375rem;
  color: #404040;
  text-transform: uppercase;
  margin-bottom: 3.0625rem;
}
.may-also-like-cart {
  padding: 3.2rem 0;
  background-color: #f6f6f8;
}
.products-in-cart {
  background-color: white;
  padding: 4.125rem 0 1rem;
}
.newsletter-section {
  background-color: white;
}
.products-desription {
  background-color: #f6f6f8;
}

.products-desription th:nth-child(3) {
  text-align: center;
}
.products-table-subtotal-div {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.products-list {
  border-bottom: 0.0625rem solid #b9b9b9;
  width: 70%;
  border-collapse: collapse;
}

.products-list th {
  font-weight: 400;
  font-size: 1.175rem;
  color: #404040;

  padding: 1.75rem;
  text-align: start;
}

.products-list td {
  padding: 1.75rem;
  text-align: start;
}

.products-list td h4 {
  font-size: 1.1rem;
}

.products-list td:nth-child(even) {
  color: #0080c0;
  padding: 0.9rem;
  text-align: center;
}
.products-list .padding-less-header {
  padding: 1.75rem 1.05rem;
}
.quantity-input {
  width: 5rem;
  border: 0.0625rem solid #b9b9b9e5;
  border-radius: 0.25rem;
  padding: 0.3125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: #0080c0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: white;
}

.increase:hover {
  background-color: rgb(35, 184, 35);
  color: white;
}

.decrease:hover {
  background-color: rgb(209, 59, 59);
  color: white;
}

.remove-btn:hover {
  background-color: #404040;
  color: white;
}

.quantity-value {
  padding: 0 0.625rem;
  font-weight: 400;
  font-size: 1.125rem;
  color: #b9b9b9;
}

.table-product-image img {
  max-width: 28%;
}

.table-product-image {
  display: flex;
  align-items: center;
  gap: 2.125rem;
}

.table-product-image h4 {
  font-size: 1.125rem;
  color: #1c1c16;
}

.remove-btn {
  width: 2.625rem;
  height: 2.5625rem;
  border-radius: 50%;
  border: 0.0625rem solid #eee;
  background-color: #fff;
  color: #b9b9b9;
  font-size: 1.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons-list {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.125rem;
  margin-bottom: 4.1875rem;
  width: 65%;
}

.coupon-button img {
  height: 1.9375rem;
  width: 1.9375rem;
}

.coupon-button {
  display: flex;
  align-items: center;
  border: 0.0625rem solid #b9b9b9;
  padding: 0.3125rem;
  justify-content: center;
}

.coupon-button input:focus {
  border: none;
  outline: none;
}

.coupon-button input {
  border: 0.0625rem solid #f6f6f8;
  background-color: #f6f6f8;
  padding: 0.625rem;
  font-weight: 400;
  font-size: 1rem;
  color: #1c1c16;
}

.coupon-button a {
  border-left: 0.0625rem solid #1c1c16;
  padding-left: 1rem;
  font-weight: 400;
  font-size: 1rem;
  color: #1c1c16;
}

.checkout-buttons a {
  font-weight: 400;
  font-size: 1.125rem;
  color: #0080c0;
  text-transform: uppercase;
  letter-spacing: 0.005rem;
  border: 0.0625rem solid #0080c0;
  padding: 0.875rem 1.3125rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.checkout-buttons {
  display: flex;
  gap: 1.125rem;
}

.checkout-buttons a:nth-child(2) {
  color: white;
  background-color: #0080c0;
}

.you-may-also-like h2 {
  color: #1c1c16;
  font-weight: 400;
  font-size: 2.6375rem;
  line-height: 2.9994rem;
  margin-bottom: 1.5rem;
}

.may-also-like-cart-totals-div {
  display: flex;
  gap: 1.25rem;
}

.cart-totals {
  width: 30%;
}

.cart-totals h2 {
  font-weight: 400;
  font-size: 2rem;
  color: #404040;
  margin-bottom: 1.0625rem;
}

.order-summary {
  background-color: white;
  border-collapse: collapse;
  width: 100%;
}

.order-summary td {
  padding: 1.0625rem 1.25rem 1rem 1.3125rem;
  border: 0.0625rem solid #b9b9b9;
}

.order-summary .label {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.975rem;
  color: black;
}

.shipping-info {
  font-size: 0.875rem;
  background-color: #f6f6f8;
  color: #1c1c16;
}

.change-location {
  color: #0066cc;
  font-size: 0.9375rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  margin-top: 0.3125rem;
}

.total {
  font-weight: 400;
  background-color: #f6f6f8;
  font-size: 1.125rem;
  color: #1c1c16;
}

/* Empty cart styles */
.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-cart h2 {
  font-size: 2rem;
  color: #404040;
  margin-bottom: 1rem;
}

.empty-cart p {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 2rem;
}

.continue-shopping {
  display: inline-block;
  background-color: #0080c0;
  color: white;
  padding: 0.875rem 1.3125rem;
  text-decoration: none;

  font-size: 1.125rem;
  text-transform: uppercase;
  border-radius: 0.25rem;
}

.continue-shopping:hover {
  background-color: #006ba3;
}

.secondary-navbar a {
  color: #404040;
}
.secondary-navbar .sidebar-list img {
  filter: invert(1);
}

.secondary-navbar .wishlist-link img {
  filter: none;
}

.central-list a:hover {
  border-bottom: 0.125rem solid black;
  padding-bottom: 0.3125rem;
}

.hidden {
  display: none;
}

.template-card {
  display: none;
}

.empty-related-products {
  color: #888;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
}

.logo img {
  filter: unset;
}

#related-product-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.related-product-card {
  flex: 1 1 20%;
  position: relative;
  border-radius: 0.1875rem;
  overflow: hidden;
}

.related-product-card img {
  display: flex;
  border-top-left-radius: 0.1875rem;
  border-top-right-radius: 0.1875rem;
}

.related-product-card .explore-images {
  position: absolute;
  top: 0.85rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6875rem;
}

.related-product-info {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 0.4525rem 0.5025rem;
  gap: 0.3125rem;
  border-bottom-left-radius: 0.1875rem;
  border-bottom-right-radius: 0.1875rem;
}

.related-product-name {
  color: #000;
  font-size: 0.925rem;
  font-weight: 500;
  line-height: 1.4963rem;
  letter-spacing: 0.0163rem;
  text-transform: uppercase;
  min-height: 3rem;
}

.related-product-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-product-price {
  margin-top: 0.375rem;
  font-size: 0.9rem;
  color: black;
  font-weight: 500;
}

.related-product-cart .add-to-cart {
  width: 2.825rem;
  height: 2.825rem;
}

.related-product-card .favorite-icon {
  background-color: white;
  padding: 0.3125rem;
  border-radius: 50%;
  width: 1.3625rem;
  height: 1.3625rem;
}

.explore-images img:nth-child(2) {
  height: 2.2125rem;
  width: 2.2125rem;
}

/* RESPONSIVE STYLES */

@media screen and (max-width: 1024px) {
  .products-in-cart h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .products-list th,
  .products-list td {
    padding: 0.8rem;
  }

  .products-list th {
    font-size: 1.125rem;
  }

  .table-product-image {
    gap: 1rem;
  }

  .table-product-image img {
    max-width: 28%;
  }

  .may-also-like-cart-totals-div {
    flex-direction: column-reverse;
  }

  .you-may-also-like,
  .cart-totals {
    width: 100%;
  }

  .you-may-also-like h2 {
    font-size: 2.25rem;
  }

  .cart-totals {
    margin-top: 2rem;
  }

  .buttons-list {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .products-in-cart {
    padding: 2rem 0 3rem;
  }

  .products-in-cart h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .checkout-buttons {
    flex-direction: column;
    width: 100%;
  }

  .checkout-buttons a {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.875rem 0.0125rem;
  }

  .buttons-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .order-summary td {
    padding: 0.75rem 1rem;
  }

  .order-summary .label {
    font-size: 1.125rem;
  }

  .you-may-also-like h2 {
    font-size: 1.75rem;
  }

  .cart-totals h2 {
    font-size: 1.5rem;
  }
  .related-product-card {
    flex: 1 1 40%;
  }
}

@media screen and (max-width: 550px) {
  .products-in-cart {
    padding: 3rem 0;
  }

  .products-table-subtotal-div {
    flex-direction: column;
  }
  .products-in-cart h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  .products-list td:nth-child(even) {
    padding: 0.8rem 0;
  }
  /* Mobile cart table - stack items vertically */
  .products-list {
    display: block;
    width: 100%;
  }

  .products-list thead {
    display: none;
  }

  .products-list tbody {
    display: block;
  }

  .products-list tr {
    display: block;
    background-color: white;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: none;
  }
  .buttons-list {
    width: 100%;
  }
  .products-list td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border: none;
    text-align: left;
    border-bottom: 0.0625rem solid #b9b9b9;
  }

  .products-list td:before {
    content: attr(data-label) ": ";
    font-weight: 400;
    color: #404040;
    font-size: 1.3rem;
    text-transform: uppercase;
  }

  .table-product-image {
    align-items: center;
    gap: 0.75rem;
  }

  .table-product-image img {
    width: 5.75rem;
    height: 4.75rem;
    object-fit: cover;
  }

  .table-product-image h4 {
    font-size: 1rem;
    margin: 0;
  }

  .quantity-input {
    width: 6rem;
    margin: 0.5rem 0;
  }

  .remove-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  /* Mobile-specific data labels */
  .products-list td:nth-child(1):before {
    content: "Product";
  }

  .products-list td:nth-child(2):before {
    content: "Price";
  }

  .products-list td:nth-child(3):before {
    content: "Quantity";
  }

  .products-list td:nth-child(4):before {
    content: "Subtotal";
  }

  .products-list td:nth-child(5):before {
    content: "Remove";
  }

  /* Hide data labels for product column since it has image */
  /* .products-list td:nth-child(1):before {
    display: none;
  } */

  .checkout-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .you-may-also-like h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .cart-totals h2 {
    font-size: 1.25rem;
  }

  .order-summary td {
    padding: 0.5rem 0.75rem;
  }

  .order-summary .label {
    font-size: 1rem;
  }

  .total {
    font-size: 1rem;
  }

  .empty-cart {
    padding: 2rem 1rem;
  }

  .empty-cart h2 {
    font-size: 1.5rem;
  }

  .empty-cart p {
    font-size: 1rem;
  }

  .continue-shopping {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 320px) {
  .products-in-cart h1 {
    font-size: 1.5rem;
  }

  .table-product-image img {
    max-width: 3.125rem;
    width: 3.125rem;
    height: 3.125rem;
  }

  .quantity-input {
    width: 5rem;
  }

  .you-may-also-like h2 {
    font-size: 1.25rem;
  }

  .cart-totals h2 {
    font-size: 1.125rem;
  }
}
