/* ==========================================================================
   LOGICDRIVE SYSTEMS LLC - CLEAN, MINIMALIST ROBOTICS ELECTRONICS
   Clean, Utilitarian, High-Contrast Engineering Style
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-main: #0c1017;
  --bg-surface: #141a24;
  --bg-surface-elevated: #1a2230;
  --bg-surface-hover: #222c3d;
  --bg-chip: #1e293b;

  --border-subtle: #242e3f;
  --border-medium: #334155;
  --border-active: #38bdf8;

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #0284c7;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;

  /* Layout */
  --header-height: 64px;
  --container-max: 1140px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-chip: #e2e8f0;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #0284c7;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-blue: #0284c7;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

code, .font-mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: var(--bg-chip);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.05rem;
  max-width: 680px;
  color: var(--text-secondary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

[data-theme="light"] .brand-logo {
  content: url("../images/logo-light.svg");
}

[data-theme="dark"] .brand-logo {
  content: url("../images/logo-dark.svg");
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #0c1017;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .btn-primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.hero-content {
  max-width: 760px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Simple feature highlight pills */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-hl-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.hero-hl-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   2-TAB STORE CATALOG (MAINBOARDS & SENSORS)
   ========================================================================== */
.tab-controls {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.tab-btn-pill {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn-pill:hover {
  color: var(--text-main);
}

.tab-btn-pill.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-btn-pill .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-chip);
  color: var(--text-main);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.product-card:hover {
  border-color: var(--border-medium);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.card-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-summary {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.card-specs {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
}

.card-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.35rem;
  column-gap: 0.85rem;
}

.card-specs dt {
  color: var(--text-muted);
  font-weight: 600;
}

.card-specs dd {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.card-custom-note {
  font-size: 0.8rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-amber);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   CUSTOM TAILORING SECTION
   ========================================================================== */
.custom-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 2.25rem;
  margin-top: 3.5rem;
}

.custom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.step-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SIMPLE CART DRAWER
   ========================================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.2s ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cart-item-info .sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-counter {
  background: var(--accent-cyan);
  color: #0c1017;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-medium);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-status-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #10b981;
}

.form-status-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.form-status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* Simple USA badge */
.us-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-chip);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.us-flag-icon {
  width: 14px;
  height: 9px;
  display: inline-block;
  background: linear-gradient(
    to bottom,
    #b22234 0%, #b22234 14.3%,
    #ffffff 14.3%, #ffffff 28.6%,
    #b22234 28.6%, #b22234 42.9%,
    #ffffff 42.9%, #ffffff 57.1%,
    #b22234 57.1%, #b22234 71.4%,
    #ffffff 71.4%, #ffffff 85.7%,
    #b22234 85.7%, #b22234 100%
  );
  position: relative;
}

.us-flag-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 55%;
  background: #3c3b6e;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  width: 100%;
  max-width: 580px;
  padding: 2rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 340px;
  color: var(--text-secondary);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ==========================================================================
   SHOPIFY-INSPIRED CHECKOUT PAGE STYLES
   ========================================================================== */
.checkout-page {
  background: var(--bg-main);
  min-height: 100vh;
}

.checkout-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  background: var(--bg-surface);
}

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

.checkout-secure-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 70px);
}

.checkout-main {
  padding: 3rem 4rem 4rem 1.5rem;
  max-width: 660px;
  margin-left: auto;
  width: 100%;
}

.checkout-sidebar {
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 4rem 3rem;
  width: 100%;
}

.checkout-sidebar-inner {
  max-width: 440px;
  position: sticky;
  top: 2rem;
}

/* Breadcrumbs */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.checkout-step.active {
  color: var(--text-main);
  font-weight: 600;
}

.checkout-step-sep {
  color: var(--border-medium);
}

/* Express Checkout */
.express-checkout {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  background: var(--bg-surface);
  text-align: center;
}

.express-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.express-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.express-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
}

.express-btn-shop {
  background: #5a31f4;
  color: #ffffff;
}

.express-btn-paypal {
  background: #ffc439;
  color: #003087;
}

.express-btn-gpay {
  background: #1f2937;
  color: #ffffff;
  border: 1px solid var(--border-medium);
}

/* Checkout Divider */
.checkout-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkout-divider::before,
.checkout-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-divider span {
  padding: 0 1rem;
}

/* Form Sections */
.checkout-section {
  margin-bottom: 2.25rem;
}

.checkout-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.checkout-section-title small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Shipping Method Selection Cards */
.shipping-options {
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.shipping-option:last-child {
  border-bottom: none;
}

.shipping-option:hover {
  background: var(--bg-surface-hover);
}

.shipping-option.selected {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--accent-cyan);
}

.shipping-option-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shipping-option-radio {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.shipping-option-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.shipping-option-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shipping-option-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Payment Method Box */
.payment-box {
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  background: var(--bg-surface);
  overflow: hidden;
}

.payment-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.payment-body {
  padding: 1.25rem;
}

.card-logos {
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-logo-tag {
  background: var(--bg-chip);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

/* Order Summary Items (Shopify Style) */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.checkout-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.checkout-thumb-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.checkout-thumb-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--text-muted);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.checkout-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.checkout-item-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.checkout-item-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Discount Code Input Box */
.discount-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Price Calculations */
.pricing-lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.pricing-row.total-row {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.total-currency {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.25rem;
}

/* Order Confirmation Screen */
.order-confirmation {
  max-width: 680px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  text-align: center;
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.confirmation-icon svg {
  width: 32px;
  height: 32px;
}

.confirmation-card {
  text-align: left;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-main {
    padding: 2rem 1.5rem;
    max-width: 100%;
    order: 2;
  }
  .checkout-sidebar {
    padding: 2rem 1.5rem;
    border-left: none;
    border-bottom: 1px solid var(--border-subtle);
    order: 1;
  }
  .checkout-sidebar-inner {
    max-width: 100%;
  }
  .express-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .custom-steps {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

