:root {
  --bg: #f8f7f4;
  --paper: #eeece7;
  --text: #242521;
  --muted: #7a7b73;
  --line: #deddd6;
  --accent: #d4c0a8;
  --max: 1190px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e2ddd2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button,
.btn,
.chip,
.languages a,
.tab-group button {
  user-select: none;
  -webkit-user-select: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 54px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.site-header nav a {
  font-size: 13px;
  transition: opacity 150ms ease;
}

.languages {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.languages a,
.languages button {
  color: var(--muted);
  padding: 4px 9px;
  border: 0;
  background: transparent;
  border-radius: 100px;
  line-height: 1.2;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background-color 150ms ease, color 150ms ease;
}

.languages a.selected,
.languages button.selected {
  color: #fff;
  background: var(--text);
  font-weight: 700;
}

main {
  min-height: 65vh;
}

.hero {
  padding: 32px 0 88px;
}

.hero-visual {
  height: 460px;
  background: linear-gradient(118deg, #e7e1d5, #c9b49e 62%, #bba88f);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual > span {
  position: absolute;
  left: 25px;
  bottom: 17px;
  font-size: 11px;
  color: #52473e;
  letter-spacing: 0.16em;
}

.hero-shape {
  width: 170px;
  height: 258px;
  filter: drop-shadow(24px 30px 20px #66574855);
  border-radius: 45% 45% 34% 34%;
  background: repeating-linear-gradient(90deg, #f9f3e8 0 8px, #e3d3bf 10px 13px, #f8eee1 16px 18px);
  transform: rotate(-10deg);
  position: relative;
}

.hero-shape::after {
  content: "";
  display: block;
  position: absolute;
  left: 36px;
  top: 40px;
  width: 98px;
  height: 177px;
  filter: blur(34px);
  background: #fff6e3;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(32px, 4.7vw, 62px);
  max-width: 780px;
  letter-spacing: -0.056em;
  line-height: 1.1;
  font-weight: 570;
  margin: 29px 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 590px;
  margin: 0 0 25px;
}

.btn {
  border: 1px solid var(--line);
  padding: 12px 19px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  cursor: pointer;
  font-weight: 550;
  font-size: 13px;
  border-radius: 3px;
  transition:
    transform 150ms var(--ease-out),
    background-color 150ms ease,
    border-color 150ms ease,
    opacity 150ms ease;
  background: transparent;
}

.btn:active,
.chip:active,
.tab-group button:active,
.admin-actions button:not(:disabled):active {
  transform: scale(0.97);
}

.btn.dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.btn.secondary {
  background: #f6f5f2;
}

.section {
  padding: 10px 0 75px;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}

.section-top h2,
.about h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
  font-weight: 550;
  margin: 0;
}

.section-top a {
  font-size: 13px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 18px;
}

.product-card {
  display: block;
  min-width: 0;
}

.image-wrap {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.card-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 100px;
  background: #faf9f5eb;
  color: var(--text);
  backdrop-filter: blur(5px);
}

.card-pill.ready {
  color: #355838;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 250ms var(--ease-out);
}

.no-image {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 48% 41%, #e4d0b8 0, #e6e1d6 35%, #f0eee8 75%);
}

.no-image span {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #857d73;
  transform: rotate(-15deg);
}

.card-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 12px;
  font-size: 14px;
}

.card-line strong {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-line span {
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.product-card small {
  color: var(--muted);
  font-size: 12px;
}

.about {
  background: #e9e7e0;
  padding: 35px 40px;
  min-height: 160px;
  margin-bottom: 80px;
}

.about p {
  color: var(--muted);
  margin: 8px 0 0;
}

footer,
.site-footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
}

.catalog-section {
  padding-top: 45px;
}

.catalog-section h1 {
  font-size: 43px;
  font-weight: 550;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.catalog-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
  color: var(--muted);
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.sort-pill.active {
  background: var(--paper);
  border-color: var(--line);
  color: var(--text);
  font-weight: 600;
}

.chip {
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 12px;
  transition:
    transform 150ms var(--ease-out),
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.chip.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.product-detail {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 60px;
  padding: 42px 0 100px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

.gallery-stage {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--paper);
  overflow: hidden;
  border-radius: 6px;
}

.gallery .product-image.large,
.gallery .no-image.large {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 150ms ease,
    border-color 150ms ease,
    transform 150ms var(--ease-out);
}

.gallery-thumb.active {
  border-color: var(--text);
  opacity: 1;
}

.gallery-thumb:active {
  transform: scale(0.96);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding-top: 9px;
  position: sticky;
  top: 28px;
  align-self: start;
}

.muted {
  color: var(--muted);
}

.back {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 30px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-info h1 {
  font-size: clamp(31px, 3.5vw, 50px);
  letter-spacing: -0.048em;
  line-height: 1.12;
  font-weight: 550;
  margin: 8px 0 10px;
  overflow-wrap: anywhere;
}

.detail-price {
  font-size: 22px;
  margin: 8px 0 20px;
  font-variant-numeric: tabular-nums;
}

.product-info > p {
  color: #62645e;
  margin: 0 0 26px;
  max-width: 480px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.not-found-section {
  padding: 72px 0 100px;
  max-width: 520px;
}

.not-found-section h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.048em;
  line-height: 1.12;
  font-weight: 550;
  margin: 10px 0 14px;
}

.not-found-section p {
  color: var(--muted);
  margin: 0 0 28px;
}

.status {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}

.status-dot.in-stock {
  background: #5e8c61;
}

.status-dot.made-to-order {
  background: #b88444;
}

.status-dot.unavailable {
  background: #9a9b94;
}

.order-panel {
  padding-top: 25px;
}

.order-panel h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 550;
  margin: 0 0 6px;
}

.order-field {
  margin-top: 16px;
}

.field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.order-field label {
  display: block;
  font-weight: 550;
  font-size: 12px;
}

.field-header span {
  font-size: 12px;
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--swatch, #d4c0a8);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px #c8c6be;
  cursor: pointer;
  padding: 0;
  transition:
    transform 150ms var(--ease-out),
    box-shadow 150ms ease;
}

.swatch.active {
  box-shadow: 0 0 0 2px var(--text);
}

.swatch:active {
  transform: scale(0.93);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-field select,
.order-field input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px;
  margin-top: 6px;
  border-radius: 3px;
  color: var(--text);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.qty-control input {
  width: 64px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  padding: 9px 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 150ms ease,
    transform 150ms var(--ease-out);
}

.qty-btn:active {
  transform: scale(0.92);
  background: var(--paper);
}

.btn.copied {
  background: #3d5a40;
  border-color: #3d5a40;
  color: #fff;
}

.order-panel p {
  font-size: 12px;
  margin: 16px 0;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin styles */

.admin-root {
  max-width: 1100px;
  margin: auto;
  padding: 25px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.admin-top h1 {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  margin: 18px 0;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  border: 1px solid #d7d7d2;
  padding: 11px 12px;
  border-radius: 3px;
  width: 100%;
  background: white;
}

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

.full {
  grid-column: 1 / -1;
}

.admin-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}

.admin-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.admin-row-text {
  min-width: 0;
}

.admin-row strong {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
}

.admin-row small {
  display: block;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.admin-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.admin-actions button {
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}

.admin-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.notice {
  font-size: 13px;
  color: #855532;
  padding: 8px 0;
  min-height: 24px;
}

.hidden {
  display: none !important;
}

.minor {
  font-size: 12px;
  color: var(--muted);
}

.heading-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tab-group {
  display: flex;
  gap: 8px;
}

.tab-group button {
  border: 1px solid var(--line);
  padding: 7px 12px;
  background: white;
  cursor: pointer;
  border-radius: 3px;
}

.tab-group button.active {
  background: var(--text);
  color: white;
}

.preview-small {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.image-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.image-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--text);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.image-tile-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.image-tile-controls.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.image-tile-controls button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
  color: var(--text);
}

.image-tile-controls button:last-child {
  border-right: 0;
}

.image-tile-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.admin-inline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-inline input {
  min-width: 0;
}

.login-narrow {
  max-width: 420px;
}

.translation-fields {
  margin-top: 12px;
}

.save-actions {
  margin-top: 25px;
}

.featured-add-row {
  margin-top: 15px;
}

.featured-select {
  padding: 9px;
  flex: 1;
  min-width: 80px;
}

.category-editor {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.category-editor h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

/* Admin top-level tabs & file-manager tree */

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms var(--ease-out);
}

.admin-tab:active {
  transform: scale(0.97);
}

.admin-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.tab-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.admin-tab.active .tab-count {
  background: #ffffff26;
  color: #fff;
}

.tree-subtitle {
  margin: 4px 0 0;
}

.tree-view {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-folder {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #faf9f6;
  overflow: hidden;
}

.tree-folder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.tree-folder.expanded > .tree-folder-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.tree-folder-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  cursor: pointer;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.tree-arrow {
  width: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.tree-folder-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.tree-folder-toggle strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tree-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.tree-children {
  background: #fff;
  padding: 4px 12px 4px 20px;
}

.tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0efe9;
}

.tree-item:last-child {
  border-bottom: 0;
}

.tree-branch {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #b5b4ac;
  font-size: 13px;
  flex-shrink: 0;
  user-select: none;
}

.tree-empty {
  padding: 12px 4px;
}

.tree-mini-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  flex-shrink: 0;
}

.mini-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch, #d4c0a8);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px #c8c6be;
  display: inline-block;
}

/* Color Schemes Builder & Palette Picker */

.schemes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.inline-field {
  min-width: 140px;
}

.inline-field input,
.inline-field select {
  padding: 8px 10px;
}

.scheme-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.scheme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.scheme-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.scheme-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

.scheme-preview {
  cursor: default;
  flex-shrink: 0;
}

.scheme-parts-select {
  border: 1px solid #d7d7d2;
  padding: 6px 8px;
  border-radius: 3px;
  background: #faf9f6;
  font-size: 12px;
}

.scheme-slots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.scheme-plus {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.scheme-color-select {
  border: 1px solid #d7d7d2;
  padding: 7px 10px;
  border-radius: 3px;
  background: #fff;
  font-size: 12px;
}

.scheme-photo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheme-photo-thumb {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}

.scheme-photo-select {
  border: 1px solid #d7d7d2;
  padding: 6px 8px;
  border-radius: 3px;
  background: #faf9f6;
  font-size: 12px;
}

.hex-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hex-picker-row input[type="color"] {
  width: 44px;
  height: 40px;
  padding: 2px;
  border: 1px solid #d7d7d2;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

/* Image Crop, Focal Point & Live Preview Modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 25, 22, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-dialog {
  width: min(100%, 960px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.modal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.img-editor-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.img-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.img-stage-wrap {
  position: relative;
  background: #1e1f1c;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  max-height: 440px;
}

.img-stage-wrap:active {
  cursor: grabbing;
}

.img-stage-wrap.focus-mode {
  cursor: crosshair;
}

.img-stage-wrap canvas {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
}

.focal-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(36, 37, 33, 0.78);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: crosshair;
  pointer-events: auto;
}

.img-editor-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.zoom-field {
  flex: 1;
  min-width: 160px;
}

.zoom-field input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
}

.img-editor-right {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.img-editor-right h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.previews-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}

.preview-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-catalog-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--bg);
}

.preview-catalog-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}

.preview-catalog-img-wrap canvas,
.preview-detail-box canvas,
.preview-square-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.preview-detail-box {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.preview-square-box {
  aspect-ratio: 1 / 1;
  width: 110px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.modal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ABOUT PAGE & CONTACTS */
.about-page {
  padding: 20px 0 60px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.about-story h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}

.about-paragraphs {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.about-paragraphs p {
  margin: 0 0 16px;
  color: var(--ink);
}

.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* HOW IT WORKS / STEPS */
.steps-section {
  margin: 60px 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.steps-section h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.step-card .eyebrow {
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* CONTACT SECTION & CARDS */
.contact-section {
  margin: 60px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-header {
  margin-bottom: 24px;
}

.contact-header h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s var(--ease-out, ease);
}

a.contact-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.contact-card strong {
  font-size: 16px;
  font-weight: 600;
}

.contact-card .muted {
  font-size: 12px;
  color: var(--muted);
}

/* PRODUCT ACCORDIONS */
.product-accordions {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.product-accordion {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.product-accordion summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.product-accordion[open] summary::after {
  content: '−';
}

.product-accordion p {
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 800px) {
  .img-editor-grid {
    grid-template-columns: 1fr;
  }
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover {
    opacity: 0.55;
  }
  .languages a:hover:not(.selected) {
    color: var(--text);
    background: #fff8;
  }
  .btn:hover {
    opacity: 0.88;
  }
  .btn.secondary:hover {
    background: #eeece6;
    opacity: 1;
  }
  .chip:hover:not(.active) {
    border-color: var(--muted);
  }
  .product-card:hover .product-image {
    transform: scale(1.035);
  }
}

@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .product-card:hover .product-image,
  .btn:active,
  .chip:active {
    transform: none !important;
  }
}

@media (max-width: 800px) {
  .layout {
    padding: 0 18px;
  }
  .site-header {
    gap: 14px;
    height: 72px;
  }
  .logo {
    font-size: 15px;
  }
  .site-header nav {
    gap: 14px;
    margin-left: auto;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .languages {
    margin-left: 0;
  }
  .hero-visual {
    height: 350px;
  }
  .hero {
    padding-bottom: 50px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-info {
    position: static;
  }
  .back {
    margin-bottom: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    height: 64px;
  }
  .site-header nav {
    gap: 10px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .languages {
    padding: 2px;
    font-size: 10px;
  }
  .languages a {
    padding: 4px 6px;
  }
  .hero-visual {
    height: 270px;
  }
  .hero-shape {
    transform: scale(0.8) rotate(-10deg);
  }
  .hero h1 {
    font-size: 34px;
  }
  .product-grid {
    gap: 24px 12px;
  }
  .card-line {
    font-size: 12px;
    display: block;
  }
  .card-line span {
    display: block;
  }
  .about {
    padding: 25px;
  }
  .panel {
    padding: 15px;
  }
  .admin-top h1 {
    font-size: 18px;
  }
  footer,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
