/* Halo Collar 5 PDP / configurator page */

:root {
  --pdp-nav-offset: 92px;
  --pdp-page-surface: var(--halo-color-surface-raised);
  --pdp-panel-surface: var(--halo-color-surface-raised);
  --pdp-product-surface: var(--halo-color-product-surface);
  --pdp-subtle-surface: var(--halo-color-surface-subtle);
  --pdp-muted-surface: var(--halo-color-surface-muted);
  --pdp-membership-surface: var(--halo-color-membership-surface);
  --pdp-line: var(--halo-color-border-subtle);
  --pdp-line-strong: var(--halo-color-border-strong);
  --pdp-text: var(--halo-color-text-primary);
  --pdp-text-secondary: var(--halo-color-text-secondary);
  --pdp-muted: var(--halo-color-text-muted);
  --pdp-link: var(--halo-color-link);
  --pdp-link-hover: var(--halo-color-link-hover);
  --pdp-focus: var(--halo-color-focus);
  --pdp-focus-ring: var(--halo-shadow-focus);
  --pdp-action-primary: var(--halo-color-action-primary);
  --pdp-action-primary-hover: var(--halo-color-action-primary-hover);
  --pdp-action-primary-text: var(--halo-color-action-primary-text);
  --pdp-action-secondary: var(--halo-color-action-secondary);
  --pdp-action-secondary-hover: var(--halo-color-action-secondary-hover);
  --pdp-action-secondary-text: var(--halo-color-action-secondary-text);
  --pdp-nav-surface: color-mix(in srgb, var(--halo-color-nav-background) 94%, transparent);
  --pdp-scrim: var(--halo-color-drawer-scrim);
  --pdp-text-shadow: 0 1px 4px color-mix(in srgb, var(--halo-color-surface-dark) 58%, transparent);
  --pdp-drawer-shadow: var(--halo-shadow-raised);
  --pdp-success-text: var(--halo-color-status-success);
  --pdp-success-surface: var(--halo-color-status-success-surface);
  --pdp-success-border: color-mix(in srgb, var(--halo-color-status-success) 30%, var(--halo-color-status-success-surface));
  background: var(--pdp-page-surface);
  color: var(--pdp-text);
  overflow-x: hidden;
}

.pdp-page button:focus-visible,
.pdp-page a:focus-visible,
.pdp-page input:focus-visible {
  outline: 2px solid var(--pdp-focus);
  outline-offset: 3px;
  box-shadow: var(--pdp-focus-ring);
}

.pdp-page .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--halo-radius-sm);
  background: var(--pdp-text);
  color: var(--halo-color-text-inverse);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.pdp-page .skip-link:focus-visible {
  transform: translateY(0);
}

.pdp-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pdp-page .promo-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1002;
  transition: transform 180ms ease;
}

.pdp-page .nav {
  top: 32px !important;
  z-index: 1001;
  background: var(--pdp-nav-surface);
  border-bottom: 1px solid var(--halo-color-nav-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pdp-page .nav.has-banner {
  top: 32px !important;
}

.pdp-page .nav > .container.nav-inner {
  width: min(1400px, calc(100% - 48px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-right: 0;
  padding-left: 0;
}

.pdp-page .nav-logo {
  justify-self: start;
}

.pdp-page .nav-menu-desktop {
  justify-self: center;
}

.pdp-page .nav-right-desktop,
.pdp-page .nav-right-mobile {
  justify-self: end;
}

.pdp-page.promo-hidden .promo-banner {
  transform: translateY(-100%);
  pointer-events: none;
}

.pdp-page.promo-hidden .nav,
.pdp-page.promo-hidden .nav.has-banner {
  top: 0 !important;
}

.pdp-page .nav.nav-hidden {
  transform: none;
  pointer-events: auto;
}

.accessory-pdp-page .nav {
  top: 32px;
}

.accessory-pdp-page .pdp-breadcrumbs {
  padding-top: 0;
}

.accessory-pdp-page .shop-main {
  padding-top: 40px;
}

.pdp-page .nav-logo,
.pdp-page .nav-link,
.pdp-page .nav-dropdown-toggle,
.pdp-page .nav-icon-btn {
  color: var(--halo-color-nav-text);
}

.pdp-page .nav-link:hover,
.pdp-page .nav-dropdown-toggle:hover,
.pdp-page .nav-icon-btn:hover {
  color: var(--pdp-text);
}

.pdp-page .nav-icon-btn {
  border-radius: var(--halo-radius-pill);
}

.pdp-page .nav-icon-btn:hover {
  background: var(--pdp-muted-surface);
}

.pdp-page .main-nav-cart {
  position: relative;
}

.pdp-page .main-nav-cart.active::after {
  position: absolute;
  top: 3px;
  right: 1px;
  width: 17px;
  height: 17px;
  content: attr(data-total);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pdp-action-primary);
  color: var(--pdp-action-primary-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.pdp-page .nav-cta-btn {
  background: var(--pdp-action-primary);
  color: var(--pdp-action-primary-text);
  box-shadow: none;
}

.pdp-page .nav-cta-btn:hover {
  background: var(--pdp-action-primary-hover);
}

.pdp-page .hamburger-line {
  background: var(--pdp-text);
}

.pdp-page .product-card-mobile__image {
  height: 100%;
}

.pdp-page.mobile-menu-open,
.pdp-page.cart-open,
.pdp-page.modal-open {
  overflow: hidden;
}

.shop-main {
  padding: calc(var(--pdp-nav-offset) + 40px) 0 24px;
  background: var(--pdp-page-surface);
}

.shop-container {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--halo-radius-xl);
  background: #fff;
}

.gallery-main > img {
  width: 112%;
  height: 112%;
  object-fit: contain;
}

.gallery-main.is-lifestyle > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--halo-radius-md);
  background: #fff;
  color: var(--pdp-ink);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  box-shadow: inset 0 0 0 2px var(--pdp-link);
  outline: none;
}

.gallery-thumb.active {
  box-shadow: inset 0 0 0 2px var(--pdp-link);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: inherit;
  background: #fff;
}

.realtree-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.realtree-overlay[hidden] {
  display: none !important;
}

.realtree-logo {
  width: 120px;
  height: auto;
  margin-top: 5%;
  margin-right: 5%;
}

.realtree-caption {
  position: absolute;
  right: 0;
  bottom: 15%;
  left: 0;
  margin: 0;
  color: var(--pdp-muted);
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
}

.product-config {
  position: sticky;
  top: calc(var(--pdp-nav-offset) + 16px);
  max-height: calc(100vh - var(--pdp-nav-offset) - 32px);
  overflow-y: auto;
  align-self: start;
  padding-bottom: 24px;
  scrollbar-width: none;
}

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

.config-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--pdp-muted);
  font-size: 0.875rem;
}

.trust-badge svg {
  flex-shrink: 0;
}

.google-rating-stars {
  display: block;
  width: 110px;
  max-width: 110px;
  height: auto;
  flex-shrink: 0;
}

.trustpilot-text {
  color: var(--pdp-text);
  font-weight: 700;
}

.review-count {
  color: var(--pdp-muted);
}

.product-title {
  margin: 0;
  color: var(--pdp-text);
  font-size: clamp(2rem, 3vw, 2.625rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: var(--halo-tracking-tight);
}

.product-summary {
  margin: 6px 0 0;
  color: var(--pdp-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 60ch;
}

.product-summary .details-safest {
  display: inline;
  color: inherit;
}

.config-section {
  display: grid;
  gap: 12px;
}

.config-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--pdp-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.color-options {
  --pdp-color-swatch-size: clamp(42px, 4.4vw, 56px);
  --pdp-color-swatch-gap: clamp(6px, 0.7vw, 8px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--pdp-color-swatch-gap);
  margin: -4px -22px -4px -4px;
  padding: 4px 22px 4px 4px;
  overflow: visible;
}

.color-option {
  position: relative;
  width: var(--pdp-color-swatch-size);
  height: var(--pdp-color-swatch-size);
  flex: 0 0 var(--pdp-color-swatch-size);
  box-sizing: border-box;
  overflow: visible;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--pdp-product-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.color-option:hover {
  transform: translateY(-1px);
}

.color-option img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.color-option__badge {
  position: absolute;
  top: 50%;
  right: auto;
  left: calc(100% - 10px);
  z-index: 2;
  padding: 5px 7px;
  border-radius: var(--halo-radius-sm);
  background: var(--pdp-link);
  color: var(--halo-color-text-inverse);
  font-family: var(--halo-font-narrow);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-50%);
  pointer-events: none;
}

.color-option.active {
  border-color: var(--pdp-link);
  box-shadow: inset 0 0 0 2px var(--pdp-panel-surface);
}

.color-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: var(--halo-color-text-inverse);
  font-size: 1.125rem;
  font-weight: 800;
  opacity: 0;
  text-shadow: var(--pdp-text-shadow);
  transition: opacity 0.2s ease;
}

.color-option.active .color-check {
  opacity: 1;
}

.delivery-note {
  margin: 0;
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--pdp-line);
  border-bottom: 1px solid var(--pdp-line);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.25;
}

.feature-item img {
  flex: 0 0 auto;
}

.pdp-info-links-section {
  background: var(--pdp-page-surface);
}

.pdp-info-links-inner {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.included-link.pdp-info-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-md);
  background: var(--pdp-panel-surface);
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.included-link.pdp-info-link:hover {
  border-color: var(--pdp-link);
  color: var(--pdp-text);
  box-shadow: 0 0 0 1px var(--pdp-link);
}

.included-link,
.membership-learn-more,
.cart-membership-link,
.cart-membership-details-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pdp-link);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.included-link:hover,
.membership-learn-more:hover,
.cart-membership-link:hover,
.cart-membership-details-close:hover {
  color: var(--pdp-link-hover);
}

.membership-box {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--halo-radius-lg);
  background: var(--pdp-membership-surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.membership-box.expanded {
  border-color: var(--pdp-line-strong);
  background: var(--pdp-panel-surface);
}

.membership-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
}

.membership-info {
  display: grid;
  gap: 2px;
}

.membership-label {
  color: var(--pdp-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.membership-desc {
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.membership-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.membership-price {
  white-space: nowrap;
  color: var(--pdp-text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.membership-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--pdp-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--pdp-muted);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.membership-box.expanded .membership-toggle {
  transform: rotate(180deg);
  border-color: var(--pdp-link);
  background: var(--pdp-link);
  color: var(--halo-color-text-inverse);
}

.membership-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.membership-box.expanded .membership-details {
  max-height: 420px;
}

.membership-upsell {
  margin: 0;
  padding: 0 20px;
  color: var(--pdp-text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.membership-learn-more {
  display: block;
  width: 100%;
  padding: 14px 20px 18px;
  text-align: left;
  text-decoration: none;
}

.addon-module {
  width: 100%;
  display: grid;
  gap: 8px;
}

.module-label {
  color: var(--pdp-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.addon-card {
  overflow: hidden;
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-lg);
  background: var(--pdp-panel-surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.addon-card:hover,
.addon-card:focus-within {
  border-color: var(--pdp-link);
  box-shadow: inset 0 0 0 1px var(--pdp-link);
}

.addon-card:has(.addon-input:checked) {
  border-color: var(--pdp-success-border);
  background: var(--pdp-success-surface);
  box-shadow: inset 0 0 0 1px var(--pdp-success-border);
}

.addon-row {
  min-height: 75px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
}

.addon-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.addon-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.addon-check {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pdp-line-strong);
  border-radius: 50%;
  background: var(--pdp-panel-surface);
  color: var(--halo-color-text-inverse);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.addon-check svg {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.addon-input:checked + .addon-check {
  border-color: var(--pdp-success-text);
  background: var(--pdp-success-text);
}

.addon-input:checked + .addon-check svg {
  opacity: 1;
}

.addon-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.addon-title {
  color: var(--pdp-text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.addon-copy {
  color: var(--pdp-text-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.addon-price {
  color: var(--pdp-text);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.addon-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pdp-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--pdp-muted);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.addon-card.expanded .addon-toggle {
  transform: rotate(180deg);
  border-color: var(--pdp-link);
  background: var(--pdp-link);
  color: var(--halo-color-text-inverse);
}

.addon-details {
  max-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  color: var(--pdp-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.addon-card.expanded .addon-details {
  max-height: 160px;
  padding-top: 2px;
  padding-bottom: 14px;
}

.addon-details p {
  margin: 0;
}

.addon-media {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--halo-radius-md);
  background: #fff;
}

.addon-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.buy-stack-separator {
  width: 100%;
  border-top: 1px solid var(--pdp-line);
}

.purchase-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--pdp-line);
}

.price-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}

.current-price {
  color: var(--pdp-text);
  font-size: 2rem;
  font-weight: 750;
  line-height: 1;
}

.original-price {
  color: var(--pdp-muted);
  font-size: 1.25rem;
  text-decoration: line-through;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pdp-success-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.affirm-note {
  margin: -2px 0 6px;
  padding-left: 4px;
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
}

.savings-banner {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pdp-success-border);
  border-radius: var(--halo-radius-md);
  background: var(--pdp-success-surface);
  text-align: center;
}

.savings-banner p {
  margin: 0;
  color: var(--pdp-success-text);
  font-size: 0.875rem;
  font-weight: 750;
}

.btn-checkout,
.btn-cart-checkout {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--halo-component-button-radius);
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.18s ease, background 0.2s ease;
}

.btn-checkout {
  margin-top: 8px;
  background: var(--pdp-action-primary);
  color: var(--pdp-action-primary-text);
  font-size: 1.0625rem;
}

.btn-checkout:hover {
  background: var(--pdp-action-primary-hover);
  transform: translateY(-1px);
}

.guarantee-note {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--pdp-scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: var(--halo-radius-xl);
  background: var(--pdp-panel-surface);
  color: var(--pdp-text);
  box-shadow: var(--halo-shadow-dropdown);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content-wide {
  width: min(800px, 100%);
  padding: 40px;
}

.modal-content-membership {
  width: min(1100px, 100%);
  padding: 40px 48px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pdp-muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--pdp-muted-surface);
  color: var(--pdp-text);
}

.modal-title,
.membership-modal-title {
  margin: 0 0 18px;
  color: var(--pdp-text);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: var(--halo-tracking-tight);
}

.included-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 28px;
  color: var(--pdp-text-secondary);
}

.included-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--halo-color-status-success);
  font-weight: 800;
}

.beacon-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.beacon-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--halo-radius-lg);
  background: var(--pdp-link);
  color: var(--halo-color-text-inverse);
}

.beacon-feature h4 {
  margin: 0 0 8px;
  color: var(--pdp-text);
  font-size: 1rem;
  font-weight: 750;
}

.beacon-feature p {
  margin: 0 0 10px;
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.beacon-feature-note {
  display: block;
  color: var(--pdp-link);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.beacon-comparison {
  padding: 24px;
  border-radius: var(--halo-radius-lg);
  background: var(--pdp-subtle-surface);
}

.comparison-title {
  margin: 0 0 16px;
  color: var(--pdp-text);
  font-size: 1.125rem;
  font-weight: 750;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.beacon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.beacon-table th,
.beacon-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--pdp-muted-surface);
  color: var(--pdp-text-secondary);
  text-align: center;
}

.beacon-table th {
  border-bottom-color: var(--pdp-line);
  color: var(--pdp-text);
  font-weight: 750;
  vertical-align: bottom;
}

.beacon-table th:first-child,
.beacon-table td:first-child {
  text-align: left;
  font-weight: 650;
}

.beacon-table-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.beacon-comparison-section {
  padding: 0 0 96px;
  background: var(--pdp-page-surface);
}

.beacon-comparison-section__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-xl);
  background: var(--pdp-panel-surface);
  box-shadow: var(--halo-shadow-card, 0 18px 42px rgba(7, 24, 38, 0.08));
}

.beacon-comparison-section__header {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-bottom: 28px;
}

.beacon-comparison-section__eyebrow {
  margin: 0 0 10px;
  color: var(--pdp-link);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beacon-comparison-section h2 {
  margin: 0;
  color: var(--pdp-text);
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: var(--halo-tracking-tight);
  line-height: 0.98;
}

.beacon-comparison-section__copy {
  max-width: 62ch;
  margin: 0;
  color: var(--pdp-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.beacon-comparison-section .beacon-comparison {
  padding: 0;
  border: 1px solid var(--pdp-line);
  overflow: hidden;
  background: var(--pdp-panel-surface);
}

.beacon-comparison-section .comparison-table-wrapper {
  border-radius: var(--halo-radius-lg);
}

.beacon-comparison-section .beacon-table {
  min-width: 820px;
}

.beacon-comparison-section .beacon-table th,
.beacon-comparison-section .beacon-table td {
  padding: 14px 16px;
}

.beacon-comparison-section .beacon-table thead th {
  background: var(--pdp-subtle-surface);
}

.check-yes {
  color: var(--pdp-text);
  font-weight: 800;
}

.check-no {
  color: var(--pdp-muted);
}

.membership-modal-header {
  margin-bottom: 32px;
  text-align: center;
}

.membership-modal-subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--pdp-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.membership-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.membership-plan {
  position: relative;
  padding: 24px;
  border: 2px solid transparent;
  border-radius: var(--halo-radius-xl);
  background: var(--pdp-subtle-surface);
}

.membership-plan.plan-featured {
  border-color: var(--pdp-action-primary);
  background: var(--pdp-panel-surface);
  box-shadow: var(--halo-shadow-card-lg);
}

.plan-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: var(--halo-radius-pill);
  background: var(--pdp-action-primary);
  color: var(--pdp-action-primary-text);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pdp-line);
  text-align: center;
}

.plan-tier-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pdp-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0 0 8px;
  color: var(--pdp-text);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: var(--halo-tracking-tight);
}

.plan-pricing {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.plan-price {
  color: var(--pdp-text);
  font-size: 1.75rem;
  font-weight: 800;
}

.plan-period,
.plan-collar-price {
  color: var(--pdp-muted);
}

.plan-collar-price {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--pdp-text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.feature-check {
  color: var(--halo-color-status-success);
  font-weight: 800;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--pdp-scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pdp-page.cart-open .cart-overlay {
  opacity: 1;
  visibility: visible;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  width: min(400px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--halo-color-drawer-background);
  color: var(--pdp-text);
  box-shadow: var(--pdp-drawer-shadow);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-cart.active {
  transform: translateX(0);
}

.pdp-page.cart-open .mini-cart {
  transform: translateX(0);
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 20px 24px;
}

.mini-cart-title {
  margin: 0;
  color: var(--pdp-text);
  font-size: 1.125rem;
  font-weight: 750;
}

.mini-cart-title span {
  color: var(--pdp-link);
}

.mini-cart-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pdp-muted);
  cursor: pointer;
}

.mini-cart-close:hover {
  background: var(--pdp-muted-surface);
  color: var(--pdp-text);
}

.cart-guarantee-header {
  margin: 0;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--pdp-line);
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.mini-cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  padding: 24px;
  border: 1px dashed var(--pdp-line-strong);
  border-radius: var(--halo-radius-md);
  color: var(--pdp-muted);
  text-align: center;
}

.cart-empty p {
  margin: 0;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-md);
  background: var(--pdp-panel-surface);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--halo-radius-sm);
  background: var(--pdp-product-surface);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-header,
.cart-item-bottom,
.cart-membership,
.cart-total-row,
.cart-membership-details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-name {
  color: var(--pdp-text);
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.3;
}

.cart-item-delete {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pdp-muted);
  cursor: pointer;
}

.cart-item-delete:hover {
  color: var(--pdp-text-secondary);
}

.cart-item-variant,
.cart-item-delivery {
  display: block;
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.cart-item-delivery {
  margin-bottom: 8px;
  color: var(--pdp-muted);
  font-size: 0.75rem;
}

.cart-item-bottom {
  align-items: center;
  margin-top: auto;
}

.cart-item-price {
  color: var(--pdp-text-secondary);
  font-size: 0.9375rem;
  font-weight: 650;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--pdp-line-strong);
  border-radius: var(--halo-radius-xs);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--pdp-panel-surface);
  color: var(--pdp-text-secondary);
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: var(--pdp-muted-surface);
}

.cart-qty-btn:disabled {
  color: var(--halo-color-action-disabled-text);
  cursor: not-allowed;
}

.cart-qty-value {
  width: 32px;
  border-right: 1px solid var(--pdp-line-strong);
  border-left: 1px solid var(--pdp-line-strong);
  color: var(--pdp-text);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 28px;
  text-align: center;
}

.mini-cart-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 24px;
}

.cart-membership {
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-md);
  background: var(--pdp-membership-surface);
}

.cart-membership-info {
  display: grid;
  gap: 2px;
}

.cart-membership-title {
  color: var(--pdp-text);
  font-size: 0.875rem;
  font-weight: 750;
}

.cart-membership-price {
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.cart-membership-details {
  padding: 16px;
  border: 1px solid var(--pdp-line);
  border-radius: var(--halo-radius-md);
  background: var(--pdp-panel-surface);
}

.cart-membership-details-header h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.cart-membership-details-body p {
  margin: 0 0 12px;
  color: var(--pdp-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cart-membership-details-body p:last-child {
  margin-bottom: 0;
}

.cart-promo-code {
  padding-top: 12px;
  border-top: 1px solid var(--pdp-line);
}

.promo-code-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--pdp-text-secondary);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 650;
}

.promo-code-toggle svg {
  color: var(--pdp-muted);
  transition: transform 0.2s ease;
}

.cart-promo-code.expanded .promo-code-toggle svg {
  transform: rotate(180deg);
}

.promo-code-input-wrapper {
  display: none;
  gap: 8px;
  padding-top: 10px;
}

.cart-promo-code.expanded .promo-code-input-wrapper {
  display: flex;
}

.promo-code-input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--pdp-line-strong);
  border-radius: var(--halo-radius-sm);
  color: var(--pdp-text);
  font-size: 0.875rem;
}

.promo-code-apply {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--halo-radius-sm);
  background: var(--pdp-action-secondary);
  color: var(--pdp-action-secondary-text);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 650;
}

.promo-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--halo-radius-xs);
  font-size: 0.8125rem;
}

.promo-success {
  background: var(--pdp-success-surface);
  color: var(--pdp-success-text);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--pdp-line);
}

.cart-total-row {
  align-items: center;
  color: var(--pdp-text-secondary);
  font-size: 0.9375rem;
}

.cart-total-row-light {
  color: var(--pdp-muted);
  font-size: 0.8125rem;
}

.cart-total-row-final {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--pdp-line);
  color: var(--pdp-text);
  font-weight: 750;
}

.cart-total-row-final span:last-child {
  font-size: 1.125rem;
}

.btn-cart-checkout {
  margin-top: 8px;
  background: var(--pdp-action-secondary);
  color: var(--pdp-action-secondary-text);
}

.btn-cart-checkout:hover {
  background: var(--pdp-action-secondary-hover);
  transform: translateY(-1px);
}

@media (max-width: 1120px) {
  .shop-container {
    grid-template-columns: 1fr;
    width: min(980px, calc(100% - 48px));
  }

  .product-config {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .modal-content-membership {
    padding: 32px 24px;
  }

  .membership-plans-grid {
    grid-template-columns: 1fr;
  }

  .membership-plan.plan-featured {
    order: -1;
  }

  .beacon-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pdp-page {
    --pdp-nav-offset: 84px;
  }

  .shop-main {
    padding-top: calc(var(--pdp-nav-offset) + 18px);
  }

  .shop-container {
    width: min(100%, calc(100% - 28px));
  }

  .product-title {
    font-size: 1.75rem;
  }

  .footer-legal {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .shop-main {
    padding-top: var(--pdp-nav-offset);
  }

  .shop-container {
    width: 100%;
    gap: 24px;
  }

  .product-gallery {
    gap: 12px;
    width: 100%;
  }

  .gallery-main {
    aspect-ratio: 1.08 / 1;
    border-radius: 0;
  }

  .gallery-main > img {
    width: 106%;
    height: 106%;
  }

  .gallery-main.is-lifestyle > img {
    width: 100%;
    height: 100%;
  }

  .realtree-logo {
    width: 112px;
    margin-top: 4%;
    margin-right: 5%;
  }

  .realtree-caption {
    bottom: 12%;
    padding: 0 18px;
    font-size: 0.8125rem;
  }

  .gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb {
    flex: 0 0 clamp(106px, 29vw, 118px);
    scroll-snap-align: start;
  }

  .gallery-thumb img {
    object-fit: contain;
  }

  .product-config {
    padding: 0 16px 8px;
  }

  .color-options {
    --pdp-color-swatch-size: 46px;
    --pdp-color-swatch-gap: 6px;
    margin-right: 0;
    padding-right: 0;
  }

  .color-option__badge {
    left: calc(50% - 1px);
  }

  .color-option--new[data-color="ranger"].active .color-check {
    opacity: 0;
  }

  body.halo-collar-pdp-page .blur-carousel-section {
    padding: 4rem 0 3.5rem;
  }

  body.halo-collar-pdp-page .blur-carousel-content {
    width: 100%;
    padding-right: 0;
    padding-left: 18px;
  }

  body.halo-collar-pdp-page .blur-carousel-header {
    padding-right: 18px;
  }

  body.halo-collar-pdp-page .blur-carousel-track-wrapper {
    margin-right: 0;
    margin-left: 0;
    overflow-x: auto;
    padding: 0.5rem 18px 0.5rem 0;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.halo-collar-pdp-page .blur-carousel-track-wrapper::-webkit-scrollbar {
    display: none;
  }

  body.halo-collar-pdp-page .blur-carousel-track {
    gap: 14px;
    transform: none !important;
  }

  body.halo-collar-pdp-page .blur-card {
    flex: 0 0 min(74vw, 292px);
    scroll-snap-align: start;
  }

  body.halo-collar-pdp-page .blur-card-image {
    height: min(78vw, 315px);
    border-radius: var(--halo-radius-lg);
  }

  body.halo-collar-pdp-page .blur-card-caption {
    padding: 14px 4px 0;
  }

  body.halo-collar-pdp-page .blur-card-title {
    font-size: 1.05rem;
    line-height: 1.12;
  }

  .addon-row {
    grid-template-columns: 24px minmax(0, 1fr) auto 30px;
    gap: 10px;
    padding: 13px 12px;
  }

  .addon-details {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 12px;
    padding-left: 12px;
  }

  .addon-media {
    width: 42px;
    height: 42px;
  }

  .membership-header {
    flex-wrap: wrap;
    padding: 16px;
  }

  .membership-info {
    min-width: 0;
    flex: 1;
  }

  .membership-right {
    width: 100%;
    justify-content: space-between;
  }

  .purchase-section {
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .current-price {
    font-size: 1.5rem;
  }

  .original-price {
    font-size: 1rem;
  }

  .btn-checkout,
  .btn-cart-checkout {
    min-height: 48px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-content,
  .modal-content-wide,
  .modal-content-membership {
    padding: 28px 18px;
    border-radius: var(--halo-radius-lg);
  }

  .beacon-comparison {
    padding: 16px;
  }

  .beacon-comparison-section {
    padding-bottom: 56px;
  }

  .beacon-comparison-section__inner {
    width: min(100%, calc(100% - 28px));
    padding: 22px;
  }

  .beacon-comparison-section__header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .beacon-table {
    font-size: 0.8rem;
  }

  .beacon-table th,
  .beacon-table td {
    padding: 8px;
  }

  .mini-cart-items {
    padding: 16px;
  }

  .mini-cart-footer {
    padding: 0 16px 16px;
  }
}

@media (max-width: 380px) {
  .features-grid {
    gap: 10px;
  }

  .feature-item {
    font-size: 0.8125rem;
  }

  .color-option__badge {
    right: auto;
    left: 50%;
    padding: 4px 5px;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .cart-item {
    gap: 12px;
    padding: 12px;
  }
}
