:root {
  --bg: #f4f1ec;
  --panel: #ffffff;
  --ink: #111315;
  --muted: #697078;
  --line: #e2ded7;
  --brand: #ff5a1f;
  --brand-dark: #d93d0b;
  --forest: #12332f;
  --gold: #d6a85f;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(17, 19, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8f5ef 0, var(--bg) 420px),
    var(--bg);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}

textarea {
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.primary:hover {
  background: var(--brand-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 51, 47, 0.96);
  color: #fff;
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  border-radius: 4px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 34px;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  padding: 52px;
  background:
    linear-gradient(120deg, rgba(18, 51, 47, 0.96), rgba(18, 51, 47, 0.72)),
    url("https://images.unsplash.com/photo-1518459031867-a89b944bffe4?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto;
  gap: 10px;
  max-width: 680px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-search input,
.hero-search select {
  border: 0;
}

.hero-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.bag {
  position: absolute;
  border-radius: 30px 30px 18px 18px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.28);
}

.bag::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -48px;
  height: 86px;
  border: 12px solid rgba(255, 255, 255, 0.62);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.bag::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 48%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 36px 0 rgba(255, 255, 255, 0.18);
}

.bag-main {
  right: 22px;
  bottom: 54px;
  width: min(380px, 82%);
  height: 250px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #f25b2a, #92351f);
  transform: rotate(-4deg);
}

.bag-side {
  left: 8px;
  bottom: 96px;
  width: 250px;
  height: 170px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), transparent 35%),
    linear-gradient(135deg, #243b53, #101820);
  transform: rotate(7deg);
  opacity: 0.95;
}

.hero-card {
  position: absolute;
  right: 0;
  top: 30px;
  width: 156px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.hero-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  padding: 18px;
  background: #fff;
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.category-chips a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  color: #41474f;
}

.category-chips a.active,
.category-chips a:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.section-title,
.section-head,
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 18px;
}

.section-title h2,
.section-head h2,
.section-head h1,
.admin-content h1,
.content-page h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title a,
.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

.search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px auto;
  gap: 10px;
  width: min(560px, 100%);
}

.search.compact {
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-bottom: 18px;
}

.section-head .search.compact {
  margin-bottom: 0;
}

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

.product-card,
.content-page,
.login-card,
.admin-content,
.sidebar,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 90, 31, 0.18), transparent 34%),
    linear-gradient(135deg, #f3f0ea, #e2ded7);
}

.product-image img,
.gallery img,
.live-backup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-card-body {
  padding: 16px;
}

.card-topline,
.muted {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-topline {
  color: var(--brand-dark);
  font-weight: 800;
}

.product-card h2 {
  margin: 4px 0;
  font-size: 19px;
  line-height: 1.25;
}

.card-bottom,
.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--forest);
}

.empty-image,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-image {
  height: 100%;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.2), rgba(18, 51, 47, 0.1)),
    #eee9df;
}

.empty-image span {
  border: 1px solid rgba(18, 51, 47, 0.2);
  padding: 8px 12px;
  color: rgba(18, 51, 47, 0.56);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.empty-image.large {
  min-height: 420px;
}

.page-hero {
  border-radius: 8px;
  padding: 46px;
  background:
    linear-gradient(120deg, rgba(18, 51, 47, 0.95), rgba(18, 51, 47, 0.72)),
    url("https://images.unsplash.com/photo-1544966503-7cc5ac882d5f?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.compact-hero {
  min-height: 240px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: 26px;
}

.gallery {
  display: grid;
  gap: 12px;
}

.gallery img {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 19, 21, 0.08);
}

.detail-info {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.specs div {
  padding: 13px;
  background: #fbfaf7;
}

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

.specs dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.richtext {
  white-space: normal;
  color: #30363d;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.contact-card {
  padding: 14px;
}

.contact-card img {
  width: 110px;
  height: 110px;
  margin-top: 8px;
  object-fit: cover;
}

.content-page {
  padding: 32px;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  margin: 20px 0;
  background: #101820;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.live-backup {
  max-height: 620px;
  margin: 20px 0;
  border-radius: 8px;
}

.login-card {
  width: min(420px, 100%);
  margin: 70px auto;
  padding: 24px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checks label,
.content-page label {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.checks input,
.content-page input[type="checkbox"],
td input[type="checkbox"] {
  width: auto;
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.sidebar a,
.link-button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 4px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.sidebar a:hover,
.link-button:hover {
  background: #f5f2ec;
  color: var(--ink);
}

.admin-content {
  padding: 22px;
  overflow: hidden;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.metric-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
}

.metric-grid strong {
  display: block;
  font-size: 32px;
}

.metric-grid span {
  color: var(--muted);
}

.publishing-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search.compact.publishing-filter {
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  width: 100%;
  max-width: none;
  margin-bottom: 12px;
}

.publishing-batch {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto;
  gap: 10px;
  justify-content: start;
  margin-bottom: 12px;
}

.publishing-batch button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.publishing-table {
  min-width: 900px;
}

.publishing-checkbox {
  width: 18px;
  height: 18px;
}

.publishing-product {
  display: grid;
  grid-template-columns: 54px minmax(150px, 1fr);
  align-items: center;
  gap: 10px;
}

.publishing-product img,
.publishing-no-image {
  display: grid;
  width: 54px;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  object-fit: cover;
  place-items: center;
  background: #f1eee8;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.publishing-product span,
.publishing-table small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.publishing-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.publishing-status.is-on {
  background: #e8f7ee;
  color: #167744;
}

.publishing-status.is-off {
  background: #f1f2f4;
  color: #616872;
}

.publishing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.publishing-actions form {
  margin: 0;
}

.publishing-actions button {
  min-height: 36px;
  padding: 7px 10px;
}

.publishing-off-button {
  border-color: #f0a6a6;
  color: #a51d1d;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8f5ef;
  color: var(--muted);
  font-weight: 700;
}

td span {
  color: var(--muted);
}

.inline-create {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px auto;
  gap: 10px;
  margin-bottom: 18px;
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thumb {
  width: 120px;
}

.thumb img,
.inline-form img,
.preview {
  width: 120px;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.inline-form {
  display: inline-grid;
  gap: 8px;
  margin: 10px 10px 0 0;
}

.danger-zone {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.danger-zone button {
  border-color: var(--danger);
  color: var(--danger);
}

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

.media-upload-section,
.special-upload-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 16px;
  background: #fbfaf7;
}

.upload-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.upload-heading strong,
.special-checkbox {
  color: var(--ink);
  font-size: 16px;
}

.upload-heading span,
.special-upload-section > span {
  color: var(--muted);
  font-size: 13px;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.upload-preview-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  background: #fff;
}

.upload-preview-index {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  border-radius: 3px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
}

.upload-preview-actions,
.image-move-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}

.image-move-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-preview-actions button,
.image-move-actions button {
  min-height: 32px;
  padding: 5px 4px;
  font-size: 12px;
}

.upload-preview-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.upload-preview-grid img,
.special-image-preview {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: #eee;
}

.special-image-preview {
  width: 130px;
  aspect-ratio: 1 / 1;
}

.special-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.special-checkbox input {
  width: 20px;
  height: 20px;
}

.suffix-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.suffix-input input {
  border: 0;
  border-radius: 0;
}

.suffix-input span {
  padding: 0 12px;
  color: var(--muted);
  white-space: nowrap;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f4f2ed;
}

.rich-editor-toolbar button,
.rich-editor-upload {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid #d3cec5;
  border-radius: 3px;
  padding: 6px 10px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}

.rich-editor-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rich-editor-canvas {
  min-height: 280px;
  padding: 16px;
  color: #20242a;
  line-height: 1.7;
  outline: none;
}

.rich-editor-canvas img,
.richtext img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.product-save-button {
  justify-self: end;
  min-width: 150px;
}

.product-saving-status {
  justify-self: end;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.admin-product-thumb {
  display: block;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  object-fit: cover;
}

.sort-table,
.product-management-table {
  min-width: 980px;
}

.sort-table input[type="number"] {
  width: 110px;
}

.sort-table th,
.sort-table td,
.product-management-table th,
.product-management-table td {
  padding: 14px 12px;
  font-size: 14px;
  vertical-align: middle;
}

.product-management-table .publishing-product {
  display: block;
  width: 76px;
}

.product-management-table .publishing-product img,
.product-management-table .publishing-no-image {
  width: 76px;
  font-size: 11px;
}

.sort-order-input {
  width: 100px;
  min-height: 42px;
  text-align: center;
}

.sortable-heading {
  display: grid;
  gap: 2px;
  color: var(--muted);
  white-space: nowrap;
}

.sortable-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.sortable-heading small {
  font-size: 11px;
  font-weight: 500;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 4px;
}

.admin-pagination a {
  min-width: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.admin-pagination a.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.danger-button {
  border-color: var(--danger);
  color: var(--danger);
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.visitor-grids h2 {
  margin-top: 0;
}

.product-editor-form .video-admin video,
[data-video-preview] video {
  width: min(360px, 100%);
  max-height: 260px;
  background: #111;
}

@media (max-width: 900px) {
  .topbar,
  .section-head,
  .toolbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
    padding: 14px 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    width: min(100% - 20px, 1240px);
    margin-top: 16px;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-search,
  .search,
  .search.compact,
  .inline-create {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .trust-strip,
  .detail,
  .admin-shell,
  .grid.two,
  .metric-grid,
  .publishing-metrics {
    grid-template-columns: 1fr;
  }

  .publishing-batch {
    grid-template-columns: 1fr;
  }

  .search.compact.publishing-filter {
    grid-template-columns: 1fr;
  }

  .upload-preview-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .sidebar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar a,
  .sidebar form {
    flex: 0 0 auto;
  }

  .sidebar a,
  .sidebar .link-button {
    width: auto;
    white-space: nowrap;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .bag-main {
    right: 8px;
  }

  .bag-side {
    left: 0;
    width: 210px;
  }
}

/* Mobile marketplace layout inspired by the provided reference image. */
.shop-page {
  min-height: 100vh;
  background: #e9e6df;
}

.shop-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(430px, 100%);
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 18px;
  border: 0;
  background: linear-gradient(180deg, #0d4c8d, #183c6d);
  color: #fff;
  justify-content: center;
}

.shop-page .brand {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.shop-page .brand::before {
  display: none;
}

.shop-page .nav {
  display: none;
}

.shop-page .topbar {
  display: none;
}

.shop-page .page {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 10px 86px;
  background: #f7f4ee;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 18px 60px rgba(17, 19, 21, 0.16);
}

.market-header {
  position: relative;
  z-index: 1;
  margin: 0 -10px;
  padding: 8px 10px 0;
  background: #f7f4ee;
}

.manual-banner {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 0;
  background: #12332f;
}

.manual-banner img,
.manual-banner-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 535 / 129;
  object-fit: cover;
}

.manual-banner-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #13332f, #295b54);
}

.manual-banner::after {
  display: none;
}

.manual-banner-overlay {
  display: none;
}

.market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 0;
  align-items: center;
  height: 50px;
  margin-bottom: 8px;
  padding: 4px;
  border: 2px solid #ff5a1f;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.market-search input {
  height: 100%;
  border: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 22px;
  background: transparent;
  color: #666;
  font-size: 14px;
  outline: none;
}

.market-search input:focus {
  border: 0;
  box-shadow: none;
}

.market-search button {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: #ff5a1f;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.market-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 4px;
  background: transparent;
  scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar,
.special-row::-webkit-scrollbar {
  display: none;
}

.market-tabs a {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 7px 10px;
  border: 1px solid #c1c1c1;
  border-radius: 5px;
  background: #fff;
  color: #1f2933;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.market-tabs a.active {
  border-color: #ff5000;
  background: #ff5000;
  color: #fff;
}

.special-strip {
  position: relative;
  max-width: 100%;
  margin: 10px 0 12px;
  padding: 7px 0 2px;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.special-strip-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 20px;
  padding: 0 8px 7px 10px;
}

.special-strip-head h2 {
  margin: 0;
  max-width: 100%;
  color: #a0a0a0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.special-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 8px 8px;
  scrollbar-width: none;
}

.special-card {
  flex: 0 0 78px;
  text-align: center;
}

.special-thumb,
.special-thumb img,
.special-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
}

.special-thumb {
  overflow: hidden;
  background: #f0ede8;
}

.special-thumb img {
  object-fit: cover;
}

.special-placeholder {
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.special-card strong {
  display: block;
  margin-top: 6px;
  color: #e11d48;
  font-size: 12px;
  font-weight: 900;
}

.catalog-loader {
  padding: 14px 0 4px;
  color: #888;
  font-size: 12px;
  text-align: center;
}

.shop-page .product-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-page .product-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shop-page .product-card:hover {
  transform: none;
  box-shadow: none;
}

.shop-page .product-image {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: #f0ede8;
}

.shop-page .product-image img {
  border-radius: 8px;
}

.shop-page .image-badge {
  left: 6px;
  top: 6px;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  font-size: 10px;
}

.shop-page .product-card-body {
  padding: 7px 2px 6px;
}

.shop-page .product-card h2 {
  display: -webkit-box;
  min-height: 20px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #707070;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.shop-page .card-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 27% minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: 100%;
  height: 31px;
  min-height: 31px;
  padding: 0;
  border-radius: 6px;
  background: transparent url("/images/price-bar-clean.png?v=20260719") center / 100% 100% no-repeat;
  overflow: hidden;
}

.shop-page .card-bottom::before {
  display: none;
}

.shop-page .price {
  position: relative;
  z-index: 2;
  height: 31px;
  min-height: 31px;
  padding: 0 4px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 31px;
  text-align: center;
}

.shop-page .card-model {
  min-width: 0;
  padding: 0 8px 0 14px;
  overflow: hidden;
  color: #444;
  font-size: 13px;
  font-weight: 900;
  line-height: 31px;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
}

.bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(430px, 100%);
  height: 64px;
  transform: translateX(-50%);
  border-top: 1px solid #d7d1c7;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(17, 19, 21, 0.12);
}

.wide-preview {
  width: min(535px, 100%);
  max-height: 160px;
  object-fit: contain;
  background: #f7f4ee;
}

.bottom-tabbar a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #6b6f76;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.bottom-tabbar a.active {
  color: #d60000;
}

.tab-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-tabbar strong {
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0;
}

.shop-page .page-hero,
.shop-page .content-page,
.shop-page .detail-info,
.shop-page .contact-card,
.shop-page .login-card {
  border-radius: 0;
  box-shadow: none;
}

.shop-page .detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 10px;
}

.shop-page .gallery img {
  border-radius: 0;
}

.shop-page .detail-info {
  padding: 18px;
}

.detail-page {
  padding-top: 6px;
}

.detail-stage {
  position: relative;
  overflow: hidden;
  background: #e7e3db;
  margin: 0 -10px;
}

.detail-back {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.media-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.media-track::-webkit-scrollbar {
  display: none;
}

.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.media-slide img,
.media-slide video {
  display: block;
  width: 100%;
  object-fit: cover;
}

.media-slide img,
.media-slide .empty-image.large {
  aspect-ratio: 3 / 4;
}

.media-slide .empty-image.large {
  width: 100%;
  min-height: 0;
}

.media-slide video {
  aspect-ratio: 4 / 3;
}

.media-counter {
  position: absolute;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.media-counter {
  bottom: 12px;
}

.detail-summary {
  padding: 12px 4px 0;
}

.detail-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-price-strip span {
  color: #ff5a1f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.detail-price-strip .button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}

.detail-similar-button {
  min-width: 104px;
  padding-inline: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.detail-summary h1 {
  margin: 0;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.spec-panel {
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: #d9d3c8;
}

.spec-item {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px 11px;
  border: 0;
  background: #f3f1ed;
}

.spec-label {
  color: #969696;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.spec-item strong {
  color: #111315;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.detail-summary .richtext {
  font-size: 16px;
  line-height: 1.7;
}

.detail-related {
  margin-top: 18px;
}

.detail-related h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 22px;
}

.video-admin {
  display: grid;
  gap: 8px;
  align-items: start;
}

.video-admin video {
  width: min(360px, 100%);
  max-height: 240px;
  background: #111;
}

.video-feed {
  height: calc(100vh - 64px);
  margin: 0 -10px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  background: #050505;
  scrollbar-width: none;
}

.video-feed::-webkit-scrollbar {
  display: none;
}

.video-feed-slide {
  position: relative;
  min-height: calc(100vh - 64px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #050505;
}

.feed-video {
  display: block;
  width: 100%;
  height: calc(100vh - 64px);
  object-fit: cover;
  background: #111;
}

.feed-control-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  background: rgba(0, 0, 0, 0.14);
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.feed-control-layer.is-visible {
  opacity: 1;
}

.feed-control-layer button {
  pointer-events: auto;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: none;
}

.feed-control-cluster {
  position: absolute;
  left: 50%;
  top: 46%;
  display: flex;
  align-items: center;
  gap: 22px;
  transform: translate(-50%, -50%);
}

.feed-control-button {
  width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  font-weight: 900;
}

.feed-toggle-button {
  width: 66px;
  height: 66px;
  min-height: 66px;
  font-size: 25px;
}

.feed-mute-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  padding: 0;
  font-size: 19px;
}

.video-feed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 70px 14px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 72%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

.video-feed-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.video-feed-overlay strong {
  display: block;
  margin-top: 8px;
  color: #ffdf4f;
  font-size: 22px;
  line-height: 1;
}

.video-feed-model {
  margin-bottom: 5px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 900;
}

.video-product-button {
  pointer-events: auto;
  min-width: 108px;
  border-radius: 999px;
  padding: 11px 14px;
  background: #ff5a1f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.thumb-form {
  display: grid;
  gap: 6px;
}

@media (min-width: 700px) {
  .shop-page {
    padding: 20px 0;
  }

  .shop-page .topbar {
    border-radius: 10px 10px 0 0;
  }

  .shop-page .page {
    border-radius: 0 0 10px 10px;
  }

  .bottom-tabbar {
    bottom: 20px;
    border-radius: 0 0 10px 10px;
  }
}
