@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

body.single-product {
  --cdpx-ink: #1a1a1a;
  --cdpx-gold: #b8922a;
  --cdpx-gold-text: #8a6a14;
  --cdpx-ivory: #f7f7f8;
  --cdpx-muted: #6b6b6b;
  --cdpx-border: #e8e4df;
  color: var(--cdpx-ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-product .wpr-product-title,
body.single-product .product_title,
body.single-product .woocommerce-tabs h2,
body.single-product .cdpx-condition h2,
body.single-product .cdpx-recommendations h2,
body.single-product .cdpx-card h3 {
  color: var(--cdpx-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.single-product .wpr-product-title,
body.single-product .product_title {
  font-size: clamp(2.7rem, 4.4vw, 4.8rem);
  margin-bottom: 18px;
}

body.single-product .price,
body.single-product .wpr-product-price {
  color: var(--cdpx-gold-text) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 2vw, 2rem) !important;
  font-weight: 600;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .wpr-product-excerpt {
  color: var(--cdpx-muted);
  font-size: 1rem;
  line-height: 1.7;
}

body.single-product .woocommerce-product-gallery,
body.single-product .wpr-product-media-wrap {
  overflow: hidden;
  border: 1px solid var(--cdpx-border);
  border-radius: 28px;
  background: #fff;
}

body.single-product form.cart .single_add_to_cart_button,
body.single-product .wpr-product-add-to-cart .button {
  min-height: 54px;
  padding: 14px 34px !important;
  border-radius: 999px !important;
  background: var(--cdpx-ink) !important;
  color: #fff !important;
  font-weight: 700 !important;
  transition: background-color .2s ease, transform .2s ease;
}

body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product .wpr-product-add-to-cart .button:hover {
  background: var(--cdpx-gold-text) !important;
  transform: translateY(-1px);
}

body.single-product form.cart .quantity,
body.single-product form.cart .quantity input {
  border-color: var(--cdpx-border) !important;
  border-radius: 999px;
}

body.single-product .woocommerce-tabs {
  margin-top: 54px;
  border-top: 1px solid var(--cdpx-border);
}

body.single-product .woocommerce-tabs ul.tabs {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--cdpx-border);
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  padding: 18px 22px !important;
  color: var(--cdpx-muted) !important;
  font-weight: 600 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--cdpx-ink) !important;
  box-shadow: inset 0 -2px var(--cdpx-gold);
}

body.single-product .woocommerce-Tabs-panel {
  color: var(--cdpx-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.cdpx-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cdpx-gold-text);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cdpx-condition,
.cdpx-recommendations {
  width: min(1240px, calc(100% - 48px));
  margin: 72px auto 0;
}

.cdpx-condition {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 56px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--cdpx-border);
  border-radius: 24px;
  background: var(--cdpx-ivory);
}

.cdpx-condition h2,
.cdpx-recommendations h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.cdpx-condition p,
.cdpx-recommendations__heading p {
  margin: 0;
  color: var(--cdpx-muted);
  line-height: 1.65;
}

.cdpx-condition__scale {
  display: grid;
  gap: 10px;
}

.cdpx-condition__level {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--cdpx-border);
  border-radius: 12px;
  background: #fff;
  color: var(--cdpx-muted);
}

.cdpx-condition__level.is-current {
  border-color: var(--cdpx-gold);
  background: #fffaf0;
  color: var(--cdpx-ink);
  box-shadow: 0 8px 24px rgba(184, 146, 42, .12);
}

.cdpx-condition__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4cec6;
}

.cdpx-condition__level.is-current .cdpx-condition__dot {
  background: var(--cdpx-gold);
  box-shadow: 0 0 0 5px rgba(184, 146, 42, .16);
}

.cdpx-recommendations {
  padding: 78px 0 96px;
}

.cdpx-recommendations__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.cdpx-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cdpx-card {
  overflow: hidden;
  border: 1px solid var(--cdpx-border);
  border-radius: 18px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cdpx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .1);
}

.cdpx-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cdpx-ivory);
}

.cdpx-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.cdpx-card:hover .cdpx-card__image img {
  transform: scale(1.035);
}

.cdpx-card__body {
  padding: 18px;
}

.cdpx-card__condition {
  margin-bottom: 7px;
  color: var(--cdpx-gold-text);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cdpx-card h3 {
  margin: 0 0 9px;
  font-size: 1.25rem;
}

.cdpx-card h3 a {
  color: inherit;
  text-decoration: none;
}

.cdpx-card__price {
  color: var(--cdpx-gold-text);
  font-weight: 700;
}

@media (max-width: 900px) {
  .cdpx-condition { grid-template-columns: 1fr; gap: 28px; }
  .cdpx-recommendations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cdpx-condition,
  .cdpx-recommendations { width: min(100% - 28px, 1240px); }
  .cdpx-condition { padding: 24px; }
  .cdpx-recommendations { padding: 58px 0 74px; }
  .cdpx-recommendations__heading { align-items: start; flex-direction: column; }
  .cdpx-recommendations__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cdpx-card__body { padding: 13px; }
  .cdpx-card h3 { font-size: 1.05rem; }
}
