/*
 * Tropical Stone Platform PC17 — progressive stabilization
 * Loaded after PC16. These rules preserve the approved structure while
 * correcting metadata filtering, proportional image frames, and mobile UX.
 */

/* Full-slab and detail references remain complete and undistorted. */
.media-grid .media-card .ts-image-frame {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.media-grid .media-card {
  min-width: 0;
}

.media-grid .media-card:nth-child(1) .ts-image-frame {
  background: #080808 !important;
}

.media-grid .media-card:nth-child(2) .ts-image-frame {
  background: #e8e4dc !important;
}

.media-grid .media-card:nth-child(1) .ts-image-frame img,
.media-grid .media-card:nth-child(2) .ts-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: transparent !important;
}

/* Collection cards use the detail photograph without destructive cropping. */
.material-card .mat-img {
  background: #e8e4dc !important;
}

.material-card .mat-img .primary-material {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.material-card .mat-img .hover-inspiration {
  object-fit: cover !important;
  transform: none !important;
}

/* Analyzed inspiration database */
.pc17-inspiration-shell {
  margin-top: 4px;
}

.pc17-application-row {
  margin: 0 0 12px !important;
}

.pc17-inspiration-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(5, minmax(130px, 0.75fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--ts-line);
  background: #fff;
}

.pc17-inspiration-toolbar label {
  display: grid;
  gap: 5px;
}

.pc17-inspiration-toolbar label > span {
  color: var(--ts-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pc17-inspiration-toolbar input,
.pc17-inspiration-toolbar select,
.pc17-inspiration-toolbar button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--ts-line);
  border-radius: 0;
  background: #fff;
  color: var(--ts-ink);
  font: inherit;
  font-size: 11px;
}

.pc17-inspiration-toolbar button,
#pc17LoadMore {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc18-collection-sort {
  display: grid;
  min-width: 175px;
  gap: 5px;
}

.pc18-collection-sort > span {
  color: var(--ts-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pc18-collection-sort select {
  width: 100%;
  min-height: 40px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--ts-line);
  border-radius: 0;
  background: #fff;
  color: var(--ts-ink);
  font: inherit;
  font-size: 11px;
}

.pc18-active-filter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 3px 5px 3px 0;
  padding: 5px 9px;
  border: 1px solid var(--ts-line);
  background: #fff;
  color: var(--ts-ink);
  font-size: 10px;
  text-transform: capitalize;
}

.pc17-result-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0;
  color: var(--ts-muted);
  font-size: 12px;
}

.pc17-result-line strong {
  color: var(--ts-ink);
  font-size: 22px;
  font-weight: 500;
}

.pc17-inspiration-card .image {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.pc17-inspiration-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc17-inspiration-card .pc17-material-meta,
.pc17-inspiration-card .pc17-scene-meta {
  display: block !important;
  margin: 0 0 5px !important;
}

.pc17-inspiration-card .pc17-scene-meta {
  color: var(--ts-muted);
  font-size: 11px !important;
}

.pc17-view-material {
  display: inline-block;
  margin-top: 7px;
  color: var(--ts-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.pc17-load-row {
  display: flex;
  justify-content: center;
  margin: 34px 0 10px;
}

#pc17LoadMore {
  min-width: 180px;
  padding: 11px 18px;
  border: 1px solid var(--ts-ink);
  background: #fff;
}

#pc17LoadMore[hidden],
.pc17-no-results[hidden] {
  display: none !important;
}

/* Actual PDF sharing control added by the PC17 PDF module. */
.pc17-pdf-status {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100001;
  max-width: min(520px, calc(100vw - 28px));
  padding: 11px 15px;
  transform: translateX(-50%);
  background: #191815;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
}

.material-share-panel {
  max-width: min(480px, calc(100vw - 24px)) !important;
  max-height: min(430px, calc(100dvh - 24px));
  overflow-y: auto;
  padding: 10px !important;
  gap: 7px !important;
}

.material-share-panel button {
  min-height: 38px !important;
  padding: 7px 10px !important;
  font-size: 11px !important;
}

.material-share-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 6px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material-share-heading .material-share-close {
  width: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-color: #c7a55b !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.material-images-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.material-images-heading-row > :first-child {
  margin: 0 !important;
}

.material-images-back {
  flex: 0 0 auto;
  text-decoration: none;
}

.search-result.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 20px;
  align-items: center;
}

.search-result-copy {
  min-width: 0;
}

.search-result-thumb {
  width: 148px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f0eee8;
  box-shadow: 0 7px 20px rgba(20, 18, 14, 0.15);
}

@media (max-width: 1100px) {
  .pc17-inspiration-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ts-mobile-toggle {
    display: block !important;
    margin-left: auto !important;
    flex: 0 0 auto;
  }

  .ts-nav-inner {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .pc17-inspiration-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .pc17-inspiration-toolbar .pc17-search {
    grid-column: 1 / -1;
  }

  .material-page-stable .material-hero .actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .material-page-stable .material-hero .actions > * {
    width: 100%;
  }

  .project-float {
    left: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px);
    padding: 10px 14px !important;
  }

  .material-share-panel {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: calc(100vw - 24px) !important;
    padding: 9px !important;
  }

  .material-images-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-result.has-image {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
  }

  .search-result-thumb {
    width: 104px;
  }

  .material-share-panel button {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .pc17-inspiration-toolbar {
    grid-template-columns: 1fr;
  }

  .pc17-inspiration-toolbar .pc17-search {
    grid-column: auto;
  }

  .pc18-collection-sort {
    width: 100%;
  }
}

/* PC20 TP0040: interactive project list and availability workspace */
:root {
  --ts-project-gold: #c79535;
  --ts-project-gold-dark: #8d6721;
  --ts-project-ink: #11110f;
  --ts-project-paper: #fbfaf7;
  --ts-project-line: #ddd5c7;
}

/* PC22 TP0042: one filter language and proportional detail-image frames */
.filter-panel.ts-stable-filters,
.pc17-inspiration-shell {
  max-width: none;
}

.filter-panel.ts-stable-filters {
  display: block !important;
  padding: 12px !important;
  border: 1px solid var(--ts-line) !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(28, 23, 16, 0.06) !important;
}

.filter-panel.ts-stable-filters > * + * {
  margin-top: 10px;
}

.filter-panel.ts-stable-filters .filter-row.multi {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
}

.filter-panel.ts-stable-filters #materialSearch {
  flex: 1 1 200px;
  width: auto !important;
  min-width: 210px;
  min-height: 40px !important;
  padding: 8px 11px !important;
  border: 1px solid var(--ts-line) !important;
  background: #fff !important;
  font-size: 11px !important;
}

.filter-panel.ts-stable-filters .filter-group {
  flex: 1 1 120px;
  min-width: 116px;
  min-height: 40px !important;
  border: 1px solid var(--ts-line) !important;
}

.filter-panel.ts-stable-filters .filter-group > summary {
  min-height: 40px !important;
  padding: 9px 11px !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
}

.filter-panel.ts-stable-filters .filter-dimension-row {
  display: grid !important;
  flex: 1 1 196px;
  grid-template-columns: repeat(2, minmax(90px, 1fr)) !important;
  gap: 8px !important;
  width: auto !important;
}

.filter-panel.ts-stable-filters .filter-number,
.pc18-collection-sort,
.pc17-inspiration-toolbar label {
  display: grid !important;
  gap: 5px !important;
}

.filter-panel.ts-stable-filters .filter-number > span,
.pc18-collection-sort > span,
.pc17-inspiration-toolbar label > span {
  color: var(--ts-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.filter-panel.ts-stable-filters .filter-number input,
.pc18-collection-sort select,
.pc17-inspiration-toolbar input,
.pc17-inspiration-toolbar select,
.pc17-inspiration-toolbar button {
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid var(--ts-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ts-ink) !important;
  font-size: 11px !important;
}

.filter-panel.ts-stable-filters .pc18-collection-sort {
  flex: 1 1 150px;
}

.filter-panel.ts-stable-filters .filter-reset {
  flex: 0 0 auto;
  min-height: 40px !important;
  padding: 8px 13px !important;
}

.pc17-inspiration-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 8px !important;
  padding: 12px !important;
  box-shadow: 0 10px 28px rgba(28, 23, 16, 0.06);
}

.pc17-inspiration-toolbar label {
  flex: 1 1 145px;
  min-width: 140px;
}

.pc17-inspiration-toolbar label:first-child {
  flex-basis: 230px;
}

.pc17-inspiration-toolbar button {
  flex: 0 0 auto;
  width: auto !important;
  padding-inline: 13px !important;
}

.material-card .mat-img.ts-proportional-detail-frame,
.media-grid .media-card:nth-child(2) .ts-image-frame.ts-proportional-detail-frame {
  position: relative !important;
  isolation: isolate;
  aspect-ratio: 3 / 2 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #d8d3ca !important;
}

.material-card .mat-img.ts-proportional-detail-frame::before,
.media-grid .media-card:nth-child(2) .ts-image-frame.ts-proportional-detail-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18px;
  background-image: var(--ts-frame-image);
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(0.78);
  opacity: 0.38;
  transform: scale(1.08);
}

.material-card .mat-img.ts-proportional-detail-frame .primary-material,
.media-grid .media-card:nth-child(2) .ts-image-frame.ts-proportional-detail-frame img {
  position: relative !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: transparent !important;
}

.material-card .mat-img.ts-proportional-detail-frame .hover-inspiration {
  position: absolute !important;
  z-index: 2;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.material-card .actions.compact {
  align-items: stretch;
}

.material-card .actions.compact [data-action="add"] {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .filter-panel.ts-stable-filters .filter-row.multi,
  .pc17-inspiration-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .filter-panel.ts-stable-filters #materialSearch,
  .filter-panel.ts-stable-filters .filter-group,
  .filter-panel.ts-stable-filters .filter-dimension-row,
  .filter-panel.ts-stable-filters .pc18-collection-sort,
  .filter-panel.ts-stable-filters .filter-reset,
  .pc17-inspiration-toolbar label,
  .pc17-inspiration-toolbar button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

body.ts-dialog-open {
  overflow: hidden;
}

.ts-project-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 9, 8, .76);
  backdrop-filter: blur(5px);
  animation: ts-project-fade .18s ease-out;
}

.ts-project-dialog {
  width: min(940px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid var(--ts-project-gold);
  background: var(--ts-project-paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  color: var(--ts-project-ink);
  animation: ts-project-rise .22s ease-out;
}

.ts-project-dialog.ts-availability-dialog {
  width: min(780px, 100%);
}

.ts-project-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 20px 28px;
  background: #050505;
  color: #fff;
}

.ts-project-dialog__header h2 {
  margin: 0;
  color: inherit;
  font: 600 clamp(22px, 3vw, 30px)/1.15 Arial, sans-serif;
  letter-spacing: -.02em;
}

.ts-project-dialog__close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.ts-project-dialog__body {
  max-height: calc(88vh - 78px);
  overflow: auto;
  padding: 28px 30px 30px;
}

.ts-project-intro {
  margin: 0 0 20px;
  color: #5c5952;
  font-size: 14px;
  line-height: 1.6;
}

.ts-project-list {
  border-top: 1px solid var(--ts-project-line);
}

.ts-project-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--ts-project-line);
}

.ts-project-item__image {
  width: 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e2ded5;
  background: #121210;
}

.ts-project-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ts-project-item__name {
  margin: 0 0 5px;
  color: #111;
  font: 700 18px/1.25 Arial, sans-serif;
}

.ts-project-item__brand,
.ts-project-item__specs {
  margin: 0;
  color: #66625c;
  font-size: 13px;
  line-height: 1.55;
}

.ts-project-item__link {
  color: var(--ts-project-gold-dark);
  text-decoration: none;
}

.ts-project-item__remove,
.ts-project-action {
  min-height: 44px;
  border: 1px solid var(--ts-project-gold);
  background: #fff;
  color: #111;
  cursor: pointer;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ts-project-item__remove {
  padding: 0 18px;
  border-color: #e5e2dc;
  background: #efefed;
  letter-spacing: 0;
  text-transform: none;
}

.ts-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ts-project-action {
  padding: 0 20px;
}

.ts-project-action:hover,
.ts-project-action:focus-visible {
  border-color: #111;
  outline: none;
}

.ts-project-action--primary {
  background: var(--ts-project-gold);
  color: #fff;
}

.ts-project-action--dark {
  border-color: #050505;
  background: #050505;
  color: #fff;
}

.ts-project-empty {
  padding: 42px 20px;
  border: 1px solid var(--ts-project-line);
  text-align: center;
}

.ts-project-empty h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.ts-project-empty p {
  margin: 0;
  color: #66625c;
  line-height: 1.6;
}

.ts-availability-material {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--ts-project-line);
  background: #fff;
}

.ts-availability-material__image {
  width: 150px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #111;
}

.ts-availability-material h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.ts-availability-material p {
  margin: 0;
  color: #66625c;
  font-size: 13px;
  line-height: 1.55;
}

.ts-request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ts-request-field {
  display: grid;
  gap: 7px;
}

.ts-request-field--wide {
  grid-column: 1 / -1;
}

.ts-request-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ts-request-field input,
.ts-request-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfc8bb;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 15px/1.4 Arial, sans-serif;
}

.ts-request-field input {
  height: 48px;
  padding: 0 13px;
}

.ts-request-field textarea {
  min-height: 94px;
  padding: 12px 13px;
  resize: vertical;
}

.ts-request-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #6b665e;
  font-size: 12px;
  line-height: 1.55;
}

.ts-project-toast {
  position: fixed;
  z-index: 100100;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  font-size: 13px;
}

@keyframes ts-project-fade {
  from { opacity: 0; }
}

@keyframes ts-project-rise {
  from { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 700px) {
  .ts-project-backdrop {
    padding: 10px;
  }

  .ts-project-dialog {
    max-height: 94vh;
  }

  .ts-project-dialog__header {
    min-height: 64px;
    padding: 15px 18px;
  }

  .ts-project-dialog__body {
    max-height: calc(94vh - 64px);
    padding: 20px 18px 24px;
  }

  .ts-project-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
  }

  .ts-project-item__image {
    width: 76px;
  }

  .ts-project-item__remove {
    grid-column: 2;
    justify-self: start;
  }

  .ts-project-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ts-project-action {
    width: 100%;
  }

  .ts-availability-material {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .ts-availability-material__image {
    width: 92px;
  }

  .ts-request-form {
    grid-template-columns: 1fr;
  }

  .ts-request-field--wide,
  .ts-request-note {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-project-backdrop,
  .ts-project-dialog {
    animation: none;
  }
}
/* END PC20 TP0040 */

/* PC21 TP0041: refined identity, proportional application frames, and home curation */
.site-brand,
.ts-logo {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.site-brand img,
.ts-logo img {
  width: clamp(225px, 17vw, 278px) !important;
  max-width: none !important;
  height: auto !important;
  padding: 2px;
  background: #090909;
  box-shadow: 0 8px 22px rgba(20, 17, 11, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.site-brand:hover img,
.site-brand:focus-visible img,
.ts-logo:hover img,
.ts-logo:focus-visible img {
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(20, 17, 11, .3);
}

/* Studio application images are 3:2. Match their true format rather than
   placing them inside older 4:3 black presentation boxes. */
.media-grid .media-card:nth-child(n+3) {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.media-grid .media-card:nth-child(n+3) .ts-image-frame {
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
  border: 1px solid rgba(118, 104, 76, .17);
  background: #fff !important;
  box-shadow:
    0 16px 34px rgba(37, 31, 22, .18),
    0 4px 9px rgba(37, 31, 22, .12);
}

.media-grid .media-card:nth-child(n+3) .ts-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  background: transparent !important;
}

.media-grid .media-card:nth-child(n+3) > span {
  margin-top: 12px !important;
  padding: 7px 3px !important;
  min-height: 0 !important;
  background: transparent !important;
}

.pc17-inspiration-card .pc17-inspiration-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow:
    0 16px 34px rgba(37, 31, 22, .17),
    0 4px 9px rgba(37, 31, 22, .11);
}

.pc17-inspiration-card .pc17-inspiration-image > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.pc34-inspiration-preview {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: 14px;
  width: max-content;
  max-width: calc(100% - 28px);
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(15, 15, 13, .92);
  border: 1px solid rgba(195, 151, 64, .72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.pc34-inspiration-preview strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pc34-preview-thumbnails {
  display: flex;
  gap: 7px;
}

.pc17-inspiration-card .pc34-inspiration-preview .pc34-preview-thumbnails > img {
  display: block !important;
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 36px !important;
  max-width: 54px !important;
  max-height: 36px !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: none !important;
}

.pc17-inspiration-card.pc34-preview-open .pc34-inspiration-preview {
  opacity: 1;
  transform: translateY(0);
}

.ts-phone-control {
  display: grid;
  grid-template-columns: minmax(142px, .82fr) minmax(170px, 1.18fr);
  gap: 8px;
}

.ts-phone-control select,
.ts-phone-control input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 620px) {
  .ts-phone-control {
    grid-template-columns: 1fr;
  }

  .pc34-inspiration-preview {
    display: none;
  }
}

.r-hero {
  isolation: isolate;
  overflow: hidden;
}

.r-hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #16150f;
}

.r-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  transition: opacity 1.25s ease, transform 8s ease;
}

.r-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.r-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .67), rgba(0, 0, 0, .08));
}

.r-hero .copy {
  position: relative;
  z-index: 2;
}

.r-hero-dots {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.r-hero-dot {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
}

.r-hero-dot.is-active {
  background: #fff;
}

.r-hero-material-caption {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 48px;
  z-index: 3;
  max-width: min(430px, 72vw);
  padding: 8px 12px;
  color: #fff;
  background: rgba(12, 12, 11, .58);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.ts-email-status {
  padding: 12px 14px;
  border-left: 3px solid #9b772f;
  background: #f5f1e8;
  color: #25221d;
}

.ts-email-status.is-error {
  border-left-color: #a4342c;
  background: #f8ecea;
  color: #7f211c;
}

.stone-family {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

@media (max-width: 1100px) {
  .site-brand img,
  .ts-logo img {
    width: 215px !important;
  }
}

@media (max-width: 680px) {
  .site-brand img,
  .ts-logo img {
    width: 188px !important;
    box-shadow: 0 6px 16px rgba(20, 17, 11, .22);
  }

  .r-hero-dots {
    right: 22px;
    bottom: 20px;
  }

  .r-hero-material-caption {
    right: 22px;
    bottom: 40px;
    max-width: calc(100vw - 44px);
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r-hero-slide {
    transition: opacity .2s linear;
    transform: none;
  }
}

/* PC26 TP0047: unified collection and inspiration filter language */
.pc17-inspiration-toolbar input,
.pc17-inspiration-toolbar select,
.pc17-inspiration-toolbar button,
.filter-panel.ts-stable-filters #materialSearch,
.filter-panel.ts-stable-filters .filter-group,
.filter-panel.ts-stable-filters .filter-group > summary,
.filter-panel.ts-stable-filters .filter-number input,
.filter-panel.ts-stable-filters .pc18-collection-sort select,
.filter-panel.ts-stable-filters .filter-reset {
  box-sizing: border-box !important;
  height: 42px !important;
  min-height: 42px !important;
}

.filter-panel.ts-stable-filters .filter-number {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.pc17-inspiration-toolbar button,
.filter-panel.ts-stable-filters .filter-reset {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.material-card .actions.compact {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px !important;
}

.material-card .actions.compact > .btn,
.material-card .actions.compact > button,
.material-card .actions.compact > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 7px !important;
  text-align: center;
  line-height: 1.15 !important;
}

@media (min-width: 1201px) {
  .pc17-inspiration-toolbar,
  .filter-panel.ts-stable-filters .filter-row.multi {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .pc17-inspiration-toolbar label {
    flex: 1 0 108px;
    min-width: 108px;
  }

  .pc17-inspiration-toolbar label:first-child {
    flex: 1.55 0 190px;
    min-width: 190px;
  }

  .pc17-inspiration-toolbar button {
    flex: 0 0 90px;
    width: 90px !important;
  }

  .filter-panel.ts-stable-filters #materialSearch {
    flex: 1.5 0 190px;
    min-width: 190px;
  }

  .filter-panel.ts-stable-filters .filter-row.multi > * {
    align-self: flex-end !important;
  }

  .filter-panel.ts-stable-filters .filter-group {
    flex: 1 0 116px;
    min-width: 116px;
  }

  .filter-panel.ts-stable-filters .filter-dimension-row {
    flex: 0 0 196px;
  }

  .filter-panel.ts-stable-filters .pc18-collection-sort {
    flex: 1 0 150px;
    min-width: 150px;
  }

  .filter-panel.ts-stable-filters .filter-reset {
    flex: 0 0 118px;
    width: 118px !important;
  }
}

@media (max-width: 760px) {
  .material-card .actions.compact {
    grid-template-columns: 1fr;
  }
}

.stock-visit-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
  padding: 15px 18px;
  border: 1px solid rgba(185, 137, 53, .34);
  border-left: 3px solid #b98935;
  background: #f7f3eb;
  color: #4d473e;
  font-size: 14px;
  line-height: 1.55;
}

.stock-visit-note strong {
  color: #171713;
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-visit-note a {
  color: #171713;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-visit-note a:hover,
.stock-visit-note a:focus-visible {
  color: #9b6f24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .stock-visit-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}
