.product-detail-wrapper {
  padding-top: 40px;
  background: #ffffff !important;
  color: #171717 !important;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif !important;
}

.product-detail-wrapper .page-width {
  max-width: 1440px;
  background: #ffffff !important;
}

.product-detail {
  align-items: flex-start;
  gap: 72px;
  background: #ffffff !important;
  color: #171717 !important;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif !important;
}

.product-detail__title {
  margin-bottom: 20px;
  color: #151515;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.product-detail__price {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.product-price__item {
  color: #111111;
  font-size: 28px;
  font-weight: 800;
}

.product-price__item--compare {
  color: #9a9a9a;
  font-size: 17px;
  font-weight: 600;
  text-decoration: line-through;
}

.product-detail__row {
  margin-top: 24px;
}

.variant-picker__group-label,
.product-detail__quantity-selector label {
  color: #222222;
  font-size: 15px;
  font-weight: 800;
}

.variant-picker__group-head {
  margin-bottom: 8px;
}

.xlipper-native-select {
  position: relative;
  width: min(100%, 205px);
}

.variant-picker__select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  overflow: hidden;
  border: 1px solid #cfd2d8;
  border-radius: 5px;
  background: #ffffff;
  color: #222222;
  font: 600 13px/1.3 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.variant-picker__select:hover {
  border-color: #8f939b;
}

.variant-picker__select:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.xlipper-native-select__arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 11px;
  height: 11px;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.variant-picker__options {
  gap: 8px;
}

.variant-picker__option input:checked + .variant-picker__button {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.form__buttons {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.xlipper-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 24px;
  color: #191919;
}

.xlipper-product-stats p {
  margin: 0;
  color: #202020;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.xlipper-product-rating {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.xlipper-product-rating > span:first-child {
  color: #ffbd13;
}

.xlipper-product-buyers {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #222222;
  border-radius: 8px;
  background: #ffffff;
}

.xlipper-product-buyers strong {
  color: #f0372e;
  font-weight: 900;
}

.xlipper-product-notice-stack {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.xlipper-product-notice-stack p {
  margin: 0;
  color: #222222;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.xlipper-product-viewers {
  width: fit-content;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 8px;
  background: #f5f5f5;
}

.xlipper-product-recommendation {
  color: #444444 !important;
}

.xlipper-benefit-banner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  margin: 18px 0;
  padding: 0 16px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #222222;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.xlipper-benefit-banner__icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 4px;
  background: #ffe100;
  color: #1a1a1a;
  font-size: 8px;
  font-weight: 900;
}

.xlipper-product-meta {
  display: grid;
  gap: 0;
  margin: 18px 0 18px;
}

.xlipper-product-meta div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 34px;
  align-items: center;
}

.xlipper-product-meta dt,
.xlipper-product-meta dd {
  margin: 0;
  color: #222222;
  font-size: 14px;
  line-height: 1.35;
}

.xlipper-product-meta dt {
  font-weight: 800;
}

.xlipper-product-meta dd {
  font-weight: 600;
}

.xlipper-addon-panel {
  margin-top: 28px;
  border: 1px solid #dddddd;
  border-radius: 7px;
  background: #ffffff;
}

.xlipper-addon-panel__head {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 0 42px 0 16px;
  border-bottom: 1px solid #eeeeee;
}

.xlipper-addon-panel__head strong {
  font-size: 15px;
  font-weight: 900;
}

.xlipper-addon-panel__head span {
  color: #777777;
  font-size: 12px;
  font-weight: 700;
}

.xlipper-addon-panel__head button {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 12px;
  border: 0;
  border-right: 2px solid #222222;
  border-bottom: 2px solid #222222;
  background: transparent;
  transform: translateY(-70%) rotate(45deg);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.xlipper-addon-panel.is-open .xlipper-addon-panel__head button {
  transform: translateY(-30%) rotate(225deg);
}

.xlipper-addon-panel__list {
  display: grid;
}
.xlipper-addon-panel:not(.is-open) .xlipper-addon-panel__list {
  display: none;
}

.xlipper-addon-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 16px;
}

.xlipper-addon-card + .xlipper-addon-card {
  border-top: 1px solid #eeeeee;
}

.xlipper-addon-card img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #f7f7f7;
}

.xlipper-addon-card h3 {
  margin: 0 0 8px;
  color: #202020;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.xlipper-addon-card strong {
  display: block;
  margin-bottom: 12px;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
}

.xlipper-addon-card label {
  display: block;
  margin: 12px 0 6px;
  color: #333333;
  font-size: 12px;
  font-weight: 800;
}

.xlipper-addon-card select {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 12px;
  border: 1px solid #d9dce1;
  border-radius: 5px;
  background: #ffffff;
  color: #222222;
  font: 700 13px/1.3 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.xlipper-shipping-notice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
  border-radius: 7px;
  background: #f4f4f6;
}

.xlipper-shipping-notice span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #dce9f4;
  color: #1f5d8c;
  font-size: 24px;
}

.xlipper-shipping-notice p {
  margin: 0;
  color: #222222;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.form__buttons .button {
  min-height: 54px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
}

.product-detail__media-gallery {
  background: #f7f7f7;
}

.media-gallery__image,
.media-gallery__thumbnail-image {
  background: #f7f7f7;
  object-fit: contain;
}

.product-detail__description {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}

.product-detail__description img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

@media (max-width: 959px) {
  .product-detail-wrapper {
    padding-top: 82px;
    padding-bottom: 70px;
  }

  .product-detail {
    gap: 24px;
  }

  .product-detail__title {
    font-size: 22px;
  }

  .xlipper-native-select {
    width: 100%;
  }

  .xlipper-product-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xlipper-product-meta div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .xlipper-addon-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 12px;
  }

  .xlipper-addon-card img {
    width: 72px;
    height: 72px;
  }

  .product-price__item {
    font-size: 24px;
  }
}

@media (min-width: 960px) {
  .product-detail[data-desktop-direction="row"] .product-detail__media-gallery {
    flex: 0 0 min(48vw, 684px) !important;
    width: min(48vw, 684px) !important;
  }

  .product-detail[data-desktop-direction="row"] .product-detail__info {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ---- Xlipper cpb (cafe24 skin13) integration overrides ----
 * SHOPLINE main-product.css adds widths to .product-detail__media-gallery / .product-detail__info
 * but inside #product-detail we want cafe24's .imgArea/.infoArea (50/50 split) to win.
 * Restore the gallery / info to fill their cafe24 column instead of forcing 48vw / flex:1.
 */
#product-detail .product-detail {
  display: block !important;
  gap: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Prevent .imgArea and .infoArea from stretching to match each other. */
#product-detail .detailArea {
  align-items: flex-start;
}

#product-detail .imgArea .product-detail__media-gallery,
#product-detail .imgArea .product-detail__media-group {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
}

#product-detail .infoArea {
  flex: none !important;
  max-width: 50% !important;
}

@media (max-width: 1024px) {
  #product-detail .infoArea {
    max-width: 100% !important;
  }
}

/* Hide the legacy SHOPLINE custom blobs (stats row, viewer notice, member benefit banner,
 * add-on panel, shipping notice) that don't match cafe24 cpb_detail.
 * The schema settings remain so future cafe24-styled blocks can re-use them. */
#product-detail .xlipper-product-stats,
#product-detail .xlipper-product-notice-stack,
#product-detail .xlipper-benefit-banner,
#product-detail .xlipper-product-meta,
#product-detail .xlipper-shipping-notice {
  display: none !important;
}

/* Add-on panel — cafe24 추가구성상품 style */
#product-detail .xlipper-addon-panel {
  margin: 16px 0;
  border: 1px solid #DFDFE5;
  border-radius: 8px;
  background: #fff;
}
#product-detail .xlipper-addon-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #DFDFE5;
}
#product-detail .xlipper-addon-panel__head strong {
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1F;
}
#product-detail .xlipper-addon-panel__head span {
  font-size: 12px;
  color: #5F5F66;
}
#product-detail .xlipper-addon-panel__head button {
  margin-left: auto;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
#product-detail .xlipper-addon-panel__head button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #1D1D1F;
  border-bottom: 2px solid #1D1D1F;
  transform: translate(-50%, -65%) rotate(45deg);
}
#product-detail .xlipper-addon-panel__list {
  display: flex;
  flex-direction: column;
}
#product-detail .xlipper-addon-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid #ECECF0;
}
#product-detail .xlipper-addon-card:first-child {
  border-top: 0;
}
#product-detail .xlipper-addon-card > a {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
}
#product-detail .xlipper-addon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#product-detail .xlipper-addon-card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
#product-detail .xlipper-addon-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#product-detail .xlipper-addon-card strong {
  font-size: 15px;
  font-weight: 800;
  color: #1D1D1F;
}
#product-detail .xlipper-addon-card label {
  font-size: 12px;
  color: #5F5F66;
  margin-top: 4px;
}
#product-detail .xlipper-addon-card select {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  font-size: 13px;
  color: #1D1D1F;
  border: 1px solid #DFDFE5;
  border-radius: 4px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231D1D1F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
}

/* Override the old .product-detail__title font that was bleeding into .headingArea. */
#product-detail .headingArea.product-detail__title {
  margin-bottom: 0;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

/* ---- Quantity table — mirror #cpb-option row styling for .xans-product-quantity ---- */
#product-detail .xans-product-quantity {
  margin-top: 24px;
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
#product-detail .xans-product-quantity > tbody.xans-product-option > tr {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 24px 0;
}
#product-detail .xans-product-quantity > tbody.xans-product-option > tr > th[scope="row"] {
  display: flex;
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.2em;
  font-weight: 400;
  color: var(--color-text-black);
  text-align: left;
  white-space: nowrap;
}
#product-detail .xans-product-quantity > tbody.xans-product-option > tr > td {
  padding: 0;
}

/* Constrain the input-number layout inside .ec-base-qty */
#product-detail .ec-base-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  height: 40px;
}
#product-detail .ec-base-qty theme-input-number {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
}
#product-detail .ec-base-qty theme-input-number button {
  width: 36px;
  height: 100%;
  background: #fff;
  border: 0;
  color: #111;
  cursor: pointer;
}
#product-detail .ec-base-qty theme-input-number button:hover {
  background: #f4f4f6;
}
#product-detail .ec-base-qty theme-input-number input[type="number"] {
  width: 56px;
  height: 100%;
  text-align: center;
  border: 0;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  font-size: 14px;
  color: #1d1d1f;
  background: #fff;
  -moz-appearance: textfield;
}
#product-detail .ec-base-qty theme-input-number input::-webkit-outer-spin-button,
#product-detail .ec-base-qty theme-input-number input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---- Static .cpb-detail-btn (outside .cpb-move) styling ---- */
#product-detail .product-detail__buy-buttons {
  margin-top: 16px;
}
#product-detail .productAction .cpb-detail-btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}
#product-detail .productAction .cpb-detail-btn.soldout {
  grid-template-columns: 1fr;
}
#product-detail .productAction .cpb-detail-btn .cpb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  gap: 6px;
}
#product-detail .productAction .cpb-detail-btn .cpb-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}
#product-detail .productAction .cpb-detail-btn .cpb-btn01 {
  color: var(--color-btn-text-white, #fff);
  background: var(--color-btn-bg-black, #1D1D1F);
  border: 1px solid var(--color-btn-border-black, #1D1D1F);
}
#product-detail .productAction .cpb-detail-btn .cpb-btn02 {
  color: var(--color-btn-text-black, #1D1D1F);
  background: var(--color-btn-bg-white, #fff);
  border: 1px solid var(--color-btn-border-black, #1D1D1F);
}
#product-detail .productAction .cpb-detail-btn .cpb-btn .button__spinner {
  display: none;
  width: 18px;
  height: 18px;
}
#product-detail .productAction .pay-btn {
  margin-top: 8px;
}

/* Naver / Kakao Pay rows (cafe24-style) */
#product-detail .xlipper-pay-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}
#product-detail .xlipper-pay-row__brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#product-detail .xlipper-pay-row__label {
  min-width: 0;
  font-size: 13px;
  color: inherit;
  opacity: 0.85;
}
#product-detail .xlipper-pay-row__cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}
#product-detail .xlipper-pay-row--naver {
  background: #03C75A;
  color: #ffffff;
  border: 1px solid #03C75A;
}
#product-detail .xlipper-pay-row__cta--naver {
  background: #ffffff;
  color: #03C75A;
}
#product-detail .xlipper-pay-row--kakao {
  background: #FAE100;
  color: #3C1E1E;
  border: 1px solid #FAE100;
}
#product-detail .xlipper-pay-row__cta--kakao {
  background: #3C1E1E;
  color: #FAE100;
}

/* ---- Variant select — keep cafe24 #cpb-option look fitting our flex layout ---- */
#product-detail #cpb-option {
  margin-top: 32px;
  width: 100%;
  border-collapse: collapse;
  border: 0;
}
#product-detail #cpb-option caption {
  display: none;
}
#product-detail #cpb-option > tbody.xans-product-option > tr > td select.variant-picker__select {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 30px 0 12px;
  font-size: 13px;
  line-height: 1.2em;
  font-weight: 400;
  color: var(--color-select-text-black, #1D1D1F);
  border: 1px solid var(--color-select-border-gray-900, #8F8F96);
  border-radius: 5px;
  background-color: var(--color-select-bg-white, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231D1D1F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
}
#product-detail #cpb-option > tbody.xans-product-option > tr > td p.value {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6F6F76;
}

/* ---- TOTAL price box layout ---- */
/* Selector matches cafe24's specificity (`#product-detail .xans-product-detail .infoArea #totalPrice`)
 * by also targeting the #totalPrice element, so our flex layout wins. */
#product-detail .xans-product-detail .infoArea #totalPrice.xlipper-total-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  border-top: 1px solid #DFDFE5;
  border-bottom: 1px solid #DFDFE5;
  margin-top: 16px;
}
#product-detail .xlipper-total-price .total-l p.product-name {
  font-size: 14px;
  font-weight: 400;
  color: #5F5F66;
  margin: 0;
  padding-right: 16px;
}
#product-detail .xlipper-total-price .total-r {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 300;
  color: #1D1D1F;
  margin-left: auto;
}
#product-detail .xlipper-total-price .total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  color: #5F5F66;
}
#product-detail .xlipper-total-price .total strong {
  font-size: 24px;
  font-weight: 600;
  color: #1D1D1F;
}
#product-detail .xlipper-total-price .total strong em {
  font-style: normal;
}
#product-detail .xlipper-total-price .total-count {
  font-size: 13px;
  color: #5F5F66;
}
#product-detail .totalPrice-help {
  margin-top: 8px;
  font-size: 12px;
  color: #6F6F76;
}

/* ---- Image gallery: cafe24-style — main image on top, horizontal thumbnail strip below ---- */
/* This mirrors cafe24 product 14's layout (main + 5 thumbs below). We rely on
 * SHOPLINE's default thumbnail-carousel layout (thumbs below main); just tighten
 * the thumb sizing and padding so it visually matches cafe24. */
@media (min-width: 1025px) {
  #product-detail .imgArea .media-gallery__thumbnails {
    margin-top: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #product-detail .imgArea .media-gallery__thumbnails .carousel__track,
  #product-detail .imgArea .media-gallery__thumbnail-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    width: 100% !important;
  }
  #product-detail .imgArea .media-gallery__thumbnail {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    flex: 0 0 80px !important;
  }
  #product-detail .imgArea .media-gallery__thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  #product-detail .imgArea theme-carousel.media-gallery__content {
    aspect-ratio: 1 / 1 !important;
  }
  /* Main carousel: ensure each slide takes 100% width, horizontal slide */
  #product-detail .imgArea .media-gallery__list-wrapper {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  #product-detail .imgArea theme-carousel.media-gallery__content ul.carousel__track {
    flex-direction: row !important;
    display: flex !important;
    width: 100% !important;
  }
  #product-detail .imgArea theme-carousel.media-gallery__content ul.carousel__track > li {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ---- Sale price strike-through behavior ---- */
#product-detail .product_custom_css.sale_per p,
#product-detail .product_custom_css.line-through p {
  text-decoration: line-through;
}

/* ---- cpb_d_list label/value font normalization ----
 * Cafe24's cpb_detail.css styles `.cpb_d_list h3 *` and `.cpb_d_list p *`
 * (child elements only), assuming the admin design module wraps text in
 * <span>/<strong>. Our markup uses plain text, so the labels inherit
 * browser-default heading sizes (huge). Restore 16px to the bare h3/p. */
#product-detail .cpb_d_list h3,
#product-detail .cpb_d_list p {
  font-size: 16px;
  line-height: 1.2em;
  font-weight: 400;
  color: var(--color-text-black, #1D1D1F);
  margin: 0;
}
#product-detail .cpb_d_list h3 {
  width: 100px;
  flex-shrink: 0;
}
#product-detail .product_name_css > p {
  /* Product title is the big one (matches cafe24 product_name_css). */
  font-size: 24px;
  font-weight: 600;
}
@media (max-width: 1024px) {
  #product-detail .product_name_css > p {
    font-size: 18px;
  }
}

/* Sale-price chunk gets a bit bigger than label rows. */
#product-detail .product_price_css p {
  font-size: 20px;
  font-weight: 600;
}
#product-detail .product_custom_css p {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-gray-600, #5F5F66);
}
#product-detail .product_custom_css.sale_per p,
#product-detail .product_custom_css.line-through p {
  text-decoration: line-through;
}
#product-detail .product_price_css .sale_box {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-red-700, #c62828);
  margin-left: 4px;
}
