/* ===========================
   PAGES.CSS — Shared styles for
   collection, checkout & orders pages
   =========================== */

/* ===========================
   PAGE HERO
   =========================== */
.page-hero {
  padding: 64px 12px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
}
.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }

/* ===========================
   TAB PILLS (New Arrivals)
   =========================== */
.new-arrivals-tabs, .style-guide-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey2);
  padding: 16px 0;
}
.tabs-row, .style-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}
.tab-pill, .style-pill {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--grey2);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.tab-pill:hover, .style-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-pill.active, .style-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===========================
   COLLECTION LAYOUT
   =========================== */
.collection-main {
  display: flex;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

/* ===========================
   FILTER SIDEBAR
   =========================== */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  width: 240px;
  flex-shrink: 0;
}
.filter-header-mob {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
}
.filter-close-mob {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey1);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.filter-close-mob:hover { background: var(--grey2); }
.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey1);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
}
.filter-option:hover { color: var(--text-dark); }
.filter-option input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* ===========================
   COLLECTION CONTENT WRAPPER
   =========================== */
.collection-content {
  flex: 1;
  min-width: 0;
}

/* ===========================
   COLLECTION TOOLBAR
   =========================== */
.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-toggle-btn:hover { border-color: var(--primary); }
.results-count {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}
.sort-select {
  padding: 9px 14px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.sort-select:focus { border-color: var(--primary); }
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 12px;
  text-align: center;
}
.no-results span { font-size: 48px; }
.no-results p { font-size: 16px; color: var(--text-muted); }

/* active icon */
.active-icon { color: var(--accent) !important; }

/* ===========================
   CHECKOUT STEPS INDICATOR
   =========================== */
.checkout-steps {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey2);
  padding: 20px 0;
}
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.step.active, .step.done { opacity: 1; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--primary); color: var(--white); }
.step.done .step-num { background: var(--success); color: var(--white); }
.step.done .step-num::before { content: '✓'; }
.step.done .step-num-text { display: none; }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--text-dark); }
.step-line { flex: 1; height: 2px; background: var(--grey2); margin: 0 8px; min-width: 32px; transition: background 0.3s; }
.step.done + .step-line { background: var(--success); }

/* ===========================
   CHECKOUT LAYOUT
   =========================== */
.checkout-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 60px;
  align-items: start;
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s;
}
.checkout-card:hover { box-shadow: var(--shadow-sm); }
.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.checkout-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-card-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}
.edit-step-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* ===========================
   ADDRESS FORM
   =========================== */
.address-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.req { color: var(--accent); }
.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}
.form-group input[readonly] {
  background: var(--grey1);
  color: var(--text-muted);
  cursor: not-allowed;
}
.input-error { border-color: var(--sale-color) !important; }
.field-error { font-size: 11px; color: var(--sale-color); min-height: 16px; }

.address-type-label { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; display: block; }
.address-type-row { display: flex; gap: 12px; flex-wrap: wrap; }
.addr-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}
.addr-type-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--grey1);
}
.addr-type-option input { display: none; }

/* ===========================
   REVIEW STEP
   =========================== */
.review-addr-box {
  background: var(--grey1);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
}
.review-addr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.addr-type-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--primary);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 100px;
}
.review-addr-header strong { font-size: 15px; }
.review-addr-header span { font-size: 13px; color: var(--text-muted); }
.review-addr-box p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.review-items-title { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.review-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey1);
}
.review-item-emoji {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.review-item-info { flex: 1; }
.review-item-info p { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.review-item-info span { font-size: 12px; color: var(--text-muted); }
.review-item > strong { font-size: 15px; }
.review-total-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}
.review-total-bar strong { font-size: 18px; }

/* ===========================
   PAYMENT METHODS
   =========================== */
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.payment-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.payment-opt:hover { border-color: var(--primary); }
.payment-opt.selected { border-color: var(--primary); background: #fafafa; }
.payment-opt input[type="radio"] { display: none; }
.pm-icon { font-size: 24px; flex-shrink: 0; }
.pm-details { flex: 1; }
.pm-details strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pm-details span { font-size: 12px; color: var(--text-muted); }
.payment-opt.selected::after {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.payment-form-section {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--grey1);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--grey1);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.place-order-btn {
  font-size: 15px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #7b1fa2 100%);
  border: none;
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.place-order-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(194,24,91,0.4); }

/* ===========================
   ORDER SUMMARY CARD
   =========================== */
.order-summary-card {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.order-summary-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey1);
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey1);
}
.summary-item-img { font-size: 24px; width: 48px; height: 48px; background: var(--grey1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.summary-item-qty { font-size: 11px; color: var(--text-muted); }
.summary-item-price { font-size: 14px; font-weight: 700; }
.summary-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 0; }
.summary-empty a { color: var(--accent); }

.coupon-row { display: flex; gap: 8px; margin: 20px 0 0; }
.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s;
}
.coupon-input:focus { border-color: var(--primary); }
.coupon-apply-btn {
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.coupon-apply-btn:hover { background: var(--accent); }
.coupon-msg { font-size: 12px; margin: 8px 0 0; min-height: 18px; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--sale-color); }

.order-summary-totals { margin-top: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}
.discount-row { color: var(--success); }
.text-green { color: var(--success); font-weight: 600; }
.summary-divider { height: 1px; background: var(--grey2); margin: 8px 0; }
.total-row { font-size: 16px; color: var(--text-dark); padding: 12px 0 0; }
.savings-note { font-size: 12px; color: var(--success); font-weight: 600; text-align: center; padding: 8px 0; }

.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--grey1); }
.trust-item { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ===========================
   SUCCESS MODAL
   =========================== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 790;
}
.success-modal-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 810;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-icon { font-size: 64px; margin-bottom: 16px; animation: bounce 1s ease infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.success-modal-inner h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}
.success-modal-inner > p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.order-id-display {
  background: var(--grey1);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0;
  letter-spacing: 0.04em;
}
.success-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.success-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* ===========================
   ORDERS PAGE
   =========================== */
.user-profile-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 48px 0;
}
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b1fa2);
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(194,24,91,0.4);
}
.user-info { flex: 1; }
.user-info h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.user-info p { font-size: 14px; color: rgba(255,255,255,0.6); }
.user-address-text { font-size: 12px; margin-top: 4px; }
.user-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.user-stat {
  text-align: center;
  padding: 16px 24px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  min-width: 90px;
}
.user-stat strong { display: block; font-size: 22px; font-weight: 700; color: var(--white); }
.user-stat span { font-size: 12px; color: rgba(255,255,255,0.5); }

.orders-tabs-wrap {
  background: var(--off-white);
  border-bottom: 1px solid var(--grey2);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}
.orders-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.order-tab {
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.order-tab:hover { color: var(--text-dark); }
.order-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.orders-main { padding: 32px 0 60px; }
.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 12px;
  text-align: center;
}
.orders-empty-icon { font-size: 72px; }
.orders-empty h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.orders-empty p { font-size: 15px; color: var(--text-muted); max-width: 360px; }

/* ===========================
   ORDER CARD
   =========================== */
.order-card {
  background: var(--white);
  border: 1px solid var(--grey2);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--grey1);
  background: var(--off-white);
  flex-wrap: wrap;
  gap: 12px;
}
.order-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-id { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.order-date { font-size: 12px; color: var(--text-muted); }
.payment-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--grey2);
  padding: 3px 10px;
  border-radius: 100px;
}
.order-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}
.order-card-body {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.order-preview { display: flex; align-items: center; gap: 14px; }
.order-emojis { display: flex; gap: 6px; }
.order-item-emoji {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--grey1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--grey2);
}
.more-items {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--grey2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.order-items-text p:first-child { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.order-items-text p:last-child { font-size: 13px; color: var(--text-muted); }
.order-address-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===========================
   TRACKING BAR
   =========================== */
.tracking-bar {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid var(--grey1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  flex-shrink: 0;
}
.tracking-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey2);
  transition: background 0.3s;
}
.tracking-step.done .tracking-dot { background: var(--success); }
.tracking-step.current .tracking-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(194,24,91,0.2); animation: pulse 2s infinite; }
.tracking-step span { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; }
.tracking-step.done span, .tracking-step.current span { color: var(--text-dark); }
.tracking-line { flex: 1; height: 2px; background: var(--grey2); min-width: 20px; transition: background 0.3s; }
.tracking-line.done { background: var(--success); }

/* ===========================
   ORDER CARD ACTIONS
   =========================== */
.order-card-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--grey1);
  background: var(--off-white);
  flex-wrap: wrap;
}
.order-action-btn {
  padding: 9px 20px;
  border: 1.5px solid var(--grey2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.order-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.order-action-btn.primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.order-action-btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.order-action-btn.danger { color: var(--sale-color); border-color: var(--sale-color); }
.order-action-btn.danger:hover { background: var(--sale-color); color: var(--white); }

/* ===========================
   ORDER DETAIL MODAL
   =========================== */
.order-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.order-detail-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 810;
  animation: popIn 0.3s ease;
}
.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--grey1);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
}
.order-detail-header h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.modal-close-btn:hover { background: var(--grey2); }
.order-detail-body { padding: 24px 28px; }
.detail-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--grey1); }
.detail-section:last-child { border-bottom: none; margin-bottom: 0; }
.detail-section h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 4px; }
.detail-grid span { font-size: 12px; color: var(--text-muted); }
.detail-grid strong { font-size: 14px; }
.detail-address { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.detail-address strong { color: var(--text-dark); }
.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey1);
}
.detail-item:last-child { border-bottom: none; }
.detail-item-img { font-size: 24px; width: 52px; height: 52px; background: var(--grey1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-item-info { flex: 1; }
.detail-item-info p { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.detail-item-info span { font-size: 12px; color: var(--text-muted); display: block; }
.mrp-cross { text-decoration: line-through; }
.detail-item > strong { font-size: 14px; }
.detail-total-section {}
.detail-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}
.total-final { font-size: 16px; color: var(--text-dark); border-top: 1px solid var(--grey2); padding-top: 12px; margin-top: 4px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .collection-main { grid-template-columns: 200px 1fr; gap: 20px; }
  .checkout-main { grid-template-columns: 1fr 340px; }
}

@media (max-width: 768px) {
  .collection-main { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 600;
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
  }
  .filter-sidebar.open { left: 0; }
  .filter-header-mob { display: flex; }
  .filter-toggle-btn { display: flex; }
  .checkout-main { grid-template-columns: 1fr; }
  .checkout-right { order: -1; }
  .order-summary-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .user-profile-card { flex-direction: column; align-items: flex-start; }
  .steps-row { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .order-card-body { flex-direction: column; align-items: flex-start; }
  .tracking-step { min-width: 60px; }
  .tracking-step span { font-size: 9px; }
}

@media (max-width: 480px) {
  .checkout-card { padding: 20px; }
  .order-detail-inner { border-radius: var(--radius-lg); }
  .order-detail-body { padding: 16px 20px; }
  .order-card-header { padding: 14px 16px; }
  .order-card-body { padding: 16px; }
  .order-card-actions { padding: 12px 16px; }
  .tracking-bar { padding: 16px; }
  .user-stats { gap: 12px; }
  .user-stat { padding: 12px 16px; }
}
