/**
 * Thimze Instant Quote System — Frontend Styles
 * @package ThimzeInstantQuote
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --tiq-primary:       #1a1a2e;
  --tiq-accent:        #50cef3;
  --tiq-accent-hover:  #31b8e0;
  --tiq-surface:       #ffffff;
  --tiq-bg:            #f4f6f8;
  --tiq-border:        #e8eaf0;
  --tiq-text:          #1a1a2e;
  --tiq-text-muted:    #6b7280;
  --tiq-radius:        12px;
  --tiq-radius-sm:     8px;
  --tiq-shadow:        0 4px 24px rgba(0,0,0,.08);
  --tiq-shadow-lg:     0 12px 48px rgba(0,0,0,.14);
  --tiq-transition:    .22s cubic-bezier(.4,0,.2,1);
  --tiq-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   WRAPPER
   ============================================================ */
.tiq-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  position: relative;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.tiq-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 8px 0;
}

.tiq-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .4;
  transition: opacity var(--tiq-transition);
}

.tiq-step.active,
.tiq-step.done { opacity: 1; }

.tiq-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tiq-border);
  color: var(--tiq-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--tiq-transition), color var(--tiq-transition);
  flex-shrink: 0;
}

.tiq-step.active .tiq-step__num {
  background: var(--tiq-accent);
  color: #fff;
}

.tiq-step.done .tiq-step__num {
  background: #16a34a;
  color: #fff;
}

.tiq-step__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tiq-text-muted);
  white-space: nowrap;
}

.tiq-step.active .tiq-step__label { color: var(--tiq-text); }

.tiq-step-line {
  flex: 1;
  min-width: 32px;
  height: 2px;
  background: var(--tiq-border);
  margin: 0 12px;
}

/* ============================================================
   PANELS
   ============================================================ */
.tiq-panels { position: relative; }

.tiq-panel {
  display: none;
  animation: tiqFadeIn .3s ease;
}

.tiq-panel--active { display: block; }

@keyframes tiqFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tiq-panel__header {
  margin-bottom: 32px;
}

.tiq-panel__header h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--tiq-primary);
}

.tiq-panel__header p {
  color: var(--tiq-text-muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.tiq-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Skeleton loaders */
.tiq-loading-cards { display: contents; }

.tiq-skeleton-card {
  height: 240px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: var(--tiq-radius);
  animation: tiqShimmer 1.5s infinite;
}

@keyframes tiqShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Product cards */
.tiq-product-card {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--tiq-transition), box-shadow var(--tiq-transition), transform var(--tiq-transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.tiq-product-card:hover {
  border-color: var(--tiq-accent);

  transform: translateY(-2px);
}

.tiq-product-card.selected {
  border-color: var(--tiq-accent);

}

.tiq-product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f0f0f5;
  display: block;
}

.tiq-product-card__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f0f5 0%, #e8eaf0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.tiq-product-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tiq-product-card__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--tiq-text);
}

.tiq-product-card__desc {
  font-size: 13px;
  color: var(--tiq-text-muted);
  flex: 1;
  line-height: 1.5;
  margin: 0 0 12px;
}

.tiq-product-card__type {
  display: inline-block;
  background: #f0f0f7;
  color: var(--tiq-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.tiq-product-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--tiq-accent);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tiq-product-card { position: relative; }
.tiq-product-card.selected .tiq-product-card__check { display: flex; }

/* ============================================================
   CONFIGURATOR LAYOUT
   ============================================================ */
.tiq-configurator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .tiq-configurator-layout { grid-template-columns: 1fr; }
  .tiq-price-col { order: -1; }
}

/* ============================================================
   FIELDS
   ============================================================ */
.tiq-field-group {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow var(--tiq-transition);
}

.tiq-field-group:focus-within {
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

.tiq-field-group__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--tiq-text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tiq-field-group__label .req {
  color: var(--tiq-accent);
  font-size: 16px;
}

/* Dropdown */
.tiq-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  background: var(--tiq-surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
  transition: border-color var(--tiq-transition);
}

.tiq-select:focus {
  outline: none;
  border-color: var(--tiq-accent);
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

/* Radio buttons */
.tiq-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tiq-radio-option {
  flex: 1;
  min-width: 80px;
}

.tiq-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tiq-radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--tiq-text-muted);
  cursor: pointer;
  transition: all var(--tiq-transition);
  text-align: center;
  background: var(--tiq-surface);
}

.tiq-radio-option input[type="radio"]:checked + label {
  border-color: var(--tiq-accent);
  background: rgba(80,206,243,.06);
  color: var(--tiq-accent);
}

.tiq-radio-option label:hover {
  border-color: var(--tiq-accent);
  color: var(--tiq-accent);
}

/* Color swatches */
.tiq-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tiq-color-swatch {
  position: relative;
}

.tiq-color-swatch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tiq-color-swatch label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tiq-color-swatch__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color var(--tiq-transition), transform var(--tiq-transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.tiq-color-swatch input[type="radio"]:checked + label .tiq-color-swatch__dot {
  border-color: var(--tiq-accent);
  transform: scale(1.15);
}

.tiq-color-swatch__name {
  font-size: 11px;
  color: var(--tiq-text-muted);
  font-weight: 500;
}

/* Image swatches */
.tiq-image-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tiq-image-swatch {
  position: relative;
}

.tiq-image-swatch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tiq-image-swatch label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border: 2px solid var(--tiq-border);
  border-radius: 10px;
  transition: border-color var(--tiq-transition);
  min-width: 80px;
  text-align: center;
}

.tiq-image-swatch input[type="radio"]:checked + label {
  border-color: var(--tiq-accent);
  background: rgba(80,206,243,.04);
}

.tiq-image-swatch label img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.tiq-image-swatch__placeholder {
  width: 64px;
  height: 64px;
  background: #f0f0f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.tiq-image-swatch__name {
  font-size: 11px;
  color: var(--tiq-text-muted);
  font-weight: 500;
}

/* Number input */
.tiq-number-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  transition: border-color var(--tiq-transition);
}

.tiq-number-input:focus {
  outline: none;
  border-color: var(--tiq-accent);
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

/* Checkbox */
.tiq-checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  cursor: pointer;
  transition: all var(--tiq-transition);
}

.tiq-checkbox-option:hover {
  border-color: var(--tiq-accent);
  background: rgba(80,206,243,.03);
}

.tiq-checkbox-option.checked {
  border-color: var(--tiq-accent);
  background: rgba(80,206,243,.06);
}

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

.tiq-checkbox-option .opt-label { font-size: 14px; font-weight: 600; color: var(--tiq-text); }
.tiq-checkbox-option .opt-price { margin-left: auto; font-size: 13px; color: var(--tiq-accent); font-weight: 600; }

/* Text / textarea */
.tiq-text-input,
.tiq-textarea-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  transition: border-color var(--tiq-transition);
  resize: vertical;
}

.tiq-text-input:focus,
.tiq-textarea-input:focus {
  outline: none;
  border-color: var(--tiq-accent);
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

/* Field validation error */
.tiq-field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--tiq-accent);
  font-weight: 500;
}

/* ============================================================
   LIVE PRICE CARD
   ============================================================ */
.tiq-price-card {
  background: var(--tiq-primary);
  border-radius: var(--tiq-radius);
  padding: 28px 24px;
  position: sticky;
  top: 24px;
  color: #fff;
}

.tiq-price-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}

.tiq-price-card__amount {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
  min-height: 44px;
}

.tiq-price-placeholder {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
}

.tiq-price-card__breakdown {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 4px;
}

.tiq-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

.tiq-breakdown-row .tiq-br-label { flex: 1; }
.tiq-breakdown-row .tiq-br-amount { font-weight: 600; }
.tiq-breakdown-row.discount .tiq-br-amount { color: #4ade80; }

.tiq-price-card__turnaround {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tiq-price-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================================
   SPINNER
   ============================================================ */
.tiq-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tiqSpin .7s linear infinite;
}

.tiq-spinner--dark {
  border-color: rgba(26,26,46,.2);
  border-top-color: var(--tiq-primary);
}

.tiq-spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

@keyframes tiqSpin { to { transform: rotate(360deg); } }

/* ============================================================
   UPLOAD ZONE
   ============================================================ */
.tiq-upload-zone {
  border: 2px dashed var(--tiq-border);
  border-radius: var(--tiq-radius);
  background: #fafbfd;
  transition: border-color var(--tiq-transition), background var(--tiq-transition);
  margin-bottom: 20px;
  cursor: pointer;
}

.tiq-upload-zone:hover,
.tiq-upload-zone.dragover {
  border-color: var(--tiq-accent);
  background: rgba(80,206,243,.03);
}

.tiq-upload-zone__inner {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tiq-upload-icon {
  width: 56px;
  height: 56px;
  background: #eef0f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.tiq-upload-icon svg {
  width: 26px;
  height: 26px;
  color: var(--tiq-text-muted);
}

.tiq-upload-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--tiq-text);
  margin: 0;
}

.tiq-upload-subtext {
  font-size: 14px;
  color: var(--tiq-text-muted);
  margin: 0;
}

/* File list */
.tiq-file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tiq-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  animation: tiqFadeIn .25s ease;
}

.tiq-file-item__icon {
  width: 40px;
  height: 40px;
  background: #f0f0f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--tiq-primary);
  flex-shrink: 0;
}

.tiq-file-item__info { flex: 1; min-width: 0; }
.tiq-file-item__name { font-size: 14px; font-weight: 600; color: var(--tiq-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiq-file-item__meta { font-size: 12px; color: var(--tiq-text-muted); margin-top: 2px; }

.tiq-file-item__status {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.tiq-file-item__status.uploading { color: var(--tiq-text-muted); }
.tiq-file-item__status.error { color: var(--tiq-accent); }

.tiq-file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tiq-text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--tiq-transition);
}

.tiq-file-item__remove:hover { color: var(--tiq-accent); }

.tiq-upload-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--tiq-radius-sm);
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.tiq-upload-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   REVIEW PANEL
   ============================================================ */
.tiq-review-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .tiq-review-layout { grid-template-columns: 1fr; }
}

.tiq-review-card {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  overflow: hidden;
}

.tiq-review-card__header {
  background: #f8f9fc;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tiq-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tiq-review-card__header h3 { font-size: 15px; font-weight: 700; margin: 0; }

.tiq-review-table { width: 100%; }

.tiq-review-table tr td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--tiq-border);
  font-size: 14px;
}

.tiq-review-table tr:last-child td { border-bottom: none; }
.tiq-review-table td:first-child { color: var(--tiq-text-muted); width: 45%; }
.tiq-review-table td:last-child { font-weight: 600; color: var(--tiq-text); }

/* Contact card */
.tiq-contact-card {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 24px;
  margin-bottom: 20px;
}

.tiq-contact-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.tiq-contact-note { font-size: 13px; color: var(--tiq-text-muted); margin: 0 0 20px; }

.tiq-form-field { margin-bottom: 16px; }
.tiq-form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--tiq-text); margin-bottom: 6px; }
.tiq-form-field label .req { color: var(--tiq-accent); }

.tiq-form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  transition: border-color var(--tiq-transition);
  box-sizing: border-box;
}

.tiq-form-field input:focus {
  outline: none;
  border-color: var(--tiq-accent);
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

/* Final price card */
.tiq-final-price-card {
  background: var(--tiq-primary);
  border-radius: var(--tiq-radius);
  padding: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.tiq-final-price__label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}

.tiq-final-price__amount {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.tiq-final-price__breakdown {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
}

.tiq-final-price__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tiq-final-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--tiq-radius-sm);
  padding: 10px 12px;
}

.tiq-final-item__name {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}

.tiq-final-item__price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tiq-accent);
  white-space: nowrap;
}

.tiq-final-item__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--tiq-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  transition: all var(--tiq-transition);
}

.tiq-final-item__remove:hover {
  background: #e63946;
  border-color: #e63946;
}

.tiq-final-price__empty {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 14px;
}

.tiq-final-price__turnaround {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* Quote actions */
.tiq-quote-actions { display: flex; flex-direction: column; gap: 10px; }

.tiq-quote-saved-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #e8f9fd;
  border: 1px solid #27c2ec;
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  color: #0d5f7a;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tiq-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--tiq-border);
}

.tiq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--tiq-font);
  cursor: pointer;
  transition: all var(--tiq-transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.tiq-btn svg { width: 17px; height: 17px; }

.tiq-btn--primary {
  background: var(--tiq-accent);
  color: #fff;

}

.tiq-btn--primary:hover:not(:disabled) {
  background: var(--tiq-accent-hover);
  transform: translateY(-1px);

}

.tiq-btn--primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tiq-btn--secondary {
  background: #f0f0f7;
  color: var(--tiq-text);
}

.tiq-btn--secondary:hover {
  background: #e4e4ed;
}

.tiq-btn--outline {
  background: transparent;
  color: var(--tiq-accent);
  border: 1.5px solid var(--tiq-accent);
}

.tiq-btn--outline:hover {
  background: rgba(80,206,243,.06);
}

.tiq-btn--ghost {
  background: transparent;
  color: var(--tiq-text-muted);
  border: 1.5px solid var(--tiq-border);
}

.tiq-btn--ghost:hover {
  border-color: var(--tiq-text-muted);
  color: var(--tiq-text);
}

.tiq-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.tiq-btn--whatsapp:hover:not(:disabled) {
  background: #1ebd5a;
  transform: translateY(-1px);
}

.tiq-btn--whatsapp:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.tiq-btn--full { width: 100%; justify-content: center; }

.tiq-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--tiq-text-muted);
  padding: 0;
  margin-bottom: 12px;
  transition: color var(--tiq-transition);
}

.tiq-btn-back svg { width: 16px; height: 16px; }
.tiq-btn-back:hover { color: var(--tiq-text); background: none !important; }

/* ============================================================
   OVERLAY
   ============================================================ */
.tiq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.tiq-overlay__inner {
  background: #fff;
  border-radius: var(--tiq-radius);
  padding: 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--tiq-shadow-lg);
}

/* Spinner inside overlay must be dark (white bg inner box) */
.tiq-overlay .tiq-spinner {
  border-color: rgba(26,26,46,.15);
  border-top-color: var(--tiq-primary);
  width: 44px;
  height: 44px;
  border-width: 4px;
}

.tiq-overlay__inner p {
  font-size: 15px;
  font-weight: 600;
  color: var(--tiq-text);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .tiq-wrap { padding: 20px 12px 48px; }
  .tiq-step__label { display: none; }
  .tiq-product-grid { grid-template-columns: repeat(2, 1fr); }
  .tiq-panel__actions { flex-wrap: wrap; }
  .tiq-btn { padding: 12px 20px; font-size: 13px; }
  .tiq-price-card__amount { font-size: 28px; }
  .tiq-final-price__amount { font-size: 30px; }
}

/* ============================================================
   STAGE TRANSITIONS (Category → Product within Step 1)
   ============================================================ */
.tiq-stage {
  transition: opacity .25s ease, transform .25s ease;
}

.tiq-stage--hidden {
  display: none !important;
}

.tiq-stage--visible {
  display: block;
  animation: tiqSlideIn .3s ease;
}

@keyframes tiqSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.tiq-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.tiq-skeleton-card--cat {
  height: 100px;
}

/* ============================================================
   CATEGORY CARD
   ============================================================ */
.tiq-category-card {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 22px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--tiq-transition), box-shadow var(--tiq-transition), transform var(--tiq-transition);
  user-select: none;
  text-decoration: none;
}

.tiq-category-card:hover {
  border-color: var(--tiq-accent);

  transform: translateY(-2px);
}

.tiq-category-card__icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f4f4f8;
  border-radius: 12px;
}

.tiq-category-card__body {
  flex: 1;
  min-width: 0;
}

.tiq-category-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tiq-text);
  margin: 0 0 4px;
}

.tiq-category-card__desc {
  font-size: 12px;
  color: var(--tiq-text-muted);
  margin: 0 0 6px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.tiq-category-card__count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  background: #f0f0f7;
  color: var(--tiq-text-muted);
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tiq-category-card__arrow {
  flex-shrink: 0;
  color: var(--tiq-border);
  transition: color var(--tiq-transition), transform var(--tiq-transition);
}

.tiq-category-card__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tiq-category-card:hover .tiq-category-card__arrow {
  color: var(--tiq-accent);
  transform: translateX(3px);
}

/* ============================================================
   BREADCRUMB ROW (inside Stage 1b)
   ============================================================ */
.tiq-breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.tiq-breadcrumb-icon {
  font-size: 24px;
  line-height: 1;
  display: none;
}

.tiq-breadcrumb-row h2 {
  margin: 0;
}

/* ============================================================
   ERROR MESSAGE
   ============================================================ */
.tiq-error-msg {
  color: var(--tiq-text-muted);
  font-size: 14px;
  padding: 24px 0;
}

/* ============================================================
   RESPONSIVE UPDATES FOR CATEGORIES
   ============================================================ */
@media (max-width: 600px) {
  .tiq-category-grid {
    grid-template-columns: 1fr;
  }

  .tiq-category-card {
    padding: 16px 14px;
  }

  .tiq-category-card__icon {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}

/* ============================================================
   DIMENSION UNIT BADGE
   ============================================================ */
.tiq-dim-unit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tiq-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  height: 44px;
  border-radius: var(--tiq-radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .3px;
}

/* ============================================================
   COMBINED DIMENSION INPUT WIDGET (Width × Height)
   ============================================================ */
.tiq-dimension-group {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow var(--tiq-transition);
}

.tiq-dimension-group:focus-within {
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

/* Quantity input for dimension products */
.tiq-quantity-group {
  background: var(--tiq-surface);
  border: 1px solid var(--tiq-border);
  border-radius: var(--tiq-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.tiq-quantity-group .tiq-field-group_label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tiq-text);
}

.tiq-quantity-input {
  width: 100%;
  max-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--tiq-border);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: var(--tiq-text);
  background: white;
  transition: border-color var(--tiq-transition);
}

.tiq-quantity-input:focus {
  outline: none;
  border-color: var(--tiq-primary);
  box-shadow: 0 0 0 3px rgba(26, 196, 243, 0.1);
}

.tiq-dimension-group__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tiq-text);
}

.tiq-dimension-group__help {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--tiq-text-muted);
}

.tiq-dimension-group__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
}

.tiq-dimension-group__col label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tiq-text);
  margin: 0 0 8px;
}

.tiq-dimension-group__col label .req {
  color: var(--tiq-accent);
  font-size: 16px;
}

.tiq-dimension-group__input-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.tiq-dimension-input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--tiq-border);
  border-radius: var(--tiq-radius-sm);
  font-size: 14px;
  font-family: var(--tiq-font);
  color: var(--tiq-text);
  transition: border-color var(--tiq-transition);
}

.tiq-dimension-input:focus {
  outline: none;
  border-color: var(--tiq-accent);
  box-shadow: 0 0 0 3px rgba(80,206,243,.1);
}

.tiq-dimension-group__times {
  font-size: 18px;
  font-weight: 700;
  color: var(--tiq-text-muted);
  padding-bottom: 12px;
}

.tiq-dimension-group__readout {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--tiq-bg, #f9fafb);
  border-left: 3px solid var(--tiq-primary);
  border-radius: var(--tiq-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--tiq-text-muted);
}

.tiq-dimension-group__readout.has-value {
  color: var(--tiq-primary);
}

@media (max-width: 480px) {
  .tiq-dimension-group__row {
    grid-template-columns: 1fr;
  }
  .tiq-dimension-group__times {
    display: none;
  }
}

.tiq-alert {
    padding: 1rem;
    border-radius: var(--tiq-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tiq-alert--error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.tiq-alert--success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

