.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: #11110f;
  color: var(--bone);
  font: 600 11px Inter, sans-serif;
  letter-spacing: .7px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.secondary:hover { border-color: var(--gold); color: #fff; }
.product-card .secondary { width: 100%; margin-top: 12px; }
.product-card { cursor: pointer; }

.catalog-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 0 0 24px;
}

.catalog-tools label {
  display: grid;
  flex: 1;
  max-width: 420px;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-tools select,
.paint-toolbar select,
.paint-toolbar input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--bone);
  font-size: 14px;
}

.product-modal { align-items: start; overflow-y: auto; padding: 4vh 16px; }
.product-sheet { position: relative; width: min(1050px, 100%); margin: auto; padding: clamp(20px, 4vw, 48px); border: 1px solid var(--gold); background: #11100e; box-shadow: 0 30px 90px #000; }
.product-sheet h2 { max-width: 850px; margin: 8px 45px 8px 0; font: 700 clamp(28px, 5vw, 52px)/1.08 Cinzel; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--bone); font-size: 34px; cursor: pointer; }
.detail-price { margin-bottom: 22px; color: var(--gold); font-size: 18px; font-weight: 700; }
.detail-gallery { display: grid; grid-auto-columns: minmax(250px, 42%); grid-auto-flow: column; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.detail-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #e9e7df; scroll-snap-align: start; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.guide-block { margin-top: 18px; padding: 22px; border: 1px solid var(--line); background: #171612; }
.guide-block h3 { margin: 0 0 14px; color: var(--gold); font: 700 22px Cinzel; }
.guide-block h4 { margin: 0 0 10px; font: 700 16px Cinzel; }
.guide-block p { color: #b0aa9d; line-height: 1.7; white-space: pre-line; }
.guide-block li { margin: 8px 0; color: #b0aa9d; line-height: 1.55; }
.guide-block dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; color: var(--muted); }
.guide-block dt { color: var(--gold); }
.recipe-paints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.paint-chip,.text-link { padding: 0; border: 0; background: none; color: #d7b867; text-decoration: underline; cursor: pointer; }
.paint-chip { padding: 8px 10px; border: 1px solid #55482e; text-decoration: none; }

.paint-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 210px auto; gap: 10px; margin: 28px 0 16px; }
.paint-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 22px; }
.paint-card { display: grid; grid-template-columns: 76px 22px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--panel); }
.paint-image { grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; min-height: 100px; background: #e9e7df; }
.paint-image img { width: 100%; height: 100%; max-height: 130px; object-fit: contain; }
.paint-swatch { width: 22px; height: 64px; border: 1px solid #ffffff33; background: var(--swatch); }
.paint-info { min-width: 0; }
.paint-info h3 { margin: 3px 0 7px; font: 700 16px Cinzel; }
.paint-info strong { color: var(--gold); }
.paint-info small,.paint-brand { display: block; color: var(--muted); font-size: 10px; }
.paint-brand { letter-spacing: .8px; text-transform: uppercase; }
.paint-equivalent { grid-column: 2 / -1; padding-top: 10px; border-top: 1px solid var(--line); }
.paint-equivalent span,.paint-equivalent small { display: block; color: var(--muted); font-size: 10px; }
.paint-equivalent b { display: flex; align-items: center; gap: 7px; margin: 4px 0; font-size: 13px; }
.paint-equivalent i { width: 15px; height: 15px; border-radius: 50%; background: var(--swatch); }
.source-note { color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 640px) {
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .catalog-tools label,.catalog-tools .secondary { width: 100%; max-width: none; }
  .product-modal { padding: 0; }
  .product-sheet { min-height: 100vh; padding: 22px 14px 50px; border-right: 0; border-left: 0; }
  .detail-gallery { grid-auto-columns: 88%; }
  .detail-actions > * { width: 100%; }
  .guide-block { padding: 16px; }
  .guide-block ol { padding-left: 20px; }
  .paint-toolbar { grid-template-columns: 1fr; }
  .paint-catalog { grid-template-columns: 1fr; }
  .paint-card { grid-template-columns: 68px 18px minmax(0, 1fr); gap: 9px; }
}
