/* ============================================================================
   COMPOSANTS PANIER & CHECKOUT
   Styles pour le panier, modal de panier, checkout
   ============================================================================ */

/* ======================== CART MODAL/SLIDE-OVER ======================== */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 39;
  animation: fadeIn 0.2s ease;
  display: none;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 40;
  animation: slideInRight 0.3s ease-out;
}

/* Modal ouvert */
.cart-modal-backdrop[style*="display: block"],
.cart-modal[style*="display: flex"] {
  display: block !important;
}

.cart-modal[style*="display: flex"] {
  display: flex !important;
}

@media (max-width: 512px) {
  .cart-modal {
    max-width: 100%;
  }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--color-slate-100);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-slate-50) 100%);
}

.cart-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-slate-900);

}

.cart-count {
  font-size: 16px;
  color: #F97316;
  margin-left: 8px;
  font-weight: 700;
}

.cart-close-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-400);
  transition: color var(--transition-base);
}

.cart-close-btn:hover {
  color: var(--color-slate-500);
}

/* ======================== CART ITEMS LIST ======================== */
.cart-body {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: white;
  min-height: 200px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: var(--space-lg);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--color-slate-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-400);
}

.cart-empty-message {
  font-size: var(--font-size-base);
  color: var(--color-slate-500);
  margin: 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

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

.cart-item-image {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2,6,23,0.04);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-slate-900);
  margin: 0;
  line-height: 1.2;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-slate-900);
}

.cart-item-meta {
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
}

.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.cart-item-quantity {
  font-size: 13px;
  color: var(--color-slate-500);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.cart-item-remove:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

/* ======================== CART FOOTER/SUMMARY ======================== */
.cart-footer {
  border-top: 2px solid var(--color-slate-100);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}

.cart-summary-row.subtotal {
  font-weight: 600;
  color: var(--color-slate-600);
  margin-bottom: 8px;
}


.cart-summary-row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-slate-900);
  padding-top: 12px;
  border-top: none;
  justify-content: space-between;
}

.cart-summary-row.total span:last-child {
  color: #F97316;
  font-size: 18px;
}

/* ======================== CART BUTTONS ======================== */
#checkout-btn {
  background: linear-gradient(135deg, #F97316, #EA580C) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 20px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
  transition: all 0.2s !important;
  margin-bottom: 10px !important;
}

#checkout-btn:hover {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
  transform: translateY(-2px) !important;
}

#checkout-btn:active {
  transform: scale(0.98) !important;
}

#checkout-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ======================== CHECKOUT PAGE ======================== */
.checkout-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.checkout-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-slate-200);
}

.checkout-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .checkout-stepper {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

@media (max-width: 640px) {
  .checkout-step {
    flex: none;
    width: 100%;
  }
}

.checkout-step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-slate-200);
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.checkout-step.active .checkout-step-number {
  background: var(--color-primary-600);
  color: var(--color-white);
}

.checkout-step.completed .checkout-step-number {
  background: var(--color-success);
  color: var(--color-white);
}

.checkout-step-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-600);
  flex: 1;
}

@media (max-width: 640px) {
  .checkout-step-label {
    display: none;
  }
}

.checkout-step.active .checkout-step-label {
  color: var(--color-slate-900);
}

@media (min-width: 640px) {
  .checkout-step::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--color-slate-200);
    margin: 0 var(--space-md);
    order: 1;
  }

  .checkout-step:last-child::after {
    display: none;
  }

  .checkout-step.completed::after {
    background: var(--color-success);
  }
}

/* Ajouts pour nouveaux classes utilisées par cart.js */
.cart-item-left {
  min-width: 0;
}

.cart-item-right {
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item-qty {
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
}

.cart-item-remove-btn {
  background: #EF4444;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-weight: 600;
}

.cart-item-remove-btn:hover {
  opacity: 0.9;
}

/* Quantity controls */
.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-controls .qty-decr,
.cart-qty-controls .qty-incr {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-slate-200);
  background: white;
  cursor: pointer;
  font-weight: 700;
}
.cart-qty-controls .qty-input {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--color-slate-200);
  border-radius: 6px;
  text-align: center;
}

/* Compatibilité: styles pour anciennes classes utilisées dans les templates */
.qty-btn,
.qty-minus,
.qty-plus,
.qty-decr,
.qty-incr {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid var(--color-slate-200) !important;
  background: white !important;
  color: var(--color-slate-700) !important;
  cursor: pointer !important;
  font-weight: 700 !important;
}
.qty-btn:hover,
.qty-decr:hover,
.qty-incr:hover,
.qty-minus:hover,
.qty-plus:hover {
  background: var(--color-slate-50) !important;
  color: var(--color-slate-900) !important;
}

/* Boutons supprimer : modal et page panier */
.cart-item-remove-btn,
.btn-remove {
  background: transparent !important;
  color: var(--color-slate-800) !important;
  border: 1px solid var(--color-slate-200) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.cart-item-remove-btn:hover,
.btn-remove:hover {
  background: var(--color-slate-50) !important;
  color: var(--color-slate-900) !important;
  transform: translateY(-1px) !important;
}

.cart-item-remove-btn svg {
  width: 14px !important;
  height: 14px !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

.cart-item-remove-btn .remove-text {
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* Mobile: modal full screen */
@media (max-width: 640px) {
  .cart-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }
  .cart-item-image { width: 72px; height: 72px; }
}

/* === Additional styles from panier.md (modal pro) === */
.cart-modal {
  position: fixed;
  padding: 16px;
}

.cart-modal .qty-btn,
.cart-modal .qty-minus,
.cart-modal .qty-plus,
.cart-modal .qty-decr,
.cart-modal .qty-incr {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid var(--color-slate-200) !important;
  background: white !important;
  color: var(--color-slate-700) !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.cart-modal .qty-btn:hover,
.cart-modal .qty-decr:hover,
.cart-modal .qty-incr:hover,
.cart-modal .qty-minus:hover,
.cart-modal .qty-plus:hover {
  background: var(--color-slate-50) !important;
  color: var(--color-slate-900) !important;
}

.cart-modal-footer,
.cart-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg,#FF7A00,#FF9A00);
  color: #fff;
  border: none;
  border-radius: 12px;
}

.cart-checkout-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.cart-checkout-btn span { vertical-align: middle; }

/* Micro-animation for quantity controls */
.qty-press {
  transform: scale(0.96);
  transition: transform 120ms ease;
}

/* Empty state illustration */
.cart-empty-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
  padding: 24px 12px;
  color: var(--color-slate-500);
}

@media (max-width: 640px) {
  .cart-modal { max-width: 100%; }
}

/* ======================== CHECKOUT LAYOUT ======================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
  }
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.checkout-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
  margin-bottom: var(--space-lg);
}

/* ======================== CHECKOUT SIDEBAR (Summary) ======================== */
.checkout-sidebar {
  position: relative;
}

@media (max-width: 1023px) {
  .checkout-sidebar {
    order: -1;
    margin-bottom: var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .checkout-sidebar {
    position: sticky;
    top: calc(64px + var(--space-xl));
    max-height: calc(100vh - 64px - var(--space-xl));
  }
}

.checkout-summary {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  background: var(--color-slate-50);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-summary-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--color-slate-900);
  margin: 0;
}

.checkout-summary-items {
  max-height: 300px;
  overflow-y: auto;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-slate-200);
}

.checkout-summary-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
}

.checkout-summary-item:first-child {
  padding-top: 0;
}

.checkout-summary-item-qty {
  color: var(--color-slate-500);
  min-width: 30px;
}

.checkout-summary-item-details {
  flex: 1;
}

.checkout-summary-item-name {
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-900);
}

.checkout-summary-item-price {
  color: var(--color-slate-600);
}

.checkout-summary-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
}

.checkout-summary-row.total {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--color-slate-900);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-slate-300);
}

/* ======================== PAYMENT METHODS ======================== */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.payment-method {
  border: 2px solid var(--color-slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.payment-method:hover {
  border-color: var(--color-primary-600);
  background: var(--color-primary-50);
}

.payment-method.active {
  border-color: var(--color-primary-600);
  background: var(--color-primary-50);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.payment-method-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.payment-method-label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-slate-900);
}

.payment-method-radio {
  margin-left: auto;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary-600);
}
/* ======================== CART PAGE ======================== */
.cart-page {
  min-height: 100vh;
  background: var(--color-slate-50);
  padding: var(--space-lg);
}

.cart-header {
  max-width: 1280px;
  margin: 0 auto var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-slate-200);
}

.cart-header h1 {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
}

.cart-header .text-slate-600 {
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
  margin: 0;
}

.cart-empty {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.empty-state {
  text-align: center;
  padding: var(--space-xl);
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  color: var(--color-slate-400);
  stroke-width: 1.5;
}

.empty-state h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
  margin-bottom: var(--space-xs);
}

.empty-state p {
  color: var(--color-slate-600);
  margin-bottom: var(--space-lg);
}

.cart-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
}

.cart-items {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.items-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-slate-200);
}

.items-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.cart-item-card {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-slate-100);
  transition: background 0.2s ease;
}

.cart-item-card:hover {
  background: var(--color-slate-50);
}

.cart-item-card:last-child {
  border-bottom: none;
}

.item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-slate-100);
}

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

.item-details h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.item-meta {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  margin: 0 0 var(--space-xs);
}

.item-price {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.price-label {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: white;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-slate-600);
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
}

.qty-input {
  width: 48px;
  border: none;
  text-align: center;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-slate-900);
}

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

.item-subtotal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: right;
}

.subtotal-label {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtotal-value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-600);
}

.btn-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--color-red-50);
  color: var(--color-red-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background: var(--color-red-100);
  color: var(--color-red-700);
}

.btn-remove svg {
  width: 18px;
  height: 18px;
}

.cart-actions-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-slate-200);
}

.cart-summary {
  position: sticky;
  top: var(--space-xl);
}

.summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.summary-card h3 {
  margin: 0 0 var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.summary-lines {
  margin-bottom: var(--space-lg);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
}

.summary-divider {
  height: 1px;
  background: var(--color-slate-200);
  margin: var(--space-lg) 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0 var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
}

.summary-total span:last-child {
  color: var(--color-primary-600);
}

.summary-note {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  padding: var(--space-sm);
  background: var(--color-slate-50);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}

.summary-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-slate-200);
}

/* ======================== CHECKOUT PAGE ======================== */
.checkout-page {
  min-height: 100vh;
  background: var(--color-slate-50);
}

.checkout-progress {
  background: white;
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
}

.progress-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.checkout-step-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .checkout-step-bar {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--space-md);
    padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
    scroll-behavior: smooth;
  }
  
  .checkout-step-bar::-webkit-scrollbar {
    height: 4px;
  }
  
  .checkout-step-bar::-webkit-scrollbar-track {
    background: var(--color-slate-100);
  }
  
  .checkout-step-bar::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 2px;
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

@media (max-width: 768px) {
  .step-item {
    flex-shrink: 0;
    min-width: 80px;
  }
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-slate-100);
  border: 2px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-600);
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
}

.step-label {
  font-size: var(--font-size-xs);
  color: var(--color-slate-600);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.step-item.active .step-label {
  color: var(--color-primary-600);
  font-weight: var(--font-weight-semibold);
}

.step-line {
  height: 2px;
  background: var(--color-slate-200);
  margin-bottom: 28px;
  display: block;
}

@media (max-width: 768px) {
  .step-line {
    display: none;
  }
}

.checkout-step-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.checkout-step-bar li .step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-slate-100);
  border: 2px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-600);
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
}

.checkout-step-bar li.active .step-indicator {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
}

.checkout-step-bar li.completed .step-indicator {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: white;
}

.checkout-step-bar li .step-label {
  font-size: var(--font-size-xs);
  color: var(--color-slate-600);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.checkout-step-bar li.active .step-label {
  color: var(--color-primary-600);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
  .checkout-step-bar li {
    flex-shrink: 0;
    min-width: 80px;
  }
}

.step-item.active ~ .step-item .step-number {
  opacity: 0.5;
}

.alert-box {
  background: var(--color-yellow-50);
  border: 1px solid var(--color-yellow-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.alert-box svg {
  width: 24px;
  height: 24px;
  color: var(--color-yellow-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-box h3 {
  margin: 0 0 var(--space-xs);
  color: var(--color-yellow-900);
  font-size: var(--font-size-sm);
}

.alert-box p {
  margin: 0;
  color: var(--color-yellow-800);
  font-size: var(--font-size-sm);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.checkout-main {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.checkout-section {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-slate-200);
}

.checkout-section:last-child {
  border-bottom: none;
}

.checkout-section h2 {
  margin: 0 0 var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.cart-review-list {
  margin-bottom: var(--space-lg);
}

.cart-review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-slate-100);
}

.cart-review-item:last-child {
  border-bottom: none;
}

.item-name {
  display: block;
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-900);
  font-size: var(--font-size-sm);
}

.item-qty {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  margin-top: var(--space-xs);
}

.item-price {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-600);
  font-size: var(--font-size-sm);
}

.cart-review-totals {
  background: var(--color-slate-50);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
}

.total-final {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-slate-200);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.badge-info {
  background: var(--color-blue-100);
  color: var(--color-blue-700);
}

.text-note {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  margin: var(--space-md) 0 0;
}

.checkout-actions {
  padding: var(--space-lg);
}

.action-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-green-200);
  background: var(--color-green-50);
  margin-bottom: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-green-100);
  color: var(--color-green-600);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-content h3 {
  margin: 0 0 var(--space-xs);
  color: var(--color-green-900);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.card-content p {
  margin: 0;
  color: var(--color-green-800);
  font-size: var(--font-size-sm);
}

.action-buttons {
  display: flex;
  gap: var(--space-sm);
}

.action-buttons .btn {
  flex: 1;
}

.checkout-sidebar {
  position: sticky;
  top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin: 0 0 var(--space-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-slate-600);
}

.sidebar-item strong {
  color: var(--color-slate-900);
  font-weight: var(--font-weight-semibold);
}

.sidebar-item.total {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-slate-200);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.sidebar-divider {
  height: 1px;
  background: var(--color-slate-200);
  margin: var(--space-md) 0;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-slate-700);
}

.feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-green-600);
  flex-shrink: 0;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-step-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    padding: var(--space-xl) var(--space-md);
  }

  .cart-item-card {
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .item-quantity,
  .item-subtotal,
  .btn-remove {
    grid-column: 2;
  }

  .item-quantity {
    justify-self: flex-start;
  }

  .item-subtotal {
    text-align: left;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cart-layout {
    gap: var(--space-lg);
  }

  .summary-card {
    position: static;
  }

  .checkout-step-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }
}

/* ======================== FORM STYLES ======================== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-slate-700);
}

.form-input {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
  color: var(--color-slate-900);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-input:disabled {
  background: var(--color-slate-100);
  color: var(--color-slate-500);
}

.form-input::placeholder {
  color: var(--color-slate-400);
}

.form-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary-600);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-checkbox:hover {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-checkbox:checked {
  background-color: var(--color-primary-600);
  border-color: var(--color-primary-600);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-slate-200);
  margin-top: var(--space-lg);
}

.alert-danger {
  background: var(--color-red-50);
  border-color: var(--color-red-200);
  color: var(--color-red-800);
}

.alert-danger svg {
  color: var(--color-red-600);
}

.alert-danger h3,
.alert-danger h4 {
  color: var(--color-red-900);
}

/* ======================== PAYMENT METHOD CARDS ======================== */
.payment-method-card {
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
}

.payment-method-card:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
}

.payment-method-card input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-slate-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  background: white;
}

.payment-method-card input[type="radio"]:checked {
  border-color: var(--color-primary-600);
  background: var(--color-primary-600);
  box-shadow: inset 0 0 0 2px white;
}

.payment-method-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  color: var(--color-slate-600);
}

.payment-method-badge svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.payment-method-info {
  flex: 1;
}

.payment-method-info h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.payment-method-info p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
}

.payment-method-card.active {
  border-color: var(--color-primary-600);
  background: var(--color-primary-50);
}

.payment-method-card.active .payment-method-badge {
  background: var(--color-primary-100);
  color: var(--color-primary-600);
}

/* ======================== PAYMENT DETAILS CARD ======================== */
.payment-details-card {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--color-slate-50);
}

.payment-detail-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-slate-200);
}

.payment-detail-item:last-child {
  border-bottom: none;
}

.payment-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-100);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: var(--color-blue-600);
}

.payment-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.payment-detail-content {
  flex: 1;
}

.payment-detail-label {
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.payment-detail-value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
  font-family: 'Monaco', 'Courier New', monospace;
  word-break: break-all;
}

/* ======================== UPLOAD INSTRUCTIONS ======================== */
.upload-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.instruction-card {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: white;
  text-align: center;
  transition: all var(--transition-base);
}

.instruction-card:hover {
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
}

.instruction-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: var(--radius-lg);
  color: var(--color-slate-600);
}

.instruction-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.instruction-card-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
  margin: 0;
}

.instruction-card-desc {
  font-size: var(--font-size-xs);
  color: var(--color-slate-500);
  margin: var(--space-xs) 0 0;
}

/* ======================== FILE INPUT WRAPPER ======================== */
.file-input-wrapper {
  border: 2px dashed var(--color-slate-300);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  background: var(--color-slate-50);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.file-input-wrapper:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
}

.file-input-wrapper.dragover {
  border-color: var(--color-primary-600);
  background: var(--color-primary-100);
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-input-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: var(--radius-lg);
  color: var(--color-slate-600);
}

.file-input-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.file-input-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-900);
  margin-bottom: var(--space-xs);
}

.file-input-hint {
  font-size: var(--font-size-sm);
  color: var(--color-slate-500);
  margin: 0;
}

/* ======================== AMOUNT BANNER ======================== */
.amount-banner {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: white;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.amount-banner-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.amount-banner-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

/* ======================== SIDEBAR CONTENT ======================== */
.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border: 1px solid var(--color-slate-100);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.sidebar-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-slate-600);
}

.sidebar-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.sidebar-item-text {
  flex: 1;
  color: var(--color-slate-700);
}

/* ======================== CHECKBOX LABEL ======================== */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--color-primary-600);
  cursor: pointer;
}

.checkbox-label span {
  font-size: var(--font-size-sm);
  color: var(--color-slate-700);
  line-height: 1.5;
}

/* ======================== PROGRESS BAR (6 STEPS) ======================== */
.checkout-step-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-step-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.checkout-step-bar .step-indicator {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  background: var(--color-slate-200);
  color: var(--color-slate-600);
  transition: all var(--transition-base);
}

.checkout-step-bar .step-indicator svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 2;
}

.checkout-step-bar li.active .step-indicator {
  background: var(--color-primary-600);
  color: white;
}

.checkout-step-bar li.completed .step-indicator {
  background: var(--color-green-600);
  color: white;
}

.step-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-600);
  text-align: center;
  line-height: 1.2;
}

.checkout-step-bar li.active .step-label {
  color: var(--color-slate-900);
  font-weight: var(--font-weight-semibold);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-step-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .cart-item-card {
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .item-quantity,
  .item-subtotal,
  .btn-remove {
    grid-column: 2;
  }

  .item-quantity {
    justify-self: flex-start;
  }

  .item-subtotal {
    text-align: left;
  }

  .cart-layout {
    gap: var(--space-lg);
  }

  .summary-card {
    position: static;
  }

  .checkout-step-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons {
    flex-direction: column;
  }
  
  .upload-instructions {
    grid-template-columns: 1fr;
  }

  .payment-method-card {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 480px) {
  .cart-page,
  .checkout-page {
    padding: var(--space-md);
  }

  .cart-header h1 {
    font-size: var(--font-size-2xl);
  }

  .summary-line,
  .sidebar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .summary-line span:last-child,
  .sidebar-item strong {
    align-self: flex-end;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .checkout-step-bar {
    grid-template-columns: 1fr;
  }

  .step-label {
    font-size: var(--font-size-xs);
  }
}

/* ======================== MODAL STYLES (Moved from inline) ======================== */
.navbar-search-form {
  display: flex;
  align-items: center;
  width: 256px;
}

.cart-modal-backdrop-hide {
  display: none !important;
}

.cart-modal-hide {
  display: none !important;
}

.cart-summary-inline {
  margin-bottom: 16px;
}

.cart-summary-row-inline {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.cart-summary-row-inline.subtotal {
  margin-bottom: 8px;
}


.cart-summary-row-inline.total {
  padding: 12px 0;
  font-size: 16px;
}

.cart-summary-label {
  color: var(--color-slate-600);
}

.cart-summary-value {
  color: var(--color-slate-900);
  font-weight: 600;
}

.cart-summary-total {
  color: #F97316;
  font-weight: 700;
  font-size: 18px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  transition: all 0.2s;
  margin-bottom: 10px;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.cart-continue-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: white;
  color: var(--color-slate-600);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-continue-btn:hover {
  background: var(--color-slate-50);
  border-color: var(--color-slate-300);
}

.footer-main {
  background: var(--color-slate-900);
  color: var(--color-white);
  margin-top: var(--space-section);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: var(--color-slate-300);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-copyright {
  border-top: 1px solid var(--color-slate-700);
  padding-top: var(--space-lg);
  margin: 0;
  color: var(--color-white);
}

#toast-container {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 50;
}

/* Compatibility: selectors for older templates handled above */
