/* Product detail only. Loaded from product.html after the shared sheets. */

body.page-product {
  --pd-pink: #ff3d86;
  --pd-pink-deep: #e4236f;
  --pd-ink: #4a2140;
  --pd-muted: #8a6d7c;
  --pd-line: #f0e4ea;
  --pd-cream: #fff8f4;
  background: #f6eef3;
  color: var(--pd-ink);
  font-family: var(--sans);
}

body.page-product h1,
body.page-product h2,
body.page-product h3 {
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

body.page-product .announcement {
  background: #6d2448;
  color: #fff;
  font-size: 13px;
}

body.page-product .site-header,
body.page-product .header-nav {
  background: #fff;
}

body.page-product .header-search {
  height: 48px;
  border: 1px solid #f3d5e2;
  border-radius: 999px;
  background: #fff;
}

body.page-product .header-search > button {
  width: 40px;
  height: 40px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--pd-pink);
  color: #fff;
}

body.page-product .categories-btn {
  border: 0;
  border-radius: 999px;
  background: var(--pd-pink);
  color: #fff;
}

body.page-product .header-offer {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff4c8;
  color: #8a6414;
  font-weight: 700;
  text-decoration: none;
}

body.page-product .header-action--cart {
  position: relative;
}

body.page-product .header-action .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--pd-pink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

body.page-product #main {
  padding: 28px 0 64px;
}

body.page-product .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--pd-muted);
  font-size: 13px;
}

body.page-product .breadcrumb a {
  color: var(--pd-pink-deep);
  text-decoration: none;
}

body.page-product .piece {
  display: block;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(74, 33, 64, 0.08);
}

body.page-product .piece__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: start;
}

body.page-product .piece__buy {
  position: static;
  top: auto;
}

body.page-product .product-detail__media,
body.page-product .product-detail__media[data-orientation="landscape"],
body.page-product .product-detail__media[data-orientation="portrait"] {
  position: relative;
  display: block;
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  border-radius: 28px;
  background: #f3f3f5;
  overflow: hidden;
}

body.page-product .product-detail__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 28px;
}

body.page-product .product-detail__tag,
body.page-product .piece__off {
  position: absolute;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 8px;
  border-radius: 50%;
  background: var(--pd-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

body.page-product .product-detail__tag {
  left: 16px;
  border-radius: 999px;
  min-width: 0;
  min-height: 0;
  padding: 6px 12px;
}

body.page-product .piece__off {
  top: 18px;
  right: 18px;
  width: 74px;
  height: 74px;
  min-width: 74px;
  border-radius: 0;
  background: var(--pd-pink);
  clip-path: polygon(50% 0%, 61% 11%, 75% 4%, 79% 19%, 96% 18%, 89% 32%, 100% 43%, 88% 52%, 96% 66%, 81% 68%, 82% 84%, 67% 78%, 58% 93%, 50% 82%, 42% 93%, 33% 78%, 18% 84%, 19% 68%, 4% 66%, 12% 52%, 0% 43%, 11% 32%, 4% 18%, 21% 19%, 25% 4%, 39% 11%);
  font-size: 15px;
}

body.page-product .piece__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

body.page-product .piece__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e7d5de;
  cursor: pointer;
}

body.page-product .piece__dot.is-active {
  background: var(--pd-pink);
}

body.page-product .piece__variations {
  margin-top: 22px;
}

body.page-product .piece__variations p,
body.page-product .piece__sizes p,
body.page-product .piece__delivery p,
body.page-product .piece__code {
  margin: 0;
  color: var(--pd-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-product .product-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

body.page-product .piece .product-detail__thumb {
  width: 84px;
  height: 72px;
  padding: 6px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: #f7f2f5;
  cursor: pointer;
}

body.page-product .product-detail__thumb.is-active {
  border-color: var(--pd-pink);
  box-shadow: 0 0 0 1px var(--pd-pink);
}

body.page-product .product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-product .piece__code {
  margin-bottom: 8px;
}

body.page-product .piece__cats {
  margin: 0 0 8px;
}

body.page-product .piece__cats a {
  color: #9a8b95;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

body.page-product .piece__cats a + a::before {
  content: "/";
  margin-right: 8px;
  color: #c4b4bc;
  font-weight: 500;
}

body.page-product .piece h1 {
  margin: 8px 0 0;
  color: var(--pd-pink);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.page-product .piece__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
}

body.page-product .piece__offer .piece__price {
  order: 1;
}

body.page-product .piece__offer .piece__stars {
  order: 2;
}

body.page-product .piece__offer .product-detail__price-note {
  order: 3;
}

body.page-product .piece__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
}

body.page-product .piece__price span,
body.page-product .product-detail__price-note {
  color: var(--pd-muted);
  font-size: 13px;
}

body.page-product .piece__price strong {
  color: var(--pd-pink-deep);
  font-size: 1.35rem;
  font-weight: 800;
}

body.page-product .piece__price s {
  color: var(--pd-muted);
  font-size: 1rem;
}

body.page-product .product-detail__price-note:empty {
  display: none;
}

body.page-product .product-detail__price-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
}

body.page-product .piece__stars a {
  color: inherit;
  text-decoration: none;
}

body.page-product .piece__stars {
  margin: 0;
  color: var(--pd-pink);
  font-size: 14px;
  letter-spacing: 0.08em;
}

body.page-product .piece__stars span:last-child,
body.page-product .piece__stars--empty {
  color: var(--pd-muted);
  letter-spacing: 0;
}

body.page-product .piece__lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: #6d5564;
  font-size: 0.98rem;
  line-height: 1.6;
}

body.page-product .product-detail__seller,
body.page-product .piece__condition {
  margin-top: 12px;
  color: var(--pd-muted);
  font-size: 13px;
}

body.page-product .piece__condition span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-product .piece__condition span + span::before {
  content: "·";
  margin-right: 6px;
}

body.page-product .piece__sizes {
  margin-top: 18px;
}

body.page-product .piece__size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

body.page-product .piece__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #e7d5de;
  border-radius: 8px;
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 700;
}

body.page-product .piece__actions,
body.page-product .piece__extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

body.page-product .piece .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-product .piece .btn--dark {
  border: 0;
  background: var(--pd-pink);
  color: #fff;
}

body.page-product .piece .btn--dark:hover {
  background: var(--pd-pink-deep);
}

body.page-product .piece .btn--outline {
  border: 1px solid #e7d5de;
  background: #fff;
  color: var(--pd-ink);
}

body.page-product .piece__actions [data-wishlist] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.page-product .piece__actions [data-wishlist] svg {
  width: 18px;
  height: 18px;
}

body.page-product .piece__actions [data-wishlist][aria-pressed="true"] {
  border-color: #e4236f;
  color: #e4236f;
}

body.page-product .piece__actions [data-wishlist][aria-pressed="true"] svg {
  fill: #e4236f;
  stroke: #e4236f;
}

body.page-product .piece__extra:empty {
  display: none;
}

body.page-product .piece__extra .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  background: transparent;
}

body.page-product .piece__extra svg {
  width: 18px;
  height: 18px;
}

body.page-product .piece__delivery {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-line);
}

body.page-product .piece__delivery strong,
body.page-product .piece__delivery span {
  color: var(--pd-ink);
  font-size: 14px;
  font-weight: 500;
}

body.page-product .piece__delivery a,
body.page-product .piece-tabs a {
  color: var(--pd-pink-deep);
  font-weight: 700;
}

body.page-product .product-auction-panel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff1f6;
}

body.page-product .piece-tabs {
  position: relative;
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--pd-line);
}

body.page-product .piece-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.page-product .piece-tabs__nav {
  display: flex;
  gap: 8px 32px;
  overflow-x: auto;
  border-bottom: 1px solid #eee6ea;
}

body.page-product .piece-tabs__nav label {
  padding: 14px 0 12px;
  border-bottom: 3px solid transparent;
  color: #9a8b95;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

body.page-product #piece-tab-detail:checked ~ .piece-tabs__nav label[for="piece-tab-detail"],
body.page-product #piece-tab-size:checked ~ .piece-tabs__nav label[for="piece-tab-size"],
body.page-product #piece-tab-return:checked ~ .piece-tabs__nav label[for="piece-tab-return"],
body.page-product #piece-tab-delivery:checked ~ .piece-tabs__nav label[for="piece-tab-delivery"] {
  border-bottom-color: var(--pd-pink);
  color: var(--pd-pink);
}

body.page-product .piece-tabs__panel {
  display: none;
  padding-top: 18px;
}

body.page-product #piece-tab-detail:checked ~ .piece-tabs__panel--detail,
body.page-product #piece-tab-size:checked ~ .piece-tabs__panel--size,
body.page-product #piece-tab-return:checked ~ .piece-tabs__panel--return,
body.page-product #piece-tab-delivery:checked ~ .piece-tabs__panel--delivery {
  display: block;
}

body.page-product .piece-tabs__panel--detail > h2,
body.page-product .piece-tabs__panel--detail > .product-detail__desc {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.page-product .piece-tabs__panel h2 {
  margin: 0 0 10px;
  color: var(--pd-ink);
  font-size: 1.15rem;
}

body.page-product .piece-tabs__panel p {
  max-width: 70ch;
  color: #6d5564;
  line-height: 1.6;
}

body.page-product .product-facts {
  display: block;
  margin: 8px 0 0;
}

body.page-product .product-facts div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  max-width: 640px;
  padding: 13px 0;
  border-bottom: 1px solid #eee6ea;
}

body.page-product .product-facts dt {
  color: #8d7c86;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.page-product .product-facts dd {
  margin: 0;
  color: var(--pd-ink);
  font-size: 14px;
}

body.page-product .product-detail__notice {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  color: var(--pd-ink);
}

@media (max-width: 900px) {
  body.page-product .piece {
    padding: 18px;
    border-radius: 20px;
  }

  body.page-product .piece__stage,
  body.page-product .piece__actions,
  body.page-product .piece__extra {
    grid-template-columns: 1fr;
  }
}
