/* ==================================================

   GLP3 — Page-specific styles

   ================================================== */

.cta-short {
  display: none;
}

.product-page {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "image  cart"
    "faq    specs";
  padding-top: 56px;
}

.col-image {
  grid-area: image;
  position: relative;

  /* Absolutely-positioned child means this cell contributes 0 height.
       Row height is driven entirely by col-content. */
}

.product-image-wrap {
  position: absolute;
  top: 48px; /* matches col-content padding-top  → aligns with title */
  left: 20px;
  right: 20px;
  bottom: 28px; /* matches col-content padding-bottom → aligns with Add to Cart */
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.col-content {
  grid-area: cart;
  padding: 48px 48px 28px 32px;
  display: flex;
  flex-direction: column;
}

.quadrant-faq {
  grid-area: faq;
  padding: 32px 12px 48px 20px;
  align-self: start;
}

.quadrant-faq-inner {
  background: var(--surface-warm);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
}

.quadrant-specs {
  grid-area: specs;
  padding: 32px 20px 48px 12px;
  align-self: start;
}

.quadrant-specs-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
}

.product-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--carbon);
  margin-bottom: 6px;
}

.product-title .conc-inline {
  font-weight: 300;
  font-size: 22px;
  color: var(--text-secondary);
  margin-left: 2px;
}

.product-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.product-ruo {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: var(--border-solid);
  margin-bottom: 26px;
}

.selector-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.concentration-options {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.conc-pill {
  flex: 1;
  padding: 15px 10px;
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: var(--font);
}

.conc-pill:hover {
  border-color: var(--catalyst-orange);
}

.conc-pill.active {
  border-color: var(--catalyst-orange);
  background: transparent;
}

.conc-pill.active .conc-dose {
  color: var(--catalyst-orange);
}

.conc-pill.active .conc-price {
  color: var(--catalyst-orange);
}

.conc-pill[data-oos="true"] {
  opacity: 0.4;
  border-style: dashed;
}

.conc-pill[data-oos="true"]:hover {
  border-color: var(--catalyst-orange);
}

.conc-pill[data-oos="true"].active {
  opacity: 0.5;
  border-color: var(--catalyst-orange);
  background: transparent;
  border-style: solid;
}

.conc-dose {
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.conc-price {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--catalyst-teal);
  font-weight: 500;
  transition: color 0.25s;
}

.stock-indicator.oos {
  color: var(--coral);
}

.stock-dot {
  width: 6px;
  height: 6px;
  background: var(--catalyst-teal);
  border-radius: 50%;
  transition: background 0.25s;
}

.stock-indicator.oos .stock-dot {
  background: var(--coral);
}

.btn-check {
  width: 16px;
  height: 16px;
  stroke: var(--catalyst-orange);
  fill: none;
  stroke-width: 2.5;
  display: none;
}

.tabs-nav {
  display: flex;
  justify-content: stretch;
  border-bottom: 1px solid var(--border-solid);
  flex-wrap: nowrap;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--carbon); }

.tab-btn.active {
  color: var(--catalyst-orange);
  font-weight: 500;
  border-color: var(--catalyst-orange);
  border-bottom-color: var(--bg);
  background: var(--bg);
}

.tab-content {
  padding: 32px 0 16px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.tab-panel p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.def-list {
  margin-top: 12px;
}

.def-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dotted var(--border-solid);
}

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

.def-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.def-value {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.def-value.accent {
  color: var(--catalyst-teal);
}

.testing-list {
  margin-top: 12px;
}

.testing-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.testing-item:last-child {
  border-bottom: none;
}

.testing-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(91, 170, 157, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.testing-marker svg {
  width: 15px;
  height: 15px;
  stroke: var(--catalyst-teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testing-info h4 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.testing-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

.faq-section {
  padding: 0;
}

.faq-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--catalyst-teal);
  margin-bottom: 8px;
}

.faq-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--carbon);
}

.faq-item {
  border-bottom: 1px solid rgb(26, 26, 26, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  gap: 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--carbon);
  line-height: 1.4;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgb(26, 26, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.25s;
}

.faq-item.open .faq-icon {
  border-color: var(--catalyst-orange);
  background: var(--catalyst-orange);
}

.faq-item.open .faq-icon svg {
  stroke: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

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

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font);
}

.qty-btn:hover {
  background: var(--bg);
  color: var(--carbon);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-left: 1px solid var(--border-solid);
  border-right: 1px solid var(--border-solid);
  padding: 6px 0;
  font-family: var(--font);
}

.access-row {
  padding: 10px 0;
}

.access-row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--catalyst-orange);
  padding: 0;
}

.access-row-toggle .arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.access-row-toggle.open .arrow {
  transform: rotate(90deg);
}

.access-field {
  display: none;
  margin-top: 8px;
  gap: 8px;
  align-items: center;
}

.access-field.visible {
  display: flex;
}

.access-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.access-input:focus {
  border-color: var(--catalyst-orange);
}

.access-input::placeholder {
  color: var(--text-muted);
}

.access-apply {
  padding: 10px 16px;
  background: var(--carbon);
  color: var(--white);
  border: 1.5px solid var(--carbon);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.access-apply:hover {
  background: transparent;
  border-color: var(--catalyst-orange);
  color: var(--catalyst-orange);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.totals-row .tr-val {
  font-weight: 500;
  color: var(--carbon);
}

.totals-row.total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 600;
  color: var(--carbon);
}

.totals-row.total .tr-val {
  font-size: 20px;
  font-weight: 700;
}

.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border-solid);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s;
  box-shadow: 0 -4px 24px rgb(0, 0, 0, 0.05);
}

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

.sticky-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-bar-info {
  flex: 1;
}

.sticky-bar-name {
  font-size: 13px;
  font-weight: 500;
}

.sticky-bar-price {
  font-size: 15px;
  font-weight: 600;
}

.sticky-bar-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.sticky-bar-btn {
  padding: 13px 26px;
  background: var(--carbon);
  color: var(--white);
  border: 1.5px solid var(--carbon);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 13px;
  transition: all 0.25s;
  font-weight: 500;
  cursor: pointer;
}

.sticky-bar-btn:hover {
  background: transparent;
  border-color: var(--catalyst-orange);
  color: var(--catalyst-orange);
}

@media (width <= 1024px) {
  .col-content {
    padding: 40px 32px 40px 24px;
  }

  .product-image-wrap {
    top: 40px;
    bottom: 40px;
  }
}

@media (width <= 860px) {
  .sticky-bar {
    display: block;
  }

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .product-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cart"
      "specs"
      "faq";
    position: relative;
    padding-top: 56px;
  }

  .col-image {
    grid-area: auto;
    position: absolute;
    top: 72px;
    right: 20px;
    width: 120px;
    padding: 0;
    z-index: 2;
  }

  .product-image-wrap {
    position: static;
    width: 100%;
    aspect-ratio: 1/1;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 0;
  }

  .col-content {
    padding: 24px 20px 32px;
  }

  .product-title {
    font-size: 26px;
    margin-bottom: 14px;
    padding-right: 132px;
  }

  .product-title .conc-inline {
    font-size: 16px;
  }

  .product-subtitle {
    margin-bottom: 12px;
    padding-right: 132px;
  }

  .product-ruo {
    margin-bottom: 40px;
    padding-right: 132px;
  }

  .divider {
    margin-bottom: 28px;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 9px 16px;
    font-size: 13px;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  .def-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    margin-top: 8px;
  }

  .def-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 8px 0;
    border-bottom: none;
  }

  .def-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .def-value {
    font-size: 12px;
    text-align: left;
  }

  .quadrant-specs {
    padding: 8px 16px 24px;
  }

  .quadrant-specs-inner {
    padding: 24px 20px 20px;
  }

  .quadrant-faq {
    padding: 16px 16px 48px;
  }

  .quadrant-faq-inner {
    padding: 24px 20px 20px;
  }

  .faq-section {
    padding: 0;
  }

  .faq-heading {
    font-size: 20px;
  }

  .faq-question {
    font-size: 13px;
  }

}

@media (width <= 600px) {
  .sticky-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  /* Mobile touch targets */
  .tab-btn {
    min-height: 44px;
    padding: 10px 16px;
    flex: 0 0 auto;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
  }

  .qty-val {
    width: 40px;
    font-size: 14px;
  }

  .access-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq-question {
    padding: 18px 0;
    min-height: 44px;
  }

  .faq-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .sticky-bar-btn {
    min-height: 48px;
    padding: 14px 28px;
  }

  .def-list {
    grid-template-columns: 1fr;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--catalyst-orange);
  outline-offset: 2px;
}

.shipping-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  padding: 8px 0;
}

.shipping-notice svg {
  color: var(--catalyst-teal);
  flex-shrink: 0;
}

.newsletter-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

.newsletter-error.visible {
  display: block;
}
