/* ============================================
   CART PAGE STYLES - PROFESSIONAL & RESPONSIVE
   ============================================ */

/* Page Header */
.cart-header-section {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  padding: 50px 0;
  margin-bottom: 0;
}

.cart-header-content {
  text-align: center;
}

.cart-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cart-title span {
  color: #c8102e;
}

.cart-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

.cart-breadcrumb a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.cart-breadcrumb a:hover {
  color: #c8102e;
}

.cart-breadcrumb i {
  color: #c8102e;
  font-size: 10px;
}

.cart-breadcrumb span {
  color: #c8102e;
}

/* Cart Content */
.cart-content-section {
  padding: 50px 0;
  background: #f0f2f5;
  min-height: 500px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* ============================================
   SELECT ALL BAR
   ============================================ */
.cart-select-all-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cart-select-all-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.custom-checkbox.checked {
  background: #c8102e;
  border-color: #c8102e;
}

.custom-checkbox.checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.select-all-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: #888;
}

.delete-selected-btn {
  background: none;
  border: 1px solid #eee;
  color: #c8102e;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.delete-selected-btn:hover {
  background: #fff0f2;
  border-color: #c8102e;
}

/* ============================================
   CART ITEMS WRAPPER
   ============================================ */
.cart-items-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cart-grid-header {
  display: grid;
  grid-template-columns: 36px 1fr 130px 150px 100px 40px;
  background: #fafafa;
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Cart Item */
.cart-item {
  display: grid;
  grid-template-columns: 36px 1fr 130px 150px 100px 40px;
  padding: 20px;
  border-bottom: 1px solid #f5f5f5;
  align-items: center;
  transition: background 0.2s;
  gap: 10px;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: #fafafa;
}

/* Checkbox cell */
.cart-item-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product cell */
.cart-item-product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cart-item-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #eee;
}

.cart-item-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.cart-item-badge.surgical { background: #c8102e; }
.cart-item-badge.dental { background: #2e7d32; }
.cart-item-badge.veterinary { background: #1565c0; }
.cart-item-badge.beauty { background: #7b1fa2; }

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
  line-height: 1.3;
}

.cart-item-info p {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
  margin-bottom: 6px;
}

.cart-item-sku-inline {
  font-size: 0.7rem;
  color: #aaa;
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.item-tag {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.item-tag.certified { background: #e8f5e9; color: #2e7d32; }
.item-tag.instock { background: #e3f2fd; color: #1565c0; }
.item-tag.bulk { background: #fff3e0; color: #e65100; }

/* Category cell */
.cart-item-category {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.cat-badge.surgical { background: #fff0f2; color: #c8102e; border: 1px solid #ffd0d8; }
.cat-badge.dental { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.cat-badge.veterinary { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.cat-badge.beauty { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }

/* Quantity cell */
.cart-item-qty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}

.qty-btn:hover {
  background: #c8102e;
  color: #fff;
}

.qty-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.qty-btn:disabled:hover {
  background: #f5f5f5;
  color: #ccc;
}

.qty-input {
  width: 42px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  outline: none;
  background: #fff;
}

/* Remove cell */
.cart-item-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.remove-item {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  transition: color 0.2s;
  border-radius: 6px;
}

.remove-item:hover {
  color: #c8102e;
  background: #fff0f2;
}

.save-item {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 6px;
  transition: color 0.2s;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.save-item:hover {
  color: #1565c0;
  background: #e3f2fd;
}

/* Cart Footer */
.cart-footer-actions {
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.cart-count-info {
  font-size: 0.8rem;
  color: #888;
}

.cart-count-info strong {
  color: #333;
}

.clear-cart-btn {
  background: none;
  border: 1px solid #eee;
  color: #999;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  padding: 6px 14px;
  border-radius: 6px;
}

.clear-cart-btn:hover {
  color: #c8102e;
  border-color: #c8102e;
  background: #fff0f2;
}

/* ============================================
   EMPTY CART
   ============================================ */
.empty-cart {
  text-align: center;
  padding: 70px 20px;
}

.empty-cart-icon {
  font-size: 80px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #333;
  font-weight: 700;
}

.empty-cart p {
  color: #888;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c8102e;
  color: #fff;
  padding: 13px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.shop-now-btn:hover {
  background: #9b0d23;
}

/* ============================================
   ORDER SUMMARY CARD
   ============================================ */
.order-summary-col {
  position: sticky;
  top: 20px;
}

.order-summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.order-summary-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
  color: #1a1a1a;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.88rem;
  color: #555;
}

.summary-item span:last-child {
  font-weight: 600;
  color: #1a1a1a;
}

.summary-item.total {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 12px 0 0;
}

.summary-item.total span:last-child {
  color: #c8102e;
  font-size: 1.2rem;
}

.summary-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 0;
}

.checkout-btn {
  width: 100%;
  background: #c8102e;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 14px;
}

.checkout-btn:hover {
  background: #9b0d23;
}

.checkout-btn:disabled {
  background: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

.continue-shopping-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.continue-shopping-link:hover {
  color: #c8102e;
  border-color: #c8102e;
  background: #fff0f2;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.trust-badges h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-badges ul {
  list-style: none;
  padding: 0;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.78rem;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
}

.trust-badges li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trust-badges li i {
  color: #c8102e;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

/* Recently Saved */
.saved-items-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.saved-items-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.saved-item:last-child { border-bottom: none; }

.saved-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.saved-item-info {
  flex: 1;
  min-width: 0;
}

.saved-item-info span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-info small {
  font-size: 0.65rem;
  color: #aaa;
  font-family: monospace;
}

.move-to-cart-btn {
  background: none;
  border: 1px solid #c8102e;
  color: #c8102e;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.move-to-cart-btn:hover {
  background: #c8102e;
  color: #fff;
}

/* ============================================
   RECOMMENDED SECTION
   ============================================ */
.recommended-section {
  padding: 60px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  background: rgba(200,16,46,0.1);
  color: #c8102e;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-heading em {
  color: #c8102e;
  font-style: normal;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: #c8102e;
  margin: 15px auto;
}

.section-subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rec-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.rec-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #e0e0e0;
}

.rec-img-wrap {
  position: relative;
  overflow: hidden;
}

.rec-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s;
}

.rec-product-card:hover .rec-img-wrap img {
  transform: scale(1.06);
}

.rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.rec-badge.surgical { background: #c8102e; }
.rec-badge.dental { background: #2e7d32; }
.rec-badge.veterinary { background: #1565c0; }
.rec-badge.beauty { background: #7b1fa2; }

.rec-quick-view {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: bottom 0.3s;
  cursor: pointer;
}

.rec-product-card:hover .rec-quick-view {
  bottom: 0;
}

.rec-info {
  padding: 14px;
}

.rec-category {
  font-size: 0.65rem;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.rec-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 6px 0 4px;
  color: #1a1a1a;
  line-height: 1.3;
}

.rec-sku {
  font-size: 0.65rem;
  color: #bbb;
  font-family: monospace;
  display: block;
  margin-bottom: 6px;
}

.rec-desc {
  font-size: 0.73rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rec-add-btn {
  width: 100%;
  background: #f8f8f8;
  border: 1.5px solid #eee;
  padding: 9px;
  border-radius: 8px;
  color: #c8102e;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.rec-add-btn:hover {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}

/* ============================================
   QUOTE MODAL
   ============================================ */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(2px);
}

.checkout-modal.show {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-container {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.checkout-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}

.checkout-modal-header h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-modal-header h3 i {
  color: #c8102e;
}

.modal-close {
  background: #f5f5f5;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: #fff0f2;
  color: #c8102e;
}

.checkout-modal-body {
  padding: 25px;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
  animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Form Styles */
.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  color: #c8102e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
}

.required {
  color: #c8102e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1a1a1a;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.form-group input.error,
.form-group select.error {
  border-color: #c8102e;
  background: #fff9f9;
}

.field-error {
  font-size: 0.7rem;
  color: #c8102e;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.btn-next, .btn-submit {
  background: #c8102e;
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-next:hover, .btn-submit:hover {
  background: #9b0d23;
}

.btn-back {
  background: #f0f0f0;
  color: #555;
  border: none;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-back:hover {
  background: #e0e0e0;
}

/* Preview Items */
.order-items-preview h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.preview-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.preview-item-details {
  flex: 1;
}

.preview-item-details strong {
  display: block;
  font-size: 0.82rem;
  color: #1a1a1a;
}

.preview-item-details span {
  font-size: 0.7rem;
  color: #aaa;
  font-family: monospace;
}

.preview-item-qty {
  font-size: 0.75rem;
  color: #555;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}

.terms-check {
  margin: 16px 0;
  padding: 14px;
  background: #f0f2f5;
  border-radius: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #444;
  font-weight: 500;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(2px);
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-container {
  background: #fff;
  border-radius: 20px;
  padding: 45px 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.success-animation {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.success-animation i {
  font-size: 36px;
  color: #fff;
}

.success-modal-container h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #1a1a1a;
}

.success-modal-container > p {
  color: #888;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.success-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
  margin: 16px 0 24px;
  text-align: left;
  border: 1px solid #eee;
}

.success-info p {
  margin: 8px 0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.success-info p i {
  color: #2ecc71;
  width: 16px;
}

.success-ref {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 20px;
  font-family: monospace;
}

.success-ref strong {
  color: #c8102e;
  font-size: 0.9rem;
}

.success-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.success-btn-primary {
  background: #c8102e;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.success-btn-primary:hover {
  background: #9b0d23;
}

.success-btn-secondary {
  background: #f0f0f0;
  color: #555;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.success-btn-secondary:hover {
  background: #e0e0e0;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.cart-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a1a1a;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10002;
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  min-width: 220px;
  max-width: 320px;
}

.cart-toast.show {
  transform: translateX(0);
}

.cart-toast.success i { color: #2ecc71; }
.cart-toast.warning i { color: #f39c12; }
.cart-toast.error i { color: #e74c3c; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .cart-grid {
    grid-template-columns: 1fr 340px;
  }
  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-col {
    position: static;
  }

  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cart-grid-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 36px 1fr 40px;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 16px;
  }

  .cart-item-check { grid-row: 1; grid-column: 1; }
  .cart-item-product { grid-row: 1; grid-column: 2; }
  .cart-item-action { grid-row: 1; grid-column: 3; }
  .cart-item-category { grid-row: 2; grid-column: 2 / 4; }
  .cart-item-qty { grid-row: 3; grid-column: 2 / 4; justify-content: flex-start; }

  .recommended-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cart-title {
    font-size: 1.8rem;
  }

  .cart-header-section {
    padding: 35px 0;
  }

  .cart-content-section {
    padding: 25px 0;
  }
}

@media (max-width: 480px) {
  .cart-item-img {
    width: 70px;
    height: 70px;
  }

  .order-summary-card {
    padding: 16px;
  }

  .checkout-modal-container {
    width: 95%;
    max-height: 92vh;
  }

  .success-modal-container {
    padding: 30px 20px;
  }

  .success-buttons {
    flex-direction: column;
  }

  .cart-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    transform: translateY(120px);
    max-width: none;
  }

  .cart-toast.show {
    transform: translateY(0);
  }
}
/* ================================================
   FIX FOR CART ITEM ALIGNMENT - MOQ HINT & SKU
   ================================================ */

/* Cart item grid layout fix */
.cart-item {
    display: grid;
    grid-template-columns: 40px 1fr 140px 120px 100px 60px;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* Quantity column container */
.cart-item-qty {
    text-align: center;
}

/* MOQ hint styling */
.moq-hint {
    font-size: 10px;
    color: #c8102e;
    margin-top: 5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* SKU column alignment */
.cart-item-sku {
    text-align: left;
    font-family: monospace;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

/* Fix for action buttons column */
.cart-item-action {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Quantity control wrapper */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart grid header alignment */
.cart-grid-header {
    display: grid;
    grid-template-columns: 40px 1fr 140px 120px 100px 60px;
    gap: 15px;
    padding: 15px 0;
    background: #f8f8f8;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid #eee;
}

/* Column specific alignments */
.cart-grid-header div:nth-child(4),
.cart-item-qty {
    text-align: center;
}

.cart-grid-header div:nth-child(5),
.cart-item-sku {
    text-align: left;
}

.cart-grid-header div:nth-child(6),
.cart-item-action {
    text-align: center;
}

/* Responsive fix for mobile */
@media (max-width: 992px) {
    .cart-item {
        grid-template-columns: 30px 1fr 120px 100px 80px 50px;
        gap: 10px;
    }
    
    .cart-grid-header {
        grid-template-columns: 30px 1fr 120px 100px 80px 50px;
        gap: 10px;
        font-size: 11px;
    }
    
    .moq-hint {
        font-size: 9px;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .cart-grid-header {
        display: none;
    }
    
    .cart-item-qty {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .moq-hint {
        margin-left: 10px;
    }
    
    .cart-item-sku {
        text-align: left;
    }
    
    .cart-item-action {
        justify-content: flex-start;
    }
}

/* Additional fix for the product info area */
.cart-item-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.cart-item-info p {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
}

.cart-item-sku-inline {
    font-size: 11px;
    color: #999;
    font-family: monospace;
}

/* Badge styling */
.item-tag.moq {
    background: #fff3e0;
    color: #e67e22;
}

.item-tag.moq i {
    color: #e67e22;
}

/* Fix for the specific issue shown in your image */
.cart-item-qty .moq-hint {
    display: block;
    text-align: center;
}

@media (min-width: 769px) {
    .cart-item-qty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}