#basketContainer {
  margin: 2rem auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  gap: 3rem;
  padding: 0 1rem;
}

#basketContents {
  flex: 5;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  overflow-x: auto;
}

.basket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.basket-table th {
  padding: 24px 24px 16px 24px;
  background: #fafbfc;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  border: none;
}

.basket-table td {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 15px;
}

.basket-table tr:last-child td {
  border-bottom: none;
}

.basket-table tr:hover {
  background: #fafbfc;
}

.checkbox-container {
  width: 48px;
  padding-left: 24px !important;
}

.checkbox-container input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}

.qty-input {
  max-width: 60px;
  background: #f8fafc;
  border: none;
  height: 36px;
  text-align: center;
  font-weight: 500;
  font-size: medium;
  border-radius: 8px;
  transition: all .2s ease;
}

.product-image {
  width: 10vw;
  height: 10vw;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-left: 16px;
}

.product-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-text {
  flex: 1;
}

.product-name {
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-category {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.qty-container {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 4px;
  width: fit-content;
  margin: 0 auto;
}

.qty-btn {
  background: none;
  border: none;
  color: #64748b;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.qty-btn:hover,
.qty-input:hover,
.qty-input:focus {
  background: #10b981;
  color: #fff;
  border: none;
  outline: none;
}

.qty-count {
  min-width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  padding: 0 8px;
}

.price {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.actions {
  text-align: center;
}

.remove-btn {
  background: #ff4242;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: white;
  padding: 8px 12px;
  width: 39px;
  height: 39px;
  border-radius: 8px;
  transition: all .2s ease;
}

.remove-btn:hover {
  transform: scale(1.1);
}

#cartTotals {
  flex: 1;
  margin-top: 2rem;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 32px;
  box-sizing: border-box;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  position: sticky;
  top: 2rem;
}

#cartTotals h3 {
  margin: 0 0 24px 0;
  font-weight: 700;
  font-size: 22px;
  color: #0f172a;
}

.totals-row {
  display: flex;
  text-align: center !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #475569;
  padding: 16px 0;
}

.totals-row:last-of-type {
  border-bottom: none;
}

.totals-row.total {
  font-size: 24px;
  font-weight: 700;
  color: var(--petfood-green-dark);
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid var(--petfood-green);
  border-bottom: none;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0, #059669 100%);
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .2);
  margin-top: 8px;
}

.checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, .3);
}

.checkout-btn:active {
  transform: translateY(0);
}

.no-products {
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  #basketContainer {
    flex-direction: column;
    gap: 2rem;
    margin: 1rem auto;
    padding: 0 1rem;
  }

  th {
    display: none;
  }

  #basketContents,
  #cartTotals {
    flex: none;
  }

  .basket-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .basket-table td,
  .basket-table th {
    padding: 16px 12px;
  }

  .product-image {
    width: 60px;
    height: 60px;
  }

  .product-name {
    font-size: 15px;
  }

  #cartTotals {
    position: static;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .product-image {
    width: 48px;
    height: 48px;
    margin-left: 8px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-category {
    font-size: 12px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .qty-count {
    min-width: 32px;
    font-size: 14px;
  }

  .price {
    font-size: 14px;
  }

  .remove-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  #cartTotals {
    padding: 16px;
  }

  .totals-row {
    font-size: 14px;
    padding: 12px 0;
  }

  .totals-row.total {
    font-size: 18px;
    padding-top: 16px;
  }

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

@media (max-width: 480px) {
  .basket-table {
    display: block;
  }

  thead {
    display: none;
  }

  .basket-table tr {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
  }

  .basket-table td {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
    border: none;
    font-size: 14px;
  }

  .product-details {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .qty-container,
  .price,
  .actions {
    justify-content: flex-start;
    margin-top: 4px;
  }

  .remove-btn {
    margin-left: auto;
  }

  .product-image {
    width: 20vw;
    max-width: 200px;
    height: auto;
    margin-right: 12px;
  }
}

/*Shipping CSS*/


.locationInput,
#countrySelect {
  padding: 0.4rem;
  width: 200px;
  border: 2px solid var(--petfood-green-dark);
  border-radius: 8px;
  transition: all .2s ease;
  background-color: transparent;
  margin: auto;
  margin-bottom: 1rem;
}

.locationInput:focus {
  outline: none;
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px #00000056;
}

.locationInput::placeholder {
  color: var(--petfood-green-dark);
  opacity: 0.5;
  text-align: center;
}

#shippingEstimate {
  font-size: 0.9rem;
  color: var(--petfood-green-dark);
}

.subtotals-row span {
  margin: 0 0 24px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--petfood-green-dark);
}