/* ================================================================
   TROOPAC — product.css
   Product detail page styles.
   Supplements the shared 4 files; all tokens reference shared :root.
   Naming: BEM (Block__Element--Modifier)
   Media queries live in responsive.css.
================================================================ */

/* Product page nav uses .nav--light modifier (see components.css) */
/* This maintains consistency with homepage nav while adapting to light backgrounds */


/* ──────────────────────────────────────────────────────────────
   BREADCRUMB
────────────────────────────────────────────────────────────── */

.breadcrumb {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .65rem 1.5rem;
}

.breadcrumb__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--color-muted);
}

.breadcrumb__link {
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s;
}

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

.breadcrumb__sep {
  color: var(--color-border);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}


/* ──────────────────────────────────────────────────────────────
   PRODUCT HERO
────────────────────────────────────────────────────────────── */

.product-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 1.8rem;
  /* Increased padding by 20% */
}

/* Default: stacked single column — 2-col override at ≥768px at bottom of this file */
.product-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Gallery — left column on desktop */
.product-hero__gallery {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  width: 100%;
  max-width: 380px; /* Constrain size so it's compact and premium */
  margin: 0 auto; /* Center on mobile */
  min-width: 0;
}


/* ──────────────────────────────────────────────────────────────
   PRODUCT IMAGE
────────────────────────────────────────────────────────────── */

.product-image {
  background: transparent;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(11, 61, 46, .05), 0 1px 4px rgba(11, 61, 46, .03);
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  overflow: visible;
}

.product-image__emoji {
  font-size: 5rem;
  line-height: 1;
}

.product-image__badge {
  position: absolute;
  top: .875rem;
  left: .875rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: .22rem .6rem;
  border-radius: 4px;
}

/* Thumbnail strip — hidden until images are provided */
.product-gallery__thumbs-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  margin-top: .625rem;
}

.product-gallery__thumbs {
  display: flex;
  gap: .625rem;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: opacity .2s ease, transform .15s ease, background-color .2s ease;
  outline: none;
  user-select: none;
}

.thumbs-nav:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-muted);
}

.thumbs-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.thumbs-nav--left {
  left: -10px;
}

.thumbs-nav--right {
  right: -10px;
}

.thumbs-nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.product-gallery__thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  transition: border-color .18s, transform .18s;
  box-shadow: var(--shadow-sm);
}

.product-gallery__thumb:hover {
  transform: translateY(-2px);
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  border-color: var(--color-primary-mid);
}

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

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.product-image__container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.product-image__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image__zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(26, 92, 58, 0.12);
  /* Subtle brand green translucent tint */
  border: 1px solid rgba(26, 92, 58, 0.35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
  z-index: 6;
}

.product-image__container:hover .product-image__zoom-lens {
  opacity: 1;
  visibility: visible;
}

.product-image__zoom-window {
  display: none;
}

@media (min-width: 768px) {
  .product-image__zoom-window {
    display: block;
    position: absolute;
    top: 0;
    left: calc(100% + 1.8rem);
    width: 110%;
    height: 110%;
    background-repeat: no-repeat;
    background-size: 240%;
    /* Zoom scale */
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
    z-index: 100;
  }

  .product-image__container:hover~.product-image__zoom-window {
    opacity: 1;
    visibility: visible;
  }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 20, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: lightbox-fade .25s ease-out;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__content {
  position: relative;
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 10010;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, opacity .2s;
  z-index: 10010;
  user-select: none;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__next:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__prev {
  left: 1.5rem;
}

.lightbox__next {
  right: 1.5rem;
}

@keyframes lightbox-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}



/* ──────────────────────────────────────────────────────────────
   PRODUCT INFO
────────────────────────────────────────────────────────────── */

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: .4rem;
}

.product-info__tagline {
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: .01em;
  line-height: 1.5;
}

.product-info__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.35rem 0;
}

.product-info__description {
  font-size: .95rem;
  color: var(--color-text-mid);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.product-info__actions {
  display: flex;
  margin-bottom: 1.25rem;
}

.product-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.product-feature-chip {
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  border: 1px solid rgba(11, 61, 46, .14);
  color: var(--color-primary-mid);
}



/* ──────────────────────────────────────────────────────────────
   PRODUCT SPECIFICATIONS SECTION
────────────────────────────────────────────────────────────── */

.product-specifications {
  background: var(--color-surface);
  padding: 2.4rem 1.8rem;
  /* Increased padding by 20% */
}

.product-specifications__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.spec-panel__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 640px;
}

.spec-table thead tr {
  background: var(--color-primary);
  color: #fff;
}

.spec-table th {
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-table tbody tr:nth-child(odd) {
  background: var(--color-bg);
}

.spec-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.spec-table td {
  padding: .65rem .9rem;
  color: var(--color-text-mid);
  line-height: 1.45;
  vertical-align: top;
}

.spec-table__value {
  line-height: inherit;
}

.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-text);
}

.moq-tag {
  display: inline-block;
  background: #FBF3DC;
  color: var(--color-gold);
  padding: .14rem .48rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .7rem;
  border: 1px solid rgba(200, 146, 47, .2);
  font-family: var(--font-mono);
}

.moq-tag--accent {
  background: var(--color-primary-light);
  color: var(--color-primary-mid);
  border-color: rgba(76, 153, 97, .25);
}

.sku-code {
  display: block;
  margin-top: .2rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  color: var(--color-text-muted, #888);
}

.print-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
}

.print-dot--on {
  background: var(--color-primary-mid);
}

.print-dot--off {
  background: var(--color-border);
}

/* Specifications Chips & Swatches — Default (Desktop) Plain-Text block formatting */
.spec-chips-list {
  display: block;
}

.spec-chip {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: normal;
}



/* ──────────────────────────────────────────────────────────────
   AVAILABLE OPTIONS — list of materials, forms, paper types, etc.
────────────────────────────────────────────────────────────── */

.available-options {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.option-list__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.option-list__items {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.option-badge {
  display: inline-block;
  padding: .35rem .75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--color-primary-mid);
  font-weight: 500;
  white-space: nowrap;
}

.spec-panel__notice {
  margin-top: 1.8rem;
  /* Increased margin */
  padding: 1.2rem 1.45rem;
  /* Increased padding by 20% */
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--color-primary-mid);
}


/* ──────────────────────────────────────────────────────────────
   ALLIED PRODUCTS — Frequently Bought Together
────────────────────────────────────────────────────────────── */

.allied-products {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.1rem 1.8rem 2.4rem;
  /* Increased padding by 20% */
}

.allied-products__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.allied-products__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.allied-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* Vertical product card — image panel top, name + tagline label bottom */
.allied-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  height: 100%;
}

.allied-card:hover {
  border-color: var(--color-primary-mid);
  box-shadow: 0 6px 20px rgba(28, 32, 29, .05);
  transform: translateY(-2px);
}

.allied-card__image {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .6) 0%, transparent 70%),
    linear-gradient(145deg, #E8F4EE 0%, #CCE5D8 100%);
  /* Brand mint/green gradients */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 3rem;
  line-height: 1;
  overflow: hidden;
}

.allied-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.allied-card:hover .allied-card__img {
  transform: scale(1.04);
}

.allied-card__label {
  padding: .85rem 1rem .95rem;
  /* Increased padding by 20% */
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.allied-card__name {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.allied-card__tagline {
  font-size: .72rem;
  color: var(--color-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ──────────────────────────────────────────────────────────────
   QUOTE MODAL
────────────────────────────────────────────────────────────── */

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(.95) translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.quote-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-enter .22s cubic-bezier(.34, 1.56, .64, 1);
}

.quote-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.quote-modal__title-group {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.quote-modal__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary-mid);
}

.quote-modal__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.quote-modal__close {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-mid);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.quote-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.quote-modal__body {
  padding: 2rem;
}


/* ──────────────────────────────────────────────────────────────
   QUOTE FORM
────────────────────────────────────────────────────────────── */

.quote-form__intro {
  font-size: .85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.quote-form__group {
  margin-bottom: 1rem;
}

.quote-form__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .3rem;
  font-family: var(--font-heading);
}

.quote-form__required {
  color: #c0392b;
}

.quote-form__control {
  width: 100%;
  padding: .62rem .85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.quote-form__control:focus {
  border-color: var(--color-primary-mid);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(26, 92, 58, .1);
}

/* Default: 2-col; becomes 1-col at ≤480px via responsive.css */
.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.quote-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--color-text-mid);
  cursor: pointer;
}

.quote-form__checkbox input {
  margin-top: .2rem;
  accent-color: var(--color-primary);
}

.quote-form__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

/* Full-width submit button — extends shared .btn */
.btn--submit {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  justify-content: center;
  width: 100%;
}

.btn--submit:hover:not(:disabled) {
  background: var(--color-primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(11, 61, 46, .28);
}

.btn--submit:disabled {
  background: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: .65;
}

.btn--wa-block {
  width: 100%;
  justify-content: center;
}

.quote-form__divider {
  text-align: center;
  font-size: .78rem;
  color: var(--color-muted);
}

.quote-form__terms {
  font-size: .72rem;
  color: var(--color-muted);
  text-align: center;
}

.quote-form__terms a {
  color: var(--color-primary-mid);
}


/* ──────────────────────────────────────────────────────────────
   LOADING / ERROR STATES
────────────────────────────────────────────────────────────── */

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-loading,
.page-error {
  max-width: 560px;
  margin: 6rem auto;
  text-align: center;
  padding: 2rem;
}

.page-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary-mid);
  border-radius: 50%;
  animation: spinner-spin .8s linear infinite;
  margin: 0 auto 1rem;
}

.page-loading__text {
  font-size: .9rem;
  color: var(--color-muted);
}

.page-error__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-error__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.page-error__message {
  font-size: .875rem;
  color: var(--color-muted);
}

.btn--back {
  background: var(--color-primary);
  color: #fff;
  margin-top: 1.5rem;
}


/* ================================================================
   PRODUCT PAGE — NEW SECTIONS (P2–P7 Refactor)
   Replaces tab-based layout with linear scroll sections.
================================================================ */

/* ── Product image: BI icon placeholder ── */

.product-image__icon {
  font-size: 4.5rem;
  color: var(--color-primary-mid);
  opacity: .45;
}


/* ── Product badges (replaces .product-tags) ── */

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.product-badge i {
  font-size: .8rem;
}

.product-badge--sku {
  background: var(--color-bg);
  color: var(--color-text-mid);
  border: 1px solid var(--color-border);
}

.product-badge--print {
  background: #FBF3DC;
  color: var(--color-gold);
  border: 1px solid rgba(200, 146, 47, .2);
}

.product-badge--eco {
  background: var(--color-primary-light);
  color: var(--color-primary-mid);
  border: 1px solid rgba(11, 61, 46, .12);
}


/* ── Product meta section ── */

.product-meta {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
}

.product-meta__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.product-meta__item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .85rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-meta__item:nth-child(even) {
  border-right: none;
}

.product-meta__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.product-meta__value {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
}


/* ── Spec section ── */

.spec-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.spec-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.spec-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}

.spec-section__sub {
  font-size: .875rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}


/* ── Spec matrix (unified category table) ── */

.spec-matrix-wrap {
  margin-bottom: 2rem;
}

.spec-matrix-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .6rem;
}

.spec-matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.spec-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 420px;
}

.spec-matrix-table thead tr {
  background: var(--color-primary);
  color: #fff;
}

.spec-matrix-table th {
  padding: .65rem .9rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-matrix-table th.spec-matrix-table__bool-col {
  text-align: center;
}

.spec-matrix-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.spec-matrix-table tbody tr:nth-child(odd) {
  background: var(--color-bg);
}

.spec-matrix-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.spec-matrix-table td {
  padding: .6rem .9rem;
  color: var(--color-text-mid);
  vertical-align: middle;
}

.spec-matrix-table td.spec-matrix-table__bool-col {
  text-align: center;
}

.spec-matrix-table td.spec-matrix-table__first-col {
  font-weight: 600;
  color: var(--color-text);
}


/* ── Spec check glyphs ── */

.spec-check {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.spec-check--yes {
  color: var(--color-primary-mid);
}

.spec-check--no {
  color: var(--color-border);
}


/* ── Paper swatches ── */

.paper-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, .15);
  vertical-align: middle;
  margin-right: .35rem;
  flex-shrink: 0;
}

/* Spec matrix: slightly larger swatch */
.spec-matrix-table__first-col .paper-swatch {
  width: 14px;
  height: 14px;
}

/* Paper options panel: larger swatch, replaces emoji icon */
.paper-option__swatch {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .15rem;
  border-radius: 50%;
}

/* Swatch color variants — keyed to outer_paper_types keys */
.paper-swatch--brown_paper {
  background: #A0714F;
}

.paper-swatch--brown_premium {
  background: #7A5230;
}

.paper-swatch--premium_white {
  background: #F0EDE9;
  border-color: rgba(0, 0, 0, .25);
}

.paper-swatch--natural_brown {
  background: #A0714F;
}

.paper-swatch--natural_white {
  background: #F0EDE9;
  border-color: rgba(0, 0, 0, .25);
}

.paper-swatch--clear_lid {
  background: #D8EEF8;
}

.paper-swatch--white_lid {
  background: #F0EDE9;
  border-color: rgba(0, 0, 0, .25);
}

.paper-swatch--tamper_seal {
  background: #E0D8F0;
}

.paper-swatch--bulk_unpack {
  background: #C8AD8A;
}

.paper-swatch--individually_wrapped {
  background: #F5F2EE;
  border-color: rgba(0, 0, 0, .2);
}

.paper-swatch--paper_wrapped_kit {
  background: #C8B89A;
}


/* ── SKU details table ── */

.sku-details {
  margin-bottom: 2rem;
}

.sku-details__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .6rem;
}

.sku-details__scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  min-width: 500px;
}

.sku-table thead tr {
  background: #F4F5F4;
}

.sku-table th {
  padding: .5rem .85rem;
  text-align: left;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.sku-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.sku-table tbody tr:last-child {
  border-bottom: none;
}

.sku-table td {
  padding: .52rem .85rem;
  color: var(--color-text-mid);
  vertical-align: top;
  line-height: 1.4;
}

.sku-table__code {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.sku-table__notes {
  font-size: .78rem;
}


/* ── Customization subsection (within spec-section) ── */

.custom-subsection {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.custom-subsection__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}


/* ── Spec section notice ── */

.spec-section__notice {
  margin-top: 1.5rem;
  padding: .9rem 1.1rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--color-primary-mid);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.spec-section__notice i {
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: .9rem;
}


/* ── Section label (shared utility) ── */

.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .8rem;
}


/* ── Features section ── */

.features-section {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.features-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.features-section__text {
  font-size: .9rem;
  color: var(--color-text-mid);
  line-height: 1.72;
}

/* doc-card icon override: BI icon replaces emoji */
.doc-card__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--color-primary-mid);
}


/* ── Related products section ── */

.related-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem;
}

.related-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-top: 1rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.related-card:hover {
  border-color: var(--color-primary-mid);
  box-shadow: 0 2px 12px rgba(11, 61, 46, .1);
}

.related-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.related-card__body {
  flex: 1;
  min-width: 0;
}

.related-card__num {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.related-card__name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card__arrow {
  color: var(--color-primary-mid);
  flex-shrink: 0;
  font-size: .9rem;
  transition: transform .2s;
}

.related-card:hover .related-card__arrow {
  transform: translateX(3px);
}


/* ══════════════════════════════════════════════════════════════
   HERO — DESKTOP 2-COLUMN
   Placed at the very bottom of this file so this media-query
   rule always overrides the base grid-template-columns: 1fr
   rule above, regardless of external CSS load order.
══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .product-hero__inner {
    grid-template-columns: 380px 1fr; /* Fixed width column for gallery, fluid for details */
    gap: 3rem;
  }

  .product-hero__gallery {
    margin: 0; /* Align left on desktop */
  }

  .product-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}