:root {
  --cream: #FDFBF7;
  --warm: #F4F1EA;
  --gold: #D4B26F;
  --gold-dark: #9B783B;
  --charcoal: #2C2A29;
  --muted: #7A7571;
  --line: #E2D9CB;
  --soft-line: #EEE7DD;
  --white: #fff;
  --green: #0CCB63;
  --guide: 1440px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Pretendard Variable", "Noto Sans KR", Inter, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -.018em;
}

button,
select,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(253, 251, 247, .94);
  backdrop-filter: blur(14px);
}

.detail-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.detail-header > * {
  position: relative;
}

.detail-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, var(--guide)) minmax(24px, 1fr);
  align-items: center;
}

.detail-logo,
.detail-nav {
  grid-column: 2;
}

.detail-logo {
  justify-self: start;
  text-decoration: none;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.detail-logo small {
  display: block;
  margin-top: 4px;
  color: #8A8178;
  font: 800 10px Inter, sans-serif;
  letter-spacing: .18em;
}

.detail-nav {
  justify-self: end;
  display: flex;
  gap: 26px;
}

.detail-nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  color: var(--charcoal);
}

.detail-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform .18s ease;
}

.detail-nav a:hover::after {
  transform: scaleX(1);
}

.detail-shell {
  width: min(calc(100% - 64px), var(--guide));
  margin: 0 auto;
  padding: 38px 0 96px;
}

.detail-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #8E867E;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: -.01em;
}

.detail-breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.detail-breadcrumb b {
  color: #4D4945;
  font-weight: 600;
}

.detail-breadcrumb a:hover {
  color: var(--gold-dark);
}

.product-top {
  display: grid;
  grid-template-columns: minmax(560px, 1.02fr) minmax(430px, .98fr);
  gap: clamp(44px, 5vw, 72px);
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 1px solid var(--line);
  background: #F8F3EB;
  overflow: hidden;
}

.main-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .1s ease, transform .2s ease;
}

.main-image-wrap img.switching {
  opacity: .28;
  transform: scale(.995);
}

.image-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(44, 42, 41, .58);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: #D8CDBD transparent;
}

.thumbnail-button {
  flex: 0 0 82px;
  width: 82px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

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

.thumbnail-button:hover,
.thumbnail-button.active {
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(95, 75, 42, .13);
  transform: translateY(-1px);
}

.detail-info {
  min-width: 0;
  padding-top: 4px;
}

.brand-kicker {
  margin: 0 0 12px;
  color: #8B837B;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.detail-info h1 {
  margin: 0;
  max-width: 680px;
  color: #181715;
  font-family: "Pretendard Variable", "Noto Sans KR", Inter, sans-serif;
  font-size: clamp(28px, 2.15vw, 36px);
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: -.052em;
  word-break: keep-all;
}

.review-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #6F6861;
  font-size: 13px;
  font-weight: 500;
}

.review-line .stars {
  color: #E9A900;
  font-size: 15px;
  letter-spacing: -.03em;
}

.review-line b {
  color: #2F2C29;
  font-weight: 650;
}

.price-area {
  margin-top: 24px;
}

.sale-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 20px;
}

.sale-rate {
  color: #E02F2F;
  font: 700 13px Inter, sans-serif;
}

.sale-line del {
  color: #A49D96;
  font: 400 13px Inter, sans-serif;
}

.price-area strong {
  display: block;
  margin-top: 2px;
  color: #141312;
  font-family: Inter, "Noto Sans KR", sans-serif;
  font-size: clamp(25px, 2vw, 29px);
  font-weight: 740;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.shipping-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #3A3632;
  font-size: 13px;
  font-weight: 650;
}

.shipping-line i {
  font-size: 14px;
}

.option-box,
.quantity-row,
.total-row,
.meta-list {
  border-top: 1px solid var(--line);
}

.option-box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
}

.option-box label {
  color: #5F5954;
  font-size: 15px;
  font-weight: 700;
}

.option-choice-area {
  display: grid;
  gap: 15px;
}

.option-choice-group {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 12px;
}

.option-choice-group > span {
  padding-top: 10px;
  color: #6F6861;
  font-size: 13px;
  font-weight: 700;
}

.option-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-choice-list button {
  min-width: 52px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #DED4C6;
  border-radius: 7px;
  background: #FFFDF9;
  color: #514B45;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.option-choice-list button:hover,
.option-choice-list button:focus-visible {
  border-color: #CBB78F;
  outline: none;
}

.option-choice-list button.active {
  border-color: #2C2A29;
  background: #2C2A29;
  color: #fff;
  box-shadow: 0 5px 14px rgba(44, 42, 41, .15);
}

.selected-option-summary {
  margin: 0;
  padding: 11px 13px;
  border-radius: 7px;
  background: #F4F1EA;
  color: #81786F;
  font-size: 12px;
}

.selected-option-summary.selected {
  background: #F1E6D2;
  color: #755A2F;
  font-weight: 750;
}

.custom-select {
  position: relative;
}

.option-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-select-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.option-select-field > span:first-child {
  color: #68615B;
  font-size: 12px;
  font-weight: 700;
}

.option-select-field[hidden] {
  display: none !important;
}

.custom-select select {
  width: 100%;
  min-height: 50px;
  appearance: none;
  border: 1px solid #DED4C6;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--charcoal);
  padding: 0 48px 0 16px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.custom-select select:hover {
  border-color: #CBB78F;
  background: #fff;
}

.custom-select select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 178, 111, .18);
  background: #fff;
}

.custom-select select:disabled {
  border-color: #E6E0D8;
  background: #F4F1EC;
  color: #A39B92;
  cursor: not-allowed;
}

.custom-select i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94897D;
  pointer-events: none;
  font-size: 13px;
}

.option-select-guide {
  grid-column: 2;
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 7px;
  background: #F4F1EA;
  color: #81786F;
  font-size: 12px;
  line-height: 1.5;
}

.option-select-guide.selected {
  background: #F1E6D2;
  color: #755A2F;
  font-weight: 750;
}

.selected-option-list {
  grid-column: 2;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.selected-option-item {
  border: 1px solid #DED4C6;
  border-radius: 9px;
  background: #FFFDF9;
  padding: 14px;
}

.selected-option-head,
.selected-option-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.selected-option-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #EEE7DD;
}

.selected-option-head > strong {
  color: #2C2A29;
  font-size: 13px;
  line-height: 1.45;
}

.selected-option-remove {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #F4F1EA;
  color: #746C64;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.selected-option-controls {
  padding-top: 12px;
}

.selected-option-controls .quantity-control {
  grid-template-columns: 38px 46px 38px;
  min-height: 40px;
}

.selected-option-controls > strong {
  color: #141312;
  font-family: Inter, "Noto Sans KR", sans-serif;
  font-size: 15px;
}

.quantity-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding-top: 22px;
}

.quantity-row > span {
  color: #68615B;
  font-size: 13px;
  font-weight: 600;
}

.quantity-control {
  justify-self: start;
  display: inline-grid;
  grid-template-columns: 44px 52px 44px;
  min-height: 44px;
  border: 1px solid #DDD4C8;
  background: rgba(255,255,255,.58);
}

.quantity-control button {
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  transition: background .14s ease, color .14s ease;
}

.quantity-control button:hover {
  background: var(--warm);
  color: var(--gold-dark);
}

.quantity-control output {
  display: grid;
  place-items: center;
  border-left: 1px solid #DDD4C8;
  border-right: 1px solid #DDD4C8;
  color: #111;
  font: 650 14px Inter, sans-serif;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
}

.total-row span {
  color: #68615B;
  font-size: 13px;
  font-weight: 600;
}

.total-row strong {
  color: #141312;
  font-family: Inter, "Noto Sans KR", sans-serif;
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 740;
  letter-spacing: -.04em;
}

.buy-action {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.02em;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.buy-action:hover {
  filter: brightness(.96);
  box-shadow: 0 12px 28px rgba(12, 203, 99, .22);
  transform: translateY(-1px);
}

.sub-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sub-actions button {
  min-height: 48px;
  border: 1px solid #DDD4C8;
  border-radius: 0;
  background: rgba(255, 255, 255, .64);
  color: #111;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.sub-actions button:hover {
  border-color: var(--gold);
  background: #fff;
  transform: translateY(-1px);
}

.sub-actions i {
  margin-right: 7px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 217, 203, .72);
  border-bottom: 1px solid var(--line);
}

.meta-list div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid rgba(226, 217, 203, .58);
}

.meta-list div:first-child {
  padding-left: 0;
}

.meta-list div:last-child {
  padding-right: 0;
  border-right: 0;
}

.meta-list dt,
.meta-list dd {
  margin: 0;
}

.meta-list dt {
  flex: 0 0 auto;
  color: #A9A29A;
  font-family: Inter, "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.meta-list dd {
  min-width: 0;
  color: #2F2D2B;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-content-section,
.review-section {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.section-heading {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-heading small {
  color: var(--gold-dark);
  font: 850 12px Inter, sans-serif;
  letter-spacing: .16em;
}

.section-heading h2,
.review-head h2 {
  margin: 0;
  color: #161514;
  font-family: "Noto Sans KR", "Pretendard Variable", sans-serif;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.055em;
}

.section-heading small + h2 {
  margin-top: 8px;
}

.section-heading p {
  margin: 28px auto 0;
  color: #4E4944;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.85;
}

.detail-content-body {
  width: min(980px, 100%);
  margin: 32px auto 0;
}

.detail-intro-image {
  margin: 0 auto 24px;
}

.detail-intro-image:empty {
  display: none;
}

.detail-intro-image img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: var(--warm);
}

.detail-description-card {
  border: 1px solid #E5DCCF;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFDF9, #F4F1EA);
  padding: 30px 34px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(91, 74, 48, .06);
}

.detail-description-card small {
  display: block;
  color: var(--gold-dark);
  font: 850 11px Inter, sans-serif;
  letter-spacing: .16em;
  margin-bottom: 12px;
}

.detail-description-card p {
  margin: 0 auto;
  max-width: 760px;
  color: #4E4944;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.85;
  word-break: keep-all;
}

.detail-image-list {
  display: grid;
  gap: 18px;
  margin: 24px auto 0;
}

.detail-image-list img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  background: var(--warm);
}

.detail-progressive-image {
  min-height: 180px;
  opacity: .96;
  background: linear-gradient(100deg, #F3EFE8 20%, #FBF8F2 38%, #F3EFE8 56%);
  background-size: 220% 100%;
  animation: detailImageLoading 1.25s ease-in-out infinite;
  transition: opacity .25s ease;
}

.detail-progressive-image.preview-ready,
.detail-progressive-image.preview-only,
.detail-progressive-image.full-ready {
  opacity: 1;
  animation: none;
}

@keyframes detailImageLoading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.detail-image-empty {
  border: 1px dashed #D8CDBD;
  border-radius: 10px;
  background: rgba(255, 255, 255, .48);
  padding: 42px 20px;
  color: #8A8178;
  text-align: center;
  font-size: 14px;
}

.review-section {
  margin-top: 72px;
}

.review-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.review-head h2 {
  text-align: left;
}

.review-head p {
  margin: 12px 0 0;
  color: #1E1C1A;
  font-size: 15px;
}

.review-head p span {
  color: #E9A900;
  letter-spacing: .02em;
}

.review-head small {
  color: #6C655E;
  font-size: 13px;
}

.empty-review {
  display: grid;
  place-items: center;
  min-height: 140px;
  margin-top: 24px;
  border: 1px dashed #D8CDBD;
  color: #6B625A;
  font-size: 15px;
}

.review-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.review-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(91,74,48,.05);
}

.review-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.review-meta strong {
  display: block;
  color: var(--charcoal);
  font-size: 15px;
}

.review-meta span {
  display: block;
  margin-top: 4px;
  color: #8A8178;
  font-size: 12px;
}

.review-stars {
  color: #D4B26F;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.review-option {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #F4F1EA;
  color: #6E6254;
  font-size: 12px;
  font-weight: 600;
}

.review-card p {
  margin: 14px 0 0;
  color: #3B3734;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.review-card-image{
  display:block;
  width:100%;
  max-height:360px;
  margin-top:14px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
}

.review-reply-box{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:#F8F4EC;
  border:1px solid #E7E0D5;
}

.review-reply-box b{
  display:block;
  color:#7D6030;
  font-size:13px;
}

.review-reply-box p{
  margin-top:8px;
}

.review-reply-box small{
  display:block;
  margin-top:10px;
  color:#8A8178;
  font-size:12px;
}

.detail-toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  opacity: 0;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 750;
  transition: .22s ease;
  pointer-events: none;
}

.detail-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .product-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .detail-info {
    width: min(720px, 100%);
  }
}

@media (max-width: 760px) {
  .detail-header {
    grid-template-columns: minmax(18px, 1fr) minmax(0, var(--guide)) minmax(18px, 1fr);
    align-content: center;
    min-height: 96px;
    padding: 12px 0;
  }

  .detail-logo,
  .detail-nav {
    justify-self: start;
  }

  .detail-nav {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .detail-shell {
    width: min(calc(100% - 36px), var(--guide));
    padding-top: 24px;
  }

  .detail-breadcrumb {
    display: none;
  }

  .detail-info h1 {
    font-size: 24px;
    line-height: 1.38;
    letter-spacing: -.045em;
  }

  .option-box,
  .quantity-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .option-select-grid {
    grid-template-columns: 1fr;
  }

  .option-select-guide,
  .selected-option-list {
    grid-column: 1;
  }

  .selected-option-item {
    padding: 13px;
  }

  .meta-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
    padding: 10px 0;
  }

  .meta-list div {
    align-items: flex-start;
    gap: 4px;
    padding: 0 8px;
  }

  .meta-list dt {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: -.02em;
  }

  .meta-list dd {
    font-size: 11px;
    font-weight: 650;
    text-align: left;
  }

  .sub-actions {
    grid-template-columns: 1fr;
  }

  .thumbnail-button {
    flex-basis: 68px;
    width: 68px;
  }

  .review-head {
    align-items: start;
    flex-direction: column;
  }

  .review-card {
    padding: 18px;
  }

  .review-meta {
    flex-direction: column;
  }
}
