﻿/* v140: layout guardrail for scaling deformation. Do not move modules; only constrain ratios, grid counts and overflow. */

* { box-sizing: border-box; }

.station {
  grid-template-rows: auto clamp(120px, 12dvh, 148px) minmax(0, 1fr) clamp(42px, 5dvh, 54px) !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.trust-carousel {
  height: clamp(120px, 12dvh, 148px) !important;
  min-height: clamp(120px, 12dvh, 148px) !important;
  max-height: clamp(120px, 12dvh, 148px) !important;
  overflow: hidden !important;
}

.hero-card {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(250px, 38%) minmax(0, 1fr) !important;
  align-items: center !important;
  overflow: hidden !important;
}

.hero-visual,
.hero-visual img {
  height: clamp(88px, 10dvh, 124px) !important;
  min-height: 0 !important;
  max-height: 124px !important;
  width: 100% !important;
  aspect-ratio: 16 / 5 !important;
  object-fit: cover !important;
  object-position: center !important;
  overflow: hidden !important;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(20px, 1.85vw, 30px) !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 2 !important;
}

.hero-copy p {
  font-size: clamp(12px, .9vw, 13px) !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 2 !important;
}

.center-panel,
.panel-content,
.catalog-workbench,
.company-intro-strip,
.sample-hub {
  min-width: 0 !important;
  max-width: 100% !important;
}

.company-module-grid,
.industry-entry-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.2vw, 18px) !important;
  align-items: stretch !important;
}

.company-module-grid article,
.industry-entry-grid article,
.sample-group,
.catalog-card,
.seo-grid article {
  min-width: 0 !important;
  overflow: hidden !important;
}

.company-module-grid img,
.industry-entry-grid img,
.sample-mini-grid img,
.visual-sample-strip img,
.side-sample-strip img,
.catalog-card .catalog-art,
.catalog-card .catalog-art .image-zoom-trigger,
.catalog-card .catalog-art img,
.seo-grid article img {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #fff !important;
}

.company-module-grid img,
.industry-entry-grid img {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1vw, 18px) !important;
  align-items: stretch !important;
}

.catalog-card {
  min-height: auto !important;
  height: auto !important;
}

.catalog-card .catalog-art,
.catalog-card .catalog-art .image-zoom-trigger,
.catalog-card .catalog-art img {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

.sample-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.sample-mini-grid button {
  min-width: 0 !important;
  overflow: hidden !important;
}

.sample-mini-grid img,
.visual-sample-strip img,
.side-sample-strip img {
  height: auto !important;
  min-height: 0 !important;
}

.seo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.seo-category-hero img,
.seo-grid article img {
  object-fit: cover !important;
  padding: 0 !important;
}

.sticky-footer {
  min-height: clamp(42px, 5dvh, 54px) !important;
  height: clamp(42px, 5dvh, 54px) !important;
  max-height: clamp(42px, 5dvh, 54px) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

.sticky-footer * {
  max-height: 100% !important;
}

@media (max-width: 1180px) {
  .catalog-grid,
  .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .station {
    max-height: none !important;
    overflow: visible !important;
    grid-template-rows: auto auto auto auto !important;
  }

  .trust-carousel {
    height: auto !important;
    min-height: 220px !important;
    max-height: none !important;
  }

  .hero-card {
    grid-template-columns: 1fr !important;
    min-height: 220px !important;
  }

  .hero-visual,
  .hero-visual img {
    height: 120px !important;
    aspect-ratio: 16 / 6 !important;
  }

  .company-module-grid,
  .industry-entry-grid,
  .catalog-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sample-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .company-module-grid,
  .industry-entry-grid,
  .catalog-grid,
  .seo-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v141 side navigation collision fix: keep three preview thumbnails fully inside the left rail. */
.main-workspace {
  grid-template-columns: clamp(190px, 13vw, 224px) minmax(0, 1fr) clamp(330px, 27vw, 500px) !important;
  column-gap: 0 !important;
}

.left-nav {
  position: relative !important;
  z-index: 6 !important;
  min-width: 190px !important;
  overflow-x: hidden !important;
  contain: paint !important;
}

.preview-panel,
.ai-panel {
  position: relative !important;
  z-index: 1 !important;
}

.side-accordion-item,
.side-accordion-item[open] {
  max-width: 100% !important;
  overflow: hidden !important;
}

.side-sample-strip {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 0 6px 10px !important;
  overflow: hidden !important;
}

.side-sample-strip img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

@media (max-width: 1180px) {
  .main-workspace {
    grid-template-columns: clamp(178px, 16vw, 206px) minmax(0, 1fr) clamp(300px, 28vw, 420px) !important;
  }
  .left-nav { min-width: 178px !important; }
}

@media (max-width: 900px) {
  .main-workspace {
    grid-template-columns: 1fr !important;
  }
  .left-nav {
    min-width: 0 !important;
    contain: none !important;
  }
}

/* v142 product card cleanup: remove 3 small thumbnails, keep one large square main image. */
.visual-sample-strip {
  display: none !important;
}

.visual-landing-card,
.catalog-card,
.seo-grid article {
  display: flex !important;
  flex-direction: column !important;
}

.visual-landing-card figure,
.inline-product-card figure,
.catalog-card .catalog-art,
.seo-grid article img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #fff !important;
}

.visual-landing-card figure img,
.inline-product-card figure img,
.catalog-card .catalog-art img,
.seo-grid article img,
.catalog-card .catalog-art .image-zoom-trigger {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
}

.catalog-grid,
.seo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.catalog-load-more-wrap {
  grid-column: 1 / -1 !important;
}

@media (max-width: 900px) {
  .catalog-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .catalog-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-content,
  .seo-grid article {
    font-size: 12px !important;
  }
}

/* v143 image-first catalog: remove long explanations and let product photos dominate. */
.catalog-card .catalog-content > p,
.catalog-card .catalog-meta,
.catalog-card .catalog-fitments,
.catalog-card .catalog-colors,
.catalog-card .catalog-spec-frame,
.seo-grid article p,
.visual-landing-card p {
  display: none !important;
}

.catalog-card .catalog-content {
  padding: 10px 10px 12px !important;
  gap: 8px !important;
}

.catalog-title-row {
  align-items: center !important;
  min-height: 34px !important;
}

.catalog-title-row h4 {
  font-size: 13px !important;
  line-height: 1.2 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.catalog-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}

.catalog-actions .catalog-subtle,
.catalog-actions [data-action="product-ask"] {
  display: none !important;
}

.catalog-actions [data-action="add-to-inquiry-list"],
.catalog-actions .catalog-wa-btn {
  width: 100% !important;
  min-height: 34px !important;
  justify-content: center !important;
  font-size: 12px !important;
}

.seo-grid h2 {
  font-size: 14px !important;
  line-height: 1.25 !important;
  min-height: 36px !important;
}

/* v144 side gallery + home hero/category guardrail.
   Left navigation galleries are now populated from industry-isolated asset pools. */
.side-sample-strip[data-side-gallery-version="20260728-v144-all-industry-assets"] {
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 6px 10px !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

.side-sample-strip[data-side-gallery-version="20260728-v144-all-industry-assets"] img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: zoom-in !important;
}

.company-module-grid.industry-entry-grid,
.industry-entry-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.company-module-grid.industry-entry-grid article,
.industry-entry-grid article {
  min-width: 0 !important;
}

.company-module-grid.industry-entry-grid img,
.industry-entry-grid img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}

.hero-card .hero-visual {
  aspect-ratio: 16 / 5 !important;
  overflow: hidden !important;
}

.hero-card .hero-visual img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 5 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .company-module-grid.industry-entry-grid,
  .industry-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .side-sample-strip[data-side-gallery-version="20260728-v144-all-industry-assets"] {
    max-height: 220px !important;
  }
}

/* v145: selected industry assets must be visible in the main content area.
   Left nav remains an entry list; the center panel carries the readable image grid. */
.industry-main-gallery {
  margin: 12px 0 16px !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

.industry-main-gallery[hidden] {
  display: none !important;
}

.industry-main-gallery-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  color: #172033 !important;
}

.industry-main-gallery-head strong {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.industry-main-gallery-head span {
  color: #64748b !important;
  font-size: 12px !important;
}

.industry-main-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.industry-main-gallery-item {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  cursor: zoom-in !important;
}

.industry-main-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform .18s ease !important;
}

.industry-main-gallery-item:hover img {
  transform: scale(1.035) !important;
}

/* v151: furniture top reference must use real catalog size/material data, not random product images;
   fabric swatch photos are enlarged inside square panels to reduce dead white space. */
.furniture-reference-strip {
  display: grid !important;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
}

.furniture-reference-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.furniture-reference-copy strong {
  color: #10243c !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.furniture-reference-copy span {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.furniture-data-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.furniture-data-table {
  width: 100% !important;
  min-width: 680px !important;
  border-collapse: collapse !important;
  font-size: 11px !important;
  text-align: left !important;
}

.furniture-data-table th,
.furniture-data-table td {
  padding: 7px 8px !important;
  border-bottom: 1px solid rgba(15, 23, 42, .07) !important;
  color: #334155 !important;
  line-height: 1.3 !important;
  vertical-align: top !important;
}

.furniture-data-table th {
  color: #10243c !important;
  background: #eef3f8 !important;
  font-weight: 800 !important;
}

.furniture-data-table tr:last-child td {
  border-bottom: 0 !important;
}

.industry-main-gallery[data-industry="fabric"] .industry-main-gallery-item,
.catalog-card[data-industry="fabric"] .catalog-art,
.catalog-card[data-industry="fabric"] .catalog-art .image-zoom-trigger {
  overflow: hidden !important;
}

.industry-main-gallery[data-industry="fabric"] .industry-main-gallery-item img,
.catalog-card[data-industry="fabric"] .catalog-art img {
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.14) !important;
  transform-origin: center !important;
}

.industry-main-gallery[data-industry="fabric"] .industry-main-gallery-item:hover img,
.catalog-card[data-industry="fabric"]:hover .catalog-art img {
  transform: scale(1.18) !important;
}

@media (max-width: 1100px) {
  .industry-main-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .industry-main-gallery {
    padding: 10px !important;
  }

  .industry-main-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .furniture-reference-strip {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
  }

  .furniture-data-table {
    min-width: 620px !important;
  }
}

/* v154 customer-audit UX patch: keep the approved three-column console layout, but reduce first-screen obstruction and chat clutter. */
.station {
  grid-template-rows: auto clamp(96px, 10dvh, 126px) minmax(0, 1fr) clamp(48px, 5.8dvh, 60px) !important;
}

.trust-carousel {
  height: clamp(96px, 10dvh, 126px) !important;
  min-height: clamp(96px, 10dvh, 126px) !important;
  max-height: clamp(96px, 10dvh, 126px) !important;
}

.hero-visual,
.hero-visual img {
  height: clamp(72px, 8dvh, 104px) !important;
  max-height: 104px !important;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(18px, 1.55vw, 25px) !important;
  line-height: 1.12 !important;
}

.hero-copy p {
  font-size: clamp(11px, .82vw, 12px) !important;
  line-height: 1.3 !important;
}

.main-workspace {
  grid-template-columns: clamp(172px, 12vw, 204px) minmax(0, 1fr) clamp(330px, 24vw, 440px) !important;
}

.ai-panel {
  min-height: 0 !important;
  overflow: hidden !important;
}

.ai-panel .messages {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
}

.ai-support-strip {
  display: none !important;
}

.lead-privacy-note {
  margin: 4px 10px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.quick-replies {
  gap: 5px !important;
  padding: 6px 8px !important;
  max-height: 42px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
}

.quick-replies button {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

.input-zone {
  padding: 6px 8px !important;
  gap: 6px !important;
}

.input-zone input,
.input-zone textarea {
  min-height: 36px !important;
  font-size: 12px !important;
}

.input-zone button {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

.attach-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sticky-footer {
  min-height: clamp(48px, 5.8dvh, 60px) !important;
  height: clamp(48px, 5.8dvh, 60px) !important;
  max-height: clamp(48px, 5.8dvh, 60px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
}

.sticky-footer a,
.sticky-footer button,
.sticky-footer span {
  font-size: 11px !important;
  line-height: 1.15 !important;
  max-height: none !important;
}

@media (max-width: 1180px) {
  .main-workspace {
    grid-template-columns: clamp(164px, 15vw, 190px) minmax(0, 1fr) clamp(300px, 27vw, 400px) !important;
  }
}

@media (max-width: 900px) {
  .station {
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .trust-carousel {
    min-height: 168px !important;
    height: auto !important;
    max-height: none !important;
  }
  .ai-support-strip {
    display: none !important;
  }
}

/* v156 final opening polish: keep approved left-nav / center / AI desk layout; only improve comfort, hierarchy and SEO-facing polish. */
:root {
  --vobom-v156-ink: #102033;
  --vobom-v156-muted: #5b6b80;
  --vobom-v156-line: rgba(15, 23, 42, 0.1);
  --vobom-v156-panel: rgba(255, 255, 255, 0.97);
  --vobom-v156-accent: #0f766e;
  --vobom-v156-navy: #10243e;
}

html,
body {
  background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%) !important;
  color: var(--vobom-v156-ink) !important;
}

.station {
  background: transparent !important;
}

.main-workspace {
  column-gap: 8px !important;
  padding-inline: 8px !important;
}

.site-topbar,
.trust-carousel,
.left-nav,
.preview-panel,
.ai-panel,
.sticky-footer {
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08) !important;
}

.left-nav,
.preview-panel,
.ai-panel {
  background: var(--vobom-v156-panel) !important;
  border: 1px solid var(--vobom-v156-line) !important;
  border-radius: 16px !important;
}

.trust-carousel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.hero-card {
  background:
    radial-gradient(circle at 16% 20%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, #091522 0%, #12233a 100%) !important;
}

.hero-copy span {
  color: #9ee8dd !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.hero-copy h1,
.hero-copy h2 {
  letter-spacing: -0.03em !important;
}

.catalog-card,
.sample-card,
.industry-main-gallery-item,
.service-grid article,
.trust-proof-grid article,
.seo-intent-panel,
.seo-knowledge {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

.catalog-card:hover,
.sample-card:hover,
.industry-main-gallery-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
}

.catalog-card .catalog-art,
.sample-card figure,
.industry-main-gallery-item {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.industry-main-gallery {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.industry-main-gallery-head strong,
.catalog-card h3,
.sample-card h4 {
  color: var(--vobom-v156-ink) !important;
}

.industry-main-gallery-head span,
.catalog-card p,
.sample-card p,
.seo-intent-panel p {
  color: var(--vobom-v156-muted) !important;
}

.ai-panel .msg.ai .bubble,
.ai-panel .quick-chat-note {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.ai-panel .msg.user .bubble {
  background: #e7f8ef !important;
  color: #073b2a !important;
}

.chat-input-row,
.rfq-inline-form,
.bottom-action,
.sticky-footer {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

button,
.catalog-cta,
.topbar-wa,
.submit-purchase-btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease !important;
}

button:hover,
.catalog-cta:hover,
.topbar-wa:hover,
.submit-purchase-btn:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--vobom-v156-accent) !important;
  outline-offset: 2px !important;
}

@media (min-width: 1280px) {
  .industry-main-gallery-grid,
  .catalog-grid,
  .seo-grid {
    gap: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
