:root {
  --fnac-yellow: #FFCC00;
  --ink: #111111;
  --ink-soft: #5A5A5A;
  --bg: #F5F5F3;
  --success: #2E7D4F;
  --border: #DDDBD5;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, sans-serif;
}

.page-main {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.navbar-wiseprod {
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.navbar-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.navbar-nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.navbar-brand {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.navbar-link {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.navbar-link:hover {
  border-color: white;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-search {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search:focus {
  outline: none;
  border-color: var(--fnac-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35);
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.filter-submit {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-submit:hover {
  background: #000;
}

.filter-reset {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
}

.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-state p {
  margin: 0;
}


.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-count {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  border-color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.product-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}

.product-card-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  background: white;
}

.product-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.product-card-cta {
  margin-top: auto;
}

.product-card-admin {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.product-card-admin > * {
  flex: 1;
}

.product-card-admin .btn-secondary {
  width: 100%;
}

@media (max-width: 640px) {
  .page-main {
    padding: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .product-card {
    padding: 12px;
  }
}

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

.product-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  text-decoration: underline;
}

.product-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  background: var(--fnac-yellow);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 4px;
}

.btn-generate {
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-generate:hover {
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-generate:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-generate:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.45);
}

.btn-generate:disabled {
  opacity: 0.75;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(245, 245, 243, 0.94);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-loader.is-visible {
  display: flex;
}

.page-loader-spinner {
  width: 56px;
  height: 56px;
  color: var(--ink);
  animation: page-loader-spin 0.9s linear infinite;
}

@keyframes page-loader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.page-loader p {
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-spinner {
    animation: none;
  }
}

.argument-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.argument-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.5;
}

.argument-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.5;
}

.service-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fnac-yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 12px;
}

.back-link:hover {
  color: var(--ink);
}

/* Breadcrumb */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* Product detail */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.product-detail-media {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 16px;
}

.product-detail-media img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.alternatives {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.alternatives h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.alternative-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 -8px 4px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.alternative-card:hover {
  background: var(--bg);
}

.alternative-card img {
  width: 48px;
  height: 48px;
  max-height: none;
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}

.alternative-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.alternative-price {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.sales-tip {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sales-tip-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--fnac-yellow);
}

.sales-tip h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.sales-tip p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.product-detail-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 24px;
  background: var(--fnac-yellow);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  margin-top: 10px;
}

.product-detail-description {
  margin-top: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.product-detail-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    position: static;
  }
}

/* Login */

.auth-split {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -24px;
  margin-bottom: -24px;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.85)),
    url("https://images.unsplash.com/photo-1498049794561-7780e7231661?auto=format&fit=crop&w=1920&q=70") center / cover no-repeat;
}

.auth-split-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: white;
  text-align: center;
}

.auth-split-brand-name {
  font-size: 32px;
  font-weight: 700;
}

.auth-split-brand p {
  margin: 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.auth-split-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 16px 40px 64px;
  perspective: 1200px;
}

@media (max-width: 1100px) {
  .auth-split-form {
    justify-content: center;
    padding: 40px 16px;
  }
}

@media (max-width: 800px) {
  .auth-split {
    display: block;
    min-height: 100vh;
  }

  .auth-split-brand {
    display: none;
  }

  .auth-split-form {
    padding: 32px 16px;
  }
}

@media (max-width: 640px) {
  .auth-split {
    margin-top: -16px;
    margin-bottom: -16px;
  }
}

.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  perspective: 1200px;
}

.auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 380px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  animation: auth-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-card.flip-in {
  animation: auth-flip-in 0.5s ease both;
}

.auth-card.flip-out {
  animation: auth-flip-out 0.4s ease forwards;
}

@keyframes auth-flip-in {
  from {
    opacity: 0;
    transform: rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes auth-flip-out {
  from {
    opacity: 1;
    transform: rotateY(0deg);
  }
  to {
    opacity: 0;
    transform: rotateY(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card.flip-in,
  .auth-card.flip-out {
    animation: none;
  }
}

.auth-title {
  margin: 0 0 4px;
  font-size: 24px;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.auth-flash {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 18px;
  animation: auth-shake 0.4s;
}

.auth-flash-alert {
  background: #FDECEC;
  color: #B3261E;
  border: 1px solid #F5C6C6;
}

.auth-flash-notice {
  background: #EAF6EF;
  color: var(--success);
  border: 1px solid #C7E8D4;
}

.page-flash {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.15);
  animation: page-flash-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-flash.is-leaving {
  animation: page-flash-out 0.3s ease forwards;
}

@keyframes page-flash-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes page-flash-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-flash {
    animation: none;
  }

  .page-flash.is-leaving {
    animation: none;
    opacity: 0;
  }
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.auth-field input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--fnac-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35);
}

.auth-hint {
  font-size: 12px;
  color: var(--ink-soft);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-submit {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.auth-submit:hover {
  background: #000;
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0) scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-demo {
  display: block;
  text-align: center;
  background: var(--fnac-yellow);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-demo:hover {
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.45);
  transform: translateY(-1px);
}

.auth-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  text-align: center;
}

.auth-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.auth-flip-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
}

.auth-flip-trigger:hover {
  color: var(--ink);
  text-decoration: underline;
}

.flip-card {
  width: 100%;
  max-width: 380px;
}

.flip-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-card-face {
  backface-visibility: hidden;
}

.flip-card-front {
  position: relative;
}

.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-flash,
  .auth-submit,
  .auth-demo {
    animation: none;
    transition: none;
  }
}

.app-footer {
  background: var(--ink);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.has-full-bleed .app-footer {
  margin-top: 0;
}

.app-footer span:last-child {
  font-variant-numeric: tabular-nums;
}

.link-logout {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.confirm-modal {
  border: none;
  border-top: 3px solid var(--fnac-yellow);
  padding: 24px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.confirm-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.confirm-modal h3 {
  margin-top: 0;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--ink-soft);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.45);
}

.footer-login-link {
  color: var(--fnac-yellow);
  text-decoration: none;
}

.footer-login-link:hover {
  text-decoration: underline;
}

.questionnaire-step {
  max-width: 480px;
  margin: 40px auto;
}

.step-progress {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.tile-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  padding: 24px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s;
}

.tile-option i {
  font-size: 22px;
  color: var(--ink-soft);
}

.tile-option:hover {
  border-color: var(--fnac-yellow);
  background: #FFFBEB;
}
.tile-option-unsure {
  grid-column: 1 / -1;
  background: var(--bg);
  border-style: dashed;
  font-weight: 400;
  color: var(--ink-soft);
}

.tile-option-unsure:hover {
  border-color: var(--fnac-yellow);
  color: var(--ink);
}
.tile-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tile-icon {
  width: 32px;
  height: 32px;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.tile-option:hover .tile-icon {
  color: var(--ink);
}

.tile-option-unsure .tile-icon {
  width: 24px;
  height: 24px;
}
.skip-to-catalog {
  margin-top: 24px;
  text-align: center;
}



.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.products-header h1 {
  margin: 0;
}

.product-form-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.form-preview-panel {
  position: sticky;
  top: 24px;
}

.panel-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--fnac-yellow);
}

.form-fields-panel {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
}

.form-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  color: var(--ink-soft);
  font-size: 13px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.required-mark {
  color: #C0392B;
  font-weight: 400;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--fnac-yellow);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35);
}

textarea.auth-input {
  resize: vertical;
  min-height: 80px;
}

.field-row {
  display: flex;
  gap: 16px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .product-form-layout {
    grid-template-columns: 1fr;
  }
  .form-preview-panel {
    position: static;
  }
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Customers */

.customer-form-layout {
  max-width: 640px;
  margin: 0 auto;
}

.customer-form-title {
  margin: 4px 0 4px;
}

.customer-form-hint {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.form-errors-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.customer-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.customer-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-card:hover {
  border-color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.customer-card-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.customer-card-cta {
  margin-top: 10px;
}

.customer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.customer-card-name {
  font-weight: 600;
  font-size: 15px;
}

.customer-card-contact {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.matricule-badge {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--fnac-yellow);
  border-radius: 999px;
  padding: 3px 10px;
}

.customer-detail {
  max-width: 720px;
  margin: 0 auto;
}

.customer-detail-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.customer-detail-header h1 {
  margin: 0 0 4px;
}

.customer-detail-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.matricule-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.matricule-tag-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.matricule-tag-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
}

.matricule-copy {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.matricule-copy:hover {
  background: var(--border);
}

.customer-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.customer-detail-panel {
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
}

.customer-detail-panel h3 {
  margin-top: 0;
}

.customer-info-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-info-list dt {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.customer-info-list dd {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 480px) {
  .matricule-tag {
    width: 100%;
    justify-content: space-between;
  }
}

.cart-checkout-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Navbar cart */

.navbar-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-cart-badge {
  background: var(--fnac-yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  padding: 3px 6px;
  min-width: 16px;
  text-align: center;
}

/* Product SKU / service selection */

.product-sku {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-checkbox:hover {
  border-color: var(--ink-soft);
}

.service-checkbox:has(input:checked) {
  border-color: var(--fnac-yellow);
  background: #FFFBEB;
}

.service-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.sku-tag {
  margin-left: auto;
  padding-left: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Cart page */

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.cart-item-media {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 15px;
}

.cart-item-name a {
  color: inherit;
  text-decoration: none;
}

.cart-item-name a:hover {
  text-decoration: underline;
}

.cart-item-services {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-services li {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: 320px;
}

.cart-item-end {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
}

.cart-summary {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--border);
  padding: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.cart-summary-row strong {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

.cart-summary-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-end {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .cart-summary-actions {
    flex-direction: column-reverse;
  }

  .cart-summary-actions > * {
    width: 100%;
  }

  .cart-summary-actions .btn-secondary {
    width: 100%;
  }
}

/* Cart customer assignment */

.cart-customer {
  margin-bottom: 20px;
}

.cart-customer-assigned {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--fnac-yellow);
  padding: 14px 18px;
}

.cart-customer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.cart-customer-name {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.cart-customer-name a {
  color: inherit;
  text-decoration: none;
}

.cart-customer-name a:hover {
  text-decoration: underline;
}

.cart-customer-contact {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.cart-customer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cart-customer-unassigned {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px dashed var(--border);
  padding: 14px 18px;
}

.cart-customer-unassigned p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 480px) {
  .cart-customer-assigned,
  .cart-customer-unassigned {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-customer-actions {
    justify-content: flex-end;
  }
}
.receipt-fictional-banner {
  background: #FFF3CD;
  border: 1px solid #F0C36D;
  color: #856404;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 16px;
}

.receipt {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  padding: 24px;
  font-family: "Courier New", monospace;
}

.receipt::before {
  content: "FACTICE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(176, 38, 38, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

.receipt-table {
  width: 100%;
  font-size: 13px;
}

.receipt-table td {
  padding: 4px 0;
}

.receipt-total {
  font-weight: 700;
  font-size: 18px;
}

.receipt-instructions {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
}

@media print {
  .no-print { display: none; }
  .receipt-fictional-banner { border: 1px solid black; }
}
