/* ============================================
   Product Page — The Tin
   ============================================ */

/* ---- HERO / BUY BOX ---- */
.pdp-hero {
  background: var(--linen);
  padding: 120px 2rem 80px;
}

.pdp-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Live Tin Viewer */
.pdp-viewer { position: sticky; top: 96px; }

.pdp-viewer-canvas {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
}

.pdp-viewer-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.pdp-viewer-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  text-align: center;
  margin-top: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Color swatches */
.pdp-option-group { margin-bottom: 1.5rem; }
.pdp-option-group:last-of-type { margin-bottom: 0; }

.pdp-option-selected {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--secondary);
}

.pdp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pdp-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.pdp-swatch:hover { transform: scale(1.12); }

.pdp-swatch.active {
  box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4.5px var(--charcoal);
}

/* Buy Box */
.pdp-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.pdp-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0;
}

.pdp-price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--charcoal);
}

.pdp-reviews-inline {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--secondary);
}

.pdp-reviews-inline span {
  opacity: 0.7;
}

.pdp-price-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-top: 0.625rem;
}

.pdp-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.pdp-desc {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--secondary);
}

/* Custom tabs (Text / Upload Logo) */
.pdp-custom-tabs {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 0.875rem;
}

.pdp-custom-tab {
  flex: 1;
  height: 38px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--ease), color var(--ease);
}

.pdp-custom-tab + .pdp-custom-tab {
  border-left: 1px solid var(--border);
}

.pdp-custom-tab.active {
  background: var(--charcoal);
  color: var(--linen);
}

/* Logo upload dropzone */
.pdp-logo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1rem;
  border: 1px dashed var(--border);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--secondary);
  transition: border-color var(--ease), background var(--ease);
  user-select: none;
}

.pdp-logo-upload:hover {
  border-color: var(--charcoal);
  background: var(--surface);
}

.pdp-logo-upload input[type="file"] {
  display: none;
}

.pdp-logo-finish {
  margin-top: 1rem;
}

/* Logo-prints-in-accent-color sync note */
.pdp-logo-sync {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pdp-logo-sync p {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--secondary);
  margin: 0;
}

.pdp-logo-sync strong { color: var(--charcoal); font-weight: 600; }

.pdp-logo-sync-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  margin-top: 1px;
}

/* No-transparency warning */
.pdp-logo-warn {
  margin-top: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: rgba(178, 58, 40, 0.08);
  border: 1px solid rgba(178, 58, 40, 0.32);
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #8A2A1E;
}

.pdp-logo-clear {
  display: block;
  margin-top: 0.875rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--ease);
}

.pdp-logo-clear:hover { color: var(--charcoal); }

/* Engraving */
.pdp-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  cursor: default;
}

.pdp-option-tag {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

.pdp-engraving-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
}

.pdp-engraving-input:focus { border-color: var(--charcoal); }
.pdp-engraving-input::placeholder { color: var(--secondary); opacity: 0.55; }

.pdp-engraving-hint {
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--secondary);
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* CTA */
.pdp-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
  height: 52px;
  margin-bottom: 0.875rem;
  transition: background-color var(--ease), content var(--ease);
}

.pdp-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pdp-qty-label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pdp-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background var(--ease);
}

.pdp-qty-btn:hover { background: var(--paper); }

.pdp-qty-num {
  min-width: 40px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 40px;
}

.pdp-bundle {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--charcoal);
  text-align: center;
  background: rgba(196,151,58,0.12);
  border: 1px solid rgba(196,151,58,0.4);
  padding: 0.625rem 1rem;
  margin-bottom: 0.875rem;
}

.pdp-bundle strong { color: var(--brass-dark); font-weight: 600; }

.pdp-bundle:not(.pdp-bundle--active) { cursor: pointer; }

.pdp-bundle-link {
  display: inline-block;
  font-weight: 600;
  color: var(--brass-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdp-bundle--active {
  background: rgba(26,61,43,0.08);
  border-color: rgba(26,61,43,0.35);
}

.pdp-bundle--active strong { color: var(--fairway); }

.pdp-shipping-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--secondary);
  opacity: 0.65;
  text-align: center;
  margin-bottom: 1.25rem;
}

.pdp-trust-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pdp-trust-row span {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- FEATURES ---- */
.pdp-features {
  background: var(--fairway);
  padding: 100px 2rem;
}

.pdp-features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pdp-features-header {
  margin-bottom: 3.5rem;
}

.pdp-features-header .section-label { color: rgba(244,239,230,0.5); }

.pdp-features-header h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--linen);
  line-height: 1.15;
  max-width: 560px;
}

.pdp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pdp-feature {
  background: rgba(244,239,230,0.04);
  border: 1px solid rgba(244,239,230,0.08);
  padding: 2rem;
  transition: background var(--ease);
}

.pdp-feature:hover {
  background: rgba(244,239,230,0.07);
}

.pdp-feature-icon {
  color: var(--brass);
  font-size: 0.625rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.pdp-feature h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--linen);
  margin-bottom: 0.75rem;
}

.pdp-feature p {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(244,239,230,0.65);
}

/* ---- SPECS ---- */
.pdp-specs {
  background: var(--surface);
  padding: 100px 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pdp-specs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.pdp-specs-text h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.75vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pdp-compat {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brass);
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}

.pdp-specs-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.pdp-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.pdp-spec-row:last-child { border-bottom: none; }

.pdp-spec-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
}

.pdp-spec-value {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal);
  text-align: right;
}

/* ---- DIAGRAMS ---- */
.pdp-diagrams {
  background: var(--white);
  padding: 100px 2rem;
  border-top: 1px solid var(--border);
}

.pdp-diagrams-inner { max-width: var(--max-w); margin: 0 auto; }
.pdp-diagrams-head { margin-bottom: 2.5rem; }

.pdp-diagrams-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.75vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.15;
}

.pdp-diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pdp-diagram img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* ---- FIELD TESTED (fun panels) ---- */
.pdp-fun {
  background: var(--linen);
  padding: 100px 2rem;
  border-top: 1px solid var(--border);
}

.pdp-fun-inner { max-width: var(--max-w); margin: 0 auto; }
.pdp-fun-head { margin-bottom: 2.5rem; }

.pdp-fun-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.75vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.15;
}

.pdp-fun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pdp-fun-panel img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* ---- REVIEWS ---- */
.pdp-reviews {
  background: var(--linen);
  padding: 100px 2rem;
}

.pdp-reviews-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pdp-reviews-header {
  margin-bottom: 3rem;
}

.pdp-reviews-header h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.75vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.15;
}

.pdp-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pdp-review {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
}

.pdp-review-stars {
  color: var(--brass);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.pdp-review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.pdp-review-author {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- GIFTING CTA ---- */
.pdp-gifting-cta {
  background: var(--navy);
  padding: 100px 2rem;
  text-align: center;
}

.pdp-gifting-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.pdp-gifting-cta .section-label { color: rgba(244,239,230,0.5); }

.pdp-gifting-cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--linen);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.pdp-gifting-cta .body-text { color: rgba(244,239,230,0.7); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .pdp-hero { padding: 96px 2rem 64px; }

  .pdp-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pdp-viewer { position: static; }

  .pdp-feature-grid { grid-template-columns: 1fr 1fr; }

  .pdp-specs-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pdp-diagram-grid { grid-template-columns: 1fr; }
  .pdp-fun-grid { grid-template-columns: 1fr; }

  .pdp-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .pdp-hero { padding: 84px 1.5rem 48px; }


  .pdp-feature-grid { grid-template-columns: 1fr; }

  .pdp-trust-row { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* ---- THE MARK PICKER ---- */
.pdp-marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pdp-mark {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.pdp-mark img { width: 100%; height: 100%; object-fit: cover; }
.pdp-mark:hover { border-color: var(--charcoal); }
.pdp-mark.active { border-color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--charcoal); }

.pdp-mark--custom {
  background: var(--fairway);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.pdp-mark--custom .plus { font-family: var(--serif); font-size: 1.4rem; color: var(--brass); line-height: 1; }
.pdp-mark--custom .lbl {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,0.85);
}

.pdp-mark-note {
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--secondary);
  opacity: 0.65;
  margin-top: 0.625rem;
}

/* ---- VIEWER PHOTO MODE ---- */
.pdp-viewer-photo { width: 100%; height: auto; }

/* ---- GUARANTEE ---- */
.pdp-guarantee {
  background: var(--fairway-deep);
  padding: 90px 2rem;
  text-align: center;
}

.pdp-guarantee .section-label { color: var(--brass); }

.pdp-guarantee h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--linen);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pdp-guarantee p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244,239,230,0.72);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---- FAQ ---- */
.pdp-faq {
  background: var(--surface);
  padding: 100px 2rem;
  border-top: 1px solid var(--border);
}

.pdp-faq-inner { max-width: 720px; margin: 0 auto; }
.pdp-faq-header { margin-bottom: 2.5rem; }

.pdp-faq-header h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.75vw, 2.25rem);
  color: var(--charcoal);
  line-height: 1.15;
}

.pdp-faq details { border-bottom: 1px solid var(--border); }
.pdp-faq details:first-of-type { border-top: 1px solid var(--border); }

.pdp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.pdp-faq summary::-webkit-details-marker { display: none; }

.pdp-faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--brass);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.pdp-faq details[open] summary::after { transform: rotate(45deg); }

.pdp-faq-a {
  padding: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--secondary);
  max-width: 60ch;
}

/* ---- STICKY MOBILE BUY BAR ---- */
.pdp-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--fairway-deep);
  border-top: 1px solid rgba(196,151,58,0.25);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}

.pdp-sticky-bar.visible { transform: translateY(0); }

.pdp-sticky-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--linen);
  line-height: 1.2;
}

.pdp-sticky-price {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass-light);
}

.pdp-sticky-btn { height: 44px; padding: 0 22px; flex-shrink: 0; }

@media (min-width: 901px) {
  .pdp-sticky-bar { display: none; }
}
