.detail-main-image-link {
    cursor: zoom-in;
  }

  .detail-main-image-stage {
    position: relative;
  }

  .detail-main-image {
    height: 420px;
    object-fit: cover;
  }

  .detail-image-placeholder {
    min-height: 420px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
    background:
      radial-gradient(circle at 50% 35%, rgba(255, 193, 7, 0.1), transparent 38%),
      var(--bs-tertiary-bg, #f5f5f4);
  }

  .detail-image-placeholder-icon {
    position: relative;
    width: 9rem;
    height: 7.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed color-mix(in srgb, currentColor 38%, transparent);
    border-radius: 1.4rem;
  }

  .detail-image-placeholder-icon > .fa-image {
    font-size: 4.5rem;
    opacity: 0.42;
  }

  .detail-image-placeholder-tool {
    position: absolute;
    right: -0.8rem;
    bottom: -0.8rem;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bs-border-color, #dee2e6);
    border-radius: 50%;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-warning, #ffc107);
    font-size: 1.45rem;
    box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.1);
  }

  .detail-image-placeholder-title {
    margin: 0;
    color: var(--bs-body-color, #212529);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
  }

  .detail-image-placeholder-copy {
    margin: 0;
    font-size: 1rem;
  }

  .product-detail-title {
    color: #1a1a1a;
    font-size: 1.8rem;
  }

  html[data-site-theme="dark"] .product-detail-title {
    color: var(--fg, #e6eee9);
  }

  .detail-main-image-zoom-hint {
    right: 0.75rem;
    bottom: 0.75rem;
    pointer-events: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .detail-main-image-link:hover .detail-main-image-zoom-hint,
  .detail-main-image-link:focus .detail-main-image-zoom-hint {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.85) !important;
  }

  .product-brand-badge,
  .fancybox-brand-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 1.5rem);
    color: inherit;
    pointer-events: auto;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
  }

  .product-brand-badge:hover,
  .fancybox-brand-badge:hover {
    color: inherit;
    transform: translateY(-1px);
  }

  .product-brand-badge:focus-visible,
  .fancybox-brand-badge:focus-visible {
    outline: 3px solid var(--accent, #2f7f5f);
    outline-offset: 3px;
  }

  .product-brand-badge.has-logo,
  .fancybox-brand-badge.has-logo {
    width: 64px;
    height: 64px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.18);
  }

  .product-brand-badge.has-logo img,
  .fancybox-brand-badge.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-brand-badge.has-text,
  .fancybox-brand-badge.has-text {
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.18);
  }

  .fancybox-brand-badge {
    top: 1rem;
    left: 1rem;
    z-index: 99997;
  }

  .detail-thumb-btn {
    width: 72px;
    height: 72px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }

  .detail-thumb-btn:hover,
  .detail-thumb-btn:focus,
  .detail-thumb-btn.is-active {
    border-color: var(--accent, #2f7f5f) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2f7f5f) 30%, transparent);
    transform: translateY(-1px);
  }

  .variant-table-image-link {
    display: inline-block;
    border-radius: 0.375rem;
    cursor: zoom-in;
  }

  .variant-table-image-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent, #2f7f5f) 35%, transparent);
    outline-offset: 2px;
  }

  .product-info-card {
    overflow: visible;
  }

  .product-share-trigger {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(35%, -35%);
    border-radius: 50%;
    background: var(--bs-card-bg, #fff);
    color: var(--accent, #2f7f5f);
    box-shadow: 0 0.2rem 0.65rem rgba(0, 0, 0, 0.16);
  }

  .product-share-trigger:hover,
  .product-share-trigger:focus-visible {
    background: var(--accent, #2f7f5f);
    border-color: var(--accent, #2f7f5f);
    color: #fff;
  }

  .product-share-option {
    justify-content: flex-start;
  }

  .product-long-description-content {
    position: relative;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .product-long-description-toggle {
    display: none;
    margin: 1rem auto 0;
    position: relative;
    z-index: 2;
  }

  .product-long-description-toggle-icon {
    margin-left: 0.5rem;
  }

  .product-long-description-collapsible.is-collapsible:not(.is-expanded) .product-long-description-content {
    max-height: 420px;
    overflow: hidden;
  }

  .product-long-description-collapsible.is-collapsible:not(.is-expanded) .product-long-description-content::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 96px;
    background: linear-gradient(to bottom, transparent, var(--bs-card-bg, #fff) 88%);
    pointer-events: none;
  }

  .product-long-description-collapsible.is-collapsible .product-long-description-toggle {
    display: block;
  }

  .product-long-description-content--plain {
    white-space: pre-wrap;
  }

  .product-long-description-content > :first-child {
    margin-top: 0;
  }

  .product-long-description-content > :last-child {
    margin-bottom: 0;
  }

  .product-long-description-content h2,
  .product-long-description-content h3,
  .product-long-description-content h4 {
    line-height: 1.3;
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
  }

  .product-long-description-content p,
  .product-long-description-content ul,
  .product-long-description-content ol,
  .product-long-description-content blockquote,
  .product-long-description-content pre {
    margin-bottom: 0.85rem;
  }

  .product-long-description-content ul,
  .product-long-description-content ol {
    padding-left: 1.5rem;
  }

  .product-long-description-content li + li {
    margin-top: 0.2rem;
  }

  @media (max-width: 767.98px) {
    .detail-main-image {
      aspect-ratio: 1 / 1;
      background: var(--bs-tertiary-bg, #f4f5f6);
      height: auto;
      object-fit: contain;
    }

    .detail-image-placeholder {
      min-height: 0;
      aspect-ratio: 1 / 1;
      padding: 1.5rem;
    }

    .detail-image-placeholder-icon {
      width: 7.5rem;
      height: 6.25rem;
    }

    .detail-image-placeholder-icon > .fa-image {
      font-size: 3.75rem;
    }

    .product-long-description-collapsible.is-collapsible:not(.is-expanded) .product-long-description-content {
      max-height: 320px;
    }
  }

  @media print {
    .product-long-description-collapsible .product-long-description-content {
      max-height: none !important;
      overflow: visible !important;
    }

    .product-long-description-collapsible .product-long-description-content::after,
    .product-long-description-collapsible .product-long-description-toggle {
      display: none !important;
    }
  }

  .product-keyword-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--accent, #2f7f5f) 35%, transparent);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: color-mix(in srgb, var(--accent, #2f7f5f) 9%, transparent);
    color: var(--accent, #2f7f5f);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

  .product-keyword-link:hover,
  .product-keyword-link:focus-visible {
    background: var(--accent, #2f7f5f);
    color: #fff;
    transform: translateY(-1px);
  }

  .product-relation-card {
    overflow: hidden;
    border-color: color-mix(in srgb, var(--bs-border-color) 82%, transparent);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  }

  .product-relation-card:hover,
  .product-relation-card:focus-within {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent, #2f7f5f) 45%, transparent);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.1);
  }

  .product-relation-image,
  .product-relation-image-placeholder {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #f4f5f6);
  }

  .product-relation-image img {
    width: 100%;
    height: 100%;
    padding: 0.35rem;
    object-fit: contain;
    transition: transform 0.18s ease;
  }

  .product-relation-card:hover .product-relation-image img {
    transform: scale(1.025);
  }

  .product-relation-image-placeholder {
    color: var(--bs-secondary-color);
    font-size: 1.6rem;
  }

  .product-relation-name {
    font-size: 0.95rem;
    line-height: 1.28;
  }

  .product-relation-name a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--bs-body-color);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-relation-name a:hover,
  .product-relation-name a:focus-visible {
    color: var(--accent, #2f7f5f);
  }

  .product-relation-card .product-price .small {
    font-size: 0.72rem;
  }

  @media (max-width: 575.98px) {
    .product-relation-name { font-size: 0.86rem; }
    .product-relation-card .card-body { min-width: 0; }
  }
