.item-view-page * {
  box-sizing: border-box;
}

/* FIX-R04: dvh fallback */
.item-view-page {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper);
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
}

.item-view-page .container {
  width: min(1120px, 92%);
  margin-inline: auto;
  box-sizing: border-box;
  max-width: 1120px;
}

.item-view-page .breadcrumbs {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.item-view-page .breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-view-page .breadcrumbs__list li:not(:last-child)::after {
  content: '/';
  color: var(--muted);
  margin-left: 0.5rem;
}

.item-view-page .breadcrumbs__list a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.item-view-page .breadcrumbs__list a:hover {
  color: var(--primary-600);
}

.item-view-page .breadcrumbs__list li[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.item-view-page .item-view-main {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.item-view-page .item-view-main__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.item-view-page .item-view-main__grid > .item-view-info__features--fullwidth {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  clear: both;
}

.item-view-page .item-view-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: 600px;
  gap: 1rem;
  grid-column: 1 / 2;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
  align-items: stretch;
  align-content: stretch;
  height: 600px;
  max-height: 600px;
  min-height: 600px;
}

.item-view-page .item-view-gallery__thumbnails-wrapper {
  grid-column: 1;
  grid-row: 1;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  position: relative;
  align-items: stretch;
  align-self: stretch;
  box-sizing: border-box;
  overflow: visible;
  gap: 0.5rem;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.item-view-page .item-view-gallery__thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  height: 512px;
  min-height: 512px;
  max-height: 512px;
  flex: 0 0 512px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 512px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
  align-content: flex-start;
  position: relative;
  overflow: hidden auto;
  text-align: left;
  justify-content: flex-start;
}

.item-view-page .item-view-gallery__thumbnails::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* FIX-R05: transition específico + FIX-R07: min touch target */
.item-view-page .item-view-gallery__thumb-nav {
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  border: none;
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 0.875rem;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  flex: 0 0 36px;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-user-select: none;
  user-select: none;
}

.item-view-page .item-view-gallery__thumb-nav i {
  pointer-events: none;
}

.item-view-page .item-view-gallery__thumb-nav:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .1);
}

.item-view-page .item-view-gallery__thumb-nav:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.item-view-page .item-view-gallery__thumb-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

/* FIX-R05: transition específico */
.item-view-page .item-view-gallery__thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
  position: relative;
  display: block;
  flex-shrink: 0;
  margin: 0;
  box-sizing: border-box;
}

.item-view-page .item-view-gallery__thumb:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.item-view-page .item-view-gallery__thumb.is-active {
  border-color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
}

.item-view-page .item-view-gallery__thumb:focus {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

.item-view-page .item-view-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.item-view-page .item-view-gallery__main {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  background: #f8fafc;
  border-radius: 20px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  max-height: 800px;
  min-height: 600px;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  height: 100%;
  align-self: stretch;
}

.item-view-page .item-view-gallery__main-image {
  width: 100%;
  height: 100%;
  max-height: 800px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-sizing: border-box;
  margin: 0;
}

.item-view-page .item-view-gallery__main-image img {
  max-width: 100%;
  max-height: 750px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.item-view-page .item-view-info {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.item-view-page .item-view-info__header {
  display: grid;
  gap: 0.5rem;
}

.item-view-page .item-view-info__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

.item-view-page .item-view-info__brand-label {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  color: var(--ink);
}

.item-view-page .item-view-info__brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-600);
}

.item-view-page .item-view-info__capacity {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.item-view-page .item-view-info__capacity-label {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  color: var(--ink);
  display: block;
  line-height: 1.5;
  width: 100%;
}

.item-view-page #item-view-capacity-display {
  font-weight: 600;
  color: var(--primary-600);
  display: inline-block;
}

.item-view-page .item-view-info__capacity-select-wrapper {
  width: 100%;
  display: block;
  position: relative;
}

.item-view-page .item-view-info__label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

/* FIX-R05: transition específico + FIX-R10: font-size para iOS */
.item-view-page .product-variant-selector {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 0.8rem 1rem;
  padding-right: 2.5rem;
  border: 2px solid #dbe8f4;
  border-radius: 12px;
  font-size: max(16px, 1rem);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230b0f19' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  position: relative;
  z-index: 1;
}

.item-view-page .product-variant-selector:hover {
  border-color: var(--primary);
}

.item-view-page .product-variant-selector:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .1);
}

.item-view-page .item-view-info__description {
  color: var(--muted);
  line-height: 1.7;
}

.item-view-page .item-view-info__description p {
  margin: 0.8rem 0;
}

.item-view-page .item-view-info__description p:first-child {
  margin-top: 0;
}

.item-view-page .item-view-features {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.item-view-page .item-view-info__features {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 77, 107, 0.06), rgba(30, 77, 107, 0.03));
  border-radius: 16px;
  border: 1px solid rgba(30, 77, 107, 0.12);
}

.item-view-page .item-view-info__features--fullwidth {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
  max-width: 100%;
  clear: both;
}

.item-view-page .item-view-info__features-title {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.item-view-page .item-view-info__features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.item-view-page .item-view-info__features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.item-view-page .item-view-info__features-list i {
  color: var(--primary-600);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.item-view-page .item-view-info__note {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
}

.item-view-page .item-view-info__actions {
  margin-top: 0.5rem;
}

.item-view-page .btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-view-page .item-view-info__warranty {
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--primary-600);
}

.item-view-page .item-view-info__warranty p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.item-view-page .item-view-info__warranty strong {
  color: var(--ink);
}

.item-view-page .item-view-details {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 2px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .item-view-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.5rem;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.item-view-page .item-view-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 769px) {
  .item-view-page .item-view-tabs {
    flex-wrap: nowrap;
    overflow-x: hidden;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab {
    flex: 0 1 auto;
    min-width: auto;
    width: auto;
  }
}

/* FIX-R05: transition específico */
.item-view-page .item-view-tab {
  padding: 0.8rem 1.4rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
  position: relative;
  bottom: -2px;
}

.item-view-page .item-view-tab:hover {
  color: var(--primary-600);
  background: rgba(30, 77, 107, 0.06);
}

.item-view-page .item-view-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border-bottom: 2px solid var(--primary-600);
}

.item-view-page .item-view-tab i {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1rem;
  transition: color var(--t-fast) ease;
}

.item-view-page .item-view-tab span {
  display: inline-block;
}

.item-view-page .item-view-tab.is-active i {
  color: #fff;
}

.item-view-page .item-view-panels {
  display: grid;
  gap: 2rem;
}

.item-view-page .item-view-panel {
  display: block;
  animation: fadeIn 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.item-view-page .item-view-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-view-page .item-view-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1.5rem 0;
  color: var(--ink);
}

.item-view-page .item-view-panel p {
  line-height: 1.8;
  color: var(--muted);
  margin: 1rem 0;
}

.item-view-page .item-view-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* FIX-R05: transition específico */
.item-view-page .item-view-feature {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}

.item-view-page .item-view-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  border-color: var(--primary);
}

.item-view-page .item-view-feature h3 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.item-view-page .item-view-feature h3 i {
  color: var(--primary-600);
  font-size: 1.3rem;
}

.item-view-page .item-view-feature p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.item-view-page .item-view-features-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .item-view-specs-table {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.item-view-page .item-view-specs-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.item-view-page .item-view-specs-table--wide {
  overflow-x: visible;
}

.item-view-page .item-view-specs-table--wide table {
  min-width: 0;
  width: 100%;
}

.item-view-page .item-view-specs-table--wide thead {
  display: none;
}

.item-view-page .item-view-specs-table--wide tbody {
  display: block;
}

.item-view-page .item-view-specs-table--wide tbody tr {
  display: block;
  margin-bottom: 1.5rem;
  background: var(--paper);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .item-view-specs-table--wide tbody tr:last-child {
  margin-bottom: 0;
}

.item-view-page .item-view-specs-table--wide tbody td {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  text-align: right;
}

.item-view-page .item-view-specs-table--wide tbody td:last-child {
  border-bottom: none;
}

.item-view-page .item-view-specs-table--wide tbody td::before {
  content: attr(data-label);
  font-weight: 700;
  color: var(--ink);
  margin-right: 1rem;
  flex-shrink: 0;
  min-width: 40%;
  font-size: 0.95rem;
  text-align: left;
}

.item-view-page .item-view-specs-table th,
.item-view-page .item-view-specs-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .item-view-specs-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--ink);
  width: 40%;
  font-size: 0.95rem;
}

.item-view-page .item-view-specs-table td {
  color: var(--muted);
  font-size: 0.95rem;
}

.item-view-page .item-view-specs-table tr:last-child th,
.item-view-page .item-view-specs-table tr:last-child td {
  border-bottom: none;
}

.item-view-page .item-view-specs-table tr:hover td {
  background: rgba(30, 77, 107, 0.03);
}

.item-view-page .item-view-specs-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.item-view-page .item-view-specs-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.item-view-page .item-view-specs-note p span {
  color: var(--muted);
}

.item-view-page .item-view-info__variant {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.item-view-page .item-view-info__variant-label {
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  color: var(--ink);
}

.item-view-page .item-view-info__variant-label strong {
  color: var(--ink);
}

.item-view-page .item-view-info__variant-select-wrapper {
  width: 100%;
}

.item-view-page .item-view-documents {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.item-view-page .item-view-document-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.item-view-page .item-view-document-header {
  margin-bottom: 1.5rem;
}

.item-view-page .item-view-document-header h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.item-view-page .item-view-document-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.item-view-page .item-view-document-controls .btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.item-view-page .item-view-document-controls .btn i {
  font-size: 0.75em;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.item-view-page .item-view-pdf-page-info {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.item-view-page .item-view-pdf-viewer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  position: relative;
  min-height: 600px;
  display: block;
  padding: 1rem;
  box-sizing: border-box;
  cursor: default;
  transition: cursor 0.2s ease;
  contain: strict;
}

.item-view-page .item-view-pdf-viewer.can-pan {
  cursor: grab;
}

.item-view-page .item-view-pdf-viewer.is-panning {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.item-view-page #pdf-canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  margin: 0 auto;
  background: var(--paper);

  box-sizing: border-box;
  flex-shrink: 0;
}

.item-view-page #pdf-canvas[style*="px"] {
  max-width: none;
  margin: 0 auto;
  display: block;
}

.item-view-page .item-view-pdf-loading,
.item-view-page .item-view-pdf-error {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.item-view-page .item-view-pdf-loading i,
.item-view-page .item-view-pdf-error i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.item-view-page .item-view-pdf-error {
  color: #dc2626;
}

@media (max-width: 768px) {
  .item-view-page .item-view-main__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .item-view-page .item-view-gallery {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    height: auto;
    min-height: auto;
    max-height: none;
    gap: 1rem;
  }

  .item-view-page .item-view-gallery__thumbnails-wrapper {
    grid-column: unset;
    grid-row: unset;
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100px !important;
    max-height: none !important;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    margin-top: 1rem;
    overflow: visible;
    display: flex !important;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    flex-shrink: 1 !important;
  }

  .item-view-page .item-view-gallery__thumbnails {
    flex-direction: row;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    flex: 1 1 auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-height: none !important;
    height: auto !important;
    min-height: 80px !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start !important;
  }

  .item-view-page .item-view-gallery__thumbnails::-webkit-scrollbar {
    display: none;
  }

  .item-view-page .item-view-gallery__thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .item-view-page .item-view-gallery__thumbnails > .item-view-gallery__thumb {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
  }

  .item-view-page .item-view-gallery__thumb-nav {
    width: 36px;
    min-width: 36px;
    height: 80px;
    min-height: 80px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex !important;
    position: relative;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .item-view-page .item-view-gallery__thumb-nav--up {
    order: -1;
  }

  .item-view-page .item-view-gallery__thumb-nav--down {
    order: 1;
  }

  /* Fallback CSS: rotar flechas up/down a left/right en móvil antes de que JS las cambie */
  .item-view-page .item-view-gallery__thumb-nav--up i.fa-chevron-up {
    transform: rotate(-90deg);
  }

  .item-view-page .item-view-gallery__thumb-nav--down i.fa-chevron-down {
    transform: rotate(-90deg);
  }

  .item-view-page .item-view-gallery__main {
    grid-column: unset;
    grid-row: unset;
    order: 1;
    min-height: 400px;
    max-height: 700px;
    height: auto;
    width: 100%;
  }

  .item-view-page .item-view-gallery__main-image {
    min-height: 400px;
    max-height: 700px;
    padding: 2rem;
  }

  .item-view-page .item-view-info {
    grid-column: 1 / -1;
  }

  .item-view-page .item-view-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: visible;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
    position: relative;
  }

  .item-view-page .item-view-tabs.tabs-expanded {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .item-view-page .item-view-tabs.tabs-expanded::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab {
    min-width: auto;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 48px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab span {
    display: inline-block;
    white-space: nowrap;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab i {
    margin-right: 0;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab:not(.is-active) {
    background: #f1f5f9;
    color: var(--muted);
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab:not(.is-active):hover {
    background: #e2e8f0;
    color: var(--primary-600);
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    z-index: 10;
    position: relative;
    bottom: -2px;
  }

  .item-view-page .item-view-tabs.tabs-expanded .item-view-tab.is-active i {
    color: #fff;
  }

  .item-view-page .item-view-tabs.tabs-stacked {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .item-view-page .item-view-tabs.tabs-stacked::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab.is-active {
    flex: 0 0 auto;
    min-width: auto;
    width: auto;
    max-width: none;
    height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 100;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab.is-active span {
    display: inline-block;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab.is-active i {
    margin-right: 0;
    font-size: 1rem;
    color: #fff;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab:not(.is-active) {
    width: var(--stacked-tab-width, 24px);
    height: 48px;
    min-width: var(--stacked-tab-width, 24px);
    max-width: var(--stacked-tab-width, 24px);
    padding: 0.5rem 0.15rem;
    border-radius: 12px 12px 0 0;
    background: #f1f5f9;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    transition: width 0.2s ease, margin-left 0.2s ease, z-index 0.2s ease;
    position: relative;
    bottom: 0;
    overflow: hidden;
    pointer-events: auto;
    z-index: calc(10 - var(--tab-index, 0));
    margin-left: calc(var(--tab-offset, 0) * -1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab:not(.is-active):hover {
    background: #e2e8f0;
    color: var(--primary-600);
    transform: translateY(-2px);
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, z-index 0.2s ease, box-shadow 0.2s ease;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab:not(.is-active) span {
    display: none;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab:not(.is-active) i {
    margin-right: 0;
    font-size: 1.2rem;
    color: var(--muted);
    margin-left: 2px;
    flex-shrink: 0;
  }

  .item-view-page .item-view-tabs.tabs-stacked .item-view-tab:not(.is-active):hover i {
    color: var(--primary-600);
  }

  .item-view-page .item-view-tab:not(.is-active) {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    padding: 0.5rem;
    border-radius: 12px 12px 0 0;
    background: #f1f5f9;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    bottom: 0;
  }

  .item-view-page .item-view-tab:not(.is-active):hover {
    background: #e2e8f0;
    color: var(--primary-600);
    transform: translateY(-2px);
  }

  .item-view-page .item-view-tab:not(.is-active) span {
    display: none;
  }

  .item-view-page .item-view-tab:not(.is-active) i {
    margin-right: 0;
    font-size: 1.2rem;
    color: var(--muted);
  }

  .item-view-page .item-view-tab:not(.is-active):hover i {
    color: var(--primary-600);
  }

  .item-view-page .item-view-tab.is-active {
    min-width: auto;
    width: auto;
    max-width: none;
    height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .item-view-page .item-view-tab.is-active span {
    display: inline-block;
  }

  .item-view-page .item-view-tab.is-active i {
    margin-right: 0;
    font-size: 1rem;
    color: #fff;
  }

  .item-view-page .item-view-panels {
    margin-top: 0.5rem;
  }

  .item-view-page .item-view-panel {
    animation: fadeIn 0.3s ease;
  }

  .item-view-page .item-view-features-grid {
    grid-template-columns: 1fr;
  }

  .item-view-page .item-view-pdf-viewer {
    min-height: 500px;
  }

  .item-view-page .item-view-document-controls {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .item-view-page .item-view-document-controls .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  .item-view-page .item-view-document-controls .btn i {
    font-size: 0.75em;
    margin-right: 0.25rem;
    flex-shrink: 0;
  }

  .item-view-page .item-view-pdf-page-info {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .item-view-page .item-view-gallery__thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .item-view-page .item-view-gallery__thumbnails-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 90px !important;
    max-height: none !important;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    margin-top: 1rem;
    overflow: visible;
    display: flex !important;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 1 !important;
  }

  .item-view-page .item-view-gallery__thumbnails {
    flex-direction: row;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0.5rem 0;
    gap: 0.5rem;
    width: 100%;
    flex: 1 1 auto !important;
    scroll-snap-type: x mandatory;
    height: auto !important;
    min-height: 70px !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    max-height: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: flex-start !important;
  }

  .item-view-page .item-view-gallery__thumb-nav {
    width: 32px;
    min-width: 32px;
    height: 70px;
    min-height: 70px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex !important;
    position: relative;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .item-view-page .item-view-gallery__thumb-nav--up {
    order: -1;
  }

  .item-view-page .item-view-gallery__thumb-nav--down {
    order: 1;
  }

  /* Fallback CSS: rotar flechas up/down a left/right en móvil antes de que JS las cambie */
  .item-view-page .item-view-gallery__thumb-nav--up i.fa-chevron-up {
    transform: rotate(-90deg);
  }

  .item-view-page .item-view-gallery__thumb-nav--down i.fa-chevron-down {
    transform: rotate(-90deg);
  }

  .item-view-page .item-view-gallery__main {
    min-height: 350px;
    max-height: 600px;
    height: auto;
  }

  .item-view-page .item-view-gallery__main-image {
    min-height: 350px;
    max-height: 600px;
    padding: 1.5rem;
  }

  .item-view-page .item-view-info__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .item-view-page .item-view-info__features {
    padding: 1.2rem;
  }

  .item-view-page .item-view-specs-table th,
  .item-view-page .item-view-specs-table td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .item-view-page .item-view-specs-table th {
    width: 45%;
  }

  .item-view-page .item-view-specs-table--wide tbody tr {
    padding: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .item-view-page .item-view-specs-table--wide tbody td {
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }

  .item-view-page .item-view-specs-table--wide tbody td::before {
    font-size: 0.9rem;
    min-width: 45%;
  }

  .item-view-page .item-view-document-controls {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .item-view-page .item-view-document-controls .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0.35rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  .item-view-page .item-view-document-controls .btn i {
    font-size: 0.75em;
    margin-right: 0.2rem;
    flex-shrink: 0;
  }

  .item-view-page #pdf-prev .pdf-btn-text,
  .item-view-page #pdf-next .pdf-btn-text,
  .item-view-page .item-view-document-controls a[download] .pdf-btn-text {
    display: none;
  }

  .item-view-page .item-view-pdf-page-info {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  .item-view-page .item-view-pdf-viewer {
    min-height: 400px;
  }
}

/* ---------- Collection PDF Viewer (native <object>) ---------- */

.collection-pdf {
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
  background: #fff;
}

.collection-pdf__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .6rem 1rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #94a3b8;
  font-size: .84rem;
}

.collection-pdf__filename {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-pdf__filename i {
  color: #ef4444;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.collection-pdf__actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.collection-pdf__btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}

.collection-pdf__btn:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.collection-pdf__btn--primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.collection-pdf__btn--primary:hover {
  background: var(--primary-600);
}

.collection-pdf__viewer {
  height: 80vh;
  background: #e2e8f0;
}

.collection-pdf__viewer object {
  display: block;
}

.collection-pdf__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  gap: .6rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.collection-pdf__fallback > i {
  font-size: 3.5rem;
  color: #ef4444;
  opacity: .5;
  margin-bottom: .5rem;
}

.collection-pdf__fallback p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .collection-pdf__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: .7rem .8rem;
  }

  .collection-pdf__filename {
    font-size: .78rem;
    justify-content: center;
  }

  .collection-pdf__actions {
    justify-content: center;
  }

  .collection-pdf__viewer {
    display: none;
  }
}