/* ── Product page layout ─────────────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ── Left column ─────────────────────────────────────────────── */
.product-breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.product-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-name {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
  line-height: 0.95;
}

.product-price {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.product-limit {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.55;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* Fish + charity tag lines */
.product-tags {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-md);
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.product-fish-line,
.product-charity-line {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Backstory */
.product-backstory {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.product-backstory p {
  font-size: 1rem;
  line-height: 1.7;
}

.product-donation-line {
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.charity-blurb {
  display: block;
  margin-top: var(--space-xs);
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.9rem;
}

/* ── Quantity stepper ────────────────────────────────────────── */
.product-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-stepper-btn {
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.qty-stepper-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg-primary);
}

.qty-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-stepper-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  outline: none;
  -moz-appearance: textfield;
}

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

.product-atc {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  padding: 0.75em 1.5em;
  white-space: nowrap;
}

.product-shipping-note {
  font-size: 0.8rem;
  opacity: 0.55;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Right column: image ─────────────────────────────────────── */
.product-image-col {
  position: sticky;
  top: calc(var(--space-md) + 80px); /* below sticky header */
}

.product-img-frame {
  position: relative;
  width: 100%;
}

.product-main-img,
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  object-fit: cover;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder-fish {
  font-size: 9rem;
  display: block;
  text-align: center;
}

/* Badge overlay */
.product-img-badge {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-headline);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4em 0.65em;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Show image above info on mobile */
  .product-image-col {
    order: -1;
    position: static;
  }

  .product-img-frame {
    max-width: 400px;
    margin-inline: auto;
  }

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

  .qty-stepper { justify-content: center; }
  .product-atc { flex: none; }
}
