/* Payment Page Styles */
.payment-content{
  width: 100%;
  background: #fff !important;
}
.payment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.payment-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
}

.payment-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Product List Styles */
.product-list {
  margin-bottom: 40px;
}

/* Mobile Card Layout */
.product-cards {
  display: none;
  gap: 15px;
  flex-direction: column;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.product-card-stt {
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.product-card-delete {
  color: #dc3545;
  cursor: pointer;
  float: right;
}

.product-card-delete:hover {
  background: #f8d7da;
  color: #721c24;
}

.product-card-body {
  margin-bottom: 15px;
}

.product-card-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-code {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 600;
  color: #007bff;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.product-card-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card-quantity-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.product-card-subtotal {
  font-size: 16px;
  font-weight: 700;
  color: #28a745;
}

.product-card-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-quantity-controls .qty {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px;
  font-size: 14px;
}

.product-card-quantity-controls .minus,
.product-card-quantity-controls .plus {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.product-card-quantity-controls .minus:hover,
.product-card-quantity-controls .plus:hover {
  background: #e9ecef;
  border-color: #007bff;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: table;
}

.product-table thead {
  background: #f8f9fa;
}

.product-table th {
  padding: 15px 12px;
  text-align: left !important;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}

/* Tất cả tiêu đề cột đều căn trái */
.product-table th:nth-child(3),
.product-table th:last-child {
  text-align: left;
  padding-right: 12px;
  min-width: auto;
}

.product-table td {
  padding: 15px 12px;
  vertical-align: middle;
}

.product-item:hover {
  background: #f8f9fa;
}

.product-code {
  font-weight: 500;
  color: #666;
  font-size: 13px;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-actions {
  display: flex;
  align-items: center;
}

.delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.delete-btn:hover {
  background: #ffe6e6;
  transform: scale(1.1);
}

.delete-btn:active {
  transform: scale(0.95);
  background: #ffcccc;
}

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

.product-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.product-description {
  font-size: 18px;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: red;
  line-height: 1.4;
  flex: 1;
}
.remove i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-price {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  min-width: 100px;
  text-align: left;
  padding-right: 12px;
}

.product-quantity {
  text-align: left;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  max-width: 80px;
  margin: 0;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.quantity-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.quantity-btn:disabled {
  background: #f8f9fa;
  color: #ccc;
  cursor: not-allowed;
  border-color: #e9ecef;
  transform: none;
  box-shadow: none;
}

/* Styling riêng cho button minus */
.quantity-btn.minus {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-color: #dc3545;
  color: #dc3545;
  font-weight: 600;
}

.quantity-btn.minus:hover {
  background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
  border-color: #c82333;
  color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.quantity-btn.minus:active {
  background: linear-gradient(135deg, #ffcccc 0%, #ffb3b3 100%);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.3);
}

.quantity-btn.minus:disabled {
  background: #f8f9fa;
  color: #ccc;
  border-color: #e9ecef;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Styling riêng cho button plus */
.quantity-btn.plus {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-color: #28a745;
  color: #28a745;
  font-weight: 600;
}

.quantity-btn.plus:hover {
  background: linear-gradient(135deg, #e6ffe6 0%, #ccffcc 100%);
  border-color: #218838;
  color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.quantity-btn.plus:active {
  background: linear-gradient(135deg, #ccffcc 0%, #b3ffb3 100%);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

.quantity-btn.plus:disabled {
  background: #f8f9fa;
  color: #ccc;
  border-color: #e9ecef;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quantity-input {
  width: 35px;
  height: 28px;
  text-align: center;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-radius: 4px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.quantity-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-subtotal {
  font-weight: 600;
  color: #e74c3c;
  font-size: 15px;
  min-width: 120px;
  text-align: left;
  padding-right: 12px;
}

/* Payment Bottom Section */
.payment-bottom {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  margin-top: 30px;
}

/* Order Info Styles */
.order-info {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Cost Summary Styles */
.cost-summary {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.cost-summary h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.cost-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.cost-item.total {
  border-top: 2px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 5px;
}

.cost-label {
  font-size: 14px;
  color: #666;
}

.cost-value {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.cost-item.total .cost-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.cost-item.total .cost-value {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
}

.confirm-order-btn {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-order-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.confirm-order-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.confirm-order-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.confirm-order-btn.loading {
  pointer-events: none;
}

.confirm-order-btn.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */

/* Tablet và Mobile lớn */
@media (max-width: 1024px) {
  .payment-container {
    padding: 20px 15px;
  }
  
  .payment-bottom {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Tablet responsive for table */
  .product-table th,
  .product-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .product-table th.cart-product-name,
  .product-table td.cart-product-name {
    max-width: 200px;
  }
  
  .product-info {
    gap: 10px;
  }
  
  .product-image {
    width: 50px;
    height: 50px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .payment-container {
    padding: 15px 10px;
  }
  
  .payment-header h1 {
    font-size: 24px;
  }
  
  /* Hide table and show cards on mobile */
  .product-table {
    display: none !important;
  }
  
  .product-cards {
    display: flex !important;
    flex-direction: column;
  }
  
  .payment-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .order-info,
  .cost-summary {
    padding: 20px 15px;
  }
  
  .order-info h3,
  .cost-summary h3 {
    font-size: 18px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 14px 12px;
    font-size: 16px; /* Ngăn zoom trên iOS */
  }
  
  .confirm-order-btn {
    padding: 18px 20px;
    font-size: 16px;
    min-height: 52px;
    border-radius: 10px;
  }
  
  /* Ẩn bảng trên mobile và hiển thị card layout */
  .product-table {
    display: none;
  }
  
  .product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .product-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
  }
  
  .product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .product-card-code {
    font-size: 12px;
    color: #666;
    font-weight: 500;
  }
  
  .product-card-delete {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
  }
  
  .product-card-delete:hover {
    background: #ffe6e6;
  }
  
  .product-card-content {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
  }
  
  .product-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
  }
  
  .product-card-info {
    flex: 1;
  }
  
  .product-card-description {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .product-card-price {
    font-weight: 600;
    color: #333;
    font-size: 15px;
  }
  
  .product-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
  }
  
  .product-card-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .product-card-quantity-label {
    font-size: 14px;
    color: #666;
  }
  
  .product-card-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .product-card-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .product-card-quantity-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #333;
  }
  
  .product-card-quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    outline: none;
  }
  
  .product-card-quantity-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
  }
  
  .product-card-subtotal {
    font-weight: 600;
    color: #e74c3c;
    font-size: 16px;
  }
}

/* Animation cho quantity controls */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
  .payment-container {
    padding: 10px 8px;
  }
  
  .payment-header h1 {
    font-size: 20px;
  }
  
  /* Mobile card adjustments */
  .product-card {
    padding: 12px;
  }
  
  .product-card-body {
    gap: 12px;
  }
  
  .product-card-image {
    width: 70px;
    height: 70px;
  }
  
  .product-card-name {
    font-size: 13px;
  }
  
  .product-card-price {
    font-size: 15px;
  }
  
  .product-card-subtotal {
    font-size: 15px;
  }
  
  .order-info,
  .cost-summary {
    padding: 15px 12px;
  }
  
  .order-info h3,
  .cost-summary h3 {
    font-size: 16px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px 10px;
    font-size: 16px;
  }
  
  .confirm-order-btn {
    padding: 14px;
    font-size: 15px;
  }
  
  .product-card {
    padding: 12px;
  }
  
  .product-card-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .product-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  
  .product-card-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .product-card-quantity {
    justify-content: space-between;
  }
  
  .product-card-subtotal {
    text-align: center;
    font-size: 18px;
  }
  
  .cost-details {
    gap: 12px;
  }
  
  .cost-item {
    padding: 8px 0;
  }
  
  .cost-item.total {
    padding-top: 12px;
  }
}

/* Mobile rất nhỏ */
@media (max-width: 360px) {
  .payment-container {
    padding: 8px 5px;
  }
  
  .payment-header h1 {
    font-size: 18px;
  }
  
  /* Very small mobile card adjustments */
  .product-card {
    padding: 10px;
  }
  
  .product-card-body {
    gap: 10px;
  }
  
  .product-card-image {
    width: 60px;
    height: 60px;
  }
  
  .product-card-name {
    font-size: 12px;
  }
  
  .product-card-code {
    font-size: 11px;
  }
  
  .product-card-price {
    font-size: 14px;
  }
  
  .product-card-subtotal {
    font-size: 14px;
  }
  
  .product-card-quantity-label {
    font-size: 12px;
  }
  
  .order-info,
  .cost-summary {
    padding: 12px 10px;
  }
  
  .product-card-quantity-controls {
    gap: 6px;
  }
  
  .product-card-quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
  }
  
  .product-card-quantity-input {
    width: 45px;
    height: 36px;
    font-size: 14px;
  }
  
  /* Mobile nhỏ - tối ưu minus button */
  .product-card-quantity-btn.minus {
    background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
    border: 1.5px solid #dc3545;
    color: #dc3545;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
  }
  
  .product-card-quantity-btn.minus:hover {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.25);
  }
  
  .product-card-quantity-btn.plus {
    background: linear-gradient(135deg, #fff 0%, #e6ffe6 100%);
    border: 1.5px solid #28a745;
    color: #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.15);
  }
  
  .product-card-quantity-btn.plus:hover {
    background: linear-gradient(135deg, #e6ffe6 0%, #ccffcc 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
  }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
  /* Tăng kích thước touch target */
  .delete-btn,
  .product-card-delete {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  
  .quantity-btn,
  .product-card-quantity-btn {
    min-width: 36px;
    min-height: 36px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    font-weight: 600;
  }
  
  /* Mobile responsive cho minus button */
  .quantity-btn.minus,
  .product-card-quantity-btn.minus {
    background: linear-gradient(135deg, #fff 0%, #ffe6e6 100%);
    border: 1.5px solid #dc3545;
    color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
  }
  
  .quantity-btn.minus:hover,
  .product-card-quantity-btn.minus:hover {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  }
  
  .quantity-btn.minus:active,
  .product-card-quantity-btn.minus:active {
    background: linear-gradient(135deg, #ffcccc 0%, #ffb3b3 100%);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
  }
  
  /* Mobile responsive cho plus button */
  .quantity-btn.plus,
  .product-card-quantity-btn.plus {
    background: linear-gradient(135deg, #fff 0%, #e6ffe6 100%);
    border: 1.5px solid #28a745;
    color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
  }
  
  .quantity-btn.plus:hover,
  .product-card-quantity-btn.plus:hover {
    background: linear-gradient(135deg, #e6ffe6 0%, #ccffcc 100%);
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }
  
  .quantity-btn.plus:active,
  .product-card-quantity-btn.plus:active {
    background: linear-gradient(135deg, #ccffcc 0%, #b3ffb3 100%);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
  }
  
  /* Disabled states cho mobile */
  .quantity-btn.minus:disabled,
  .product-card-quantity-btn.minus:disabled,
  .quantity-btn.plus:disabled,
  .product-card-quantity-btn.plus:disabled {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
  }
  
  /* Accessibility improvements */
  .quantity-btn.minus:focus,
  .quantity-btn.plus:focus,
  .product-card-quantity-btn.minus:focus,
  .product-card-quantity-btn.plus:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
  }
  
  /* Touch feedback cho minus button */
  .quantity-btn.minus:active::before,
  .product-card-quantity-btn.minus:active::before {
    background: rgba(220, 53, 69, 0.2);
  }
  
  /* Touch feedback cho plus button */
  .quantity-btn.plus:active::before,
  .product-card-quantity-btn.plus:active::before {
    background: rgba(40, 167, 69, 0.2);
  }
  
  .confirm-order-btn {
    min-height: 56px;
    touch-action: manipulation;
    font-size: 17px;
    padding: 20px;
  }
  
  /* Cải thiện focus states cho accessibility */
  .form-group input:focus,
  .form-group textarea:focus,
  .quantity-input:focus,
  .product-card-quantity-input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Prevent zoom on input focus (iOS) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    font-size: 16px;
  }
  
  /* Button ripple effect */
  .quantity-btn,
  .delete-btn,
  .product-card-delete,
  .confirm-order-btn {
    position: relative;
    overflow: hidden;
  }
  
  .quantity-btn::before,
  .delete-btn::before,
  .product-card-delete::before,
  .confirm-order-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .quantity-btn:active::before,
  .delete-btn:active::before,
  .product-card-delete:active::before,
  .confirm-order-btn:active::before {
    width: 300px;
    height: 300px;
  }
}

.cart-product-stt span {
  font-size: 16px;
}

/* Product Info Column Styles */
.cart-product-name {
  width: 350px !important;
  padding: 15px 12px !important;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-image img {
  width: 64px;
  height: 64px;
}

.product-details {
  flex: 1;
  min-width: 0;
}

.product-title {
  margin-bottom: 4px;
}

.product-title a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-left: 14px;
}

.product-title a:hover {
  color: #06c;
}

.product-id {
  color: #666;
  font-size: 12px;
}

/* Responsive STT Column */
@media (max-width: 768px) {
  .cart-product-stt {
    width: 50px !important;
  }
  
  .cart-product-stt span {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
  }
  
  .cart-product-name {
    width: 300px !important;
  }
  
  .product-info {
    gap: 8px;
  }
  
  .product-image img {
    width: 50px;
    height: 50px;
  }
  
  .product-title a {
    font-size: 14px;
  }
  
  .product-id {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .cart-product-stt {
    width: 45px !important;
  }
  
  .cart-product-stt span {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
  }
  
  .cart-product-name {
    width: 250px !important;
  }
  
  .product-info {
    gap: 6px;
  }
  
  .product-image img {
    width: 40px;
    height: 40px;
  }
  
  .product-title a {
    font-size: 13px;
  }
  
  .product-id {
    font-size: 10px;
  }
}
