/* [리팩터링] content.css/goods.css/favorite.css에 완전 동일하게 중복 정의되어 있던
   list-header, card-*, detail-*, pagination, empty-state 등 공용 카드/리스트 스타일을
   css/component.css 로 통합 이동했습니다. (내용 변경 없음, 위치만 이동) */

/* =========================================================
   GOODS COMMON WRAPPER
   (contentList / contentDetail 구조 기준으로 통일)
========================================================= */

.goods-list-container,
.goods-detail-container {
  padding: 40px 60px;
}

/* =========================================================
   GOODS LIST HEADER
   (content-list-modern.css의 PAGE HEADER와 동일한 구조)
========================================================= */

.goods-list-header {
  display: block;
  margin-bottom: 20px;
}

.goods-list-heading {
  min-width: 0;
}

.goods-list-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #838b9a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.goods-list-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.goods-list-header .list-title {
  margin: 0;
}

.goods-list-result-count {
  color: #8f96a3;
  font-size: 12px;
  white-space: nowrap;
}

.goods-list-result-count strong {
  margin: 0 2px 0 4px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.goods-list-header p {
  margin: 10px 0 0;
  color: #8f96a3;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   SELECTED FILTERS + SORT
   (content-list-modern.css의 toolbar와 동일한 구조)
========================================================= */

.goods-list-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #18191b;
}

.goods-selected-filter-area {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.goods-selected-filter-label {
  flex-shrink: 0;
  color: #c7cbd2;
  font-size: 12px;
  font-weight: 700;
}

.goods-selected-filter-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.goods-selected-filter-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #24262a;
  color: #f0f1f3;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.goods-selected-filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #2d3035;
  transform: translateY(-1px);
}

.goods-selected-filter-chip span:last-child {
  color: #9fa5af;
  font-size: 15px;
  line-height: 1;
}

.goods-selected-filter-clear {
  color: #8e949e;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.goods-selected-filter-clear:hover {
  color: #ffffff;
  text-decoration: underline;
}

.goods-selected-filter-empty {
  color: #777f8c;
  font-size: 12px;
}

.goods-list-sort-form {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
}

.goods-list-sort-form label {
  color: #8f96a3;
  font-size: 11px;
  font-weight: 700;
}

.goods-list-sort-form select {
  min-width: 108px;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #222429;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.goods-list-sort-form select:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* =========================================================
   GOODS CARD
========================================================= */

/* soldout 카드는 살짝 어둡게 */
.card-item.is-soldout {
  opacity: 0.55;
}

/* =========================================================
   POSTER(썸네일) AREA
========================================================= */

.card-poster {
  position: relative !important;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #111;
  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-item:hover .card-poster img {
  transform: scale(1.08);
}

/* [개선] 썸네일 포스터 좌측 상단 absolute 위치 할인 뱃지 */
.card-poster .discount-badge,
.badge-discount,
.discount-tag {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px !important;
  background: #ff4757 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 품절 뱃지 */
.soldout-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================================================
   INFO AREA & PRICE LAYOUT
========================================================= */

.card-brand {
  font-size: 11px;
  color: #8a8a8a;
  margin-bottom: 4px;
}

.card-title-wrap,
.goods-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  width: 100% !important;
}

.card-title,
.goods-title {
  flex: 1;
  width: 100% !important;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.card-meta,
.price-container,
.goods-price-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.price-original,
.original-price,
.price-before {
  font-size: 12px;
  color: #888888;
  text-decoration: line-through;
  white-space: nowrap;
}

/* 할인율과 할인가를 묶어주는 세로/가로 행 스타일 */
.price-sale-row,
.discount-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.price-final,
.final-price,
.sale-price {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* ⭕ 할인율 강조 색상 (굿즈디테일과 통일) */
.price-sale-row .rate,
.price-meta .rate,
.price-container .rate,
.card-meta .rate,
.discount-rate {
  color: #ff5c6e !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-right: 2px;
}

.stock-warning,
.stock-info {
  color: #e8a93e;
  white-space: nowrap;
}

/* =========================================================
   GOODS LIST FAVORITE(WISH) BUTTON
========================================================= */

.card-item .card-favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card-item .card-favorite-btn:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(35, 35, 35, 0.92);
  transform: scale(1.07);
}

.card-item .card-favorite-btn.active {
  border-color: rgba(255, 92, 110, 0.6);
  background: rgba(82, 20, 29, 0.9);
  color: #ff5c6e;
}

.card-item .card-favorite-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* =========================================================
   GOODS DETAIL FAVORITE(WISH) BUTTON
========================================================= */

.detail-info .action-box .fav-btn.detail-favorite-btn {
  position: static;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 44px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.detail-info .action-box .fav-btn.detail-favorite-btn:hover {
  transform: translateY(-1px);
  background: #3a3a3a;
}

.detail-info .action-box .fav-btn.detail-favorite-btn.active {
  border-color: rgba(255, 92, 110, 0.6);
  background: rgba(82, 20, 29, 0.9);
  color: #ff5c6e;
}

/* =========================================================
   DETAIL LAYOUT
========================================================= */

.back-area {
  margin-bottom: 16px;
}

.back-btn {
  color: #b0b0b0;
  font-size: 13px;
}

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

.image-gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.image-gallery img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.image-gallery img.is-active {
  border-color: #fff;
}

.detail-brand {
  font-size: 13px;
  color: #9a9a9a;
  margin-bottom: 6px;
}

.detail-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b0b0b0;
  font-size: 14px;
}

.detail-meta .divider {
  color: #444;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.on-sale {
  background: rgba(76, 175, 80, 0.15);
  color: #6fcf73;
}

.status-badge.sold-out {
  background: rgba(230, 57, 70, 0.15);
  color: #e63946;
}

.status-badge.waiting {
  background: rgba(255, 255, 255, 0.08);
  color: #bdbdbd;
}

.price-box {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-box .price-original {
  font-size: 16px;
}

.price-box .rate {
  color: #ff5c6e !important;
  font-size: 20px;
  font-weight: 800;
}

.price-box .price-final {
  font-size: 24px;
  font-weight: 800;
}

.detail-desc {
  margin-top: 20px;
  color: #dadada;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* =========================================================
   DETAIL ACTION BUTTONS
========================================================= */

.detail-info .action-box {
  width: 100%;
  max-width: 420px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-info .action-box .btn {
  position: static;
  min-width: 0;
  min-height: 44px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.detail-info .action-box .btn:hover {
  transform: translateY(-1px);
}

.detail-info .action-box .cart-btn {
  width: auto;
  height: auto;
  border-color: rgba(255, 255, 255, 0.18);
  background: #2a2a2a;
  color: #fff;
}

.detail-info .action-box .cart-btn:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: #3a3a3a;
}

.detail-info .action-box .btn.btn-primary,
.detail-info .action-box .buy-btn {
  border-color: #2f6fe4;
  background: #2f6fe4;
  color: #fff;
}

.detail-info .action-box .btn.btn-primary:hover,
.detail-info .action-box .buy-btn:hover {
  border-color: #2559c4;
  background: #2559c4;
}

.detail-info .action-box .btn:disabled {
  opacity: 0.4;
  transform: none;
  cursor: not-allowed;
}

/* =========================================================
   DETAIL SECTION
========================================================= */

.detail-section {
  margin-top: 40px;
}

.detail-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* =========================================================
   GOODS DETAIL 2-COLUMN LAYOUT
========================================================= */

.goods-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.goods-detail-main {
  min-width: 0;
}

.goods-detail-left-sidebar,
.goods-detail-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SIDEBAR CARD */
.detail-side-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #181818;
}

.detail-side-card-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-side-card-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.detail-side-card-body {
  padding: 12px;
}

/* RELATED CONTENT CARD */
.side-content-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #1b1b1b;
  cursor: pointer;
  transition: 0.2s ease;
}

.side-content-item:hover {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.15);
}

.side-content-poster {
  width: 64px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #111;
}

.side-content-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s ease;
}

.side-content-item:hover .side-content-poster img {
  transform: scale(1.05);
}

.side-content-poster .no-img {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #7d7d7d;
  background: #101010;
  font-size: 10px;
}

.side-content-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.side-content-info strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-content-info span {
  color: #999;
  font-size: 11px;
}

/* ACTOR CARD */
.actor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: #1b1b1b;
  cursor: pointer;
  transition: 0.2s ease;
}

.actor-card:hover {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.15);
}

.actor-card__photo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #101010;
}

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

.actor-card__no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #7d7d7d;
  background: #101010;
  font-size: 10px;
}

.actor-card__info {
  min-width: 0;
}

.actor-card__info strong,
.actor-card__info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actor-card__info strong {
  color: #fff;
  font-size: 13px;
}

.actor-card__info span {
  margin-top: 5px;
  color: #888;
  font-size: 11px;
}

@media (max-width: 1700px) {
  .goods-detail-layout {
    grid-template-columns: 200px minmax(0, 1fr) 260px;
  }
}

@media (max-width: 1500px) {
  .goods-detail-layout {
    grid-template-columns: 1fr;
  }

  .goods-detail-left-sidebar,
  .goods-detail-sidebar {
    position: static;
  }

  .goods-detail-main {
    order: 1;
  }

  .goods-detail-left-sidebar {
    order: 2;
  }

  .goods-detail-sidebar {
    order: 3;
  }
}

.more-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  font-size: 13px;
}

.more-btn:hover {
  background: #3a3a3a;
}

/* =========================================================
   GOODS LIST 3-COLUMN LAYOUT
========================================================= */

.goods-page-container {
  width: 100%;
  box-sizing: border-box;
}

.goods-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.goods-left-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.goods-left-sidebar::-webkit-scrollbar {
  width: 6px;
}

.goods-left-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.goods-right-sidebar {
  position: sticky;
  top: 90px;
}

.goods-result-area {
  min-width: 0;
}

.goods-mobile-filter-toggle {
  display: none;
}

/* LEFT FILTER SIDEBAR (콘텐츠 사이드바 규격 완벽 동일화) */

.goods-filter-form {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #181818;
}

.goods-filter-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.goods-filter-title-area {
  display: flex;
  flex-direction: column;
}

.goods-filter-title-area h2 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.goods-filter-title-area span {
  margin-top: 4px;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.goods-filter-header p {
  margin: 10px 0 0;
  color: #888888;
  font-size: 12px;
  line-height: 1.4;
}

.goods-filter-group {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.goods-filter-group h2,
.filter-group-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.goods-filter-option,
.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: #b3b3b3;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.goods-filter-option:hover,
.filter-option:hover {
  color: #ffffff;
}

.goods-filter-option input[type="checkbox"],
.filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #ffffff;
  cursor: pointer;
}

.goods-filter-actions,
.filter-action-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.goods-filter-submit-btn,
.goods-filter-reset-btn,
.filter-submit-btn,
.filter-reset-btn {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.goods-filter-submit-btn,
.filter-submit-btn {
  border: 0;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
}

.goods-filter-submit-btn:hover,
.filter-submit-btn:hover {
  background: #e6e6e6;
}

.goods-filter-reset-btn,
.filter-reset-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #222222;
  color: #dddddd;
  font-weight: 600;
}

.goods-filter-reset-btn:hover,
.filter-reset-btn:hover {
  background: #2c2c2c;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.goods-filter-reset-icon {
  font-size: 13px;
}

/* RIGHT RECOMMEND SIDEBAR */
.recommend-sidebar {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #181818;
}

.recommend-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recommend-sidebar-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.recommend-list {
  display: flex;
  flex-direction: column;
}

.recommend-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.recommend-item:last-child {
  border-bottom: 0;
}

.recommend-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.recommend-poster {
  width: 54px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #111111;
}

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

.recommend-no-image {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 8px;
}

.recommend-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.recommend-title {
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-type {
  color: #888888;
  font-size: 10px;
}

.recommend-price {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.recommend-score {
  color: #e4c554;
  font-size: 10px;
}

.recommend-empty {
  padding: 30px 16px;
  color: #777777;
  font-size: 12px;
  text-align: center;
}

/* =========================================================
   DETAIL CARD & QUANTITY CONTROL
========================================================= */

.goods-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), #181818;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.goods-detail-card .detail-poster {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
}

.goods-detail-card .detail-poster > img,
.goods-detail-card .detail-poster > .no-img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #101010;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.goods-detail-card .detail-poster > img {
  display: block;
  object-fit: cover;
}

.goods-detail-card .detail-poster > .no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 12px;
  letter-spacing: 1px;
}

.goods-detail-card .image-gallery {
  gap: 10px;
  margin-top: 12px;
}

.goods-detail-card .image-gallery img {
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  opacity: 0.72;
}

.goods-detail-card .image-gallery img.is-active {
  border-color: #ffffff;
  opacity: 1;
}

.goods-detail-card .detail-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.detail-brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.detail-brand-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 600;
}

.detail-brand-row .detail-brand {
  margin: 0;
  color: #d5d5d5;
  font-size: 13px;
  font-weight: 600;
}

.goods-detail-card .detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.7px;
  word-break: keep-all;
}

.goods-detail-card .detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  color: #ffffff;
}

.detail-meta-item {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-meta-label {
  color: #808080;
  font-size: 11px;
  font-weight: 600;
}

.detail-meta-item strong {
  overflow: hidden;
  max-width: 100%;
  color: #eeeeee;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goods-detail-card .price-box {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-label {
  padding-bottom: 4px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
}

.price-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.goods-detail-card .price-box .price-original {
  color: #777777;
  font-size: 13px;
}

.goods-detail-card .price-box .price-final {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 33px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.goods-detail-card .price-box .rate {
  margin-right: 8px;
  color: #ff5c6e !important;
  font-size: 17px;
  font-weight: 800;
}

.detail-description-box {
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.detail-description-title {
  display: block;
  margin-bottom: 7px;
  color: #8f8f8f;
  font-size: 11px;
  font-weight: 700;
}

.detail-description-box .detail-desc {
  margin: 0;
  color: #dedede;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-purchase-option {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-purchase-option-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.detail-purchase-option-title,
.detail-total-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-purchase-option-title {
  min-width: 0;
}

.detail-purchase-option-title strong {
  color: #eeeeee;
  font-size: 13px;
  font-weight: 700;
}

.detail-purchase-option-title span,
.detail-total-price span {
  color: #777777;
  font-size: 11px;
}

.detail-total-price {
  flex-shrink: 0;
  align-items: flex-end;
}

.detail-total-price strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.detail-quantity-control {
  display: grid;
  grid-template-columns: 42px minmax(70px, 1fr) 42px;
  width: 180px;
  height: 42px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  background: #111111;
}

.detail-quantity-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eeeeee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.detail-quantity-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.detail-quantity-button:disabled {
  color: #494949;
  cursor: not-allowed;
}

.detail-quantity-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 6px;
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  appearance: textfield;
}

.detail-quantity-input::-webkit-inner-spin-button,
.detail-quantity-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.detail-quantity-input:focus {
  background: rgba(255, 255, 255, 0.035);
}

.detail-quantity-input:disabled {
  color: #555555;
  cursor: not-allowed;
}

.goods-detail-card .action-box {
  max-width: none;
  margin-top: 18px;
  gap: 10px;
}

.goods-detail-card .action-box .btn,
.goods-detail-card .action-box .fav-btn.detail-favorite-btn {
  min-height: 48px;
  border-radius: 10px;
  font-size: 13px;
}

.goods-detail-card .action-box .buy-btn {
  flex: 1.15;
  box-shadow: 0 8px 18px rgba(47, 111, 228, 0.28);
}

.sold-out-guide {
  margin: 12px 0 0;
  color: #d66c73;
  font-size: 12px;
  text-align: right;
}

/* REVIEW SECTION */
.review-section-card {
  margin-top: 0;
  padding: 26px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #181818;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.review-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-section-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #777777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.review-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
}

.review-section-title p {
  margin: 8px 0 0;
  color: #858585;
  font-size: 12px;
}

.review-section-card .score-box {
  display: flex;
  min-width: 150px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.review-score-star {
  color: #ffd54a;
  font-size: 27px;
  line-height: 1;
}

.review-score-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-score-info strong {
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.review-score-info span,
.review-score-empty {
  color: #858585;
  font-size: 11px;
}

.review-score-empty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-section-card .review-list {
  gap: 12px;
  margin-top: 22px;
}

.review-section-card .review-item {
  padding: 18px 20px;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.review-section-card .review-item:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
}

.product-review-empty {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.product-review-empty-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 213, 74, 0.22);
  border-radius: 50%;
  background: rgba(255, 213, 74, 0.06);
  color: #d8bd51;
  font-size: 26px;
}

.product-review-empty strong {
  color: #eeeeee;
  font-size: 15px;
  font-weight: 700;
}

.product-review-empty p {
  margin: 8px 0 0;
  color: #777777;
  font-size: 12px;
}

.my-product-review-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.product-review-delete-form {
  margin: 0;
}

.product-review-delete-btn {
  padding: 7px 12px;
  border: 1px solid #7f3035;
  border-radius: 7px;
  background: transparent;
  color: #d96a70;
  font-size: 13px;
  cursor: pointer;
}

.product-review-delete-btn:hover {
  background: rgba(127, 48, 53, 0.18);
}

/* =========================================================
   PRODUCT OPTIONS
========================================================= */

.goods-detail-container .detail-product-options {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.goods-detail-container .detail-product-options label {
  color: #eeeeee;
  font-size: 13px;
  font-weight: 700;
}

.goods-detail-container .detail-product-options .detail-option-select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px 32px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: #111111;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5c8ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.goods-detail-container .detail-product-options .detail-option-select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.goods-detail-container .detail-product-options .detail-option-select:focus {
  outline: none;
  border-color: #2f6fe4;
}

.goods-detail-container .detail-product-options .detail-option-select:disabled {
  color: #666666;
  background-color: #1a1a1a;
  cursor: not-allowed;
}

.goods-detail-container .detail-product-options .detail-option-select option {
  background-color: #1f1f1f;
  color: #f5f5f5;
}

.goods-detail-container .detail-product-options .detail-option-stock {
  grid-column: 2 / 5;
  color: #9a9a9a;
  font-size: 14px;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
========================================================= */

@media (max-width: 1400px) {
  .card-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1350px) {
  .goods-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .goods-right-sidebar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .goods-list-container,
  .goods-detail-container {
    padding: 28px 24px;
  }

  .goods-layout {
    grid-template-columns: 1fr;
  }

  .goods-left-sidebar,
  .goods-right-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .goods-right-sidebar {
    display: none;
  }

  .goods-mobile-filter-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #1c1c1c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
  }

  .goods-mobile-filter-toggle .mobile-filter-toggle-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
  }

  .goods-left-sidebar.is-open .goods-mobile-filter-toggle .mobile-filter-toggle-arrow {
    transform: rotate(180deg);
  }

  .goods-mobile-filter-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }

  .goods-left-sidebar.is-open .goods-mobile-filter-panel {
    max-height: 2000px;
  }

  .goods-filter-form,
  .search-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goods-filter-header {
    grid-column: 1 / -1;
  }

  .goods-filter-group,
  .filter-group {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
  }

  .goods-filter-actions,
  .filter-action-box {
    grid-column: 1 / -1;
    flex-direction: row;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .goods-filter-submit-btn,
  .goods-filter-reset-btn,
  .filter-submit-btn,
  .filter-reset-btn {
    flex: 1;
  }

  .goods-detail-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px;
  }

  .goods-detail-card .detail-poster {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .review-section-card .score-box {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .goods-list-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .goods-list-sort-form {
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 460px) {
  .goods-list-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* 모바일 반응형 UI 통일 (3열 그리드 적용) */
@media screen and (max-width: 768px) {
  /* 모바일 카드 그리드 3열 지정 및 간격 최적화 */
  .card-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  /* 3열 공간에 맞춰 패딩과 요소 크기 조율 */
  .goods-card, .product-item, .card-item {
    padding: 6px !important;
  }

  .card-brand {
    font-size: 10px !important;
  }

  .goods-title, .card-title {
    font-size: 12px !important;
  }

  .badge-discount, .discount-tag, .discount-badge {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }

  /* 가격 영역 세로 계층형 정렬 */
  .card-meta, .price-container, .goods-price-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin-top: 4px !important;
  }

  .original-price, .price-before, .price-original {
    font-size: 10px !important;
    color: #888888 !important;
    text-decoration: line-through !important;
    white-space: nowrap !important;
  }

  .price-sale-row, .discount-price-row {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  .discount-rate, .rate {
    color: #ff5c6e !important;
    font-weight: 800 !important;
    font-size: 11px !important;
  }

  .final-price, .sale-price, .price-final {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
  }

  .stock-info, .stock-warning {
    font-size: 9px !important;
    color: #a0a0a0 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
  }

  .detail-info .action-box {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .goods-filter-form,
  .search-filter-form {
    grid-template-columns: 1fr;
  }

  .goods-filter-group,
  .filter-group {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .goods-detail-card {
    padding: 18px;
    border-radius: 15px;
  }

  .goods-detail-card .detail-meta {
    grid-template-columns: 1fr;
  }

  .goods-detail-card .price-box,
  .detail-purchase-option-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-value,
  .detail-total-price {
    align-items: flex-start;
  }

  .detail-quantity-control {
    width: 100%;
  }

  .review-section-card {
    padding: 21px 18px 24px;
    border-radius: 15px;
  }

  .goods-detail-container .detail-product-options {
    grid-template-columns: 1fr;
  }

  .goods-detail-container .detail-product-options .detail-option-stock {
    grid-column: auto;
  }
}

/* 초소형 모바일 기기에서도 3열 유지 */
@media (max-width: 480px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .goods-list-container,
  .goods-detail-container {
    padding: 20px 16px;
  }

  .detail-info .action-box {
    flex-direction: column;
  }

  .detail-info .action-box .btn,
  .detail-info .action-box .fav-btn.detail-favorite-btn {
    width: 100%;
  }
}