/* Product Detail Page - Tactical Design */

.product-detail-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* ---- Media Column ---- */
.product-media-column {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-main-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--t-surface-lowest, var(--t-surface));
  border-radius: 0;
}

.product-main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 200ms ease;
}

.product-main-image-wrapper img.is-transitioning {
  opacity: 0;
}

.gallery-nav-btn {
  background: var(--t-surface-high);
  border: 1px solid var(--t-outline-variant);
  color: var(--t-on-surface);
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: var(--t-surface-highest);
}

.product-thumbnail-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  min-width: 0;
}

.product-thumbnails-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 0;
  min-width: 0;
}

.product-thumbnails-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 5.25rem;
  height: 5.25rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--t-surface-low);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  opacity: 0.65;
}

.horizontal-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.horizontal-thumbnail.active {
  opacity: 1;
}

.horizontal-thumbnail:focus-visible {
  outline: none;
}

.horizontal-thumbnail:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.horizontal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* ---- Info Column ---- */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title-main {
  font-family: var(--font-family-heading);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--t-on-surface);
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--t-outline-variant);
  position: relative;
}

.product-title-main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 1px;
  background: var(--t-primary);
}

/* Options */
.product-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-options-group label {
  font-family: var(--font-family-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
}

.product-options-btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-option-btn {
  background: var(--t-surface-container);
  border: 1px solid var(--t-outline-variant);
  color: var(--t-on-surface);
  font-family: var(--font-family-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.product-option-btn:hover {
  border-color: var(--t-primary);
  color: var(--t-primary);
}

.product-option-btn.selected {
  background: rgba(76, 214, 255, 0.1);
  border-color: var(--t-primary);
  color: var(--t-primary);
}

.product-option-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--t-outline-variant);
  color: var(--t-on-surface-muted);
}

/* Color swatch — square tactical variant */
.color-swatch {
  border-radius: var(--radius-sm);
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
}

.color-swatch.selected,
.color-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--t-surface-container), 0 0 0 5px var(--t-primary);
}

/* Price */
.product-price-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--t-primary);
  letter-spacing: -0.03em;
}

.product-description-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--t-outline-variant);
}

.product-description-section h3 {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--t-primary);
  background: rgba(var(--t-primary-rgb), 0.08);
  border: 1px solid rgba(var(--t-primary-rgb), 0.2);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.product-description-section h2 {
  font-size: 0.6875rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
  margin-bottom: 1rem;
}

.product-description {
  font-size: 0.9375rem;
  color: var(--t-on-surface-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-description-footer {
  margin-top: 1.5rem;
}

.product-description img,
.product-description video,
.product-description iframe {
  max-width: 100%;
  height: auto;
}

.product-description pre {
  background: var(--t-surface-variant, #f3f4f6);
  border: 1px solid var(--t-outline-variant);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-description code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-description pre code {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: var(--t-on-surface);
}

.product-description p {
  margin-bottom: 0.75rem;
}

.product-description ul,
.product-description ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-description ul {
  list-style: disc;
}

.product-description ol {
  list-style: decimal;
}

.product-description li {
  margin-bottom: 0.375rem;
}

.product-downloads-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--t-outline-variant);
}

.product-downloads-list {
  margin-bottom: 0;
}

.product-downloads-list a {
  color: var(--t-primary);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.product-downloads-list a:hover {
  color: var(--t-on-surface);
}

.product-description .highlight-primary {
  color: var(--t-primary);
  background: transparent;
  padding: 0;
}

.product-description .spec-table,
.product-description table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  background: transparent;
  border: none;
}

.product-description .spec-table td,
.product-description .spec-table th,
.product-description table td,
.product-description table th {
  padding: 0;
  width: auto;
  border: none;
  font-size: 0.9rem;
  color: var(--t-on-surface-muted);
  vertical-align: top;
  line-height: 1.5;
}

.product-description .spec-table td:first-child,
.product-description .spec-table th:first-child {
  font-weight: 400;
  color: var(--t-on-surface-muted);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  padding-right: 0.5rem;
}

.product-description .spec-table tr:last-child td {
  border-bottom: none;
}

.product-description table td,
.product-description table th {
  width: 50%;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--t-outline-variant);
  font-size: 0.875rem;
  color: var(--t-on-surface-muted);
  vertical-align: top;
}

.product-description table td:first-child,
.product-description table th:first-child {
  font-weight: 700;
  color: var(--t-on-surface-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-description table tr:last-child td,
.product-description table tr:last-child th {
  border-bottom: none;
}

.product-description h1,
.product-specifications h1 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--t-on-surface);
  margin: 1.25rem 0 0.625rem;
}

.product-description h2,
.product-specifications h2 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t-on-surface);
  margin: 1rem 0 0.5rem;
}

.product-description h3,
.product-specifications h3 {
  font-family: var(--font-family-heading);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--t-on-surface);
  text-decoration: underline;
  margin: 0.75rem 0 0.375rem;
}

.product-specifications {
  font-size: 0.9375rem;
  color: var(--t-on-surface-muted);
  line-height: 1.7;
}

.product-specifications p {
  margin-bottom: 0.75rem;
}

.product-specifications ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  list-style: disc;
}

.product-specifications li {
  margin-bottom: 0.375rem;
}

.product-specifications .highlight-primary {
  color: var(--t-primary);
  background: transparent;
  padding: 0;
}

.product-specifications .spec-table,
.product-specifications table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  background: transparent;
  border: none;
}

.product-specifications .spec-table td,
.product-specifications .spec-table th,
.product-specifications table td,
.product-specifications table th {
  padding: 0;
  width: auto;
  border: none;
  font-size: 0.9rem;
  color: var(--t-on-surface-muted);
  vertical-align: top;
  line-height: 1.5;
}

.product-specifications .spec-table td:first-child,
.product-specifications .spec-table th:first-child {
  font-weight: 400;
  color: var(--t-on-surface-muted);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  padding-right: 0.5rem;
}

.product-specifications .spec-table tr:last-child td {
  border-bottom: none;
}

.product-specifications table td,
.product-specifications table th {
  width: 50%;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--t-outline-variant);
  font-size: 0.875rem;
  color: var(--t-on-surface-muted);
  vertical-align: top;
}

.product-specifications table td:first-child,
.product-specifications table th:first-child {
  font-weight: 700;
  color: var(--t-on-surface-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-specifications table tr:last-child td,
.product-specifications table tr:last-child th {
  border-bottom: none;
}

/* Related Products */
.related-products-section {
  margin-top: 4rem;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- Image Meta Overlay ---- */
.product-image-meta-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  z-index: 2;
  pointer-events: none;
}

.product-meta-serial {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(50, 53, 56, 0.9);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-primary);
  border-left: 2px solid var(--t-primary);
}

.product-meta-mat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(50, 53, 56, 0.9);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 226, 230, 0.5);
}

/* ---- System Optimal Indicator ---- */
.product-system-optimal {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 2;
  pointer-events: none;
}

.product-system-optimal-dot {
  width: 0.625rem;
  height: 0.625rem;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-optimal 2s ease-in-out infinite;
}

@keyframes pulse-optimal {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.product-system-optimal-text {
  font-size: 0.6875rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #10B981;
}

/* ---- Section Labels (KALIBER WÄHLEN / FARBPROFIL) ---- */
.product-section-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
}

/* ---- Variant List (full-width rows) ---- */
.product-variants-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--t-outline-variant) transparent;
  padding-right: 0.25rem;
}

.product-variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: rgba(var(--t-primary-rgb), 0.05);
  border: 1px solid rgba(var(--t-primary-rgb), 0.2);
  color: var(--t-on-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}

.product-variant-row:hover {
  background: rgba(var(--t-primary-rgb), 0.1);
  border-color: rgba(var(--t-primary-rgb), 0.35);
}

.product-variant-row.selected {
  background: rgba(var(--t-primary-rgb), 0.06);
  border: 2px solid var(--t-primary);
}

.product-variant-name {
  font-family: var(--font-family-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-variant-row:not(.selected) .product-variant-name {
  color: var(--t-on-surface-muted);
}

.product-variant-badge {
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
  opacity: 0.5;
}

.product-variant-row.selected .product-variant-badge {
  color: var(--t-primary);
  opacity: 1;
}

/* ---- Color Swatches ---- */
.product-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.color-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.color-swatch-btn:hover {
  opacity: 0.8;
}

.color-swatch-btn.selected {
  opacity: 1;
}

.color-swatch-btn:disabled,
.color-swatch-btn.color-swatch-btn-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.color-swatch-btn:disabled:hover,
.color-swatch-btn.color-swatch-btn-disabled:hover {
  opacity: 0.55;
}

.color-swatch-square {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--t-outline-variant);
  transition: border-color 0.15s, box-shadow 0.15s;
  background-color: var(--swatch-color, #888888);
}

.color-swatch-btn.selected .color-swatch-square {
  border: 2px solid var(--t-primary);
  box-shadow: 0 0 0 2px var(--t-surface-container), 0 0 0 4px var(--t-primary);
}

.color-swatch-label {
  font-size: 0.6rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-on-surface);
}

.color-swatch-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.color-swatch-hint {
  font-size: 0.55rem;
  font-family: var(--font-family-body);
  color: var(--t-on-surface-muted);
}

.color-swatch-btn:not(.selected) .color-swatch-label {
  color: var(--t-on-surface-muted);
}

/* ---- Price + Tax Label ---- */
.product-price-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--t-outline-variant);
}

.product-price-tax-label {
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
  opacity: 0.6;
  white-space: nowrap;
}

/* ---- Add to Arsenal CTA ---- */
.button.primary.add-to-arsenal {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
  justify-content: center;
}

.button.primary.add-to-arsenal.add-to-cart {
  background: rgba(var(--t-primary-rgb), 0.08);
  border: 1px solid rgba(var(--t-primary-rgb), 0.2);
  color: var(--t-primary);
  box-shadow: none;
}

.button.primary.add-to-arsenal.add-to-cart:hover {
  background: rgba(var(--t-primary-rgb), 0.1);
  border-color: rgba(var(--t-primary-rgb), 0.35);
  color: var(--t-on-surface);
  box-shadow: none;
  filter: none;
}

/* ---- Description Block (full-width below grid) ---- */
.product-description-block {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--t-outline-variant);
}

.product-description-inner {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.product-description-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(var(--t-primary-rgb), 0.08);
  border: 1px solid rgba(var(--t-primary-rgb), 0.2);
  font-size: 1.125rem;
  font-family: var(--font-family-heading);
  font-weight: 900;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--t-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* ---- Related Products — 3-column horizontal cards ---- */
.related-products-section h3 {
  font-family: var(--font-family-heading);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--t-primary);
  margin-bottom: 1.5rem;
}

.related-products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.related-product-card {
  background: var(--t-surface-low);
  border: 1px solid var(--t-outline-variant);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.related-product-card:hover {
  background: var(--t-surface-container);
}

.related-product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
}

.related-product-thumb {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(var(--t-primary-rgb), 0.06), transparent 60%),
    var(--t-surface-container);
  border-radius: var(--radius-sm);
  border: 1px solid var(--t-outline-variant);
  overflow: hidden;
}

.related-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: filter 0.4s ease;
}

.related-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0;
}

.related-product-name {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--t-on-surface);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.related-product-price {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--t-primary);
  letter-spacing: -0.02em;
}

.related-product-availability {
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-on-surface-muted);
  opacity: 0.5;
}

.related-product-card-actions {
  padding: 0 1.5rem 1.5rem;
}

.related-product-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(var(--t-primary-rgb), 0.08);
  border: 1px solid rgba(var(--t-primary-rgb), 0.2);
  color: var(--t-primary);
  font-family: var(--font-family-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.related-product-add-btn:hover {
  background: var(--t-primary);
  color: var(--t-surface);
  box-shadow: 0 0 30px rgba(var(--t-primary-rgb), 0.15);
}

.related-product-card:hover .related-product-add-btn {
  box-shadow: 0 0 16px rgba(var(--t-primary-rgb), 0.1);
}

.add-to-cart {
  width: 100%;
  max-width: 100%;
  padding: 1.125rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.1s;
  white-space: normal;
  word-break: break-word;
}

.add-to-cart:active {
  transform: scale(0.98);
}

.product-back-row {
  margin-bottom: 1rem;
  margin-top: 0;
}

@media (max-width: 900px) {
  .product-detail-main-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .product-media-column {
    position: static;
    top: auto;
    min-width: 0;
  }

  .product-info-column {
    min-width: 0;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .product-variant-row {
    padding: 0.75rem;
  }

  .product-variant-name {
    font-size: 0.8125rem;
  }

  .product-back-row {
    margin-bottom: 1.5rem;
  }

  .product-main-image-wrapper {
    aspect-ratio: 1 / 1;
  }

  .product-detail-main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-color-swatches {
    gap: 0.625rem;
  }

  .color-swatch-square {
    width: 2.75rem;
    height: 2.75rem;
  }

  .product-title-main {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
    overflow-wrap: anywhere;
  }

  .horizontal-thumbnail {
    width: 4rem;
    height: 4rem;
  }

  .product-description-block {
    padding: 1.25rem 0;
    margin-top: 1.25rem;
  }

  .product-description-tag {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1rem;
  }

  .product-description table,
  .product-description .spec-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: auto;
  }
}

@media (max-width: 480px) {
  .product-detail-main-layout {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .related-product-card-top {
    gap: 1rem;
    padding: 1rem;
  }

  .related-product-thumb {
    width: 4.5rem;
    height: 4.5rem;
  }

  .product-thumbnail-nav {
    gap: 0.375rem;
  }

  .gallery-nav-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }

  .horizontal-thumbnail {
    width: 3.25rem;
    height: 3.25rem;
  }

  .product-description-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
}

/* ---- Product Badges ---- */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-family-heading);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  line-height: 1;
}

.product-badge.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: var(--t-success);
  border-color: rgba(16, 185, 129, 0.3);
}

.product-badge.soldout {
  background: rgba(255, 180, 171, 0.1);
  color: var(--t-error);
  border-color: rgba(255, 180, 171, 0.25);
}

.product-badge.on-demand {
  background: rgba(245, 158, 11, 0.12);
  color: var(--t-warning);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ---- Availability Status (add-to-cart inline indicator) ---- */
.availability-status {
  font-size: 0.75rem;
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.availability-status.status-available {
  color: var(--t-success);
}

.availability-status.status-unavailable {
  color: var(--t-error);
  opacity: 0.7;
}

.availability-status.status-on-demand {
  color: var(--t-warning);
}

/* ---- Specs Grid (variant key-value specs) ---- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-key {
  font-weight: bold;
  text-decoration: underline;
  font-style: normal;
  font-size: 1.0625rem;
  color: var(--t-on-surface);
}

.spec-value {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--t-on-surface-muted);
}