/* ================================================ */
/* PRODUCT PAGE — Swiss Industrial Print              */
/* All chromatic values via :root tokens.             */
/* ================================================ */

@import url("../pagestyle.css");

/* ========================================
   BASE LAYOUT
======================================== */
.product-page {
  background: var(--light-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  color: var(--shadow-color);
}

/* ========================================
   PRODUCT HERO — full-viewport, dark backdrop
   Two columns: gallery (left) + info card (right)
======================================== */
.product-hero {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 80px 1fr;
  position: relative;
  background-color: var(--shadow-color);
  background-image: var(--hero-bg, url("/assets/img/page-hero-bg.webp"));
  background-size: cover;
  background-position: center;
  overflow: clip;
  border-bottom: 1px solid var(--border-faint-on-dark);
}

/* Cinematic mask: stronger at edges, mid-dark at center */
.product-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      var(--hero-mask-near) 0%,
      var(--hero-mask-mid) 38%,
      var(--hero-mask-far) 72%,
      var(--hero-mask-mid) 100%
    );
  z-index: 0;
}

/* CRT scanlines on dark backdrop */
.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline-on-dark) 0,
    var(--scanline-on-dark) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

/* Single hazard-red hairline at the bottom */
.product-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  z-index: 4;
}

/* ========================================
   GALLERY COLUMN (left)
======================================== */
.product-hero__gallery {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: heroGalleryIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-gallery {
  width: 100%;
  max-width: 560px;
  padding: 60px 40px;
  position: relative;
}

/* Industrial slug above gallery */
.product-gallery::before {
  content: "// 01 / VISUAL";
  display: block;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  margin-bottom: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: transparent;
  overflow: hidden;
}

/* Swiss-blueprint corner brackets on the image frame */
.product-gallery__main::before,
.product-gallery__main::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 5;
  pointer-events: none;
}

.product-gallery__main::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--primary-color);
  border-left: 1px solid var(--primary-color);
}

.product-gallery__main::after {
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
}

.product-gallery__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.5s ease;
  filter: saturate(0.92);
}

.product-gallery__image.active {
  opacity: 1;
}

.product-gallery__main:hover .product-gallery__image.active {
  transform: scale(1.02);
}

/* Square nav buttons — sharp corners, monochrome */
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--shadow-rgb), 0.7);
  border: 1px solid var(--border-strong-on-dark);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  z-index: 6;
  color: var(--text-on-dark);
  border-radius: 0;
}

.product-gallery__nav:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%);
}

.product-gallery__nav i {
  font-size: 0.9rem;
}

.product-gallery__nav--prev {
  left: 0;
}

.product-gallery__nav--next {
  right: 0;
}

/* Square thumbnails — monochrome with red active state */
.product-gallery__thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-on-dark-faint) transparent;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: 1px solid var(--border-soft-on-dark);
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.5;
  background: var(--surface-tint-on-dark);
  border-radius: 0;
  position: relative;
}

.product-gallery__thumb:hover {
  opacity: 0.85;
  border-color: var(--border-strong-on-dark);
}

.product-gallery__thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

/* ========================================
   INFO CARD COLUMN (right) — light card on dark bg
======================================== */
.product-hero__card {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 0 40px 20px;
  position: relative;
  z-index: 2;
  animation: heroCardIn 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-hero__card-inner {
  background: var(--light-color);
  padding: 48px 44px;
  border-top: 2px solid var(--primary-color);
  border-left: 1px solid var(--border-hairline-on-light);
  border-right: 1px solid var(--border-hairline-on-light);
  border-bottom: 1px solid var(--border-hairline-on-light);
  width: 100%;
  position: relative;
  border-radius: 0;
}

/* Industrial slug above title */
.product-hero__card-inner::before {
  content: "// SPEC";
  display: block;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  margin-bottom: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Product Title — bounded, balanced for variable length */
.product-title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 200;
  color: var(--shadow-color);
  margin: 0 0 28px 0;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 36ch;
}

.product-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.product-hero__card-inner:hover .product-title::after {
  width: 72px;
}

/* Meta — monospace key=value rows with hairline frame */
.product-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-hairline-on-light);
  margin: 0 0 24px 0;
  border: 1px solid var(--border-hairline-on-light);
}

.product-meta__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--light-color);
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
}

.product-meta__item i {
  color: var(--primary-color);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.product-meta__item span {
  color: var(--shadow-color);
  font-weight: 500;
}

/* Description */
.product-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-on-light-muted);
  margin: 0 0 22px 0;
  font-weight: 300;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 60ch;
}

/* Tags row — monospace label + value */
.product-tags {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px 0;
  padding: 14px 0 0 0;
  border-top: 1px solid var(--border-hairline-on-light);
}

.product-tags__label {
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--primary-color);
  white-space: nowrap;
}

.product-tags__value {
  font-size: 0.85rem;
  color: var(--text-on-light-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Actions — single primary CTA, sharp button */
.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.product-actions .btn {
  /* inherits from pagestyle .btn-primary */
  border-radius: 0;
}

/* ========================================
   ENTRY ANIMATIONS
======================================== */
@keyframes heroGalleryIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb-section {
  padding: 22px 0;
  background: var(--light-color);
  border-bottom: 1px solid var(--border-hairline-on-light);
  position: relative;
  height: auto;
  min-height: 0;
}

.breadcrumb-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline-on-light) 0,
    var(--scanline-on-light) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--text-on-light-faint);
  text-decoration: none;
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-on-light-disabled);
  font-weight: 400;
  user-select: none;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--shadow-color);
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* ========================================
   TABS SECTION — main + sticky contact sidebar
======================================== */
.product-tabs {
  width: 100%;
  padding: 80px 0;
  background: var(--light-color);
  position: relative;
  /* No overflow:hidden — would clip position:sticky on the contact sidebar. */
}

.product-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline-on-light) 0,
    var(--scanline-on-light) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 0;
}

.product-tabs__wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.product-tabs__main {
  min-width: 0;
}

/* Tabs nav — industrial bar with monospace labels */
.product-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--border-soft-on-light);
  margin-bottom: 50px;
  flex-wrap: wrap;
  row-gap: 0;
}

.product-tabs__nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-bottom: 1px;
}

.product-tab {
  padding: 16px 28px;
  background: transparent;
  border: none;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-on-light-faint);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
  border-radius: 0;
}

.product-tab:hover {
  color: var(--shadow-color);
}

.product-tab.is-active {
  color: var(--shadow-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel.is-active {
  display: block;
}

/* ========================================
   OVERVIEW PANEL — numbered sections
======================================== */
.product-tabs__panel[data-panel="overview"] {
  counter-reset: overview-index;
}

.overview-section {
  margin-bottom: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-hairline-on-light);
  position: relative;
}

.overview-section:first-child {
  padding-top: 0;
}

.overview-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.overview-section::before {
  content: "// " counter(overview-index, decimal-leading-zero) " / NOTE";
  counter-increment: overview-index;
  display: block;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.overview-title {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 200;
  color: var(--shadow-color);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.15;
  position: relative;
  padding-bottom: 14px;
  display: inline-block;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 42ch;
}

.overview-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.overview-section:hover .overview-title::after {
  width: 64px;
}

.overview-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-on-light-muted);
  margin-bottom: 14px;
  font-weight: 300;
  max-width: 68ch;
}

.overview-text:last-child {
  margin-bottom: 0;
}

/* ========================================
   FEATURES PANEL — spec tables
======================================== */
.features-section {
  margin-bottom: 48px;
}

.features-section:last-child {
  margin-bottom: 0;
}

.features-section__title {
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-strong);
  background: var(--shadow-color);
  padding: 12px 16px;
  margin-bottom: 18px;
  border-left: 2px solid var(--primary-color);
  position: relative;
}

.features-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-hairline-on-light);
  scrollbar-width: thin;
  scrollbar-color: var(--text-on-light-disabled) transparent;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--light-color);
}

.features-table thead {
  background: var(--surface-tint-on-light);
}

.features-table th {
  width: 50%;
  padding: 14px 18px;
  text-align: left;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-soft-on-light);
}

.features-table td {
  width: 50%;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline-on-light);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 0.92rem;
  vertical-align: top;
}

.features-table tr:last-child td {
  border-bottom: none;
}

.features-table tbody tr {
  transition: background-color 0.18s ease;
}

.features-table tbody tr:hover {
  background: var(--surface-tint-on-light);
}

.features-table__label {
  color: var(--text-on-light-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.features-table__value {
  color: var(--shadow-color);
  font-weight: 500;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Scrollbar styling for features table */
.features-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.features-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.features-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--text-on-light-disabled);
}

.features-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-on-light-faint);
}

/* ========================================
   CONTACT SIDEBAR — sticky
======================================== */
.contact-sidebar {
  position: sticky;
  top: 100px;
  background: var(--light-color);
  padding: 28px 24px;
  border: 1px solid var(--border-hairline-on-light);
  border-top: 2px solid var(--primary-color);
  border-radius: 0;
}

.contact-sidebar::before {
  content: "// CONTACT";
  display: block;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  margin-bottom: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-sidebar__title {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 200;
  color: var(--shadow-color);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.15;
  position: relative;
  padding-bottom: 12px;
  text-wrap: balance;
}

.contact-sidebar__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary-color);
}

.contact-sidebar__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  background: var(--border-hairline-on-light);
  border: 1px solid var(--border-hairline-on-light);
}

.contact-sidebar__item {
  display: block;
  background: var(--light-color);
  margin: 0;
}

.contact-sidebar__item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-on-light-muted);
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--light-color);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  position: relative;
}

.contact-sidebar__item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--item-accent, var(--primary-color));
  transition: width 0.25s ease;
}

.contact-sidebar__item a:hover {
  color: var(--shadow-color);
  background: var(--surface-tint-on-light);
  padding-left: 20px;
}

.contact-sidebar__item a:hover::before {
  width: 2px;
}

.contact-sidebar__item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--item-accent, var(--primary-color));
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.contact-sidebar__item a:hover i {
  transform: scale(1.1);
}

/* Per-channel brand tint — applied via --item-accent so the rule above stays generic */
.contact-sidebar__item.whatsapp { --item-accent: var(--brand-whatsapp); }
.contact-sidebar__item.viber    { --item-accent: var(--brand-viber); }
.contact-sidebar__item.telegram { --item-accent: var(--brand-telegram); }
.contact-sidebar__item.email    { --item-accent: var(--primary-color); }

/* CTA inside sidebar */
.contact-sidebar__cta {
  width: 100%;
}

.contact-sidebar__cta .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.contact-sidebar__cta .btn::after {
  content: "→";
  margin-left: 12px;
  font-size: 1.05em;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.contact-sidebar__cta .btn:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.contact-sidebar__cta .btn:hover::after {
  transform: translateX(4px);
}

/* ========================================
   DOWNLOAD PDF BUTTON — industrial outline
======================================== */
.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--shadow-color);
  border: 1px solid var(--border-soft-on-light);
  padding: 10px 18px;
  font-family: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 0;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn-download-pdf:hover {
  background: var(--shadow-color);
  color: var(--white);
  border-color: var(--shadow-color);
}

.btn-download-pdf:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-download-pdf i {
  font-size: 0.95rem;
  color: var(--primary-color);
  transition: color 0.25s ease;
}

.btn-download-pdf:hover i {
  color: var(--white);
}

.btn-download-pdf .fa-spinner {
  animation: pdfSpin 1s linear infinite;
}

@keyframes pdfSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.68rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
  .product-tabs__wrapper {
    padding: 0 32px;
    grid-template-columns: 1fr 280px;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .product-hero {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 65px auto auto;
  }

  .product-hero__gallery {
    grid-row: 2;
    grid-column: 1;
  }

  .product-hero__card {
    grid-row: 3;
    grid-column: 1;
    padding: 0 40px 60px 40px;
    justify-content: center;
  }

  .product-gallery {
    padding: 32px 40px;
    max-width: 520px;
    margin: 0 auto;
  }

  .product-hero__card-inner {
    max-width: 640px;
  }

  .product-tabs__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .product-hero {
    grid-template-rows: 60px auto auto;
  }

  .product-gallery {
    padding: 24px 20px;
  }

  .product-hero__card {
    padding: 0 20px 50px 20px;
  }

  .product-hero__card-inner {
    padding: 32px 24px;
  }

  .product-tabs {
    padding: 56px 0;
  }

  .product-tabs__wrapper {
    padding: 0 24px;
  }

  .product-tabs__nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .product-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .product-tabs__nav-actions {
    margin-left: 0;
  }

  .product-tab {
    padding: 14px 20px;
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-actions .btn {
    width: 100%;
  }

  .overview-section {
    padding: 24px 0;
  }

  .features-table th,
  .features-table td {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .features-table__value {
    font-size: 0.8rem;
  }

  .breadcrumb {
    padding: 0 24px;
  }
}

@media (max-width: 760px) {
  .breadcrumb-section {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-hero__card-inner {
    padding: 26px 20px;
  }

  .product-tabs {
    padding: 36px 0;
  }

  .product-tabs__wrapper {
    padding: 0 20px;
    gap: 32px;
  }

  .product-tab {
    padding: 12px 16px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .features-table th,
  .features-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .features-table__value {
    font-size: 0.76rem;
  }

  .contact-sidebar {
    padding: 22px 18px;
  }

  .product-gallery::before {
    margin-bottom: 14px;
    font-size: 0.625rem;
  }
}
