/* Full product catalog */
.page-products main.container {
  overflow-x: hidden;
}

.catalog-page {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .catalog-page {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.catalog-sidebar {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

@media (min-width: 900px) {
  .catalog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
  }
}

.catalog-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.catalog-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-cat-list button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-nav);
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.catalog-cat-list button:hover {
  background: #f5f8ff;
  color: var(--accent);
}

.catalog-cat-list button.is-active {
  background: rgba(1, 126, 255, 0.1);
  color: var(--accent);
  font-weight: 600;
}

.catalog-cat-list .count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.catalog-search {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.catalog-search:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.catalog-toolbar__actions {
  display: flex;
  gap: 0.4rem;
}

.catalog-view-btn {
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--text-muted);
}

.catalog-view-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.catalog-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mobile-first: always 2 per row; more columns only on large screens */
.catalog-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 900px) {
  .catalog-grid {
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.catalog-card:hover {
  box-shadow: 0 14px 36px rgba(1, 126, 255, 0.12);
  transform: translateY(-2px);
}

.catalog-card__img {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  text-align: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(1, 126, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #f0f7ff 0%, #f8fafc 55%, #eef4ff 100%);
  transition: background 0.2s ease;
}

.catalog-card__img:active {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(1, 126, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #e8f2ff 0%, #f1f5f9 55%, #e8f0ff 100%);
}

@media (hover: hover) and (pointer: fine) {
  .catalog-card__img:hover .product-visual-img,
  .catalog-card__img:hover .vial-visual-svg {
    transform: scale(1.04);
  }
}

.catalog-card__img .product-visual-img,
.catalog-card__img .vial-visual-svg {
  transition: transform 0.22s ease;
}

.catalog-card__img::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017eff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem no-repeat;
  border: 1px solid rgba(1, 126, 255, 0.2);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.catalog-card__img .vial-visual-svg {
  width: 72%;
  max-height: 96%;
  filter: drop-shadow(0 6px 16px rgba(1, 126, 255, 0.15));
}

.catalog-card__img .product-visual-img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 10px 22px rgba(1, 126, 255, 0.2));
}

.catalog-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  z-index: 2;
}

.catalog-card__guarantee {
  position: absolute;
  top: 0.32rem;
  right: 0.35rem;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(120, 53, 15, 0.28));
}

.catalog-card__guarantee-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  padding: 0.35rem 0.3rem 0.52rem;
  background:
    linear-gradient(165deg, #fde68a 0%, #f59e0b 42%, #d97706 100%);
  color: #7c2d12;
  text-align: center;
  border-radius: 6px 6px 10px 10px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  line-height: 1;
  box-sizing: border-box;
}

.catalog-card__guarantee-inner b {
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-style: normal;
}

.catalog-card__guarantee-inner i {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.46rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 4.2rem;
  height: 4.2rem;
  z-index: 2;
  pointer-events: none;
  border-top-left-radius: 15px;
  background: #0d9488;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: drop-shadow(1px 1px 2px rgba(15, 23, 42, 0.18));
}

.catalog-card__ribbon-text {
  position: absolute;
  top: 0.55rem;
  left: -0.2rem;
  width: 3.2rem;
  padding: 0;
  background: none;
  color: #fff;
  text-align: center;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: none;
}

.catalog-card__ribbon-text b {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.05rem;
}

.catalog-card__sku {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  line-height: 1.3;
}

.catalog-card__sku [data-role="code"] {
  font-weight: 700;
  color: var(--accent);
}

.catalog-card__price-note {
  display: inline;
  margin-left: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Out of Stock */
.catalog-card__oos-badge {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 5px;
  background: #ef4444;
  color: #fff;
  z-index: 3;
  white-space: nowrap;
}

.catalog-card--oos .catalog-card__img {
  opacity: 0.6;
}
.catalog-card--oos .catalog-card__price {
  opacity: 0.5;
  text-decoration: line-through;
}

.btn-sm--oos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  cursor: not-allowed;
  opacity: 0.85;
}

.catalog-table__oos-text {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.75rem;
}

.opt-oos {
  color: #dc2626 !important;
  font-style: italic;
}

.catalog-card__body {
  padding: 0.85rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.catalog-card__foot {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.catalog-card__cat {
  align-self: flex-start;
  margin: 0.3rem 0 0.25rem;
  padding: 0.2rem 0.55rem;
  max-width: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.3;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  min-height: 0;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card h3 {
  margin: 0 0 0.1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__spec {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 4rem;
  display: flex;
  align-items: flex-end;
  line-height: 1.35;
}

.catalog-variant-label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 0 0.35rem;
  min-height: 4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-variant-select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-nav);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.catalog-variant-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.catalog-variant-select--table {
  display: block;
  width: 100%;
  min-width: 10rem;
  max-width: 14rem;
  margin: 0;
  padding: 0.4rem 1.75rem 0.4rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.35;
  min-height: 2.15rem;
  box-sizing: border-box;
}

.catalog-card__sku-hint {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.catalog-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0.35rem 0 0.4rem;
  min-height: 1.75rem;
  min-width: 0;
}

.catalog-card__meta-row .catalog-card__sku-hint {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-card__meta-row .catalog-qty-picker {
  flex-shrink: 0;
  margin-left: auto;
}

.catalog-card__meta-row--solo .catalog-qty-picker {
  flex: 1 1 100%;
  width: 100%;
  margin-left: 0;
}

.catalog-card__meta-row--solo .catalog-qty-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.catalog-card__meta-row--solo .catalog-qty-input {
  flex: 0 0 2.5rem;
  width: 2.5rem;
}

.catalog-card__meta-row .catalog-qty-btn,
.catalog-card__meta-row .catalog-qty-input {
  height: 1.65rem;
  min-height: 1.65rem;
}

.catalog-card__meta-row .catalog-qty-btn {
  width: 1.35rem;
  font-size: 0.8rem;
}

.catalog-card__meta-row .catalog-qty-input {
  width: 1.25rem;
  font-size: 0.7rem;
}

.catalog-card__price {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.catalog-card__price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.catalog-card__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.catalog-quote-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.catalog-qty-picker {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.catalog-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.catalog-qty-btn:active {
  background: rgba(1, 126, 255, 0.08);
  color: var(--accent);
}

.catalog-qty-input {
  width: 1.55rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-nav);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.catalog-qty-input::-webkit-outer-spin-button,
.catalog-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog-quote-row .btn-sm--quote {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.catalog-quote-row .btn-sm--outline,
.catalog-quote-row .btn-sm--muted {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.catalog-table__quote-row {
  flex: 1 1 100%;
}

/* ——— Mobile: flex layout (avoid display:contents — breaks iOS Safari) ——— */
@media (max-width: 899px) {
  .catalog-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .catalog-main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
  }

  .catalog-sidebar {
    flex-shrink: 0;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .catalog-sidebar h2 {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
  }

  .catalog-cat-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0 0 0.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-cat-list::-webkit-scrollbar {
    display: none;
  }

  .catalog-cat-list li {
    flex: 0 0 auto;
    list-style: none;
  }

  .catalog-cat-list button {
    width: auto;
    margin: 0;
    padding: 0.48rem 0.8rem;
    font-size: 0.76rem;
    white-space: nowrap;
    border: 1px solid var(--line);
    background: #fff;
  }

  .catalog-cat-list button.is-active {
    border-color: var(--accent);
    background: rgba(1, 126, 255, 0.1);
  }

  .catalog-toolbar--sticky {
    position: sticky;
    top: calc(var(--header-h, 72px) + 0.25rem);
    z-index: 15;
    margin-bottom: 0;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .catalog-search {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }

  .catalog-toolbar__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-view-btn {
    flex-shrink: 0;
  }

  #viewTable {
    display: none;
  }

  .catalog-meta {
    margin: 0;
    font-size: 0.78rem;
  }

  .catalog-grid {
    width: 100%;
    min-width: 0;
  }

  .catalog-card {
    min-width: 0;
    border-radius: 14px;
  }

  .catalog-card:hover {
    transform: none;
  }

  .catalog-card__img {
    aspect-ratio: 1;
    padding: 0;
  }

  .catalog-card__img .vial-visual-svg {
    width: 68%;
  }

  .catalog-card__body {
    padding: 0.6rem 0.65rem 0.7rem;
  }

  .catalog-card__cat {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }

  .catalog-card h3 {
    font-size: 0.88rem;
    line-height: 1.25;
    min-height: 2.5em;
    -webkit-line-clamp: 2;
  }

  .catalog-card__spec,
  .catalog-variant-label {
    min-height: 3.85rem;
  }

  .catalog-variant-label {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  .catalog-card__spec {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .catalog-variant-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    min-height: 2.35rem;
  }

  .catalog-card__price {
    font-size: 1.05rem;
  }

  .catalog-card__meta-row {
    margin: 0.1rem 0 0.35rem;
    gap: 0.25rem;
  }

  .catalog-card__meta-row--solo .catalog-qty-input {
    flex: 0 0 2.25rem;
    width: 2.25rem;
  }

  .catalog-card__meta-row .catalog-qty-btn,
  .catalog-card__meta-row .catalog-qty-input {
    height: 1.55rem;
    min-height: 1.55rem;
  }

  .catalog-card__meta-row .catalog-qty-btn {
    width: 1.28rem;
    font-size: 0.85rem;
  }

  .catalog-card__meta-row .catalog-qty-input {
    width: 1.2rem;
    font-size: 0.78rem;
  }

  .catalog-card__actions {
    margin-top: 0;
  }

  .catalog-quote-row {
    gap: 0.25rem;
  }

  .catalog-quote-row .btn-sm--quote {
    flex: 1 1 0;
    min-height: 1.85rem;
    padding: 0 0.4rem;
    font-size: 0.78rem;
  }

  .catalog-quote-row .btn-sm--outline,
  .catalog-quote-row .btn-sm--muted {
    min-height: 1.85rem;
    padding: 0 0.42rem;
    font-size: 0.75rem;
  }

  body.has-quote-bar {
    padding-bottom: 8.5rem;
  }

  .quote-bar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-bar__inner {
    gap: 0.5rem;
  }

  .quote-bar__actions {
    width: 100%;
    justify-content: stretch;
  }

  .quote-bar__actions .quote-bar__btn {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .catalog-grid {
    gap: 0.5rem;
  }

  .catalog-card h3 {
    font-size: 0.88rem;
  }
}

.catalog-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.catalog-table th,
.catalog-table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.catalog-table th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #f8fafc;
  white-space: nowrap;
}

.catalog-table tbody tr {
  height: 1px;
}

.catalog-table tbody tr:hover td {
  background: #f5f8ff;
}

.catalog-table .code {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.catalog-table__col-code {
  width: 4.5rem;
}

.catalog-table__col-product {
  min-width: 7.5rem;
  font-weight: 600;
  color: var(--text-nav);
}

.catalog-table__col-cat {
  max-width: 8.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.catalog-table__col-variant {
  min-width: 10rem;
  width: 18%;
}

.catalog-table__variant-text {
  display: block;
  min-height: 2.15rem;
  padding: 0.4rem 0;
  box-sizing: border-box;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.catalog-table__col-price {
  white-space: nowrap;
  width: 5rem;
}

.catalog-table__col-actions,
.catalog-table th.catalog-table__col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.catalog-table__actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.catalog-table__actions .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .catalog-table {
    font-size: 0.78rem;
  }

  .catalog-variant-select--table {
    max-width: none;
    min-width: 8.5rem;
  }

  .catalog-table__col-cat {
    max-width: 6.5rem;
  }
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.catalog-table[hidden],
.catalog-grid[hidden] {
  display: none !important;
}

/* Multi-select quote list */
.catalog-view-btn--quote {
  border-color: rgba(1, 126, 255, 0.35);
  color: var(--accent);
}

.catalog-view-btn--pdf {
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-view-btn--pdf:hover {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.catalog-toolbar--compact {
  margin-bottom: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-toolbar__actions--end {
  width: 100%;
  justify-content: flex-end;
}

.btn-sm--quote {
  background: #fff;
  color: var(--accent);
  border-color: rgba(1, 126, 255, 0.45);
}

.btn-sm--quote:hover {
  background: rgba(1, 126, 255, 0.08);
}

.btn-sm--quote.is-in-quote {
  background: rgba(1, 126, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent-dark, #005bb5);
}

.catalog-table__col-pick {
  width: 2.25rem;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.35rem;
}

.catalog-table__check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

body.has-quote-bar {
  padding-bottom: 6.5rem;
}

/* WhatsApp CTA accents (brand green — catalog/order flow only) */
.quote-bar,
.quote-panel__sheet {
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --wa-teal: #128c7e;
}

.quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 2px solid var(--wa-green);
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.14);
}

.quote-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.quote-bar__contact {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.16);
}

.quote-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
}

.sales-contact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.sales-contact__photo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.sales-contact--compact .sales-contact__photo {
  width: 36px;
  height: 36px;
}

.sales-contact__text {
  min-width: 0;
}

.sales-contact__badge {
  display: inline-block;
  margin-bottom: 0.15rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wa-teal, #128c7e);
  background: rgba(37, 211, 102, 0.14);
  border-radius: 999px;
}

.sales-contact__name {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-nav);
  line-height: 1.25;
}

.sales-contact__role {
  font-weight: 600;
  color: var(--text-muted);
}

.sales-contact__sep {
  color: var(--line);
}

.sales-contact__lead {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.sales-contact--compact .sales-contact__name {
  font-size: 0.78rem;
}

.sales-contact--compact .sales-contact__lead {
  font-size: 0.72rem;
}

.quote-panel__contact {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(37, 211, 102, 0.18);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.quote-bar__summary {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-nav);
}

.quote-bar__summary strong {
  color: var(--accent);
}

.quote-bar__summary small {
  color: var(--text-muted);
  font-weight: 500;
}

.quote-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quote-bar__btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  white-space: nowrap;
}

.quote-bar__btn--ghost {
  background: #fff;
  color: var(--text-nav);
}

.quote-bar__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quote-bar__btn--secondary {
  background: rgba(1, 126, 255, 0.1);
  border-color: rgba(1, 126, 255, 0.38);
  color: var(--accent);
}

.quote-bar__btn--secondary:hover {
  background: rgba(1, 126, 255, 0.16);
  border-color: var(--accent);
}

.quote-bar__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 126, 255, 0.28);
}

.quote-bar__btn--primary:hover {
  background: var(--accent-dark, #0066d6);
}

.quote-bar__btn--wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--wa-green, #25d366);
  border-color: var(--wa-green, #25d366);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.quote-bar__btn--wa:hover {
  background: var(--wa-green-dark, #1da851);
  border-color: var(--wa-green-dark, #1da851);
  color: #fff;
}

.wa-icon {
  flex-shrink: 0;
  display: block;
}

.quote-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.quote-panel[hidden] {
  display: none !important;
}

.quote-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.quote-panel__sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  margin: 0 auto;
  background: var(--panel, #fff);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 640px) {
  .quote-panel {
    align-items: center;
    padding: 1rem;
  }

  .quote-panel__sheet {
    border-radius: 20px;
    max-height: 80vh;
  }
}

.quote-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.quote-panel__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.quote-panel__close {
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
}

.quote-panel__hint {
  margin: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-nav);
  background: rgba(37, 211, 102, 0.08);
  border-bottom: 1px solid rgba(37, 211, 102, 0.12);
}

.quote-panel__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.1rem;
  overflow-y: auto;
  flex: 1;
}

.quote-panel__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.quote-panel__item:last-child {
  border-bottom: none;
}

.quote-panel__item-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.5rem;
  align-items: baseline;
}

.quote-panel__code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  grid-row: 1 / 3;
}

.quote-panel__spec {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quote-panel__line-total {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.quote-panel__item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quote-panel__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quote-panel__qty input {
  width: 3rem;
  padding: 0.35rem 0.4rem;
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-panel__remove {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.quote-panel__empty {
  padding: 2rem 1.1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.quote-panel__foot {
  padding: 0.85rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.quote-panel__total {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.quote-panel__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.quote-panel-open {
  overflow: hidden;
}

/* ——— Product preview sheet (tap image) ——— */
.product-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.product-preview[hidden] {
  display: none !important;
}

.product-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.product-preview__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(94vh, 760px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
  animation: product-preview-in 0.28s ease;
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
}

.product-preview__main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.product-preview__footer {
  flex: 0 0 auto;
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid rgba(37, 211, 102, 0.35);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08) 0%, #fff 45%);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}

.product-preview__contact {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

@keyframes product-preview-in {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-preview__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.product-preview__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  max-height: 28vh;
  padding: 1.5rem 1rem 0.65rem;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(1, 126, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
}

.product-preview__visual .product-visual-img,
.product-preview__visual .vial-visual-svg {
  width: min(54vw, 185px);
  max-height: 24vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(1, 126, 255, 0.18));
}

.product-preview__visual .product-visual-img {
  cursor: zoom-in;
}

.product-preview__body {
  padding: 0 1rem 0.75rem;
}

.product-preview__name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.product-preview__sku {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.product-preview__code {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: none;
  border-radius: 0;
}

.product-preview__cat {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-preview__variant {
  margin-bottom: 0.55rem;
}

.product-preview__variant-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-preview__select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-preview__price {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.product-preview__price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-preview__price-note {
  display: inline;
  margin-left: 0.28rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.product-preview__footer .product-preview__qty-row {
  margin: 0 0 0.55rem;
}

.product-preview__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.product-preview__qty-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.product-preview__qty-row .catalog-qty-picker {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: stretch;
  width: min(11rem, 46vw);
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.product-preview__qty-row .catalog-qty-btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: #f8fafc;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

.product-preview__qty-row .catalog-qty-btn:active {
  background: rgba(1, 126, 255, 0.12);
  color: var(--accent);
}

.product-preview__qty-row .catalog-qty-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-nav);
  background: #fff;
}

.product-preview__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.product-preview__hint--lead {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(1, 126, 255, 0.06);
  border: 1px solid rgba(1, 126, 255, 0.12);
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.4;
}

.product-preview__hint--wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.22);
}

.product-preview__coa-row {
  min-width: 0;
}

.product-preview__coa-row .btn-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  touch-action: manipulation;
}

.product-preview__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-preview__actions-row--solo {
  grid-template-columns: 1fr;
}

.product-preview__actions-row .product-preview__btn--ghost {
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
}

.product-preview__wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  background: var(--wa-green, #25d366);
  border: 1px solid var(--wa-green, #25d366);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
  touch-action: manipulation;
}

.product-preview__wa-btn:hover {
  background: var(--wa-green-dark, #1da851);
  border-color: var(--wa-green-dark, #1da851);
  color: #fff;
}

.product-preview__wa-btn .wa-icon {
  flex-shrink: 0;
}

.product-preview__footer .product-preview__btn--primary {
  width: 100%;
  min-height: 48px;
}

.product-preview__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-preview__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.product-preview__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-preview__btn--primary.is-in-quote {
  background: var(--wa-green, #25d366);
  border-color: var(--wa-green, #25d366);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.product-preview__btn--oos {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  cursor: not-allowed;
  opacity: 0.85;
}

.product-preview__btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.product-preview__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.product-preview__link--subtle {
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-preview__link--subtle:hover {
  color: #005fcc;
}

.product-preview__coa {
  flex: 0 0 auto;
}

.product-preview__coa .btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
}

.product-preview__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.product-preview-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  transform: translateX(-50%);
  max-width: min(92vw, 22rem);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

body.has-quote-bar .product-preview-toast {
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.product-preview-toast[hidden] {
  display: none !important;
}

body.product-preview-open {
  overflow: hidden;
}

/* Zoom button on preview visual */
.product-preview__zoom {
  position: absolute;
  top: 0.65rem;
  right: 3.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #017eff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-preview__zoom:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 1);
}

/* Full-screen zoom overlay */
.product-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.product-zoom-overlay[hidden] {
  display: none !important;
}

.product-zoom__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-zoom__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.product-zoom__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.product-zoom__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.product-zoom__hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 720px) {
  .product-zoom__hint {
    font-size: 0.65rem;
    bottom: 1rem;
    padding: 0.3rem 0.75rem;
  }

  .product-zoom__close {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.4rem;
  }

  .product-preview__zoom {
    top: 0.5rem;
    right: 3rem;
    width: 2rem;
    height: 2rem;
  }
}

@media (min-width: 720px) {
  .product-preview {
    align-items: center;
    padding: 1.5rem;
  }

  .product-preview__sheet {
    width: min(100%, 440px);
    max-height: min(92vh, 820px);
    border-radius: 18px;
    animation-name: product-preview-in-desktop;
  }

  @keyframes product-preview-in-desktop {
    from {
      transform: translateY(12px) scale(0.98);
      opacity: 0;
    }
    to {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }

  .product-preview__visual {
    min-height: 160px;
    max-height: 200px;
    padding: 1.5rem 1rem 0.75rem;
  }

  .product-preview__visual .product-visual-img,
  .product-preview__visual .vial-visual-svg {
    width: min(50vw, 170px);
    max-height: 180px;
  }

  .product-preview__hint--lead {
    font-size: 0.82rem;
  }
}

.stack-preview__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f8fafc;
}

.stack-preview__img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.stack-preview__components {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stack-preview__kit {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1px solid rgba(1, 126, 255, 0.12);
}

.stack-preview__kit-head {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.stack-preview__kit-fallback {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.stack-preview__kit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.stack-preview__kit-list li {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.stack-preview__kit-name {
  font-weight: 600;
  color: var(--text);
}

.stack-preview__kit-dose {
  font-weight: 600;
  color: #017eff;
}

.home-stack-card__kit {
  font-size: 0.74rem;
  line-height: 1.45;
}

.stack-preview__best {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
}

.catalog-card__detail {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}
.catalog-card__detail a {
  color: #1a3a32;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quote-bar__tier,
[data-quote-tier-badge] {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}
.quote-panel__foot-actions {
  flex-wrap: wrap;
}
