/*
 * Tanatel Wardrobe Studio — retail-facing presentation layer.
 *
 * This is an interpretation of the charcoal bilingual Tanatel wordmark and
 * warm cream / muted brass interiors used in Tanatel's public catalog, not
 * an official hex-code style guide. See TANATEL_BRANDING.md for source URLs.
 * The underlying 3D scene, product data, pricing and engineering logic are
 * intentionally untouched.
 */

body {
  font-family: "Helvetica Neue", "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button, input, select, textarea { font-family: inherit; }
:where(button, [role="button"], select, input, a):focus-visible {
  outline-color: var(--accent);
}
::selection { background: #e4d4bd; color: var(--text); }

/* Actual bilingual Tanatel wordmark, with a readable offline fallback. */
#brand-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 53px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
}
.tanatel-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tanatel-logo-fallback { display: none; }
.logo-unavailable .tanatel-logo-image { display: none; }
.logo-unavailable .tanatel-logo-fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-family: Georgia, "Noto Naskh Arabic", serif;
  color: var(--primary);
  font-size: 22px;
  line-height: .9;
  letter-spacing: -.025em;
}
.tanatel-logo-fallback [lang="ar"] {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  font-size: 22px;
  line-height: 1.15;
}

/* Boutique-style navigation and controls. */

#brand { gap: 16px; }
#brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

#topbar {
  height: 76px;
  min-height: 76px;
  padding-inline: clamp(14px, 2vw, 32px);
  background: var(--surface);
  box-shadow: 0 3px 20px rgba(45, 35, 24, .035);
}
#brand-logo { width: 112px; height: 48px; }
#brand-tagline {
  margin-top: 3px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
}
#topbar-actions { gap: 7px; }
#price-pill {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1e9de;
  color: var(--primary-dark);
  font-size: 16px;
}
.locale-control select {
  border-radius: 5px;
  padding: 7px 9px;
}
.btn {
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .012em;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover, .btn.ghost:hover { background: #f0e9e0; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.small.active {
  border-color: var(--selection);
  background: #eee3d6;
  color: var(--primary-dark);
}

/* Sheet typography. */

.sheet-eyebrow {
  color: var(--selection);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
}

/* Planner: restrained neutrals, deliberate selection states. */
#viewport { background: #eae4dc; }
.planner-sheet {
  background: var(--surface);
  box-shadow: 0 16px 52px rgba(43, 36, 30, .12);
}
.catalog-sheet { box-shadow: 12px 0 35px rgba(43, 36, 30, .13); }
.inspector-sheet { border-radius: 10px; }
.sheet-header { padding-block: 18px 16px; }
.sheet-header h2 { font-weight: 650; letter-spacing: -.012em; }
#category-tabs {
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 8px 28px rgba(40, 32, 25, .14);
}
#category-tabs .category-tab { border-radius: 5px; }
.category-tab:hover { background: #efe8de; }
.category-tab.active, #category-tabs .category-tab.active {
  background: var(--primary);
  color: #fff;
}
.product-card {
  border-width: 1px;
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}
.product-card img { background: #f7f3ed; border-radius: 4px; }
.product-card.selected {
  border-color: var(--selection);
  box-shadow: 0 0 0 2px rgba(135, 104, 74, .16);
}
.product-card .p-price { color: var(--primary-dark); }
.product-card .p-status.included { background: #eee8e0; }
.frame-list-item.selected, .room-entity.selected {
  border-color: var(--selection);
  background: #f2e9dd;
}
.room-entity.selected { outline-color: var(--selection); }
.guided-choice { border-width: 1px; border-radius: 8px; background: var(--surface); }
.guided-choice:hover { border-color: var(--selection); background: #f5ece0; }
.cover-cap-option.active { background: #f3e9db; }

#scene-actions button, #viewport-controls button { border-radius: 6px; }
#scene-actions button:hover, #viewport-controls button:hover { background: #eee5da; }
#scene-actions button.active { color: #fff; background: var(--primary); }
#render-quality-control { border-radius: 7px; }
#render-quality { border-radius: 4px; }
#viewport-hint { background: rgba(53, 51, 49, .92); border-radius: 6px; }
.measure-label.editable, .measure-label.room-dimension { background: var(--primary); }
.measure-label.editable:focus-visible { outline-color: var(--accent); }
#room-popover { border: 1px solid var(--border); border-radius: 9px; }
#toast { border-radius: 6px; background: var(--primary-dark); }

/* Overlays and dialogs are an extension of the retail UI, not a separate skin. */
.modal-layer { background: rgba(34, 30, 26, .57); }
.summary-dialog, .decision-dialog { border-radius: 11px; }
.summary-total { background: #f2ebe2; }
.summary-total strong { color: var(--primary-dark); }
.summary-dialog .summary-row { border-bottom-color: var(--border); }

@media (max-width: 1100px) {
  #brand { gap: 8px; }
  #brand-logo { width: 96px; height: 42px; }
  #topbar-actions { gap: 3px; }
}
@media (max-width: 760px) {

  .planner-shell #topbar { height: 58px; min-height: 58px; padding-inline: 8px; }
  .planner-shell #brand-logo { width: 80px; height: 35px; }
  .planner-shell #brand-name { max-width: 90px; font-size: 9px; letter-spacing: .05em; }
  .planner-shell #price-pill { font-size: 13px; }
  .catalog-sheet, .inspector-sheet { border-radius: 12px 12px 0 0; }
  #category-tabs { border-radius: 9px; }
  .modal-layer { padding: 0; align-items: end; }
  .summary-dialog, .decision-dialog { border-radius: 12px 12px 0 0; }
}
@media (max-width: 390px) {

  .planner-shell #brand-logo { width: 74px; height: 33px; }
}
@media (forced-colors: active) {
  .logo-unavailable .tanatel-logo-fallback { color: CanvasText; }
}
