/* ============================================
   PRODUCT DETAIL PAGE — Moss Mountain Outfitters
   ============================================ */

/* ============ BREADCRUMB ============ */
.pdp-breadcrumb-section {
  padding: 120px 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 2px 0;
}

.breadcrumb a:hover { color: var(--forest); }

.breadcrumb-sep {
  margin: 0 10px;
  color: var(--cream-dark);
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 600;
}

/* ============ PDP LAYOUT ============ */
.pdp-section {
  padding: 0 0 var(--section-padding);
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ============ IMAGE GALLERY ============ */
.pdp-gallery {
  position: sticky;
  top: 120px;
}

.pdp-main-image {
  position: relative;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 700px;
  background: var(--cream-dark);
  cursor: zoom-in;
}

.pdp-main-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.pdp-main-image:hover img {
  transform: scale(1.04);
}

.pdp-image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: var(--forest);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pdp-zoom-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.pdp-zoom-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.pdp-zoom-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dark);
}

.pdp-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  max-width: 100%;
}
.pdp-thumbnails::-webkit-scrollbar { display: none; }
.pdp-thumb { flex-shrink: 0; }

.pdp-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--card-radius-sm);
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  background: none;
}

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

.pdp-thumb:hover {
  border-color: var(--tan);
}

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

/* ============ PRODUCT INFO ============ */
.pdp-info {
  padding-top: 8px;
}

.pdp-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.pdp-brand-link {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burnt-orange);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.pdp-brand-link:hover {
  border-color: var(--burnt-orange);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-stars {
  display: flex;
  gap: 2px;
}

.pdp-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--tan);
}

.pdp-review-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pdp-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-dark);
}

.pdp-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
}

.pdp-price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pdp-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ============ OPTION GROUPS ============ */
.pdp-option-group {
  margin-bottom: 28px;
}

.pdp-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pdp-option-label span:first-child {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pdp-option-selected {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.pdp-size-guide-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Color Swatches */
.pdp-color-swatches {
  display: flex;
  gap: 10px;
}

.pdp-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  position: relative;
}

.pdp-swatch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.pdp-swatch.active::after {
  border-color: var(--forest);
}

.pdp-swatch:hover::after {
  border-color: var(--tan);
}

/* Size Buttons */
.pdp-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdp-size {
  min-width: 56px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--cream-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}

.pdp-size:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.pdp-size.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ============ ACTIONS ============ */
.pdp-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 28px;
}

.pdp-quantity {
  display: flex;
  align-items: center;
  border: 2px solid var(--cream-dark);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.pdp-qty-btn {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

.pdp-qty-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-mid);
}

.pdp-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  outline: none;
  -moz-appearance: textfield;
}

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

.pdp-add-to-cart {
  flex: 1;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.3s var(--ease-out);
}

.pdp-add-to-cart svg {
  width: 20px;
  height: 20px;
}

.pdp-wishlist-btn {
  width: 52px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream-dark);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pdp-wishlist-btn:hover {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.04);
}

.pdp-wishlist-btn:hover svg {
  stroke: #e74c3c;
}

.pdp-wishlist-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  fill: none;
  transition: all 0.2s;
}

/* ============ TRUST SIGNALS ============ */
.pdp-trust-signals {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
}

.pdp-trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--forest);
  flex-shrink: 0;
}

/* ============ STORE CALLOUT ============ */
.pdp-store-callout {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--card-radius-sm);
  border: 1px solid var(--cream-dark);
}

.pdp-store-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdp-store-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--forest);
}

.pdp-store-callout strong {
  font-size: 0.92rem;
  display: block;
  margin-bottom: 2px;
}

.pdp-store-callout p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============ TABS ============ */
.pdp-tabs-section {
  padding: 0 0 var(--section-padding);
}

.pdp-tabs-card {
  background: var(--white);
  border-radius: var(--card-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pdp-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--cream-dark);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.pdp-tab {
  padding: 20px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.pdp-tab:hover {
  color: var(--text-dark);
}

.pdp-tab.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.pdp-tab-content {
  display: none;
  padding: 48px;
}

.pdp-tab-content.active {
  display: block;
}

/* Details Tab */
.pdp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pdp-details-grid h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pdp-details-grid p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.pdp-details-grid h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 16px;
}

.pdp-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.pdp-features-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdp-details-image {
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.pdp-details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specs Tab */
.pdp-specs-grid {
  max-width: 700px;
}

.pdp-spec-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream);
}

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

.pdp-spec-label {
  width: 200px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
}

.pdp-spec-value {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Reviews Tab */
.pdp-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cream);
  flex-wrap: wrap;
  gap: 20px;
}

.pdp-reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdp-reviews-score {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.pdp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pdp-review {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cream);
}

.pdp-review:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdp-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.pdp-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdp-review-avatar {
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.pdp-review-author strong {
  font-size: 0.95rem;
  display: block;
}

.pdp-review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.pdp-stars-small {
  display: flex;
  gap: 2px;
}

.pdp-stars-small svg {
  width: 14px;
  height: 14px;
  fill: var(--tan);
}

.pdp-review h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pdp-review p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pdp-review-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(43, 95, 43, 0.06);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Shipping Tab */
.pdp-shipping-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pdp-shipping-card {
  padding: 28px;
  background: var(--cream);
  border-radius: var(--card-radius-sm);
  text-align: center;
}

.pdp-shipping-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  display: block;
}

.pdp-shipping-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pdp-shipping-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .pdp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .pdp-gallery {
    position: static;
  }

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

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

@media (max-width: 768px) {
  .pdp-breadcrumb-section {
    padding-top: 100px;
  }

  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    min-width: 0;
  }

  .pdp-gallery {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .pdp-main-image {
    aspect-ratio: 3/4;
    width: 100%;
    max-width: 100%;
  }

  .pdp-thumbnails {
    gap: 8px;
  }

  .pdp-thumb {
    width: 64px;
    height: 64px;
  }

  .pdp-actions {
    flex-wrap: wrap;
  }

  .pdp-add-to-cart {
    order: -1;
    flex: 1 1 100%;
  }

  .pdp-quantity {
    flex: 1;
  }

  .pdp-wishlist-btn {
    width: 52px;
    height: 52px;
  }

  .pdp-trust-signals {
    flex-direction: column;
    gap: 12px;
  }

  .pdp-tab-content {
    padding: 28px;
  }

  .pdp-tab {
    padding: 16px 20px;
    font-size: 0.85rem;
  }

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

  .pdp-details-image {
    display: none;
  }
}

@media (max-width: 480px) {
  .pdp-actions {
    flex-direction: column;
  }

  .pdp-add-to-cart {
    width: 100%;
  }

  .pdp-quantity {
    align-self: flex-start;
  }

  .pdp-spec-label {
    width: 120px;
    font-size: 0.82rem;
  }

  .pdp-spec-value {
    font-size: 0.82rem;
  }

  .pdp-spec-row {
    flex-wrap: wrap;
  }

  .pdp-thumbnails {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .pdp-thumbnails::-webkit-scrollbar { display: none; }

  .pdp-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .pdp-tab-content {
    padding: 20px 16px;
  }

  .pdp-store-callout {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 16px;
  }

  .pdp-breadcrumb-section {
    padding-top: 90px;
  }

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

  .pdp-title {
    font-size: 1.5rem;
  }
}
