/* Product detail page - matches shoreusable.com layout */

.page-product {
  background: var(--sho-cream);
}

.pdp {
  padding-bottom: 0;
}

.pdp-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 1.25rem 0 0.5rem;
}

.pdp-breadcrumb a:hover {
  text-decoration: underline;
}

.pdp-breadcrumb span {
  margin: 0 0.35rem;
}

/* Hero grid: media block + buy column */
.pdp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .pdp-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2.5rem 3rem;
  }
}

/* Media: thumbs + main + side highlights */
.pdp-media-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pdp-media-row {
    grid-template-columns: 72px 1fr;
    gap: 1rem 1.25rem;
  }
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdp-thumb {
  width: 56px;
  height: 56px;
  padding: 0.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pdp-thumb {
    width: 72px;
    height: 72px;
  }
}

.pdp-thumb.active {
  border-color: var(--sho-black);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-main-col {
  position: relative;
  min-width: 0;
  width: 100%;
}

.pdp-signature-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  background: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.pdp-main-image {
  background: var(--sho-card);
  border-radius: var(--radius-md);
  width: 100%;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.pdp-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pdp-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pdp-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
}

.pdp-carousel-dots button.active {
  background: var(--sho-black);
}

.pdp-carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pdp-carousel-arrows button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
}

/* Buy column */
.pdp-buy {
  padding-top: 0.25rem;
}

.pdp-buy h1 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  line-height: 1.15;
}

.pdp-buy-sub {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.pdp-rating .rating-stars {
  color: var(--sho-gold);
  letter-spacing: 0.02em;
}

.pdp-rating a {
  text-decoration: underline;
  font-weight: 500;
}

.pdp-price {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sho-green);
  margin-bottom: 1.5rem;
}

.pdp-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sho-green);
}

.pdp-step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.pdp-option-block {
  margin-bottom: 1.35rem;
}

.pdp-design-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pdp-design-label strong {
  color: var(--text);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.pdp-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-size-pill {
  min-width: 88px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sho-black);
  background: transparent;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}

.pdp-size-pill.active {
  background: var(--sho-black);
  color: #fff;
}

.pdp-color-group {
  margin-bottom: 0.85rem;
}

.pdp-color-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pdp-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  background-color: var(--swatch, #ccc);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 100ms ease;
}

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

.pdp-swatch.active {
  border-color: var(--sho-black);
  box-shadow: 0 0 0 2px var(--sho-cream), 0 0 0 4px var(--sho-black);
}

.pdp-personalize {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.pdp-personalize summary {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.pdp-personalize-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
  line-height: 1.5;
}

.pdp-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.pdp-trust-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.875rem 0.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pdp-trust-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--sho-black);
  flex-shrink: 0;
}

.pdp-add-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pdp-desc-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pdp-desc-accordion details {
  border-bottom: 1px solid var(--border);
}

.pdp-desc-accordion summary {
  padding: 1rem 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

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

.pdp-desc-body {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.pdp-desc-body ul {
  padding-left: 1.25rem;
}

/* Marketing sections */
.pdp-marketing {
  background: var(--sho-cream);
}

.pdp-marketing-section {
  padding: 3.5rem 0;
  text-align: center;
}

.pdp-marketing-section:nth-child(even) {
  background: var(--surface);
}

.pdp-marketing-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.pdp-marketing-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  line-height: 1.35;
}

.pdp-marketing-hero .pdp-hero-banner {
  max-width: 920px;
  margin: 0 auto;
}

.pdp-marketing-hero .pdp-hero-banner img {
  width: 100%;
  border-radius: var(--radius-md);
}

.pdp-video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

.pdp-video-tile {
  position: relative;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sho-card);
  aspect-ratio: 16 / 10;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.pdp-video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.pdp-video-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.pdp-feature-blocks {
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.pdp-feature-block {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pdp-feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .pdp-feature-block:nth-child(even) .pdp-feature-block-img {
    order: 2;
  }
}

.pdp-feature-block img {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--sho-card);
}

.pdp-feature-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pdp-feature-block p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.pdp-banner-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .pdp-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pdp-banner {
  background: var(--sho-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.pdp-banner h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

/* Reviews */
.reviews-section {
  padding: 3.5rem 0;
  background: var(--surface);
}

.reviews-section > .container > h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

#reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--sho-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  #reviews-summary {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.reviews-score-main {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reviews-score-main .rating-stars {
  color: var(--sho-gold);
}

.reviews-recommend {
  font-size: 0.875rem;
  margin: 0.35rem 0;
  color: var(--text-muted);
}

.review-bar-row {
  display: grid;
  grid-template-columns: 20px 1fr 36px 40px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.review-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--sho-black);
  border-radius: inherit;
}

.reviews-media-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.reviews-media-item {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--sho-card);
}

.reviews-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.reviews-toolbar select {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.review-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .review-item {
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
  }
}

.review-author {
  font-weight: 700;
  font-size: 0.875rem;
}

.review-date,
.review-size {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.review-rating-row {
  margin-bottom: 0.5rem;
}

.review-rating-row .rating-stars {
  color: var(--sho-gold);
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text);
}

.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.reviews-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 2rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

.page-btn.active,
.page-btn:hover {
  border-color: var(--sho-black);
  background: var(--sho-black);
  color: #fff;
}

#media-lightbox video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

/* Newsletter */
.newsletter-section {
  background: var(--sho-black);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.newsletter-section p {
  opacity: 0.85;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  font: inherit;
}

.newsletter-form button {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--sho-black);
  font-weight: 700;
  cursor: pointer;
}

#media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#media-lightbox[hidden] {
  display: none;
}

.media-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}
