/* ═══════════════════════════════════════════════════════════════════
   SKLUBS CARD EDITOR — PRICING CALCULATOR STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* ─── PRICING PANEL (Bottom of Properties Panel) ─────────────────── */
#pricing-panel {
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  cursor: pointer;
  user-select: none;
}

.pricing-toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pricing-toggle-icon { font-size: 16px; color: var(--orange); }

.pricing-total-preview {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.pricing-chevron {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform var(--duration-fast) ease;
}

.pricing-chevron.open { transform: rotate(180deg); }

.pricing-body {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-body.open { display: flex; }

/* ─── FORMAT CONFIGURATOR ────────────────────────────────────────── */
.config-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.config-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Product Option Grid */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.option-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-btn:hover { border-color: var(--grey-500); background: var(--surface-3); }
.option-btn.active {
  background: var(--orange-subtle);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-glow);
}

.option-btn-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.option-btn.active .option-btn-title { color: var(--orange); }

.option-btn-sub {
  font-size: 10px;
  color: var(--text-dim);
}

/* Quantity Stepper */
.quantity-stepper {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  user-select: none;
}

.qty-btn:hover { background: var(--surface-3); color: var(--text); }
.qty-btn:active { background: var(--orange-subtle); color: var(--orange); }

.qty-input {
  flex: 1;
  background: none;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.qty-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.qty-preset {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.qty-preset:hover  { color: var(--text-muted); border-color: var(--grey-500); }
.qty-preset.active { background: var(--orange-subtle); border-color: var(--orange); color: var(--orange); }

/* ─── PRICE BREAKDOWN ────────────────────────────────────────────── */
.price-breakdown {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.price-row:last-child { border-bottom: none; }

.price-row-label { color: var(--text-dim); font-weight: 500; }
.price-row-value { color: var(--text-muted); font-weight: 700; }

.price-row.total {
  background: var(--orange-subtle);
  padding: var(--space-4);
}

.price-row.total .price-row-label {
  color: var(--orange);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-row.total .price-row-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.price-row.discount {
  background: rgba(34, 197, 94, 0.06);
}

.price-row.discount .price-row-value {
  color: var(--success);
}

/* Unit Price Callout */
.unit-price-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.unit-price-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.unit-price-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.unit-price-discount {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  background: rgba(34,197,94,0.08);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Volume Discount Bar */
.volume-bar-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.volume-tiers {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface-3);
}

.volume-tier {
  flex: 1;
  background: var(--surface-3);
  transition: background var(--duration-fast) ease;
  position: relative;
}

.volume-tier.active { background: var(--orange); }

.volume-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ─── ORDER CTA ──────────────────────────────────────────────────── */
.order-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-order {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-orange-lg);
}

.btn-order::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-order:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255,107,0,0.45);
}

.btn-order:active { transform: translateY(0) scale(0.98); }

.order-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.order-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-meta-item .icon { font-size: 12px; color: var(--success); }

/* ─── PAPER SELECTION MODAL ──────────────────────────────────────── */
.paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
}

.paper-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
}

.paper-card:hover { border-color: var(--grey-500); transform: translateY(-2px); }
.paper-card.active { border-color: var(--orange); box-shadow: var(--shadow-orange); }

.paper-thumb {
  height: 80px;
  position: relative;
  overflow: hidden;
}

.paper-info {
  padding: var(--space-2) var(--space-3);
  background: var(--surface-2);
}

.paper-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.paper-specs {
  font-size: 9px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.paper-premium-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  background: var(--orange);
  border-radius: var(--radius-full);
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── PRICING ANIMATION ──────────────────────────────────────────── */
@keyframes priceFlip {
  0%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 0; transform: translateY(-6px); }
  70%  { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.price-updating {
  animation: priceFlip 0.4s var(--ease-in-out);
}

/* ─── DELIVERY DATE ──────────────────────────────────────────────── */
.delivery-estimate {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-md);
}

.delivery-icon { font-size: 18px; }
.delivery-text { font-size: 12px; font-weight: 600; flex: 1; }
.delivery-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
}
