/* QuickBuy E-commerce - Scenario 5D: Cart Collision */
/* Professional e-commerce design system */

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --success: #059669;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
}

/* ========================================
   PROMO BANNER
   ======================================== */
.promo-banner {
  background: linear-gradient(90deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}

.promo-highlight {
  color: #FCD34D;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-icon {
  border-radius: 6px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn:hover {
  background: var(--gray-100);
}

.nav-caret {
  font-size: 10px;
  color: var(--gray-400);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.search-bar {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 14px;
  font-family: inherit;
  background: var(--gray-50);
  transition: all 0.15s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.cart-link:hover {
  background: var(--gray-100);
}

.cart-icon-svg {
  color: var(--gray-700);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s;
}

.user-menu:hover {
  background: var(--gray-100);
}

.user-avatar img {
  border-radius: 50%;
  display: block;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-greeting {
  font-size: 12px;
  color: var(--gray-500);
}

.user-account {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.welcome-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-content p {
  color: var(--gray-500);
  font-size: 14px;
}

.quick-links {
  display: flex;
  gap: 8px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.quick-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.quick-icon {
  font-size: 16px;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.see-all:hover {
  text-decoration: underline;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card.featured {
  border-color: var(--primary-light);
}

.product-image {
  position: relative;
  padding: 20px;
  background: var(--gray-50);
}

.product-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-photo {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-svg {
  width: 100%;
  height: auto;
  max-height: 180px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.badge-bestseller {
  background: var(--primary);
  color: var(--white);
}

.badge-deal {
  background: var(--danger);
  color: var(--white);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  color: var(--gray-400);
}

.wishlist-btn:hover {
  color: var(--danger);
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.4;
}

.product-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  color: #F59E0B;
  font-size: 13px;
  letter-spacing: -1px;
}

.star.half {
  background: linear-gradient(90deg, #F59E0B 50%, var(--gray-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-count {
  font-size: 12px;
  color: var(--gray-500);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.price-original {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-shipping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.product-shipping svg {
  color: var(--success);
}

.product-shipping strong {
  color: var(--gray-900);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-add-cart {
  width: 100%;
}

.btn-add-cart.added {
  background: var(--success);
}

/* ========================================
   DEALS BANNER
   ======================================== */
.deals-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deal-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.deal-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.deal-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.deal-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.deal-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* ========================================
   MINI PRODUCT SCROLL
   ======================================== */
.product-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.product-card-mini {
  flex: 0 0 200px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
}

.product-img-mini {
  height: 120px;
  background: var(--gray-100);
  overflow: hidden;
}

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

.product-info-mini {
  padding: 14px;
}

.product-info-mini .product-brand {
  font-size: 10px;
  margin-bottom: 2px;
}

.product-info-mini h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.mini-rating {
  font-size: 11px;
  color: #F59E0B;
  margin-bottom: 6px;
}

.mini-rating span {
  color: var(--gray-400);
}

.product-info-mini .price-current {
  font-size: 15px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.footer-section a {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gray-700);
}

.footer-minimal,
.footer-checkout {
  margin-top: 40px;
}

.footer-minimal .footer-bottom,
.footer-checkout .footer-bottom {
  border-top: none;
}

/* ========================================
   CART PAGE
   ======================================== */
.cart-page {
  padding-top: 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--gray-300);
}

.breadcrumb-current {
  color: var(--gray-900);
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.item-count {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 24px 100px 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
}

.item-checkbox {
  padding-top: 4px;
}

.item-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

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

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

.item-svg {
  width: 100%;
  height: 100%;
}

.item-details {
  min-width: 0;
}

.item-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.item-variant {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.variant-label {
  color: var(--gray-500);
}

.variant-sep {
  margin: 0 8px;
  color: var(--gray-300);
}

.item-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.item-stock.in-stock {
  color: var(--success);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-action-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.item-action-btn:hover {
  background: var(--primary-light);
}

.action-sep {
  color: var(--gray-300);
}

.item-quantity-price {
  text-align: right;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.quantity-selector label {
  font-size: 13px;
  color: var(--gray-600);
}

.qty-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.item-price {
  font-size: 17px;
  font-weight: 700;
}

.item-unit-price {
  font-size: 12px;
  color: var(--gray-500);
}

.cart-footer-actions {
  margin-top: 20px;
}

.continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-600);
}

.free-shipping {
  color: var(--success);
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 20px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.checkout-benefits {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}

.benefit svg {
  color: var(--success);
}

.promo-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.promo-form {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}

.promo-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-apply {
  padding: 10px 16px;
}

.payment-methods {
  margin-top: 20px;
  text-align: center;
}

.payment-label {
  font-size: 12px;
  color: var(--gray-500);
  display: block;
  margin-bottom: 10px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.payment-icon {
  width: 40px;
  height: 26px;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-body {
  background: var(--gray-100);
}

.header-checkout {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--gray-900);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
}

.progress-line.completed {
  background: var(--success);
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}

.header-spacer {
  width: 120px;
}

.checkout-page {
  padding: 32px 24px;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.section-header-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header-checkout h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.section-header-checkout svg {
  color: var(--gray-500);
}

.section-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 4px 10px;
  border-radius: 100px;
}

.saved-address,
.saved-payment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.saved-address.selected,
.saved-payment.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}

.address-radio input,
.payment-radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
}

.address-content,
.payment-content {
  flex: 1;
}

.address-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.address-line {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.address-phone {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

.address-edit,
.card-edit {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-info {
  flex: 1;
}

.card-number {
  font-size: 14px;
  color: var(--gray-900);
}

.card-expiry {
  font-size: 13px;
  color: var(--gray-500);
}

.add-new-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
}

.add-new-btn:hover {
  text-decoration: underline;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.delivery-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.delivery-option input {
  display: none;
}

.delivery-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
  position: relative;
}

.delivery-option:has(input:checked) .delivery-radio {
  border-color: var(--primary);
}

.delivery-option:has(input:checked) .delivery-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.delivery-content {
  flex: 1;
}

.delivery-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.delivery-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}

.delivery-estimate svg {
  color: var(--gray-400);
}

.delivery-price {
  font-weight: 600;
  font-size: 14px;
}

.delivery-price.free {
  color: var(--success);
}

/* Order Summary Checkout */
.order-summary-checkout {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 100px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.edit-cart {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.edit-cart:hover {
  text-decoration: underline;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-image-mini {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

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

.item-image-mini svg {
  width: 100%;
  height: 100%;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-qty {
  font-size: 12px;
  color: var(--gray-500);
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
}

.show-all-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background: var(--gray-50);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
}

.show-all-items:hover {
  background: var(--gray-100);
}

.summary-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

.btn-place-order {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 20px;
}

.order-terms {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.order-terms a {
  color: var(--primary);
  text-decoration: none;
}

.order-terms a:hover {
  text-decoration: underline;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
}

.trust-badge svg {
  color: var(--success);
}

/* ========================================
   CONFIRMATION PAGE
   ======================================== */
.confirmation-body {
  background: var(--gray-50);
}

.confirmation-page {
  padding: 32px 24px;
}

.confirmation-container {
  max-width: 900px;
  margin: 0 auto;
}

.confirmation-hero {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.success-animation {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.checkmark {
  width: 72px;
  height: 72px;
}

.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 0;
  fill: var(--success-light);
}

.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-thanks {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.order-number-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}

.order-number-badge span {
  font-weight: 700;
  color: var(--primary);
}

.confirmation-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xs);
}

.email-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--gray-700);
}

.email-notice svg {
  color: var(--primary);
}

.confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.confirmation-section {
  margin-bottom: 24px;
}

.confirmation-section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 16px;
  font-weight: 700;
}

.item-count-badge {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.order-items-confirmation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirmed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.confirmed-item-info {
  flex: 1;
  min-width: 0;
}

.confirmed-item-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.confirmed-item-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.confirmed-item-price {
  font-size: 15px;
  font-weight: 600;
}

.confirmation-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.payment-summary {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.payment-summary .summary-line {
  margin-bottom: 8px;
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-200);
  font-weight: 600;
}

.total-amount {
  font-size: 18px;
  color: var(--gray-900);
}

.payment-method-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
}

.shipping-address-display {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.delivery-section {
  margin-bottom: 0;
}

.delivery-estimate-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--success-light);
  border-radius: var(--radius);
}

.delivery-icon {
  width: 44px;
  height: 44px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-icon svg {
  color: var(--white);
}

.delivery-dates {
  flex: 1;
}

.delivery-dates strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.delivery-dates span {
  font-size: 13px;
  color: var(--gray-600);
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn-track,
.btn-continue {
  padding: 14px 28px;
}

.help-section {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.help-section > p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.help-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.help-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.help-links a:hover {
  text-decoration: underline;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-container,
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .order-summary-checkout {
    position: static;
  }

  .confirmation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    flex: 0 0 100%;
    margin-top: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .deals-banner {
    grid-template-columns: 1fr;
  }

  .welcome-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .item-checkbox {
    display: none;
  }

  .item-quantity-price {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
  }
}
