:root {
  --bg: #ffffff;
  --page-bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --line: #d7d2c8;
  --line-strong: #c8c1b5;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #6f6a4f;
  --brand-dark: #3f3a2a;
  --brand-soft: #f4efe3;
  --brand-tint: #d7cbb3;
  --catalogue-accent: #0ea5a4;
  --catalogue-accent-warm: #f97316;
  --catalogue-accent-strong: #0b3b3b;
  --catalogue-line: #d7d2c8;
  --accent: #7a6f4d;
  --accent-soft: #f6f1e8;
  --danger: #b3261e;
  --warning-soft: #fff4e4;
  --warning: #875313;
  --shadow: 0 10px 28px rgba(28, 37, 71, 0.08);
  --shadow-strong: 0 18px 42px rgba(28, 37, 71, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
}

body.is-submit-blocked {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.eyebrow,
.panel-kicker,
.detail-kicker {
  margin: 0 0 5px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.headline-copy {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.download-button,
.ghost-button,
.tab-button,
.add-button,
.submit-button,
.file-button,
.mobile-view-tabs button,
.mobile-cart-float {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.14s ease,
    background-color 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    color 0.14s ease;
}

.download-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(111, 106, 79, 0.22);
  font-weight: 900;
  white-space: nowrap;
}

.download-button:hover,
.submit-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.search-panel,
.request-panel,
.table-wrap,
.detail-panel,
.item-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 10px;
  margin-bottom: 8px;
}

.tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tab-button {
  min-height: 34px;
  padding: 0 13px;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: center;
}

.tab-button strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.tab-button.is-active {
  color: #fff;
  background: var(--brand);
  box-shadow: none;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.search-field,
.filter-row label,
.request-form label {
  display: grid;
  gap: 6px;
}

.search-field span,
.filter-row span,
.request-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

textarea {
  min-height: 78px;
  padding-top: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(111, 106, 79, 0.16);
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.ghost-button:hover {
  background: var(--panel-soft);
  border-color: var(--brand-tint);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf0f8;
}

.status-line {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.status-line.has-message {
  display: flex;
  margin: 4px 0 8px;
}

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

.status-bar:empty {
  display: none;
}

.mobile-view-tabs {
  display: none;
}

.error-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #efb2a7;
  border-radius: 8px;
  background: #fff0ed;
  color: #8f2a1b;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 14px;
  align-items: start;
}

.results-column {
  min-width: 0;
}

.detail-panel,
.table-wrap {
  display: none;
}

.grouped-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: start;
}

.item-slot {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 5px;
  align-self: stretch;
}

.category-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  align-self: start;
  min-height: 0;
  padding: 3px 0 0;
}

.category-title-placeholder {
  visibility: hidden;
}

.category-title span {
  color: var(--catalogue-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.category-title h3 {
  margin: 0;
  color: var(--catalogue-accent-strong);
  font-size: 21px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.current-category-bar {
  position: sticky;
  top: var(--category-sticky-top, 74px);
  z-index: 9;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0 9px;
  margin: 0 0 10px;
  background: var(--page-bg);
  box-shadow:
    0 -10px 0 10px var(--page-bg),
    0 10px 16px rgba(15, 23, 42, 0.06);
}

.current-category-bar[hidden] {
  display: none !important;
}

.current-category-bar span {
  color: var(--catalogue-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.current-category-bar h3 {
  min-width: 0;
  margin: 0;
  color: var(--catalogue-accent-strong);
  font-size: 22px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-panel {
  margin-bottom: 12px;
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
  border-color: var(--catalogue-line);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.detail-panel::before,
.item-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--catalogue-accent), var(--catalogue-accent-warm));
  border-radius: inherit;
}

.detail-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 92px;
}

.detail-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: #071528;
}

.card-manufacturer {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 112px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--catalogue-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-panel .add-button {
  margin-top: 34px;
}

.card-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--catalogue-accent-strong);
  font-size: 13px;
}

.meta-row span {
  flex: 0 0 auto;
  text-transform: uppercase;
  color: var(--catalogue-accent-strong);
}

.meta-row strong {
  min-width: 0;
  color: #071528;
  font-weight: 900;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 18px;
  margin-top: 6px;
}

.card-section {
  margin: 0;
}

.section-label {
  margin: 0 0 3px;
  color: var(--catalogue-accent-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-section p,
.card-list {
  margin: 0;
  color: #26384f;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.card-list {
  display: grid;
  gap: 3px;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  white-space: normal;
}

.card-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-left: 0;
}

.card-list li::before {
  content: "•";
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.detail-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.item-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 13px 14px 12px;
  border-color: var(--catalogue-line);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.075);
}

.item-card::before {
  height: 6px;
}

.item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  margin: 2px 0 7px;
}

.item-card-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #071528;
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.item-card .card-manufacturer {
  position: static;
  flex: 0 0 auto;
  max-width: 118px;
  min-height: 24px;
  margin-top: 0;
  padding: 0 10px;
  background: var(--manufacturer-accent, var(--catalogue-accent));
  font-size: 10px;
}

.item-card .add-button {
  margin-top: 0;
  border-color: color-mix(in srgb, var(--manufacturer-accent, var(--catalogue-accent)) 45%, #ffffff);
  background: color-mix(in srgb, var(--manufacturer-accent, var(--catalogue-accent)) 13%, #ffffff);
  color: var(--manufacturer-strong, var(--catalogue-accent-strong));
}

.item-card .icon-add-button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.card-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: stretch;
}

.item-card .card-meta {
  margin: 0;
}

.item-card .meta-row {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.item-card .card-section + .card-section {
  margin-top: 1px;
}

.item-card .card-section p {
  font-size: 13px;
  line-height: 1.48;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-card .card-list {
  gap: 2px;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.38;
}

.item-card .card-list li {
  overflow: hidden;
  display: grid;
  text-overflow: ellipsis;
}

.item-title-link {
  color: inherit;
  text-decoration: none;
}

.item-title-link:hover {
  color: var(--manufacturer-accent, var(--catalogue-accent));
}

.seo-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--catalogue-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(23, 33, 27, 0.08);
}

.seo-kicker {
  margin: 0 0 8px;
  color: var(--catalogue-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seo-detail-panel h1 {
  margin: 0;
  color: #17211b;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.seo-summary {
  max-width: 840px;
  margin: 12px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.seo-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.seo-detail-grid div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.seo-detail-grid dt {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.seo-detail-grid dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.seo-section {
  margin-top: 16px;
}

.seo-section h2 {
  margin: 0 0 6px;
  color: var(--catalogue-accent-strong);
  font-size: 13px;
}

.seo-section p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.seo-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.is-industrial th:nth-child(1),
table.is-industrial td:nth-child(1) {
  width: 20%;
}

table.is-industrial th:nth-child(2),
table.is-industrial td:nth-child(2) {
  width: 13%;
}

table.is-industrial th:nth-child(3),
table.is-industrial td:nth-child(3),
table.is-industrial th:nth-child(4),
table.is-industrial td:nth-child(4) {
  width: 14%;
}

table.is-industrial th:nth-child(5),
table.is-industrial td:nth-child(5) {
  width: 17%;
}

table.is-industrial th:nth-child(6),
table.is-industrial td:nth-child(6) {
  width: 10%;
}

table.is-industrial th:nth-child(7),
table.is-industrial td:nth-child(7) {
  width: 12%;
}

table.is-cosmetics th:nth-child(1),
table.is-cosmetics td:nth-child(1) {
  width: 24%;
}

table.is-cosmetics th:nth-child(2),
table.is-cosmetics td:nth-child(2) {
  width: 16%;
}

table.is-cosmetics th:nth-child(3),
table.is-cosmetics td:nth-child(3),
table.is-cosmetics th:nth-child(4),
table.is-cosmetics td:nth-child(4) {
  width: 18%;
}

table.is-cosmetics th:nth-child(5),
table.is-cosmetics td:nth-child(5) {
  width: 12%;
}

table.is-cosmetics th:nth-child(6),
table.is-cosmetics td:nth-child(6) {
  width: 10%;
}

th,
td {
  padding: 12px 12px;
  border-bottom: 1px solid #edf0f8;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #fbfcff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  z-index: 1;
}

td {
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

tr.result-row {
  cursor: pointer;
}

tr.result-row:hover,
tr.result-row.is-selected {
  background: #f4f6ff;
}

.cell-main {
  font-weight: 900;
}

.add-button {
  min-height: 30px;
  padding: 0 10px;
  background: var(--accent-soft);
  border-color: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.add-button:hover {
  border-color: var(--brand);
}

.add-button.is-added {
  background: #edf0f7;
  border-color: var(--line-strong);
  color: var(--muted);
}

.request-panel {
  position: sticky;
  top: 14px;
  padding: 16px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

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

.request-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.cart-count {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
}

.cart-count.is-pulsing,
.mobile-cart-float.is-pulsing {
  animation: cartPulse 0.48s ease;
}

.cart-empty {
  padding: 10px 11px;
  border: 1px dashed #c8cde1;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 44px;
  gap: 7px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e1e5f1;
  border-radius: 8px;
  background: #fbfcff;
}

.cart-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.cart-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item input {
  min-height: 32px;
  padding: 0 8px;
}

.remove-button {
  min-width: 44px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fce8e6;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.request-form {
  display: grid;
  gap: 8px;
}

.request-form label:not(.file-button) {
  position: relative;
  display: block;
  padding-top: 8px;
}

.request-form label:not(.file-button) > span {
  position: absolute;
  top: 1px;
  left: 11px;
  z-index: 1;
  padding: 0 5px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.request-form input,
.request-form select,
.request-form textarea {
  min-height: 40px;
  padding-inline: 12px;
}

.request-form textarea {
  height: 70px;
  min-height: 70px;
  padding-top: 13px;
}

#websiteField {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

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

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

.file-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 900;
}

.file-button input {
  display: none;
}

.file-status,
.request-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.request-message.is-success {
  color: var(--brand-dark);
}

.request-message.is-error {
  color: var(--danger);
}

.submit-button {
  width: 100%;
  border: 0;
}

.mobile-cart-float {
  display: none;
}

.submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
}

.submit-overlay-card {
  min-width: 220px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  color: var(--brand-dark);
  text-align: center;
}

.submit-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: submitSpin 0.8s linear infinite;
}

@keyframes submitSpin {
  to {
    transform: rotate(360deg);
  }
}

.fly-add-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(111, 106, 79, 0.28);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  animation: flyToCart 0.64s cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

.icon-add-button.is-adding {
  animation: addButtonPop 0.32s ease;
}

.icon-add-button.is-guide-target {
  position: relative;
  z-index: 75;
  animation: guideTargetPulse 1.2s ease-in-out infinite;
  box-shadow:
    0 0 0 4px rgba(111, 106, 79, 0.14),
    0 10px 22px rgba(111, 106, 79, 0.22);
}

.add-guide {
  position: fixed;
  z-index: 74;
  width: min(288px, calc(100vw - 24px));
  padding: 13px 42px 13px 14px;
  border: 1px solid var(--brand-tint);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.add-guide[hidden] {
  display: none !important;
}

.add-guide.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.add-guide strong {
  display: block;
  margin: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.32;
}

.add-guide p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.42;
}

.add-guide-ok {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.add-guide-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.add-guide-arrow {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #fff;
  border-left: 1px solid var(--brand-tint);
  border-top: 1px solid var(--brand-tint);
  animation: guideArrowNudge 1.15s ease-in-out infinite;
}

.add-guide[data-placement="below"] .add-guide-arrow {
  top: -8px;
  left: calc(var(--guide-arrow-x, 50%) - 8px);
  transform: rotate(45deg);
}

.add-guide[data-placement="above"] .add-guide-arrow {
  bottom: -8px;
  left: calc(var(--guide-arrow-x, 50%) - 8px);
  transform: rotate(225deg);
}

.add-guide[data-placement="right"] .add-guide-arrow {
  left: -8px;
  top: calc(var(--guide-arrow-y, 50%) - 8px);
  transform: rotate(-45deg);
}

@keyframes flyToCart {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  55% {
    opacity: 0.95;
    transform: translate(calc(var(--fly-x) - 50%), calc(var(--fly-y) - 78%)) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translate(calc(var(--fly-x) - 50%), calc(var(--fly-y) - 50%)) scale(0.36);
  }
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes addButtonPop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.86);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes guideTargetPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(111, 106, 79, 0.14),
      0 10px 22px rgba(111, 106, 79, 0.22);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(111, 106, 79, 0.2),
      0 12px 28px rgba(111, 106, 79, 0.26);
  }
}

@keyframes guideArrowNudge {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 3px -3px;
  }
}

.load-row {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

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

  .request-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .app-shell {
    width: min(100% - 18px, 720px);
    padding-top: 12px;
  }

  .topbar {
    display: block;
    margin-bottom: 8px;
  }

  .title-row {
    gap: 8px;
  }

  h1 {
    font-size: 25px;
  }

  .headline-copy {
    margin-top: 5px;
    font-size: 13px;
  }

  .download-button {
    display: none;
  }

  .search-panel,
  .request-panel {
    padding: 10px;
  }

  .tabs {
    display: flex;
    padding: 3px;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .tab-button {
    flex: 1 1 0;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    text-align: center;
    background: transparent;
  }

  .tab-button strong {
    font-size: 13px;
  }

  .tab-button.is-active {
    color: #fff;
    background: var(--brand);
    box-shadow: none;
  }

  .filter-row,
  .form-grid,
  .file-row {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px;
    align-items: stretch;
  }

  .search-row .ghost-button {
    min-height: 40px;
    padding: 0 9px;
    font-size: 13px;
  }

  .search-row input {
    min-height: 40px;
  }

  .filter-row {
    gap: 9px;
  }

  .status-line {
    display: block;
    padding: 0 0 8px;
  }

  .status-bar {
    margin-bottom: 6px;
  }

  .mobile-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .mobile-view-tabs button {
    min-height: 38px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
  }

  .mobile-view-tabs button.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .detail-panel,
  .table-wrap {
    display: none;
  }

  .content-grid {
    display: block;
  }

  body[data-mobile-view="request"] .results-column,
  body[data-mobile-view="list"] .request-panel {
    display: none;
  }

  .grouped-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seo-detail-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .seo-detail-panel h1 {
    font-size: 30px;
  }

  .seo-detail-grid {
    grid-template-columns: 1fr;
  }

  .seo-detail-actions {
    min-width: 0;
  }

  .item-slot {
    gap: 8px;
  }

  .category-title-placeholder {
    display: none;
  }

  .category-title {
    min-height: 0;
    padding: 4px 0 0;
    gap: 10px;
  }

  .category-title span {
    font-size: 11px;
  }

  .category-title h3 {
    font-size: 20px;
  }

  .current-category-bar {
    gap: 9px;
    padding: 7px 0 8px;
    margin-bottom: 8px;
  }

  .current-category-bar span {
    font-size: 11px;
  }

  .current-category-bar h3 {
    font-size: 19px;
  }

  .item-card {
    background: #fff;
    min-height: 0;
    padding: 16px 14px 14px;
  }

  .item-card h2 {
    font-size: 18px;
  }

  .item-card-head {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 0;
    margin: 6px 0 10px;
  }

  .item-card-actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .item-card .card-manufacturer {
    max-width: 96px;
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .item-card .icon-add-button {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 17px;
  }

  .card-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .add-button {
    min-height: 29px;
    padding: 0 9px;
    font-size: 11px;
  }

  .request-panel {
    box-shadow: var(--shadow);
  }

  .request-header {
    margin-bottom: 8px;
  }

  .request-header h2 {
    font-size: 18px;
  }

  .cart-count {
    min-width: 30px;
    min-height: 30px;
  }

  .cart-empty {
    padding: 10px;
    font-size: 12px;
  }

  .cart-list {
    gap: 6px;
    margin-bottom: 8px;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) 52px 40px;
    gap: 6px;
    padding: 7px;
  }

  .cart-item input {
    min-height: 30px;
  }

  .request-form {
    gap: 8px;
  }

  .request-form label {
    gap: 4px;
  }

  .form-grid {
    gap: 8px;
  }

  textarea {
    min-height: 64px;
  }

  .request-form textarea {
    height: 62px;
    min-height: 62px;
  }

  .file-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .file-button {
    min-height: 36px;
    font-size: 12px;
  }

  .file-status,
  .request-message {
    font-size: 11px;
  }

  .submit-button {
    min-height: 40px;
  }

  .add-guide {
    width: min(268px, calc(100vw - 24px));
    padding: 12px 38px 12px 13px;
  }

  .add-guide strong {
    font-size: 12px;
  }

  .add-guide p {
    font-size: 11px;
  }

  .mobile-cart-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 16px 36px rgba(111, 106, 79, 0.28);
    font-weight: 950;
  }

  .mobile-cart-float span {
    min-width: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff;
    font-size: 12px;
  }

  .mobile-cart-float.has-items {
    background: var(--accent);
    box-shadow: 0 16px 36px rgba(111, 106, 79, 0.28);
  }

  body[data-mobile-view="request"] .mobile-cart-float {
    display: none;
  }
}
