:root {
  --black: #0c1110;
  --black2: #151a16;
  --green: #12231c;
  --green2: #1c3128;
  --green3: #536456;
  --gold: #c7a46a;
  --gold2: #a98246;
  --paper: #f4f2eb;
  --paper2: #ebe8de;
  --ink: #1b1a16;
  --muted: #77736a;
  --line: rgba(28, 34, 30, 0.13);
  --goldline: rgba(199, 164, 106, 0.34);
  --shadow: 0 32px 90px rgba(8, 12, 10, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 86px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 17, 16, 0.98);
  color: #f6f0df;
  border-bottom: 1px solid rgba(199, 164, 106, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-seal {
  width: 50px; height: 50px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}
.brand-text strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 4px;
}
.brand-text small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 4px;
  font-family: Georgia, serif;
}

.nav { display: flex; gap: 48px; }
.nav a {
  color: rgba(246, 240, 223, 0.78);
  position: relative;
}
.nav a.active, .nav a:hover { color: #fff; }
.nav a::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold);
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  transition: .2s;
}
.nav a.active::after, .nav a:hover::after { width: 28px; }

.top-actions { display: flex; align-items: center; gap: 18px; }
.selected-trigger {
  border: 0;
  background: transparent;
  color: rgba(246, 240, 223, 0.78);
}
.selected-trigger b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
}
.quote-link {
  height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gold);
  background: rgba(199, 164, 106, 0.08);
  color: #fff4d7;
}

/* 首屏：左侧文案 + 灯笼 + 背景做成一整张轮播图；右侧询价卡固定 */
.hero {
  position: relative;
  min-height: 660px;
  background: var(--black);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  color: #f6f0df;
  background-size: cover;
  background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,14,12,.90) 0%, rgba(18,35,28,.72) 48%, rgba(18,20,14,.36) 100%),
    radial-gradient(circle at 16% 48%, rgba(199,164,106,.42), transparent 22%);
}

.hero-image-a {
  background:
    radial-gradient(circle at 58% 48%, rgba(250,207,122,.36), transparent 14%),
    linear-gradient(90deg, #0b100e 0%, #15261f 58%, #554528 100%);
}
.hero-image-b {
  background:
    radial-gradient(circle at 61% 42%, rgba(250,207,122,.40), transparent 16%),
    linear-gradient(90deg, #12100d 0%, #263b31 56%, #6a4328 100%);
}
.hero-image-c {
  background:
    radial-gradient(circle at 58% 46%, rgba(250,207,122,.36), transparent 16%),
    linear-gradient(90deg, #0b1110 0%, #1f2d30 54%, #453a28 100%);
}

/* 模拟“整张大图”里的灯笼，正式版换成图片后这部分可以删 */
.hero-slide::after {
  content: "柒\A凡\A岐";
  white-space: pre;
  position: absolute;
  left: 56%;
  top: 82px;
  width: 250px;
  height: 440px;
  border-radius: 48% 48% 42% 42%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #111;
  font-size: 52px;
  line-height: 1.25;
  font-weight: 800;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 50% 34%, #fff1c6 0%, #e6c07a 44%, #9c7139 100%);
  box-shadow: 0 0 90px rgba(249, 205, 116, 0.22), 0 32px 60px rgba(0,0,0,.38);
}

.slide-content {
  position: relative;
  z-index: 2;
  width: min(780px, 52vw);
  padding: 132px 0 0 108px;
}
.slide-content p {
  margin: 0 0 18px;
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 15px;
}
.slide-content h1 {
  margin: 0;
  font-size: clamp(52px, 5.8vw, 92px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 2px;
}
.slide-content h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 30px 0;
  background: var(--gold);
}
.slide-content span {
  display: block;
  max-width: 610px;
  color: rgba(246,240,223,.72);
  font-size: 18px;
  line-height: 2;
}

/* 固定右侧已选卡，不参与轮播 */
.quote-panel {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 390px;
  padding: 26px;
  max-height: min(540px, calc(100vh - 150px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(28, 49, 40, .98), rgba(12, 19, 16, .98));
  border: 1px solid rgba(199, 164, 106, 0.30);
  color: #f5ecd8;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-head,
.qty-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quote-head small {
  color: var(--gold);
  letter-spacing: 3px;
}
.quote-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 500;
}
.quote-head button,
.selected-item button,
.counter button {
  border: 0;
  background: transparent;
  color: rgba(245,236,216,.70);
}

.selected-list {
  min-height: 150px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 6px;
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 20px 0;
}
.empty-selected {
  color: rgba(245,236,216,.52);
  border: 1px dashed rgba(199,164,106,.24);
  padding: 24px;
  text-align: center;
}
.selected-item {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}
.mini-thumb {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eee1c7;
  color: #111;
  font-weight: 800;
  overflow: hidden;
}
.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.qty-line {
  padding: 18px 0;
  border-top: 1px solid rgba(199,164,106,.18);
}
.counter {
  display: flex;
  gap: 14px;
  align-items: center;
}
.counter button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(199,164,106,.28);
}
.submit-quote {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #171006;
  background: linear-gradient(135deg, #d8bd82, #a77b3f);
  margin-bottom: 20px;
}
.quote-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  text-align: center;
  color: var(--gold);
  font-size: 13px;
}
.quote-benefits small {
  display: block;
  margin-top: 2px;
  color: rgba(245,236,216,.62);
}

.hero-dots {
  position: absolute;
  left: 108px;
  bottom: 42px;
  z-index: 9;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 38px;
  height: 3px;
  border: 0;
  background: rgba(246,240,223,.35);
}
.hero-dots button.active {
  background: var(--gold);
}

/* 图案库 */
.catalog {
  padding: 74px 70px 70px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper2) 100%);
}
.catalog-head {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 38px;
  align-items: end;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold2);
  letter-spacing: 4px;
}
.catalog h2,
.contact h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
}
.catalog-head p:last-child {
  color: var(--muted);
  line-height: 1.8;
}
.category-tabs {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.category-tabs button {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(28,34,30,.16);
  background: transparent;
  color: #4c4a43;
}
.category-tabs button.active,
.category-tabs button:hover {
  background: var(--green3);
  color: white;
  border-color: var(--green3);
}
.catalog-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
}
.series-panel {
  padding: 22px;
  background: rgba(255,255,255,.42);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: sticky;
  top: 106px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}
.series-panel strong {
  display: block;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 500;
}
.series-item {
  width: 100%;
  margin-bottom: 10px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(28,34,30,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.48);
  color: #423f38;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.series-item.active {
  background: var(--green3);
  color: white;
  border-color: var(--green3);
  box-shadow: 0 12px 28px rgba(83, 100, 86, .16);
}
.series-item:hover {
  border-color: rgba(83,100,86,.28);
  transform: translateX(2px);
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  align-items: start;
  align-content: start;
}
.pattern-card {
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(28,34,30,.10);
  border-radius: 8px;
  overflow: hidden;
  transition: .22s ease;
  align-self: start;
}
.pattern-card.is-selected {
  border-color: rgba(199, 164, 106, .72);
  box-shadow: 0 18px 38px rgba(167, 123, 63, .13);
}
.pattern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(20,22,18,.10);
  border-color: rgba(199,164,106,.42);
}
.pattern-art {
  height: auto;
  aspect-ratio: 1 / 1.05;
  margin: 14px;
  display: grid;
  place-items: center;
  border-radius: 48% 48% 42% 42%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #f5ead1, #d7b172);
  color: #111;
  font-size: 42px;
  line-height: 1.15;
  text-align: center;
  font-weight: 800;
}
.pattern-art.dark {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #314a3d, #111916);
  color: var(--gold);
}
.pattern-art.red {
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 50% 30%, #f7d99c, #bd4a36 58%, #7c241a 100%);
  color: #fff7df;
}
.pattern-card footer {
  border-top: 1px solid rgba(28,34,30,.08);
  padding: 14px 16px 16px;
}
.pattern-card strong {
  display: block;
}
.pattern-card span {
  color: var(--muted);
  font-size: 13px;
}
.pattern-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pattern-actions button,
.preview-info .add-button {
  flex: 1 1 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(28,34,30,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.34);
  color: #3d3a32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.pattern-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(199,164,106,.42);
}
.pattern-actions .add-button,
.preview-info .add-button {
  flex: .78 1 0;
  background: var(--green3);
  border-color: var(--green3);
  color: #fff;
}
.pattern-actions button:disabled,
.preview-info .add-button:disabled {
  cursor: default;
  background: rgba(199,164,106,.18);
  border-color: rgba(199,164,106,.28);
  color: var(--gold2);
}

/* 使用场景 */
.scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 70px;
  background: var(--paper);
}
.scene article {
  min-height: 230px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f6f0df;
  background:
    linear-gradient(180deg, rgba(12,17,16,.14), rgba(12,17,16,.80)),
    radial-gradient(circle at 50% 38%, rgba(255,217,143,.58), transparent 23%),
    linear-gradient(135deg, #17231d, #856835);
}
.scene article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(12,17,16,.14), rgba(12,17,16,.80)),
    radial-gradient(circle at 42% 30%, rgba(255,217,143,.58), transparent 24%),
    linear-gradient(135deg, #20120d, #5d3723);
}
.scene article:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(12,17,16,.14), rgba(12,17,16,.80)),
    radial-gradient(circle at 60% 34%, rgba(255,217,143,.58), transparent 24%),
    linear-gradient(135deg, #17231d, #3c5042);
}
.scene span {
  color: var(--gold);
}
.scene h3 {
  margin: 54px 0 10px;
  font-size: 30px;
  font-weight: 500;
}
.scene p {
  color: rgba(246,240,223,.72);
  line-height: 1.8;
}

/* 联系 */
.contact {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 48px;
  padding: 70px;
  background: #f7f5ee;
}
.contact p:last-child {
  color: var(--muted);
  line-height: 1.9;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(28,34,30,.16);
  background: rgba(255,255,255,.28);
  padding: 0 14px;
  outline: none;
  min-height: 48px;
}
.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  padding: 14px;
}
.contact-form button {
  grid-column: 1 / -1;
  height: 52px;
  border: 0;
  background: linear-gradient(135deg, #d8bd82, #a77b3f);
  color: #171006;
}

@media (max-width: 1180px) {
  .quote-panel { right: 32px; width: 340px; }
  .slide-content { width: 55vw; padding-left: 60px; }
  .hero-slide::after { left: 52%; opacity: .65; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 22px; }
  .nav, .selected-trigger { display: none; }
  .hero {
    min-height: 0;
    aspect-ratio: 1920 / 820;
  }
  .quote-panel { display: none; }
  .slide-content { width: auto; padding: 100px 26px 0; }
  .hero-slide::after { opacity: .18; left: 44%; }
  .catalog, .scene, .contact { padding: 44px 22px; }
  .catalog-head, .catalog-body, .scene, .contact { grid-template-columns: 1fr; }
  .category-tabs { justify-content: flex-start; }
  .series-panel {
    position: static;
    max-height: 210px;
    padding: 16px;
  }
  .series-panel strong {
    margin-bottom: 10px;
    font-size: 20px;
  }
  .series-panel #seriesList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .series-item {
    min-height: 42px;
    margin-bottom: 0;
    padding: 0 12px;
    font-size: 15px;
  }
  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pattern-art {
    aspect-ratio: 1 / .9;
    margin: 9px;
  }
  .pattern-art.image-art img {
    width: 118%;
    height: 118%;
  }
  .pattern-card footer {
    padding: 10px;
  }
  .pattern-card strong {
    font-size: 16px;
  }
  .pattern-card span,
  .pattern-card footer small {
    font-size: 12px;
  }
  .pattern-actions {
    gap: 6px;
    margin-top: 8px;
  }
  .pattern-actions button {
    min-height: 34px;
    padding: 0 6px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .brand-text strong { font-size: 22px; }
  .quote-link { display: none; }
  .slide-content h1 { font-size: 42px; }
  .catalog { padding-left: 14px; padding-right: 14px; }
  .catalog-head { margin-bottom: 18px; }
  .catalog h2 { font-size: 32px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .series-panel #seriesList {
    grid-template-columns: 1fr;
  }
  .pattern-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* ===== 正式接后台数据补充 ===== */
.hero-slide.has-image {
  background-size: cover;
  background-position: center;
}
@media (max-width: 900px) {
  .hero-slide.has-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #07100d;
  }
}
.hero-slide.has-image::after,
.hero-slide.has-image .slide-content {
  display: none;
}
.hero-slide.has-image::before {
  background: linear-gradient(90deg, rgba(9,14,12,.22) 0%, rgba(18,35,28,.08) 55%, rgba(18,20,14,.18) 100%);
}
.loading, .empty-box {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(28,34,30,.16);
  background: rgba(255,255,255,.34);
}
.series-panel #seriesList {
  display: grid;
  gap: 10px;
}
.pattern-art.image-art {
  border-radius: 8px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
}
.pattern-art.image-art img {
  width: 112%;
  height: 112%;
  object-fit: contain;
  display: block;
}
.contact-form output {
  grid-column: 1 / -1;
  color: var(--gold2);
  font-weight: 700;
}
.pattern-card footer small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.preview-open { overflow: hidden; }
.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.image-preview-modal.open { display: block; }
.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,17,16,.72);
}
.preview-dialog {
  position: absolute;
  top: 5vh;
  left: 50%;
  width: min(620px, calc(100vw - 44px));
  height: min(88vh, 820px);
  transform: translateX(-50%);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #f7f5ee;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(199,164,106,.36);
  box-shadow: 0 36px 90px rgba(0,0,0,.34);
}
.preview-close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(28,34,30,.12);
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-size: 24px;
}
.preview-image-wrap {
  min-height: 0;
  padding: 58px 34px 24px;
  display: grid;
  place-items: center;
  background: #fffdf8;
}
.preview-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.preview-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 46px;
  border-top: 1px solid rgba(28,34,30,.10);
  background: rgba(255,255,255,.58);
}
.preview-info strong {
  display: block;
  font-size: 22px;
}
.preview-info span {
  color: var(--muted);
}
.preview-info .add-button {
  min-width: 150px;
}

@media (max-width: 760px) {
  .series-panel {
    position: static;
    max-height: 260px;
  }
  .preview-dialog {
    top: 18px;
    width: calc(100vw - 28px);
    height: calc(100vh - 36px);
  }
  .preview-image-wrap {
    padding: 44px 18px 16px;
  }
  .preview-info {
    padding: 16px 18px;
    align-items: stretch;
    flex-direction: column;
  }
}

/* Mobile balance v41 */
@media (max-width: 900px) {
  body {
    padding-bottom: 118px;
  }

  .topbar {
    height: 68px;
    padding: 0 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-seal {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-width: 1px;
  }

  .brand-text strong {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .brand-text small {
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero {
    min-height: 0;
    aspect-ratio: 1920 / 720;
    background: var(--paper);
    overflow: hidden;
  }

  .hero-slide.has-image {
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--paper);
  }

  .hero-dots {
    left: 18px;
    bottom: 10px;
    gap: 7px;
  }

  .hero-dots button {
    width: 22px;
    height: 2px;
  }

  .quote-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    transform: none;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    width: auto;
    max-height: none;
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(8, 12, 10, .26);
  }

  .quote-head {
    min-width: 0;
  }

  .quote-head small {
    display: none;
  }

  .quote-head h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
  }

  .quote-head button {
    font-size: 12px;
  }

  .selected-list {
    grid-column: 1 / -1;
    min-height: 0;
    max-height: 38px;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .empty-selected {
    width: 100%;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1;
  }

  .selected-item {
    flex: 0 0 136px;
    grid-template-columns: 30px 1fr 22px;
    gap: 6px;
    padding: 4px;
    font-size: 11px;
  }

  .mini-thumb {
    width: 30px;
    height: 30px;
  }

  .qty-line {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 0;
    border-top: 0;
    gap: 6px;
    font-size: 12px;
  }

  .qty-line > span {
    display: none;
  }

  .counter {
    gap: 6px;
  }

  .counter button {
    width: 24px;
    height: 24px;
  }

  .submit-quote {
    grid-column: 1 / -1;
    height: 34px;
    margin: 0;
    border-radius: 10px;
    font-size: 13px;
  }

  .quote-benefits {
    display: none;
  }

  .catalog,
  .scene,
  .contact {
    padding: 28px 14px 32px;
  }

  .catalog-head {
    gap: 16px;
    margin-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .catalog h2,
  .contact h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .catalog-head p:last-child {
    font-size: 14px;
    line-height: 1.75;
  }

  .category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-tabs button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 13px;
    font-size: 14px;
  }

  .series-panel {
    max-height: 172px;
    padding: 12px;
    border-radius: 12px;
  }

  .series-panel strong {
    margin-bottom: 9px;
    font-size: 18px;
  }

  .series-panel #seriesList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .series-item {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 10px;
  }

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

  .pattern-card {
    border-radius: 12px;
  }

  .pattern-art {
    aspect-ratio: 1 / 1;
    margin: 8px;
  }

  .pattern-art.image-art img {
    width: 108%;
    height: 108%;
  }

  .pattern-card footer {
    padding: 9px 9px 10px;
  }

  .pattern-card strong {
    font-size: 15px;
  }

  .pattern-card span,
  .pattern-card footer small {
    font-size: 12px;
  }

  .pattern-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .pattern-actions button {
    min-height: 32px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .pattern-actions {
    grid-template-columns: 1fr 1fr;
  }
}
