/**
 * Shopping Cart Styles - Complete Enhanced Version
 */

/* =================================== */
/* Cart Button in Nav */
/* =================================== */
.btn-sepet {
  display: inline-block;
  position: relative;
  margin: 0 8px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4d4d;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================================== */
/* Cart Overlay */
/* =================================== */
.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.cart-container {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* =================================== */
/* Enhanced Input Field Styles */
/* =================================== */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper.textarea-wrapper {
  display: block;
  position: relative;
}

.enhanced-input {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 35px 12px 16px;
  font-size: 2vh;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.enhanced-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.enhanced-input.success {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.enhanced-input::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Clear Input Button */
.clear-input-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #eceded;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: 10;
  color: #6c757d;
  font-size: 12px;
}

.input-wrapper:hover .clear-input-btn,
.enhanced-input:focus + .clear-input-btn {
  opacity: 1;
}

.clear-input-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.clear-input-btn:hover i {
  color: #dc3545;
}

.textarea-wrapper .clear-input-btn.textarea-clear {
  top: 12px;
  transform: none;
}

/* Character Counter */
.character-counter {
  position: absolute;
  right: 0;
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
  display: block;
  text-align: right;
  transition: color 0.1s ease;
}

/* =================================== */
/* Enhanced Payment Options */
/* =================================== */
.enhanced-payment-options {
  display: flex;
  gap: 12px;
  margin-top: 0px;
}

.payment-btn {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1vh 2vh;
  cursor: pointer;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 2vh;
  font-weight: 500;
  color: #495057;
  min-height: 6vh;
  width: -webkit-fill-available;
  position: relative;
}

.payment-btn i {
  font-size: 2.5vh;
  transition: transform 0.1s ease;
}

.payment-btn span {
  white-space: nowrap;
  width: -webkit-fill-available;
}

.payment-btn:hover {
  /* box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15); */
  background: #E3F2FD;
}

.payment-btn.active {
  background: #E3F2FD;
  border-color: #007bff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.payment-btn.active i {
  transform: scale(1.05);
}

/* =================================== */
/* Enhanced Cart Total */
/* =================================== */
.enhanced-cart-total {
  background: #565ABB;
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin: 1vh 0 3vh 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: white;
}

.total-header {
  display: none;
}

.total-breakdown {
  display: flex;
  flex-direction: column;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.total-label {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.total-value {
  font-weight: 600;
  color: white;
}

/* Discount line styling */
.discount-line {
  display: none;
  color: rgba(255, 255, 255, 0.95);
}

.discount-line.active {
  display: flex;
}

.discount-line .total-label {
  color: rgba(255, 255, 255, 0.95);
}

.discount-value {
  color: rgb(211, 103, 103) !important;
  font-weight: 600;
}

/* Divider line */
.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 8px 0;
}

/* Final total line */
.final-line {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.final-line .total-label {
  color: white;
  font-weight: 600;
}

.final-value {
  color: white;
  font-weight: 700;
}

/* =================================== */
/* Enhanced Button Group */
/* =================================== */
.enhanced-button-group {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.enhanced-coupon-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 12px 16px;
  height: 6vh !important;
  width: -webkit-fill-available;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2vh;
  font-weight: 500;
  color: #495057;
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.enhanced-coupon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.enhanced-coupon-btn:hover::before {
  left: 100%;
}

.enhanced-coupon-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.enhanced-send-order-btn {
  background: #1976D2;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  flex: 1;
  justify-content: center;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.enhanced-send-order-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.enhanced-send-order-btn:hover::before {
  left: 100%;
}

.enhanced-send-order-btn:hover {
  background: #1976D2;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.enhanced-send-order-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  white-space: nowrap;
}

/* =================================== */
/* Address Mode Toggle Button */
/* =================================== */
.enhanced-toggle-btn {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.enhanced-toggle-btn:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.enhanced-toggle-btn.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-color: #007bff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.enhanced-toggle-btn i {
  font-size: 14px;
  transition: transform 0.1s ease;
}

.enhanced-toggle-btn.active i {
  transform: rotate(180deg);
}

/* Address Container Layout */
.address-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-container .enhanced-toggle-btn {
  align-self: flex-end;
  margin-bottom: 8px;
}

/* Address Grid */
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.address-grid-item .input-wrapper {
  margin-bottom: 0;
}

/* Form Labels */
.customer-info label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #495057;
  font-size: 2vh;
}

/* =================================== */
/* Cart Items and Legacy Styles */
/* =================================== */
.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #666;
}

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

.quantity-btn {
  background: none;
  border: 1px solid #ddd;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-item-quantity {
  margin: 0 10px;
}

.remove-item {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  margin-left: 10px;
}

.cart-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.send-order-btn, .clear-cart-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.clear-cart-btn {
  background-color: #f44336;
  color: white;
}

.empty-cart-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* =================================== */
/* Cart Button in Product Page */
/* =================================== */
.cart-button-container {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

#add-to-cart-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 300px;
}

#add-to-cart-btn:hover {
  background-color: #45a049;
}

#add-to-cart-btn i {
  margin-right: 8px;
}

/* =================================== */
/* Cart Notification */
/* =================================== */
.cart-notification {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 200px;
}

.cart-notification.show {
  opacity: 0.8;
}

/* =================================== */
/* Active Coupon Button Indicator */
/* =================================== */


.enhanced-coupon-btn.active-coupon::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* .enhanced-coupon-btn.active-coupon:hover {
  background: linear-gradient(135deg, #1e7e34, #155724) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
} */

/* =================================== */
/* Enhanced Coupon Popup Styles */
/* =================================== */
.coupon-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.1s ease !important;
  backdrop-filter: blur(2px) !important;
}

.coupon-popup.show {
  display: flex;
  animation: none !important;
  backdrop-filter: blur(5px);
}

.coupon-popup-content {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  width: 90%;
  max-width: 400px;
  animation: couponPopupFast 0.1s ease !important;
}

@keyframes couponPopupFast {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.coupon-popup-header {
  background: #007bff;
  color: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 20px -20px;
}

.coupon-popup-header h3 {
  margin: 0;
  color: white;
  font-weight: 600;
}

.close-coupon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 0;
  transition: all 0.3s ease;
}

.close-coupon:hover {
  background: transparent !important;
  color: white !important;
  box-shadow: none !important;
  transform: rotate(90deg);
  opacity: 0.8;
}

.coupon-popup-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.coupon-input-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-input {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

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

.coupon-buttons {
  display: flex;
  gap: 10px;
}

.apply-coupon-btn, .remove-coupon-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
  font-size: 14px;
  transition: all 0.3s ease;
}

.apply-coupon-btn {
  background: #28a745;
  color: white;
}

.apply-coupon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.remove-coupon-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.remove-coupon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Coupon button in cart */
.cart-coupon {
  background: none;
  border: none;
  color: #009a9a !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 1vh;
  transition: background-color 0.2s;
}

.cart-coupon:hover {
  background-color: rgba(0, 154, 154, 0.1);
}

.cart-coupon svg {
  width: 20px;
  height: 20px;
}

/* =================================== */
/* Coupon Discount Display */
/* =================================== */
.cart-discount {
  margin-top: 15px;
  padding: 12px;
  background-color: #f1f8e9;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease;
}

.discount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.discount-amount {
  color: #4caf50;
  font-weight: bold;
  font-size: 16px;
}

.discount-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ccc;
}

.discount-total span:first-child {
  font-size: 15px;
  color: #555;
}

.discounted-price {
  color: #e53935;
  font-size: 18px;
}

/* Coupon badge on the coupon button */
#coupon {
  position: relative;
}

.coupon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e53935;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* =================================== */
/* Coupon Message Styling */
/* =================================== */
.coupon-messages {
  transition: all 0.3s ease;
}

.coupon-message {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.coupon-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.coupon-message.error {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.coupon-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #1565c0;
}

/* =================================== */
/* Shopping Cart Table Design */
/* =================================== */
.cart-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  border: none;
  box-shadow: none;
}

/* Shopping Cart Title Above Table */
.cart-table-title {
  font-size: 28px;
  font-weight: 700;
  color: #333333;
  margin: 0;
  padding-left: 0;
  border-bottom: none;
  padding-bottom: 0px;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Add blue accent line */
.cart-table-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  margin-top: 12px;
  border-radius: 2px;
}

/* Table wrapper with scrollable container */
.cart-table-wrapper {
  width: 100%;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: white;
  border: 1px solid #f0f0f0;
}

/* Scrollable container */
.cart-table-scroll-container {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
  scroll-behavior: smooth;
}

/* Modern scrollbar */
.cart-items-container-2::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container-2::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.cart-items-container-2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #007bff, #0056b3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.cart-items-container-2::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0056b3, #004085);
}

.cart-items-container-2::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbar */
.cart-items-container-2 {
  scrollbar-width: thin;
  scrollbar-color: #007bff #f8f9fa;
}

.cart-items-header {
  background: white;
  padding: 18px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #4a5568;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cart-items-row {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  background: white;
  animation: cartItemSlideIn 0.3s ease-out;
}

.cart-items-row:hover {
  background: linear-gradient(135deg, #fafbfc 0%, #f7fafc 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-items-row:last-child {
  border-bottom: none;
}

.cart-items-cell {
  padding: 20px 16px;
  vertical-align: middle;
  font-size: 14px;
  color: #2d3748;
}

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

.cart-product-image {
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  transition: transform 0.2s ease;
}

/* .cart-product-image:hover {
  transform: scale(1.05);
} */

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

.cart-product-name {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 6px;
  line-height: 1.4;
  font-size: 16px;
  word-wrap: break-word;
}

.cart-product-variant {
  font-size: 13px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.cart-variant-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  flex-shrink: 0;
}

.cart-price-cell {
  font-weight: 700;
  color: #1a202c;
  text-align: center;
  min-width: 100px;
  font-size: 16px;
}

.cart-quantity-cell {
  text-align: center;
  min-width: 120px;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-quantity-btn {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  border: none;
  background: transparent;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2vh;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.plus {
  border-radius: 0px 14px 14px 0px !important;
}

.minus {
  border-radius: 14px 0px 0px 14px !important;
}

.cart-quantity-btn:hover {
  background: #e9ecef;
  z-index: 10000;
}

.cart-quantity-btn:active {
  transform: scale(0.95);
}

.cart-quantity-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.cart-quantity-display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 100%;
  text-align: center;
  font-weight: 700;
  color: #1a202c;
  cursor: pointer;
  padding: 0px 10px;
  transition: all 0.2s ease;
  background: #f7fafc;
  border: 2px solid transparent;
  font-size: 1.5vh;
}

.cart-quantity-display:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  border-color: #007bff;
}

.cart-quantity-display:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
}

.cart-total-cell {
  font-weight: 700;
  color: #1a202c !important;
  text-align: center;
  min-width: 100px;
  font-size: 1.5vh;
}


.cart-remove-cell {
  text-align: center;
  width: 50px;
}

.cart-remove-btn {
  width: 3vh;
  height: 3vh;
  float: right;
  margin-right: 1.5vh;
  padding: 0;
  border: none;
  background: transparent;
  color: #dc3545;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2vh;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-remove-btn:hover {
  background: #e9ecef;
  color: #dc3545;
  transform: scale(1.1);
}

.cart-remove-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* =================================== */
/* Cart Container Structure */
/* =================================== */
.cart-items-container-0 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cart-items-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cart-items-container-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: auto !important;
  min-height: 0;
}

.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cart-body {
  gap: 0;
}

/* Empty cart styling */
.cart-items .empty-cart-message {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  font-size: 18px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 16px;
  margin: 20px 0;
  border: 2px dashed #e2e8f0;
  font-weight: 500;
}

/* =================================== */
/* Form Validation States */
/* =================================== */
.input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

.input-success {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1) !important;
}

/* =================================== */
/* Loading States */
/* =================================== */
/* .enhanced-send-order-btn.loading {
  pointer-events: none;
  opacity: 0.8;
  position: relative;
  color: transparent;
}

.enhanced-send-order-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
} */

.cart-table-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* =================================== */
/* Animations */
/* =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes cartItemSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes inputFocus {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.enhanced-input:focus {
  animation: inputFocus 0.3s ease;
}

@keyframes buttonPress {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-2px) scale(1); }
}

.payment-btn:active {
  animation: buttonPress 0.2s ease;
}

/* =================================== */
/* Responsive Design */
/* =================================== */
@media (max-width: 768px) {
  .enhanced-payment-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .enhanced-button-group {
    flex-direction: column;
  }
  
  .enhanced-send-order-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
  
  .enhanced-cart-total {
    padding: 16px;
  }

  .enhanced-toggle-btn {
    width: 32px;
    height: 32px;
    right: 4px;
  }

  .cart-table-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .cart-table-title::after {
    width: 60px;
    height: 3px;
  }
  
  .cart-items-header,
  .cart-items-cell {
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .cart-product-details {
    gap: 12px;
    min-width: 180px;
  }
  
  
  .cart-product-name {
    font-size: 14px;
  }
  
  .cart-quantity-btn {
    height: 28px;
    font-size: 14px;
  }
  
  .cart-quantity-controls {
    gap: 8px;
  }
  
  .cart-total-cell {
    font-size: 14px;
  }
  
  .cart-table-scroll-container {
    max-height: 50vh;
  }

  .coupon-popup-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .cart-table-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .cart-table-title::after {
    width: 50px;
    height: 2px;
  }
  
  .cart-table-wrapper {
    font-size: 11px;
    border-radius: 8px;
  }
  
  .cart-table-scroll-container {
    border-radius: 8px;
    max-height: 45vh;
  }
  
  .cart-items-header,
  .cart-items-cell {
    padding: 8px 4px;
  }
  
  .cart-product-details {
    min-width: 140px;
    gap: 8px;
  }

  
  .cart-product-name {
    font-size: 12px;
  }
  
  .cart-remove-btn {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  
  .cart-total-cell {
    font-size: 12px;
  }
}

/* =================================== */
/* Hover Effects */
/* =================================== */
.cart-table-wrapper:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Apply button animation */
.apply-coupon-btn {
  transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
} 

.close-cart-btn {
  padding: 1.5vh 1.7vh;
  font-size: 2vh;
  border-radius: 50%;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-cart-btn:hover {
  background-color: #e9ecef;
} 

/* =================================== */
/* Responsive Coupon Popup */
/* =================================== */
@media (max-width: 768px) {
  .coupon-popup-content {
    width: 95%;
    max-width: 350px;
    padding: 15px;
  }
  
  .coupon-popup-header {
    padding: 15px;
    margin: -15px -15px 15px -15px;
  }
  
  .coupon-popup-header h3 {
    font-size: 18px;
  }
  
  .coupon-input {
    padding: 12px;
    font-size: 14px;
  }
  
  .coupon-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .apply-coupon-btn, .remove-coupon-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .coupon-popup-content {
    width: 98%;
    max-width: 300px;
    padding: 12px;
  }
  
  .coupon-popup-header {
    padding: 12px;
    margin: -12px -12px 12px -12px;
  }
  
  .coupon-popup-header h3 {
    font-size: 16px;
  }
  
  .coupon-input {
    padding: 10px;
    font-size: 13px;
  }
  
  .apply-coupon-btn, .remove-coupon-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
} 