/* Product detail page — premium monochrome */

.pdp {
  background: #fff;
  color: #111;
}

.pdp__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

@media (min-width: 768px) {
  .pdp__inner {
    padding: 32px 32px 80px;
  }
}

/* Breadcrumbs */
.pdp-breadcrumbs {
  margin-bottom: 28px;
}

.pdp-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #888;
}

.pdp-breadcrumbs__item {
  display: flex;
  align-items: center;
}

.pdp-breadcrumbs__link {
  color: #888;
  text-decoration: none;
  transition: color 200ms ease;
}

.pdp-breadcrumbs__link:hover,
.pdp-breadcrumbs__link:focus-visible {
  color: #111;
}

.pdp-breadcrumbs__sep {
  margin: 0 8px;
  color: #ccc;
}

.pdp-breadcrumbs__current {
  color: #111;
}

/* Hero layout */
.pdp-hero {
  display: grid;
  gap: 40px;
  margin-bottom: 56px;
}

@media (min-width: 1024px) {
  .pdp-hero {
    grid-template-columns: 55fr 45fr;
    gap: 48px;
    align-items: start;
  }
}

/* Gallery */
.pdp-gallery__main-wrap {
  position: relative;
}

.pdp-gallery__main {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #fafafa;
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pdp-gallery__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 250ms ease, opacity 250ms ease;
}

.pdp-gallery__crop {
  width: 100%;
  height: 100%;
}

.pdp-gallery__crop .pdp-gallery__image {
  position: absolute;
  object-fit: unset;
  width: calc(100% * 100 / var(--crop-w, 100));
  max-width: none;
  height: auto;
  margin-left: calc(-1% * var(--crop-x, 0) * 100 / var(--crop-w, 100));
  margin-top: calc(-1% * var(--crop-y, 0) * 100 / var(--crop-h, 100));
}

.pdp-gallery__main:hover .pdp-gallery__image {
  transform: scale(1.03);
}

.pdp-gallery__placeholder {
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
  border-radius: 8px;
}

.pdp-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pdp-gallery__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color 200ms ease, opacity 200ms ease;
}

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

.pdp-gallery__thumb.is-active {
  border-color: #111;
}

.pdp-gallery__thumb:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.pdp-gallery__thumb-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pdp-gallery__thumb-play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

.pdp-gallery__thumb-video-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  color: #666;
}

/* Product info */
.pdp-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pdp-info__brand,
.pdp-info__category {
  color: #666;
  text-decoration: none;
  transition: color 200ms ease;
}

.pdp-info__brand:hover,
.pdp-info__category:hover,
.pdp-info__brand:focus-visible,
.pdp-info__category:focus-visible {
  color: #111;
}

.pdp-info__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pdp-info__sku {
  margin: 12px 0 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.04em;
}

.pdp-info__price {
  margin: 20px 0 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.pdp-info__price.product-price--on-sale .product-price__current {
  color: #c41e3a;
}

.pdp-info__price .product-price__regular {
  font-size: 0.75em;
  font-weight: 500;
  color: #888;
  text-decoration: line-through;
}

/* Variation swatches */
.pdp-variations {
  margin: 24px 0 0;
}

.pdp-variations__axis {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}

.pdp-variations__legend {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.pdp-variations__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pdp-swatch--text {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
}

.pdp-swatch--visual {
  width: 44px;
  height: 44px;
  padding: 3px;
}

.pdp-swatch__color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.pdp-swatch__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.pdp-swatch:hover:not(:disabled),
.pdp-swatch:focus-visible {
  border-color: #111;
}

.pdp-swatch.is-selected {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.pdp-swatch.is-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdp-variations__status {
  margin: 8px 0 0;
  color: #888;
}

.pdp-info__summary {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

.pdp-highlights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pdp-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.pdp-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #111;
}

/* Buy / marketplace */
.pdp-buy {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e8e8e8;
}

.pdp-buy__label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

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

.pdp-marketplace__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.pdp-marketplace__btn:hover,
.pdp-marketplace__btn:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.pdp-marketplace__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.pdp-marketplace__btn--shopee {
  background: #ee4d2d;
  color: #fff;
}

.pdp-marketplace__btn--lazada {
  background: #0f146d;
  color: #fff;
}

.pdp-marketplace__btn--tiktok {
  background: #111;
  color: #fff;
}

.pdp-marketplace__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.pdp-marketplace__text {
  line-height: 1.2;
}

/* Trust */
.pdp-trust {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .pdp-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pdp-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.pdp-trust__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #111;
}

.pdp-trust__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Sections */
.pdp-section {
  margin-bottom: 56px;
}

.pdp-section__title {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Applications */
.pdp-applications__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp-applications__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
}

.pdp-applications__check {
  font-weight: 700;
  color: #111;
}

/* Tabs */
.pdp-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0;
}

.pdp-tabs__btn {
  padding: 12px 4px;
  margin-bottom: -1px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.pdp-tabs__btn:not(:last-child) {
  margin-right: 20px;
}

.pdp-tabs__btn.is-active {
  color: #111;
  border-bottom-color: #111;
}

.pdp-tabs__btn:hover,
.pdp-tabs__btn:focus-visible {
  color: #111;
}

.pdp-tabs__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

.pdp-tabs__panel {
  animation: pdpFadeIn 250ms ease;
}

@keyframes pdpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pdp-rich {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.pdp-rich p {
  margin: 0 0 1em;
}

/* Spec table */
.pdp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pdp-spec-table th,
.pdp-spec-table td {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.pdp-spec-table th {
  width: 38%;
  font-weight: 500;
  color: #666;
  text-align: left;
}

.pdp-spec-table td {
  color: #111;
}

.pdp-spec-group__title {
  margin: 24px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.pdp-spec-group__title:first-child {
  margin-top: 0;
}

/* Feature list */
.pdp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .pdp-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pdp-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.pdp-feature-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #111;
}

.pdp-feature-list__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Downloads */
.pdp-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pdp-downloads__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.pdp-downloads__link:hover,
.pdp-downloads__link:focus-visible {
  border-color: #111;
  background: #fafafa;
}

.pdp-downloads__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pdp-downloads__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Compare */
.pdp-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdp-compare__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.pdp-compare__table th,
.pdp-compare__table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.pdp-compare__table thead th {
  vertical-align: bottom;
  padding-top: 16px;
  border-bottom: 1px solid #ddd;
}

.pdp-compare__label-col {
  font-weight: 500;
  color: #666;
  min-width: 120px;
}

.pdp-compare__product-col {
  font-weight: 600;
  color: #111;
  min-width: 140px;
  vertical-align: bottom;
}

.pdp-compare__product-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.pdp-compare__product-link:hover .pdp-compare__product-name,
.pdp-compare__product-link:focus-visible .pdp-compare__product-name {
  text-decoration: underline;
}

.pdp-compare__product-image {
  display: block;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.pdp-compare__product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pdp-compare__product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #eee;
}

.pdp-compare__product-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 140px;
}

/* FAQ */
.pdp-faq__list {
  border-top: 1px solid #eee;
}

.pdp-faq__item {
  border-bottom: 1px solid #eee;
}

.pdp-faq__question {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.pdp-faq__question::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: #888;
  transition: transform 250ms ease;
}

.pdp-faq__item[open] .pdp-faq__question::after {
  transform: rotate(45deg);
}

.pdp-faq__answer {
  padding-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

/* Carousels on PDP */
.pdp .journal-product-section,
.pdp .home-product-section {
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .pdp .journal-product-section,
  .pdp .home-product-section {
    padding: 0 32px;
  }
}

/* Recently viewed */
.pdp-recent {
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .pdp-recent {
    padding: 0 32px;
  }
}

.pdp-recent__grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.pdp-recent__grid .product-card {
  flex: 0 0 200px;
  width: 200px;
}

@media (min-width: 768px) {
  .pdp-recent__grid .product-card {
    flex: 0 0 220px;
    width: 220px;
  }
}

/* Sticky mobile buy */
.pdp-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  transform: translateY(0);
  transition: transform 250ms ease;
}

@media (min-width: 768px) {
  .pdp-sticky-buy {
    display: none !important;
  }
}

.pdp-sticky-buy[hidden] {
  display: none;
}

.pdp-sticky-buy__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.pdp-sticky-buy__price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.pdp-sticky-buy__price.product-price--on-sale .product-price__current {
  color: #c41e3a;
}

.pdp-sticky-buy__price .product-price__regular {
  font-size: 0.8em;
  font-weight: 500;
  color: #888;
  text-decoration: line-through;
}

.pdp-sticky-buy__actions {
  display: flex;
  gap: 8px;
}

.pdp-sticky-buy__btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.pdp-sticky-buy__btn--primary {
  background: #ee4d2d;
  color: #fff;
}

.pdp-sticky-buy__btn--secondary {
  background: #0f146d;
  color: #fff;
}

.pdp-sticky-buy__btn--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.pdp-sticky-buy__icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.pdp-sticky-buy__btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Lightbox */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.pdp-lightbox[hidden] {
  display: none;
}

.pdp-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox__close svg {
  width: 22px;
  height: 22px;
  fill: #111;
}

.pdp-lightbox__stage {
  max-width: min(1200px, 100%);
  max-height: 90vh;
}

.pdp-lightbox__stage img,
.pdp-lightbox__stage video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Body offset when sticky visible */
@media (max-width: 767px) {
  body.pdp-has-sticky-buy {
    --pdp-sticky-offset: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--pdp-sticky-offset);
  }

  body.pdp-has-sticky-buy .ScrollTop {
    bottom: calc(var(--pdp-sticky-offset) + 12px);
  }
}

.pdp-gallery__media.is-fading {
  opacity: 0;
}
