.custom-cart-modal .modal-dialog {
  max-height: 90vh;
  margin: 1.75rem auto;
}

.custom-cart-modal .modal-content {
  background-color: #FAF8F5;
  border-radius: 12px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.custom-cart-modal .modal-header {
  background-color: #FAF8F5;
  border-color: #EBE3D8 !important;
}

.custom-cart-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #FAF8F5;
}

.custom-cart-badge {
  background-color: #EFE6DB;
  color: #5C4A3A;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 20px;
  padding: 0.35em 0.75em;
}

.text-primary-light {
  color: #1C2521 !important;
}

.text-secondary-light {
  color: #67736C !important;
}

.border-subtle {
  border-color: #EBE3D8 !important;
}

.bg-card-custom {
  background-color: #FFFFFF;
}

.cart-item-row {
  background-color: #FFFFFF;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-row:hover {
  background-color: #F3EDE4;
}

.cart-item-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid #EBE3D8;
}

.cart-qty-picker {
  width: auto;
  display: inline-flex;
}

.cart-qty-picker .btn {
  border-color: #EBE3D8;
  color: #2B3830;
  background-color: #FFFFFF;
}

.cart-qty-picker .btn:hover {
  background-color: #EBE3D8;
  color: #1C2521;
}

.cart-qty-input {
  border-color: #EBE3D8;
  color: #1C2521;
  font-weight: 600;
}

.cart-qty-input:focus {
  border-color: #2B3830;
  box-shadow: none;
}

.btn-primary-custom {
  background-color: #2B3830;
  color: #FFFFFF;
  border: 1px solid #2B3830;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #1E2722;
  border-color: #1E2722;
  color: #FFFFFF;
}

.btn-outline-custom {
  background-color: transparent;
  color: #2B3830;
  border: 1px solid #2B3830;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background-color: #F3EDE4;
  color: #1C2521;
}

.custom-input {
  border-color: #EBE3D8;
  background-color: #FFFFFF;
  color: #1C2521;
  border-radius: 6px;
}

.custom-input:focus {
  border-color: #2B3830;
  box-shadow: 0 0 0 0.2rem rgba(43, 56, 48, 0.12);
  background-color: #FFFFFF;
  color: #1C2521;
}

.shipping-option-item {
  cursor: pointer;
  background-color: #FAF8F5;
  transition: all 0.2s ease;
}

.shipping-option-item:hover {
  background-color: #F3EDE4;
}

.shipping-option-item input[type="radio"]:checked + span {
  color: #B56B45 !important;
}

.order-summary-box {
  background: linear-gradient(180deg, #FAF8F5 0%, #F3EDE4 100%);
}

@media (max-width: 576px) {
  .custom-cart-modal .modal-dialog {
    max-height: 94vh;
    margin: 0.5rem;
  }
  .custom-cart-modal .modal-content {
    max-height: 94vh;
  }
  .cart-item-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .cart-item-row > div:last-child {
    width: 100%;
    justify-content: space-between !important;
  }
}