/* Korean Style Product Details Page */

/* PDP specific styling */
.block.product-details {
  padding-top: 20px;
  background: #fff;
}

/* Reset default borders */
.product-details__gallery,
.product-details__header,
.product-details__price,
.product-details__short-description,
.product-details__options,
.product-details__quantity,
.product-details__buttons,
.product-details__description,
.product-details__attributes,
.product-details__buttons__add-to-cart {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.product-details__gallery:hover,
.product-details__header:hover,
.product-details__price:hover,
.product-details__short-description:hover,
.product-details__options:hover,
.product-details__quantity:hover,
.product-details__buttons:hover,
.product-details__description:hover,
.product-details__attributes:hover,
.product-details__buttons__add-to-cart:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Wrapper */
.product-details__wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
}

/* Gallery */
.product-details__gallery {
  background: #f9f9f9;
  border-radius: 16px !important;
  overflow: hidden;
  padding: 20px !important;
}

.product-details__gallery .pdp-carousel img {
  border-radius: 12px;
}

/* Thumbnails */
.product-details__gallery .pdp-carousel__thumbnails button {
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.product-details__gallery .pdp-carousel__thumbnails button[aria-selected="true"],
.product-details__gallery .pdp-carousel__thumbnails button:hover {
  border-color: #5f0080;
}

/* Header / Product Name */
.product-details__header {
  margin-bottom: 16px !important;
}

.product-details__header .pdp-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.product-details__header .pdp-header__sku {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* Price */
.product-details__price {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #eee !important;
}

.product-details__price .pdp-price {
  font-size: 32px;
  font-weight: 700;
  color: #5f0080;
}

.product-details__price .pdp-price--strikethrough {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
  margin-right: 12px;
}

.product-details__price .pdp-price__discount {
  display: inline-block;
  background: #ff3b3b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 12px;
}

/* Short Description */
.product-details__short-description {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Options */
.product-details__options {
  margin-bottom: 20px;
}

.product-details__options .pdp-options__label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

/* Swatches */
.product-details__options .pdp-options__swatch {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 4px;
  transition: all 0.2s ease;
}

.product-details__options .pdp-options__swatch:hover {
  border-color: #5f0080;
}

.product-details__options .pdp-options__swatch[aria-selected="true"] {
  border-color: #5f0080;
  box-shadow: 0 0 0 2px rgb(95 0 128 / 20%);
}

/* Select Options */
.product-details__options select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-details__options select:hover,
.product-details__options select:focus {
  border-color: #5f0080;
  outline: none;
}

/* Quantity */
.product-details__quantity {
  margin-bottom: 20px;
}

.product-details__quantity .pdp-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-details__quantity .pdp-quantity__label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-details__quantity .pdp-quantity__input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.product-details__quantity .pdp-quantity__button {
  width: 44px;
  height: 44px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.product-details__quantity .pdp-quantity__button:hover {
  background: #eee;
}

.product-details__quantity .pdp-quantity__input {
  width: 60px;
  height: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  border: none;
  outline: none;
}

/* Buttons */
.product-details__buttons {
  margin-top: 24px !important;
  gap: 12px !important;
}

/* Add to Cart Button - Korean Purple */
.product-details__buttons__add-to-cart {
  border: none !important;
  padding: 0 !important;
}

.product-details__buttons__add-to-cart .dropin-button,
.product-details__buttons__add-to-cart button {
  width: 100%;
  padding: 18px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: #5f0080 !important;
  border: none !important;
  color: #fff !important;
  transition: background 0.2s ease !important;
}

.product-details__buttons__add-to-cart .dropin-button:hover,
.product-details__buttons__add-to-cart button:hover {
  background: #4a0066 !important;
}

.product-details__buttons__add-to-cart .dropin-button:disabled,
.product-details__buttons__add-to-cart button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

/* Wishlist Button */
.product-details__buttons__add-to-wishlist button {
  width: 56px;
  height: 56px;
  border-radius: 12px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #666 !important;
  transition: all 0.2s ease !important;
}

.product-details__buttons__add-to-wishlist button:hover {
  border-color: #5f0080 !important;
  color: #5f0080 !important;
}

/* Description */
.product-details__description {
  margin-top: 48px;
  padding-top: 32px !important;
  border-top: 1px solid #eee !important;
}

.product-details__description .pdp-description__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #5f0080;
  display: inline-block;
}

.product-details__description .pdp-description__content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* Attributes */
.product-details__attributes {
  margin-top: 32px !important;
  padding: 24px !important;
  background: #f9f9f9;
  border-radius: 12px !important;
}

.product-details__attributes .pdp-attributes__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.product-details__attributes ul {
  list-style: none;
  padding: 0;
}

.product-details__attributes li {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.product-details__attributes li:last-child {
  border-bottom: none;
}

.product-details__attributes li span:first-child {
  width: 120px;
  color: #666;
  flex-shrink: 0;
}

.product-details__attributes li span:last-child {
  color: #333;
  font-weight: 500;
}

/* Alert */
.product-details__alert {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-details__alert .dropin-inline-alert {
  border-radius: 12px;
  padding: 16px 20px;
}

/* Gift Card Options - hide when empty */
.product-details__gift-card-options:empty,
.product-details__gift-card-options:not(:has(*)) {
  display: none !important;
}

.product-details__gift-card-options:has(.pdp-gift-card-options:empty) {
  display: none !important;
}

.product-details__gift-card-options {
  margin: 24px 0;
  padding: 20px !important;
  background: #fff9e6;
  border-radius: 12px !important;
  border: 1px solid #ffe066 !important;
}

/* Breadcrumb style */
.block.product-details::before {
  content: "홈 > 상품";
  display: block;
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 24px;
  font-size: 13px;
  color: #999;
}

/* Stock status badge */
.product-details__header::after {
  content: "판매중";
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 12px;
}

/* Delivery info section */
.product-details__short-description::before {
  content: "🚚 오늘 주문시 내일 도착";
  display: block;
  background: #f0f4ff;
  color: #1976d2;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .product-details__wrapper {
    padding: 24px 16px;
    gap: 32px;
  }

  .product-details__header .pdp-header__title {
    font-size: 22px;
  }

  .product-details__price .pdp-price {
    font-size: 26px;
  }

  .product-details__buttons {
    flex-direction: column;
  }

  .product-details__buttons__add-to-wishlist {
    width: 100%;
  }

  .product-details__buttons__add-to-wishlist button {
    width: 100% !important;
    height: auto !important;
    padding: 14px !important;
  }

  .block.product-details::before {
    padding: 0 16px;
    margin-bottom: 16px;
  }
}
