/* /shop/[slug] — white showroom v2 detail */

.sd {
  --sd-ink: #171717;
  --sd-muted: #737373;
  --sd-line: #e5e5e5;
  --sd-soft: #fafafa;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 5rem;
  background: #fff;
  color: var(--sd-ink);
}

@media (min-width: 768px) {
  .sd {
    padding: 1.5rem 2rem 5rem;
  }
}

/* crumb */
.sd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sd-muted);
}

.sd-crumb a {
  color: var(--sd-muted);
  text-decoration: none;
}

.sd-crumb a:hover {
  color: var(--sd-ink);
}

.sd-crumb [aria-current="page"] {
  color: var(--sd-ink);
  font-weight: 700;
}

/* main 60/40 */
.sd-main {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .sd-main {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
}

.sd-gallery {
  position: relative;
}

@media (min-width: 900px) {
  .sd-gallery {
    position: sticky;
    top: 100px;
  }
}

.sd-gallery__frame {
  border: 1px solid var(--sd-line);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--sd-soft);
}

.sd-gallery__main {
  aspect-ratio: 3 / 4;
  background: var(--sd-soft);
}

.sd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border-top: 1px solid var(--sd-line);
  overflow-x: auto;
  scrollbar-width: none;
}

.sd-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.sd-thumb {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--sd-line);
  border-radius: 0.45rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}

.sd-thumb.is-active {
  opacity: 1;
  border-color: var(--sd-ink);
}

.sd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* info */
.sd-info {
  min-width: 0;
}

.sd-info__top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--sd-soft);
  border: 1px solid var(--sd-line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-disc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.sd-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sd-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sd-price__now {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-price__old {
  font-size: 0.9rem;
  color: var(--sd-muted);
  text-decoration: line-through;
}

.sd-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-feats {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--sd-line);
}

.sd-feat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sd-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}

.sd-feat__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sd-ink);
  color: #fff;
  margin-top: 0.1rem;
}

.sd-buy-box {
  border: 1px solid var(--sd-line);
  border-radius: 0.65rem;
  padding: 1.15rem;
  background: #fff;
  margin-bottom: 1.75rem;
}

.sd-buy-box__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sd-buy-box__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sd-muted);
}

.sd-buy-box__value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-buy-box__actions {
  display: grid;
  gap: 0.6rem;
}

.sd-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sd-muted);
}

.sd-trust__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sd-line);
}

.sd-desc {
  margin-top: 0;
}

.sd-desc__body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #262626;
}

.sd-desc__body p {
  margin: 0 0 0.9rem;
}

.sd-desc__body p:last-child {
  margin-bottom: 0;
}

/* reviews */
.sd-reviews {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sd-line);
}

.sd-reviews__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sd-reviews__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
}

.sd-reviews__count {
  font-size: 0.85rem;
  color: var(--sd-muted);
  font-weight: 600;
}

.sd-reviews__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .sd-reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sd-review {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sd-line);
  border-radius: 0.55rem;
  background: #fff;
}

.sd-review__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.sd-review__stars {
  color: #171717;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.sd-review__top cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sd-ink);
}

.sd-review__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sd-muted);
}

/* related */
.sd-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sd-line);
}

.sd-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sd-related__head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
}

.sd-related__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sd-ink);
  text-decoration: none;
}

.sd-related__more:hover {
  text-decoration: underline;
}

.sd-related__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .sd-related__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* reuse sh-card but compact */
.sh-card {
  border: 1px solid var(--sd-line);
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sh-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.06);
}

.sh-card__media {
  aspect-ratio: 3 / 4;
  background: var(--sd-soft);
  overflow: hidden;
}

.sh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-card__body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.sh-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-card__price-now {
  font-size: 0.85rem;
  font-weight: 800;
}

/* sticky mobile bar */
.sd-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sd-line);
  padding: 0.65rem 1rem;
  transform: translateY(100%);
  transition: transform 0.25s;
}

.sd-sticky.is-visible {
  transform: translateY(0);
}

.sd-sticky[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.sd-sticky__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sd-sticky__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sd-sticky__left img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid var(--sd-line);
}

.sd-sticky__name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}

.sd-sticky__price {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (min-width: 900px) {
  .sd-sticky {
    display: none !important;
  }
}

/* buttons (reuse but override) */
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.sd-btn--primary {
  background: #171717;
  color: #fff;
  border-color: #171717;
}

.sd-btn--primary:hover {
  background: #000;
}

.sd-btn--ghost {
  background: #fff;
  color: #171717;
  border-color: var(--sd-line);
}

.sd-btn--ghost:hover {
  border-color: #a3a3a3;
}

.sd-btn--sm {
  min-height: 2.35rem;
  padding: 0 1rem;
  font-size: 0.85rem;
}
