/* ══ PRODUCT DETAIL ═══════════════════════════════════════════════ */
.product-detail {
  padding: var(--space-6) 0 var(--space-12);
}

.product-detail__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.product-detail__back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  transition: color var(--duration-fast);
}

.product-detail__back:hover {
  color: var(--brand-green);
}

.product-detail__title {
  margin-bottom: var(--space-2);
}

.product-detail__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 1fr 340px;
  }
}

/* ── Spec groups ──────────────────────────────────────────────── */
.spec-group {
  margin-bottom: var(--space-5);
}

.spec-group__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.spec-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.spec-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.spec-option:hover {
  border-color: var(--text-tertiary);
}

.spec-option:has(input:checked) {
  border-color: var(--brand-green);
  background-color: rgba(29, 158, 117, 0.08);
}

.spec-option input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface-border);
  border-radius: 50%;
  transition: all var(--duration-fast);
}

.spec-option input[type="radio"]:checked {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  box-shadow: inset 0 0 0 2px var(--surface-bg);
}

.spec-option__label {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.spec-option__delta {
  display: none; /* Ocultos hasta implementar precios dinámicos en el price-panel */
  font-size: var(--text-xs);
  color: var(--brand-green);
  font-family: var(--font-mono);
}

/* ── Quantity input ───────────────────────────────────────────── */
.quantity-input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  width: fit-content;
}

.quantity-input__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  background-color: var(--surface-elevated);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.quantity-input__btn:hover {
  color: var(--text-primary);
  background-color: var(--surface-hover);
}

.quantity-input input[type="number"] {
  width: 70px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--text-primary);
  -moz-appearance: textfield;
}

.quantity-input input[type="number"]::-webkit-outer-spin-button,
.quantity-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Upload zone ──────────────────────────────────────────────── */
.upload-zone {
  position: relative;
  border: 2px dashed var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.upload-zone:hover {
  border-color: var(--text-tertiary);
  background-color: var(--surface-card);
}

.upload-zone--dragover {
  border-color: var(--brand-green);
  background-color: rgba(29, 158, 117, 0.05);
}

.upload-zone--has-file {
  border-color: var(--brand-green);
  border-style: solid;
  background-color: rgba(29, 158, 117, 0.05);
}

.upload-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.upload-zone__icon {
  font-size: 24px;
}

.upload-zone__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.upload-zone__hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ── Price panel ──────────────────────────────────────────────── */
.price-panel {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: sticky;
  top: 80px;
}

.price-panel__header {
  margin-bottom: var(--space-4);
}

.price-panel__eta {
  font-size: var(--text-sm);
  color: var(--brand-green);
  font-weight: 500;
}

.price-panel__breakdown {
  margin-bottom: var(--space-5);
}

.price-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.price-panel__row--total {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-md);
}

.price-panel__value {
  font-family: var(--font-mono);
}

.price-panel__total {
  font-family: var(--font-mono);
  color: var(--brand-green);
  font-size: var(--text-lg);
}

.price-panel__divider {
  height: 1px;
  background-color: var(--surface-border);
  margin: var(--space-3) 0;
}

.price-panel__plates {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background-color: var(--surface-elevated);
  border-radius: var(--radius-sm);
}

.price-panel__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--space-3);
  padding: 10px 12px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border-left: 3px solid var(--text-tertiary);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* ── Upload preview ──────────────────────────────────────────── */
.upload-zone__svg {
  color: var(--text-tertiary);
}

.upload-zone__preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  pointer-events: auto;
}

.upload-zone__filename {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.upload-zone__remove:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* ── Customer fields ─────────────────────────────────────────── */
.dimensions-input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dimensions-input__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dimensions-input__field label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.dimensions-input__field input {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-md);
  text-align: center;
}

.dimensions-input__field input:focus {
  border-color: var(--brand-green);
}

.dimensions-input__sep {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  padding-top: var(--space-4);
}

.customer-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.input-field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color var(--duration-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--brand-green);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.spec-group__hint {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.spec-group__notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: var(--space-1);
}

.spec-group__notice--info {
  color: #1a5fa8;
  background: #f0f6ff;
  border: 1px solid #b8d4f5;
}

.spec-group__notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-group__required {
  color: var(--coral);
}

/* ── Order confirmation ──────────────────────────────────────── */
.order-confirmation {
  text-align: center;
  padding: var(--space-8) 0;
}

.order-confirmation__icon {
  margin-bottom: var(--space-4);
}

.order-confirmation__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.order-confirmation__sub {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.order-confirmation__card {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: left;
  margin-bottom: var(--space-5);
}

.order-confirmation__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.order-confirmation__row strong {
  color: var(--text-primary);
}

.order-confirmation__row--total {
  font-size: var(--text-md);
}

.order-confirmation__row--total strong {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--brand-green);
}

.order-confirmation__divider {
  height: 1px;
  background-color: var(--surface-border);
  margin: var(--space-3) 0;
}

.order-confirmation__pipeline {
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: left;
  margin-bottom: var(--space-5);
}

.order-confirmation__pipeline h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.order-confirmation__pipeline p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.order-confirmation__pipeline code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-green);
  background-color: var(--surface-card);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Preview del armado ─────────────────────────────────────── */
.order-confirmation__preview {
  margin-bottom: var(--space-5);
}

.order-confirmation__preview-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.order-confirmation__preview-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  text-align: left;
}

.order-confirmation__preview-img {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface-elevated);
}

.order-confirmation__preview-img img {
  width: 100%;
  height: auto;
  display: block;
}

.order-confirmation__preview-info {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Disclaimer prueba de color ────────────────────────────── */
.order-confirmation__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background-color: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.order-confirmation__disclaimer svg {
  color: #d4a017;
  margin-top: 2px;
}

.order-confirmation__disclaimer strong {
  color: var(--text-primary);
}

.order-confirmation__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

/* ── Grid Preview (sticker form) ──────────────────────────────── */
.grid-preview {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background-color: var(--surface-elevated);
  padding: var(--space-3);
}

.grid-preview__loading {
  text-align: center;
  padding: var(--space-4);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.grid-preview__info {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.grid-preview__error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.grid-preview__error svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: #92400e;
}

.grid-preview__notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: #fff8ff;
  border: 1px solid #f0c0f0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: var(--space-2);
}

.grid-preview__section {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.grid-preview__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--surface-border);
  font-size: var(--text-sm);
  font-weight: 500;
}

.grid-preview__download {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.grid-preview__download:hover {
  text-decoration: underline;
}

/* ── Gigantografía: addon checkbox ── */
.spec-group__addon {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.spec-option--addon {
  background: rgba(16, 185, 129, 0.06);
}

/* ── Preview de dimensiones y asignación de rollo (Gigantografía) ─────── */
.dims-preview {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-2);
}

.dims-preview__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface-border);
}

.dims-preview__row:last-child {
  border-bottom: none;
}

.dims-preview__key {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.dims-preview__val {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.dims-preview__warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: var(--text-sm);
}

/* ── Control de cantidad ───────────────────────────────────────────── */
.quantity-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.quantity-control__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-control__btn:hover {
  background: var(--surface-base);
  border-color: var(--border-color);
}

.quantity-control__input {
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 500;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.quantity-control__unit {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══ CARRITO ═══════════════════════════════════════════════════════ */
.cart {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 700px) {
  .cart { grid-template-columns: 1fr; }
}

.cart__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.cart__item--compact {
  padding: var(--space-3) 0;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.cart__item--compact:last-child { border-bottom: none; }

.cart__item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cart__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart__item-product {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.cart__item-specs {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.cart__item-file {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart__item-status { margin-top: 4px; }

.cart__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}

.cart__badge--green {
  background: color-mix(in srgb, var(--brand-green) 15%, transparent);
  color: var(--brand-green);
}

.cart__badge--yellow {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #b45309;
}

.cart__item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cart__item-total {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.cart__item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.cart__item-remove:hover {
  color: var(--coral);
  background: color-mix(in srgb, var(--coral) 10%, transparent);
}

.cart__summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: sticky;
  top: var(--space-6);
}

.cart__summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
}

.cart__summary-row--total {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.cart__summary-divider {
  border-top: 1px solid var(--border);
  margin: var(--space-2) 0;
}

.cart__empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-secondary);
}

.cart__empty h2 { color: var(--text-primary); }

/* ══ CHECKOUT ══════════════════════════════════════════════════════ */
.checkout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 720px) {
  .checkout { grid-template-columns: 1fr; }
}

.checkout__summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  order: 2;
}

.checkout__form { order: 1; }

.checkout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-6);
  align-items: start;
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout__summary {
  position: sticky;
  top: var(--space-4);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
  }
  .checkout__summary {
    position: static;
    max-height: none;
    order: 2;
  }
}

.checkout__form input[type="text"],
.checkout__form input[type="tel"],
.checkout__form input[type="email"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg);
  box-sizing: border-box;
  overflow: visible;
  white-space: normal;
}

.checkout__form input[type="text"]:focus,
.checkout__form input[type="tel"]:focus,
.checkout__form input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
}

.checkout__section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--brand);
}

.checkout__payment-option {
  display: block;
  cursor: pointer;
}

.checkout__payment-option input[type="radio"] {
  display: none;
}

.checkout__payment-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: border-color 0.15s, background 0.15s;
}

.checkout__payment-card p {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.checkout__payment-option input[type="radio"]:checked + .checkout__payment-card {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.checkout__payment-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

/* ══ NAVBAR CARRITO ════════════════════════════════════════════════ */
.navbar__cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.navbar__cart:hover { color: var(--brand); }

.navbar__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  padding: 6px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.navbar__theme-toggle:hover { color: var(--brand-green); }

.navbar__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ══ AUTH FORMS ════════════════════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.auth-form__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--brand);
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.auth-form__section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}

.auth-form__footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

.auth-form__footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.auth-form__footer a:hover { text-decoration: underline; }

.form-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.form-message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.form-message--error {
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  color: var(--coral);
  border: 1px solid color-mix(in srgb, var(--coral) 30%, transparent);
}

.form-message--success {
  background: color-mix(in srgb, var(--brand-green) 12%, transparent);
  color: var(--brand-green);
  border: 1px solid color-mix(in srgb, var(--brand-green) 30%, transparent);
}

.required { color: var(--coral); }

.navbar__user {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 var(--space-2);
}

@media (max-width: 600px) {
  .auth-form__row { grid-template-columns: 1fr; }
}
