/* Minimal modern styling (no build tools required) */
* { box-sizing: border-box; }

@font-face {
  font-family: "Aileron";
  src: url("/static/fonts/Aileron-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("/static/fonts/Aileron-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Hide scrollbars visually, keep scrolling enabled */
.no-scrollbar {
  -ms-overflow-style: none; /* IE/old Edge */
  scrollbar-width: none; /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Edge/Safari */
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Aileron", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  /* Palette derived from CAJA by GOODWOOD logo */
  --c-bg: #fffaf3;
  --c-surface: #ffffff;
  --c-border: #efe1cf;
  --c-text: #2d2418;
  --c-muted: #7a6a55;
  --c-accent: #c8a36a;   /* gold */
  --c-accent-2: #b38a55; /* deeper gold */
  --c-focus: rgba(200, 163, 106, .35);
  background: var(--c-bg);
  color: var(--c-text);
}
.container { max-width: 980px; margin: 0 auto; padding: 32px 16px; }
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 3px 0 6px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-center { justify-content: center; }
.brand img {
  width: clamp(105px, 14vw, 155px);
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  border: 0;
}

.brand-byline {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .2px;
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(45, 36, 24, 0.04);
}
.grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
label { font-size: 14px; font-weight: 700; display: block; }
.section-title {
  font-size: 13px;
  letter-spacing: .2px;
}
input, select {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8d7c2;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8d7c2;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  resize: vertical;
}
textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-focus);
}
input:focus, select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-focus);
}
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  direction: ltr;
  text-align: right;
  justify-content: flex-start;
}
.radio-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse; /* put radio on the right */
  gap: 8px;
  padding: 4px 2px;
  cursor: pointer;
  user-select: none;
  color: var(--c-text);
}
.radio-option input { width: auto; margin: 0; accent-color: var(--c-accent); flex: 0 0 auto; }
.dropdown {
  position: relative;
}

/* Force LTR for product dropdown only (in case of global RTL) */
.product-dropdown,
.product-dropdown * {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}
.dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e8d7c2;
  background: #fff;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.dropdown-btn:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-focus); }
.dropdown-btn:active { transform: translateY(1px); }
.dropdown-placeholder { color: var(--c-muted); }
.dropdown-caret { color: var(--c-muted); font-size: 12px; }
.dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  direction: ltr;
  text-align: left;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(45, 36, 24, .14);
  display: none;
}
.dropdown-menu::-webkit-scrollbar { width: 0; height: 0; }
.dropdown-menu { scrollbar-width: none; -ms-overflow-style: none; }
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 140ms ease, transform 140ms ease;
  text-align: left;
}
.dropdown-item:hover { background: #fff6ea; }
.dropdown-item:active { transform: scale(0.99); }
.dropdown-item input {
  margin: 0;
  accent-color: var(--c-accent);
  flex: 0 0 auto;
}

.dropdown-text {
  flex: 1 1 auto;
  min-width: 0;
}

.dropdown-item input {
  margin-left: 10px;
}
.chips { display:flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, #fff9f1, #fff1df);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 700;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn-dark { background: var(--c-accent); color: #fff; }
.btn-indigo { background: var(--c-accent-2); color: #fff; }
.btn-green { background: #8a6a3d; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #d8c7b1; color: var(--c-text); }
.muted { color: var(--c-muted); font-size: 12px; }
.error { color: #b91c1c; font-size: 14px; }
.success { color: #065f46; font-size: 14px; }
.panel { border: 1px solid var(--c-border); border-radius: 14px; background: #fff6ea; overflow: hidden; }
video, img { width: 100%; height: 240px; object-fit: cover; display: block; }
.spinner {
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid #e8d7c2;
  border-top-color: var(--c-accent);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer — back to branch & sales (matches .btn-green) */
.page-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  text-align: center;
}
.footer-branch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  background: #8a6a3d;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45, 36, 24, 0.12);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
.footer-branch-link::before {
  content: "\2190";
  font-size: 1.05em;
  opacity: 0.9;
}
.footer-branch-link:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(45, 36, 24, 0.2);
}
.footer-branch-link:active {
  transform: translateY(1px);
}
.footer-branch-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--c-focus), 0 2px 8px rgba(45, 36, 24, 0.12);
}
.footer-branch-link:visited {
  color: #fff !important;
}

