/* ============================================================
   Tile & marble shop styling
   Moved out of web/styles.css on 2026-06-08. Loaded via a
   separate <link rel="stylesheet"> tag in web/index.html.
   ============================================================ */

/* ----- 1. Tile-room placement modal (.tile-room-*) ----- */
.tile-room-modal {
  max-width: 720px;
  padding: 18px 18px 16px;
  gap: 10px;
}
.tile-room-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile-room-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #faf9fd;
}
.tile-room-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f3f5;
}
.tile-room-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
}
.tile-room-surface {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tile-room-select-native {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.tile-room-select-native:focus { border-color: var(--accent); outline: none; }
.tile-room-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.tile-room-action {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 18px -18px rgba(25, 20, 40, 0.45);
}
.tile-room-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.tile-room-action.is-cancel {
  background: #fff;
  color: #6f687a;
  border-color: #e3dde9;
}
.tile-room-action.is-cancel:hover {
  background: #faf8fc;
  border-color: #d5cadf;
}
.tile-room-action.is-ai {
  background: linear-gradient(135deg, #fff5dd 0%, #ffe7a9 100%);
  color: #7b5600;
  border-color: #f0c868;
  box-shadow: 0 16px 24px -20px rgba(225, 166, 28, 0.75);
}
.tile-room-action.is-ai:hover {
  background: linear-gradient(135deg, #fff0cb 0%, #ffde8c 100%);
  border-color: #e6ba4f;
}
.tile-room-action.is-manual {
  background: linear-gradient(135deg, #ff5f93 0%, #ff8a3d 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 26px -20px rgba(255, 92, 138, 0.9);
}
.tile-room-action.is-manual:hover {
  background: linear-gradient(135deg, #ff4d86 0%, #ff7b2f 100%);
}

@media (max-width: 640px) {
  .tile-room-modal {
    max-width: none;
    width: calc(100vw - 20px);
    padding: 14px 14px 12px;
  }
  .tile-room-list { gap: 8px; }
  .tile-room-item { padding: 8px; }
  .tile-room-surface { font-size: 11px; }
  .tile-room-select-native {
    padding: 8px 10px;
    font-size: 13px;
  }
  .tile-room-action {
    padding: 10px 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 5px;
  }
}

/* Inv-toolbar title alignment */
.inv-toolbar .eyebrow { font-size: 10px; }
.inv-toolbar h3.page-title.small { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }

/* Inline edit form — denser look */
.garment-card.editing .garment-body input,
.garment-card.editing .garment-body textarea,
.garment-card.editing .garment-body select { border-radius: 6px; }
.cat-edit-row select { border-radius: 6px; padding: 6px 10px; }

/* ----- 2. Inline StyleKro Room studio v2 (.trs-*) ----- */
/* ===== Inline StyleKro Room studio (tile & marble shops) ===== */
/* ============================================================
   StyleKro Room — tile & marble shop studio (v2)
   ============================================================ */
.shop-detail-v2 .trs-studio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin-top: 4px;
  padding-bottom: 96px; /* clearance for the floating Style Room CTA */
}
.trs-room,
.trs-applied,
.trs-picker {
  min-width: 0;
  background: #fff;
  border: 1px solid #ebe9e1;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(20, 18, 40, 0.05);
}
.trs-room { padding: 16px 16px 18px; }
.trs-applied { padding: 16px; }
.trs-picker { padding: 16px; scroll-margin-top: 12px; }

.trs-room-head { margin-bottom: 14px; }
.trs-room-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #1c1a2e; }
.trs-room-v2 .trs-room-head { display: none; }

/* Surface tabs */
.trs-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trs-room-v2 .trs-tabs { display: none; }
.trs-tabs::-webkit-scrollbar { display: none; }
.trs-tab {
  flex: 1 1 0;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1.5px solid #ebe9e1;
  border-radius: 999px;
  background: #faf9f5;
  color: #6a6780;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.trs-tab-ico { width: 17px; height: 17px; display: inline-flex; }
.trs-room-v2 .trs-tab-ico { display: none; }
.trs-tab-ico svg { width: 100%; height: 100%; }
.trs-tab.filled { color: #3a3850; border-color: #ddd8cc; background: #fff; }
.trs-tab.on {
  color: #ec4778;
  border-color: rgba(236, 71, 120, 0.5);
  background: rgba(236, 71, 120, 0.08);
  box-shadow: 0 4px 12px rgba(236, 71, 120, 0.12);
}

/* Room canvas (base = profile photo) */
.trs-canvas {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #f1efe9;
  aspect-ratio: 4 / 5;
  max-height: min(70vh, 560px);
}
.trs-canvas-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trs-canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #8a8798;
}
.trs-canvas-empty strong { font-size: 15px; color: #4a4860; }
.trs-canvas-empty span { font-size: 12.5px; max-width: 220px; }
.trs-photo-loading {
  color: #6a6780;
}
.trs-loading-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(236, 71, 120, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #ec4778;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 18, 40, 0.12);
}
.trs-loading-dot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(236, 71, 120, 0.22);
  border-top-color: #ec4778;
  border-radius: 50%;
  animation: trs-loading-spin .8s linear infinite;
}
@keyframes trs-loading-spin { to { transform: rotate(360deg); } }
.trs-canvas-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  padding: 20px;
  z-index: 5;
}
.trs-canvas-hint { position: absolute; left: 12px; bottom: 12px; z-index: 4; }
.trs-room-photo-warning {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  border: 1px solid rgba(236, 71, 120, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #b3315f;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 20px rgba(20, 18, 40, 0.14);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.trs-room-photo-warning:hover { background: #fff; }

/* Floating surface labels */
.trs-label {
  position: absolute;
  z-index: 3;
  padding: 6px 13px;
  border: none;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(28, 26, 46, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px rgba(20, 18, 40, 0.22);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background .15s, box-shadow .15s, transform .12s;
  white-space: nowrap;
}
.trs-label:hover { transform: translate(-50%, -50%) scale(1.04); }
.trs-label.on {
  background: linear-gradient(135deg, #ec4778, #ff4d7e);
  box-shadow: 0 8px 18px rgba(236, 71, 120, 0.4);
}
.trs-label-front_wall { top: 30%; left: 50%; }
.trs-label-left_wall { top: 54%; left: 10px; transform: translateY(-50%); }
.trs-label-left_wall:hover { transform: translateY(-50%) scale(1.04); }
.trs-label-right_wall { top: 54%; left: 78%; }
.trs-label-floor { top: 72%; left: 50%; }

.trs-canvas-zoom {
  position: absolute;
  right: 12px;
  bottom: 6px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3a3850;
  box-shadow: 0 6px 16px rgba(20, 18, 40, 0.16);
  cursor: pointer;
}
.trs-canvas-zoom:hover { background: #fff; }
.trs-canvas-zoom svg { width: 18px; height: 18px; }
.trs-room-camera-btn {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3a3850;
  box-shadow: 0 8px 20px rgba(20, 18, 40, 0.22);
  cursor: pointer;
}
.trs-room-camera-btn:hover { background: #fff; }
.trs-room-camera-btn svg { width: 18px; height: 18px; }
.trs-room-camera-clear {
  position: absolute;
  left: calc(50% + 16px);
  bottom: 36px;
  z-index: 5;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(20, 18, 40, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.trs-room-camera-clear:hover { background: #14122a; }
.trs-canvas-actions {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  flex-wrap: nowrap;
}
.trs-canvas-redo {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #ec4778;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(20, 18, 40, 0.16);
  cursor: pointer;
}
.trs-canvas-redo.alt {
  color: #3a3850;
  background: rgba(255, 255, 255, 0.9);
}
.trs-canvas-icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #3a3850;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(20, 18, 40, 0.16);
  cursor: pointer;
}
.trs-canvas-icon-btn:hover { background: #fff; }

/* Inline 360° spin — renders the contact-sheet viewer right inside the studio
   canvas (tile + tattoo) instead of a popup. Mirrors .bi-hero-360. */
.trs-canvas-360 {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  color: #fff;
}
.trs-canvas-360 .sheet360-canvas {
  max-width: 100%;
  max-height: calc(100% - 52px);
  width: auto;
  height: auto;
  background: #111;
  border-radius: 12px;
  touch-action: none;
}
.trs-canvas-360 .sheet360-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trs-canvas-360 .sheet360-loading,
.trs-canvas-360 .sheet360-error {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Applied materials */
.trs-applied-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.trs-applied-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: #1c1a2e; }
.trs-edit-all {
  border: none;
  background: none;
  color: #ec4778;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.trs-applied-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) { .trs-applied-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trs-applied-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  min-width: 0;
  border: 1.5px solid #ebe9e1;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.trs-applied-card.on { border-color: rgba(236, 71, 120, 0.55); box-shadow: 0 0 0 3px rgba(236, 71, 120, 0.1); }
.trs-applied-card.filled { background: linear-gradient(180deg, rgba(236, 71, 120, 0.05), #fff); }
.trs-applied-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6a6780;
}
.trs-applied-ico { width: 15px; height: 15px; display: inline-flex; color: #9a96aa; }
.trs-applied-ico svg { width: 100%; height: 100%; }
.trs-applied-swatch {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f2ec;
  border: 1px solid #efece4;
}
.trs-applied-swatch img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trs-applied-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #f0eee8 0 6px, #f6f4ee 6px 12px);
  color: #7a7790;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}
.trs-applied-name {
  font-size: 13px;
  font-weight: 700;
  color: #2a2840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trs-applied-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}
.trs-applied-status.applied,
.trs-applied-status.applied svg { color: #1aa179; }
.trs-applied-status.change { color: #ec4778; }

/* Picker: search + filter */
.trs-search-row { display: flex; gap: 10px; margin-bottom: 12px; }
.trs-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6f4ee;
  border: 1px solid #e6e3da;
  border-radius: 14px;
  padding: 11px 14px;
  color: #8a8798;
  min-width: 0;
}
.trs-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #1c1a2e;
  min-width: 0;
}
.trs-filter-btn {
  flex: none;
  width: 48px;
  border: 1px solid #e6e3da;
  border-radius: 14px;
  background: #fff;
  color: #6a6780;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.trs-filter-btn:hover { border-color: #d8d4ca; }

/* Category pills */
.trs-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trs-cats::-webkit-scrollbar { display: none; }
.trs-cat {
  flex: none;
  border: 1.5px solid #e6e3da;
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  color: #6a6780;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.trs-cat.on {
  color: #ec4778;
  border-color: rgba(236, 71, 120, 0.5);
  background: rgba(236, 71, 120, 0.08);
}

/* Product grid */
.trs-prod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 480px) { .trs-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .trs-prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trs-prod {
  position: relative;
  min-width: 0;
  border: 1.5px solid #ebe9e1;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.trs-prod:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 18, 40, 0.08); }
.trs-prod.on { border-color: #ec4778; box-shadow: 0 0 0 2px rgba(236, 71, 120, 0.2); }
.trs-prod-media {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.trs-prod-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}
.trs-prod-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ec4778;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .14s, transform .14s;
  box-shadow: 0 4px 10px rgba(236, 71, 120, 0.4);
}
.trs-prod-check.on { opacity: 1; transform: scale(1); }
.trs-prod-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #b8b4c4;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(20, 18, 40, 0.12);
  transition: color .15s, transform .12s;
}
.trs-prod-fav:hover { transform: scale(1.08); }
.trs-prod-fav.on { color: #ff2d6f; }
.trs-prod-info { padding: 9px 11px 11px; }
.trs-prod-name {
  font-size: 13px;
  font-weight: 700;
  color: #2a2840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trs-prod-price { margin-top: 3px; font-size: 13px; font-weight: 700; color: #ec4778; }
.trs-prod-price span { color: #9a96aa; font-weight: 600; font-size: 11.5px; }
.trs-prod-cat { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #9a96aa; }

/* .trs-fab (Style Room floating CTA) + .trs-fab-count moved to web/stylekro_gen.css */
@media (max-width: 480px) {
  .shop-detail-v2.screen { padding: 6px 4px calc(118px + env(safe-area-inset-bottom, 0px)); }
  .shop-detail-v2 > .topbar { min-height: 50px; margin: 2px 2px 8px; padding: 0 9px 0 12px; border-radius: 16px; }
  .shop-detail-v2 > .topbar .logo img,
  .shop-detail-v2 > .topbar .logo.small img { height: 34px; }
  .shop-detail-v2 > .topbar .user-chip-btn { padding: 4px 8px 4px 4px; gap: 6px; }
  .shop-detail-v2 > .topbar .user-chip .avatar { width: 34px; height: 34px; font-size: 13px; }
  .shop-detail-v2 .sdv2-page { padding: 6px 6px 118px; gap: 8px; }
  .shop-detail-v2 .sdv2-shop-card.compact { padding: 8px 9px; border-radius: 13px; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-card-main { gap: 9px; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-logo { width: 42px; height: 42px; font-size: 23px; border-radius: 11px; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-name-row { gap: 7px; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-eyebrow { font-size: 9px; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-name { font-size: 14px; line-height: 1.15; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-more { font-size: 11.5px; padding: 2px 0; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-share { width: 31px; height: 31px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; }
  .shop-detail-v2 .sdv2-shop-card.compact .sdv2-shop-share svg { width: 14px; height: 14px; }
  /* .trs-fab 480px size override moved to web/stylekro_gen.css */
  .shop-detail-v2 .trs-studio { gap: 8px; }
  .trs-room, .trs-applied, .trs-picker { border-radius: 14px; box-shadow: 0 7px 20px rgba(20, 18, 40, 0.045); }
  .trs-room { padding: 12px; }
  .trs-room-head { margin-bottom: 10px; }
  .trs-room-title { font-size: 16px; }
  .trs-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; overflow: visible; }
  .trs-tab { min-width: 0; padding: 6px 7px; gap: 4px; font-size: 11.5px; }
  .trs-tab-ico { width: 14px; height: 14px; }
  .trs-canvas { border-radius: 12px; max-height: min(49vh, 360px); aspect-ratio: 4 / 5; }
  .trs-label { padding: 4px 9px; font-size: 11px; }
  .trs-room-photo-warning { top: 8px; max-width: calc(100% - 16px); padding: 6px 9px; font-size: 10.5px; }
  .trs-loading-pill { padding: 8px 13px; font-size: 12px; }
  .trs-loading-dot { width: 13px; height: 13px; }
  .trs-canvas-actions { left: 50%; right: auto; bottom: 9px; gap: 8px; max-width: calc(100% - 18px); transform: translateX(-50%); }
  .trs-canvas-redo { padding: 7px 11px; font-size: 11.5px; }
  .trs-label-left_wall { left: 10px; transform: translateY(-50%); }
  .trs-label-left_wall:hover { transform: translateY(-50%) scale(1.04); }
  .trs-label-right_wall { left: auto; right: 10px; transform: translateY(-50%); }
  .trs-label-right_wall:hover { transform: translateY(-50%) scale(1.04); }
  .trs-applied, .trs-picker { padding: 11px; }
  .trs-applied-head { margin-bottom: 10px; }
  .trs-applied-head h3 { font-size: 15px; }
  .trs-applied-grid { gap: 7px; }
  .trs-applied { padding: 9px; }
  .trs-applied-head { margin-bottom: 7px; }
  .trs-applied-head h3 { font-size: 13.5px; }
  .trs-applied-grid { gap: 5px; }
  .trs-applied-card { padding: 6px; gap: 4px; border-radius: 10px; }
  .trs-applied-top, .trs-applied-name { font-size: 10.5px; }
  .trs-applied-ico { width: 12px; height: 12px; }
  .trs-applied-swatch { aspect-ratio: 16 / 7; border-radius: 8px; }
  .trs-applied-status { font-size: 10.5px; }
  .trs-search-row { gap: 8px; margin-bottom: 10px; }
  .trs-search { padding: 9px 11px; border-radius: 12px; }
  .trs-search input { font-size: 14px; }
  .trs-filter-btn { width: 42px; border-radius: 12px; }
  .trs-cats { gap: 6px; margin-bottom: 10px; }
  .trs-cat { padding: 7px 12px; font-size: 12px; }
  .trs-prod-grid { gap: 8px; }
  .trs-prod { border-radius: 13px; }
  .trs-prod-info { padding: 8px 9px 9px; }
  .trs-prod-name, .trs-prod-price { font-size: 12px; }
  .shop-detail-v2 .bottom-nav { bottom: max(7px, env(safe-area-inset-bottom, 0px)); width: calc(100vw - 14px); padding: 5px; border-radius: 22px; }
  .shop-detail-v2 .bottom-nav-item { min-height: 48px; padding: 7px 3px 6px; border-radius: 16px; font-size: 9.5px; gap: 4px; }
  .shop-detail-v2 .bottom-nav-item span { font-size: 8.5px; }
  .shop-detail-v2 .bottom-nav-icon { width: 17px !important; height: 17px !important; flex-basis: 17px; }
}

/* Two-column studio for tablet / desktop */
@media (min-width: 860px) {
  .shop-detail-v2 .trs-studio {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    grid-template-areas:
      "room    picker"
      "applied picker";
    align-items: start;
    gap: 20px;
    padding-bottom: 32px;
  }
  .trs-room { grid-area: room; position: sticky; top: 14px; }
  .trs-applied { grid-area: applied; }
  .trs-picker { grid-area: picker; align-self: stretch; }
  .trs-canvas { max-width: none; max-height: 56vh; }
  .trs-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* .trs-fab 860px bottom override moved to web/stylekro_gen.css */
}

@media (min-width: 1200px) {
  .trs-prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
