/* Migrated from detail.html inline styles — layout & page-specific rules */


    html {
      scrollbar-width: thin;
      scrollbar-color: rgba(180, 160, 120, 0.35) #f0f0f0;
    }

    html::-webkit-scrollbar {
      width: 8px;
    }

    html::-webkit-scrollbar-track {
      background: #f0f0f0;
    }

    html::-webkit-scrollbar-thumb {
      background: rgba(180, 170, 150, 0.55);
      border-radius: 999px;
    }

    :root {
      --lf-detail-gallery-bg: #f5f5f5;
      --lf-detail-gallery-border: rgba(0, 0, 0, 0.07);
      --lf-detail-thumb-border: rgba(0, 0, 0, 0.09);
    }

    .page-wrap {
      max-width: 1400px;
      margin: 0 auto;
    }

    .detail {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: clamp(56px, 7vw, 88px);
      align-items: start;
    }

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

    .product-gallery {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .gallery-main {
      position: relative;
      background: var(--lf-detail-gallery-bg);
      border: 1px solid var(--lf-line, #d8d4cd);
      border-radius: 12px;
      overflow: hidden;
      aspect-ratio: 1 / 1.12;
      touch-action: pan-y;
    }

    .gallery-main img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      cursor: pointer;
    }

    .gallery-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--lf-detail-gallery-bg);
      color: var(--lf-muted, #5f5b56);
      font-size: 11px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .gallery-thumbnails {
      display: grid;
      grid-template-columns: repeat(auto-fill, 72px);
      justify-content: start;
      gap: 10px;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .gallery-thumb {
      width: 72px;
      height: auto;
      background: var(--lf-detail-gallery-bg);
      border: 1px solid var(--lf-line, #d8d4cd);
      border-radius: 8px;
      overflow: hidden;
      aspect-ratio: 1;
      cursor: pointer;
      transition: border-color 0.28s ease, box-shadow 0.28s ease;
    }

    .gallery-thumb:hover,
    .gallery-thumb.active {
      border-color: rgba(21, 21, 21, 0.45);
    }

    .gallery-thumb.active {
      border-width: 2px;
      box-shadow: 0 0 0 1px rgba(21, 21, 21, 0.45);
    }

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

    .detail-eyebrow {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 16px;
      margin-bottom: 12px;
    }

    .detail-brand {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: none;
      color: #151515;
      margin: 0;
    }

    a.detail-brand[href] {
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
      cursor: pointer;
      transition: color 0.25s ease;
    }

    a.detail-brand[href]:hover,
    a.detail-brand[href]:focus-visible {
      color: #555;
      outline: none;
    }

    .detail-series {
      font-size: 11px;
      letter-spacing: 0.12em;
      color: var(--lf-muted, #5f5b56);
      margin: 0;
    }

    a.detail-series[href] {
      text-decoration: underline;
      text-underline-offset: 3px;
      text-decoration-thickness: 1px;
      cursor: pointer;
      transition: color 0.25s ease;
    }

    a.detail-series[href]:hover,
    a.detail-series[href]:focus-visible {
      color: #151515;
      outline: none;
    }

    .detail-badge {
      font-size: 8px;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--lf-muted, #5f5b56);
      background: transparent;
      border: 1px solid #d6d2cc;
      padding: 2px 5px;
      border-radius: 2px;
    }

    .detail-title {
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: clamp(1.35rem, 3vw, 1.85rem);
      font-weight: 400;
      letter-spacing: 0.04em;
      line-height: 1.35;
      color: var(--lf-muted, #5f5b56);
      margin: 0 0 8px;
    }

    .detail-price-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 14px;
      width: 100%;
    }

    .detail-price-content {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }

    .detail-sale-badge {
      flex: 0 0 auto;
      padding: 3px 6px;
      border-radius: 2px;
      background: #1a1a1a;
      color: #fff;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.1em;
      line-height: 1;
      text-transform: uppercase;
    }

    .detail-regular-price {
      color: var(--lf-subtle, #6a6560);
      font-size: 12px;
      font-weight: 400;
      text-decoration: line-through;
      text-decoration-thickness: 1px;
    }

    .detail-price-row .detail-price {
      color: #151515;
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      font-weight: 500;
      margin: 0;
      letter-spacing: 0.02em;
      line-height: 1;
    }

    /* Match TOP editorial-card-save heart (outline → filled) */
    .detail-price-row .detail-save-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      min-width: 28px;
      padding: 0;
      margin: 0 0 0 auto;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: #151515;
      cursor: pointer;
      line-height: 0;
    }

    .detail-price-row .detail-save-btn .lf-icon {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .detail-price-row .detail-save-btn .lf-icon path {
      fill: none;
      stroke: currentColor;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .detail-price-row .detail-save-btn.is-saved .lf-icon path {
      fill: currentColor;
    }

    .detail-price-row .detail-save-btn:hover {
      color: #151515;
      opacity: 0.72;
    }

    .detail-price-row .detail-save-btn.is-saved:hover {
      opacity: 1;
    }

    .detail-price-row .detail-save-btn::before {
      content: none;
      display: none;
    }

    .detail-price {
      color: #151515;
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      font-weight: 500;
      margin: 0;
      letter-spacing: 0.02em;
      line-height: 1;
    }

    .detail-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0;
    }

    .detail-meta-chip {
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #555;
      border: 1px solid #b8b3ab;
      padding: 4px 10px;
      border-radius: 2px;
    }

    .detail-meta-chip.is-accent {
      color: var(--lf-line, #d8d4cd);
      border-color: #8a8580;
    }

    .detail-fulfillment-badge {
      display: inline-flex;
      width: fit-content;
      margin: 0 0 8px;
    }

    .detail-fulfillment-note {
      margin: 0 0 12px;
      color: #555;
      font-size: 13px;
      line-height: 1.7;
    }

    .detail-purchase-layer {
      max-width: 320px;
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid #cfc9c0;
      display: grid;
      gap: 12px;
    }

    .detail-size-layer {
      display: grid;
      gap: 8px;
    }

    .detail-size-label {
      margin: 0;
      color: #555;
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .size-guide-link {
      margin-left: 10px;
      color: #555;
      font-size: 10px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color 0.25s ease;
    }

    .size-guide-link:hover {
      color: #151515;
    }

    .detail-size-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .detail-size-chip {
      min-width: 44px;
      border: 1px solid #a8a29a;
      color: var(--lf-line, #d8d4cd);
      background: transparent;
      padding: 8px 14px;
      font-size: 12px;
      letter-spacing: 0.12em;
      text-align: center;
      border-radius: 2px;
      text-decoration: none;
      font-family: inherit;
      cursor: pointer;
      transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    }

    .detail-size-chip.is-unavailable:not(.is-active) {
      color: var(--lf-subtle, #6a6560);
      border-color: #d0cbc4;
    }

    .detail-size-chip.is-requestable:not(.is-active) {
      color: #555;
      border-style: dashed;
      border-color: #a8a29a;
    }

    .detail-size-chip:hover,
    .detail-size-chip.is-active {
      border-color: #151515;
      color: #151515;
      background: rgba(21, 21, 21, 0.04);
    }

    .detail-size-chip.is-unavailable.is-active {
      color: #555;
    }

    .detail-specs {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px 10px;
      margin: 0 0 14px;
      padding: 0 0 14px;
      border-bottom: 1px solid #cfc9c0;
    }

    .detail-spec {
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
      margin: 0;
      font-size: 12px;
    }

    .detail-spec-label {
      color: var(--lf-muted, #5f5b56);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 10px;
    }

    .detail-spec-value {
      color: var(--lf-line, #d8d4cd);
      text-align: left;
    }

    .detail-spec-sep {
      color: #aaa;
      font-size: 12px;
      line-height: 1;
    }

    .detail-desc {
      color: #555;
      font-size: 14px;
      line-height: 1.75;
      margin: 0 0 12px;
      max-width: 440px;
    }

    .detail-guide-line {
      margin: 0 0 16px;
      font-size: 12px;
      line-height: 1.6;
      color: var(--lf-muted, #5f5b56);
      max-width: 440px;
    }

    .detail-guide-line a {
      color: var(--lf-line, #d8d4cd);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .detail-guide-line a:hover {
      color: #151515;
    }

    .detail-accordion.has-detail-copy ~ .detail-guide-line {
      display: none;
    }

    .detail-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 18px;
    }

    .detail-tag {
      font-size: 10px;
      letter-spacing: 0.06em;
      color: #555;
      border: 1px solid #b8b3ab;
      padding: 4px 8px;
      border-radius: 2px;
    }

    .detail-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 320px;
    }

    .detail-actions-primary {
      display: flex;
      align-items: stretch;
      gap: 10px;
      width: 100%;
    }

    .detail-actions-primary .has-bag {
      flex: 1 1 auto;
      min-width: 0;
    }

    .detail-actions-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      width: 100%;
    }

    .detail-quiet-note {
      margin: 2px 0 0;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--lf-muted, #5f5b56);
      line-height: 1.6;
    }

    /* Detail accordion */
    .detail-accordion {
      margin: 0 0 12px;
      max-width: 440px;
    }

    .detail-accordion-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 0 8px;
      background: none;
      border: 0;
      font-family: inherit;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #555;
      cursor: pointer;
      transition: color 0.25s ease;
    }

    .detail-accordion-btn:hover {
      color: #151515;
    }

    .detail-accordion-btn[aria-expanded="true"] {
      color: var(--lf-line, #d8d4cd);
    }

    .detail-accordion-chevron {
      width: 10px;
      height: 10px;
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

    .detail-accordion-btn[aria-expanded="true"] .detail-accordion-chevron {
      transform: rotate(180deg);
    }

    .detail-accordion-body {
      display: none;
      padding: 20px 0 4px;
    }

    .detail-accordion-body.is-open {
      display: block;
    }

    .detail-accordion-section {
      margin-bottom: 24px;
    }

    #accordionAbout .detail-accordion-label,
    #accordionSpecs .detail-accordion-label {
      display: none;
    }

    .detail-accordion-label {
      margin: 0 0 8px;
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #555;
    }

    .detail-accordion-text {
      margin: 0;
      font-size: 13px;
      color: var(--lf-subtle, #6a6560);
      line-height: 1.85;
    }

    .detail-accordion-specs {
      display: grid;
      gap: 8px;
      margin: 0;
    }

    .detail-accordion-spec {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin: 0;
      font-size: 11px;
    }

    .detail-accordion-spec-label {
      color: #555;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-size: 10px;
    }

    .detail-accordion-spec-value {
      color: var(--lf-subtle, #6a6560);
      text-align: right;
      letter-spacing: 0.04em;
    }

    .detail-accordion-footnote {
      margin: 8px 0 20px;
      font-size: 11px;
      color: #444;
      line-height: 1.7;
    }

    .detail-accordion-footnote a {
      color: var(--lf-muted, #5f5b56);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .detail-accordion-footnote a:hover {
      color: var(--lf-subtle, #6a6560);
    }

    /* SOLD OUT relationship cue (quiet action) */
    .restock-section {
      display: contents;
    }

    .restock-action {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      border: 1px solid transparent;
      padding: 10px 12px;
      border-radius: 2px;
      font-family: inherit;
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.72);
      cursor: pointer;
      transition: color 0.25s ease, border-color 0.25s ease;
    }

    .restock-action:hover {
      color: rgba(255, 255, 255, 0.86);
      border-color: transparent;
    }

    /* Request Restock uses btn-secondary; force borderless for consistency */
    .btn.btn-secondary.restock-action {
      border-color: transparent;
    }

    .btn.btn-secondary.restock-action:hover {
      border-color: transparent;
    }

    .restock-note {
      margin: 8px 0 0;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--lf-muted, #5f5b56);
      line-height: 1.6;
    }

    .action-icon {
      width: 14px;
      height: 14px;
      display: inline-block;
      flex: 0 0 14px;
      opacity: 0.72;
    }

    /* Save / Request icons: simple outline SVG, currentColor */
    .detail-quiet-action.has-heart {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .detail-quiet-action.has-heart.is-icon-only {
      flex: 0 0 48px;
      width: 48px;
      min-width: 48px;
      padding: 0;
      gap: 0;
      border: 1px solid #b8b3ab;
      border-radius: 2px;
    }

    .detail-quiet-action.has-heart.is-icon-only:hover,
    .detail-quiet-action.has-heart.is-icon-only.is-saved {
      border-color: #151515;
    }

    .detail-quiet-action.has-heart::before {
      content: "";
      width: 20px;
      height: 20px;
      display: inline-block;
      flex: 0 0 20px;
      background: currentColor;
      opacity: 0.72;
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
      -webkit-mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.8s-7.2-4.2-9.6-8.5C.8 9.1 2.4 6 5.8 5.3c1.8-.4 3.6.2 4.8 1.6 1.2-1.4 3-2 4.8-1.6 3.4.7 5 3.8 3.4 7-2.4 4.3-9.6 8.5-9.6 8.5z'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 20.8s-7.2-4.2-9.6-8.5C.8 9.1 2.4 6 5.8 5.3c1.8-.4 3.6.2 4.8 1.6 1.2-1.4 3-2 4.8-1.6 3.4.7 5 3.8 3.4 7-2.4 4.3-9.6 8.5-9.6 8.5z'/%3E%3C/svg%3E");
    }

    /* Saved state: subtle filled heart (quiet gold) */
    .detail-quiet-action.has-heart.is-saved::before {
      background: rgba(21, 21, 21, 0.45);
      opacity: 0.9;
    }

    .restock-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    /* Restock modal (mock) */
    .restock-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.46);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 930;
    }

    .restock-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .size-guide-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.46);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
      z-index: 930;
    }

    .size-guide-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .size-guide-modal {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -48%);
      width: min(92vw, 420px);
      background: rgba(11, 11, 11, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.10);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 22px 22px 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 931;
      box-sizing: border-box;
      max-height: min(86vh, 720px);
      overflow: auto;
    }

    .size-guide-modal.is-wide {
      width: min(94vw, 560px);
    }

    .size-guide-modal.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%);
    }

    .size-guide-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .size-guide-subtitle {
      margin: 0 0 18px;
      font-size: 12px;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.55);
      letter-spacing: 0.04em;
    }

    .size-guide-fit-note,
    .size-guide-fallback,
    .size-guide-disclaimer {
      margin: 0;
      font-size: 11px;
      line-height: 1.7;
      color: rgba(255, 255, 255, 0.55);
    }

    .size-guide-fit-note {
      margin: 0 0 14px;
    }

    .size-guide-disclaimer {
      margin-top: 40px;
      padding-top: 0;
      border-top: none;
    }

    .size-guide-fallback[hidden],
    .size-guide-disclaimer[hidden],
    .size-guide-subtitle[hidden],
    .size-guide-fit-note[hidden],
    .size-guide-panels[hidden] {
      display: none;
    }

    .size-guide-title {
      margin: 0;
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.92);
    }

    .size-guide-close {
      margin: -11px -11px 0 0;
    }

    .size-guide-panels {
      display: grid;
      gap: 28px;
    }

    .size-guide-guide {
      display: grid;
      gap: 52px;
    }

    .size-guide-section {
      margin: 0;
      padding: 0;
      border: none;
    }

    .size-guide-section + .size-guide-section {
      margin-top: 0;
      padding-top: 0;
      border-top: none;
    }

    .size-guide-section-title {
      margin: 0 0 18px;
      font-size: 13px;
      line-height: 1.4;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.9);
      font-weight: 600;
    }

    .size-guide-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.86);
    }

    .size-guide-table th,
    .size-guide-table td {
      border-bottom: none;
      padding: 10px 0;
      text-align: left;
      vertical-align: baseline;
    }

    .size-guide-table thead th {
      border-bottom: 1px solid rgba(255, 255, 255, 0.14);
      padding-bottom: 12px;
      color: rgba(255, 255, 255, 0.5);
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .size-guide-table tbody tr + tr td {
      padding-top: 11px;
    }

    .size-guide-table--measure th:first-child,
    .size-guide-table--measure td:first-child {
      width: 18%;
      padding-right: 10px;
    }

    .size-guide-table--measure th:not(:first-child),
    .size-guide-table--measure td:not(:first-child) {
      text-align: right;
      padding-left: 8px;
      white-space: nowrap;
    }

    .size-guide-table--matrix {
      font-size: 11px;
    }

    .size-guide-table--matrix th,
    .size-guide-table--matrix td {
      padding: 8px 4px;
      text-align: center;
    }

    .size-guide-table--matrix th:first-child,
    .size-guide-table--matrix td:first-child {
      text-align: left;
      padding-left: 0;
      width: auto;
      white-space: nowrap;
    }

    .size-guide-table th {
      color: #aaa;
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .size-guide-table--matrix .size-guide-cup-diff {
      display: block;
      margin-top: 2px;
      font-size: 9px;
      letter-spacing: 0;
      text-transform: none;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.45);
    }

    .restock-modal {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -48%);
      width: min(92vw, 440px);
      background: rgba(11, 11, 11, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.10);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 18px 18px 16px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 931;
    }

    .restock-modal.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%);
    }

    .restock-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 10px;
    }

    .restock-modal-title {
      margin: 0;
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.92);
    }

    .restock-modal-close {
      margin: -11px -11px -11px 0;
    }

    .restock-modal-copy {
      margin: 0 0 12px;
      color: var(--lf-subtle, #6a6560);
      font-size: 12px;
      line-height: 1.8;
      letter-spacing: 0.02em;
    }

    .restock-input {
      width: 100%;
      box-sizing: border-box;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 2px;
      color: rgba(255, 255, 255, 0.92);
      padding: 12px 12px;
      font-family: inherit;
      font-size: 12px;
      letter-spacing: 0.04em;
      outline: none;
      transition: border-color 0.25s ease;
    }

    .restock-input:focus {
      border-color: rgba(21, 21, 21, 0.45);
    }

    .restock-input.field-invalid {
      border-color: rgba(180, 90, 90, 0.55);
    }

    .restock-modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 12px;
    }

    .restock-success {
      margin-top: 2px;
    }

    .restock-success-kicker {
      margin: 0 0 10px;
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.86);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .restock-success-kicker::before {
      content: "✓";
      color: rgba(21, 21, 21, 0.45);
    }

    .restock-modal-note {
      margin: 10px 0 0;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--lf-muted, #5f5b56);
      line-height: 1.6;
    }

    .btn {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: center;
      padding: 14px 24px;
      font-family: inherit;
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      text-decoration: none;
      border-radius: 2px;
      cursor: pointer;
      transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .btn-primary {
      border: 1px solid #1a1a1a;
      color: #ffffff;
      background: #1a1a1a;
    }

    .btn-primary:hover {
      background: var(--lf-line, #d8d4cd)333;
      border-color: var(--lf-line, #d8d4cd)333;
      color: #ffffff;
    }

    .btn.has-bag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .btn.has-bag .lf-icon {
      width: 20px;
      height: 20px;
      flex: 0 0 20px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .btn-secondary {
      border: 1px solid var(--lf-line, #d8d4cd);
      color: var(--lf-subtle, #6a6560);
      background: transparent;
    }

    .btn-secondary:hover {
      border-color: #555;
      color: var(--lf-ink, #151515);
    }

    .detail-quiet-action {
      border: 0;
      color: #aaa;
      background: transparent;
      padding-inline: 0;
      text-align: left;
    }

    .detail-quiet-action:hover,
    .detail-quiet-action.is-saved {
      color: #eee;
      background: transparent;
    }

    .mercari-quiet-link {
      width: fit-content;
      color: var(--lf-muted, #5f5b56);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: none;
      text-align: left;
      text-decoration: none;
      padding: 4px 0 0;
      transition: color 0.3s ease;
    }

    .mercari-quiet-link:hover {
      color: #bbb;
    }

    .detail-note {
      margin-top: 28px;
      font-size: 11px;
      color: #555;
      letter-spacing: 0.04em;
    }

    .related-section {
      margin-top: 56px;
      padding-top: 32px;
      border-top: 1px solid #cfc9c0;
    }

    .related-heading {
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: #555;
      margin: 0 0 20px;
    }

    .related-grid {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      padding-bottom: 8px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }

    .related-card {
      flex: 0 0 min(200px, 68vw);
      scroll-snap-align: start;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
      text-decoration: none;
      color: inherit;
      transition: opacity 0.2s ease;
    }

    .related-card:hover {
      transform: none;
      box-shadow: none;
      opacity: 0.88;
    }

    .related-card img {
      width: 100%;
      border-radius: 0;
      display: block;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      background: #ebe7e1;
    }

    .related-card-brand {
      color: #151515;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: none;
      margin: 12px 0 0;
    }

    .related-card-title {
      font-size: 12px;
      font-weight: 400;
      line-height: 1.45;
      color: var(--lf-muted, #5f5b56);
      margin: 4px 0 0;
      min-height: 34px;
    }

    .related-card-price {
      color: #151515;
      font-size: 13px;
      font-weight: 400;
      margin: 6px 0 0;
    }

    .related-placeholder {
      aspect-ratio: 4 / 5;
      border-radius: 0;
      background: #ebe7e1;
      border: 1px dashed #cfc9c0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      letter-spacing: 0.15em;
      color: var(--lf-subtle, #6a6560);
      text-transform: uppercase;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      background: #fafafa;
      display: none;
      z-index: 1000;
      opacity: 0;
      transition: opacity 0.28s ease;
    }

    .lightbox.active {
      display: block;
      opacity: 1;
    }

    body.is-lightbox-open {
      overflow: hidden;
    }

    .lightbox-stage {
      position: absolute;
      inset: 0;
      overflow: hidden;
      touch-action: none;
      cursor: default;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .lightbox-stage.is-panning {
      cursor: grabbing;
    }

    .lightbox-image {
      display: block;
      height: 100%;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      cursor: zoom-in;
      user-select: none;
      -webkit-user-drag: none;
      transform-origin: center center;
      will-change: transform;
    }

    .lightbox-image.is-zoomed {
      cursor: grab;
    }

    .lightbox-image.is-panning {
      cursor: grabbing;
    }

    .lightbox-close {
      position: static;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid rgba(26, 26, 26, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.88);
      color: var(--lf-text-subtle, var(--lf-muted, #5f5b56));
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      opacity: 0.42;
      transition: border-color 0.2s ease, opacity 0.24s ease, color 0.2s ease;
    }

    .lightbox-chrome-top {
      position: absolute;
      top: max(16px, env(safe-area-inset-top));
      right: max(16px, env(safe-area-inset-right));
      z-index: 1004;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .lightbox.is-chrome-visible .lightbox-close,
    .lightbox:focus-within .lightbox-close {
      opacity: 0.92;
    }

    .lightbox-close:hover,
    .lightbox-close:focus-visible {
      opacity: 1;
      color: var(--lf-text-secondary, #444);
      border-color: rgba(21, 21, 21, 0.45);
      outline: none;
    }

    .lightbox-counter {
      min-width: 52px;
      padding: 6px 10px;
      border: 1px solid rgba(26, 26, 26, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.88);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(26, 26, 26, 0.78);
      text-align: center;
      opacity: 0.42;
      pointer-events: none;
      transition: opacity 0.24s ease;
    }

    .lightbox.is-chrome-visible .lightbox-counter,
    .lightbox:focus-within .lightbox-counter {
      opacity: 0.92;
    }

    .lightbox-counter:empty {
      display: none;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      z-index: 1003;
      width: 44px;
      height: 44px;
      margin: 0;
      padding: 0;
      border: 1px solid rgba(26, 26, 26, 0.12);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.88);
      color: var(--lf-line, #d8d4cd);
      cursor: pointer;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: border-color 0.2s ease, opacity 0.24s ease, background 0.2s ease;
    }

    .lightbox.is-chrome-visible .lightbox-nav:not(:disabled):not(.is-hidden),
    .lightbox:focus-within .lightbox-nav:not(:disabled):not(.is-hidden) {
      opacity: 1;
      pointer-events: auto;
    }

    .lightbox-nav:hover:not(:disabled),
    .lightbox-nav:focus-visible:not(:disabled) {
      border-color: rgba(21, 21, 21, 0.45);
      outline: none;
    }

    .lightbox-nav:disabled {
      opacity: 0 !important;
      cursor: default;
      pointer-events: none !important;
    }

    .lightbox-nav.is-hidden {
      display: none;
    }

    .lightbox-nav .lf-icon {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .lightbox-hit {
      position: absolute;
      z-index: 1002;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      opacity: 0;
    }

    .lightbox-hit.is-hidden {
      display: none;
    }

    .lightbox-hit:disabled {
      pointer-events: none;
    }

    .lightbox-hit--prev {
      cursor: w-resize;
    }

    .lightbox-hit--next {
      cursor: e-resize;
    }

    .lightbox-stage.is-zoomed .lightbox-hit {
      pointer-events: none;
    }

    .lightbox-toolbar {
      display: none;
    }

    .lightbox-counter--legacy {
      display: none;
    }

    .lightbox-zoom {
      position: absolute;
      right: max(16px, env(safe-area-inset-right));
      bottom: max(16px, env(safe-area-inset-bottom));
      z-index: 1004;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.24s ease;
    }

    .lightbox.is-chrome-visible .lightbox-zoom,
    .lightbox:focus-within .lightbox-zoom {
      opacity: 1;
      pointer-events: auto;
    }

    .lightbox-zoom-btn {
      width: 40px;
      height: 40px;
      padding: 0;
      border: 1px solid rgba(26, 26, 26, 0.12);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.88);
      color: #1a1a1a;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      transition: border-color 0.2s ease, opacity 0.2s ease;
    }

    .lightbox-zoom-btn:hover:not(:disabled),
    .lightbox-zoom-btn:focus-visible:not(:disabled) {
      border-color: rgba(21, 21, 21, 0.45);
      outline: none;
    }

    .lightbox-zoom-btn:disabled {
      opacity: 0.28;
      cursor: default;
    }

    @media (max-width: 720px) {
      .lightbox-nav {
        width: 40px;
        height: 40px;
      }

      .lightbox-nav .lf-icon {
        width: 20px;
        height: 20px;
      }
    }

    .bag-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.46);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 900;
    }

    .bag-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .bag-drawer {
      position: fixed;
      top: 0;
      right: 0;
      width: min(390px, calc(100% - 32px));
      height: 100vh;
      background: var(--lf-surface, #ffffff);
      border-left: 1px solid var(--lf-line, #d8d4cd);
      transform: translateX(100%);
      transition: transform 0.35s ease;
      z-index: 901;
      display: flex;
      flex-direction: column;
    }

    .bag-drawer.is-open {
      transform: translateX(0);
    }

    .bag-drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 28px 28px 20px;
      border-bottom: 1px solid var(--lf-line, #d8d4cd);
    }

    .bag-title {
      margin: 0;
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: none;
    }

    .bag-content {
      padding: 28px;
      flex: 1;
      overflow-y: auto;
    }

    .bag-empty {
      color: var(--lf-muted, #5f5b56);
      font-size: 13px;
      line-height: 1.8;
      margin: 0 0 24px;
    }

    .bag-item {
      display: grid;
      grid-template-columns: 88px 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }

    .bag-item img {
      width: 88px;
      aspect-ratio: 1;
      object-fit: cover;
      background: #151515;
      border: 1px solid var(--lf-line, #d8d4cd);
      border-radius: 6px;
    }

    .bag-item-brand {
      color: #151515;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: none;
      margin: 0 0 4px;
    }

    .bag-item-title {
      display: block;
      color: var(--lf-muted, #5f5b56);
      font-size: 11px;
      font-weight: 400;
      line-height: 1.45;
      margin: 0 0 6px;
      text-decoration: none;
    }

    .bag-item-title:hover {
      color: #151515;
    }

    .bag-item-meta {
      color: var(--lf-muted, #5f5b56);
      font-size: 11px;
      line-height: 1.7;
      margin: 0;
    }

    .bag-item-price {
      color: #151515;
      font-size: 12px;
      font-weight: 400;
      margin: 6px 0 12px;
    }

    .bag-item-image-link {
      display: block;
    }

    .bag-drawer-actions {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }

    .bag-remove {
      background: none;
      border: 0;
      padding: 0;
      color: var(--lf-muted, #5f5b56);
      cursor: pointer;
      font-family: inherit;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-align: left;
      text-transform: none;
    }

    .bag-remove:hover {
      color: var(--lf-ink, #151515);
    }

    .bag-summary {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      margin: 28px 0 0;
      padding-top: 18px;
      border-top: 1px solid var(--lf-line, #d8d4cd);
      color: var(--lf-text-secondary, #444444);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: none;
    }

    .auth-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.56);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 920;
    }

    .auth-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .auth-modal {
      position: fixed;
      left: 50%;
      top: 50%;
      width: min(420px, calc(100% - 32px));
      transform: translate(-50%, -46%);
      opacity: 0;
      pointer-events: none;
      background: var(--lf-surface, #ffffff);
      border: 1px solid var(--lf-line, #d8d4cd);
      padding: 30px;
      z-index: 921;
      transition: opacity 0.3s ease, transform 0.3s ease;
      box-sizing: border-box;
    }

    .auth-modal.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%);
    }

    .auth-modal-header {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: start;
      margin-bottom: 24px;
    }

    .auth-title {
      margin: 0 0 8px;
      font-family: var(--lf-font, Arial, Helvetica, sans-serif);
      font-size: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .auth-copy {
      margin: 0;
      color: var(--lf-subtle, #6a6560);
      font-size: 13px;
      line-height: 1.8;
    }

    .auth-options {
      display: grid;
      gap: 10px;
    }

    .auth-note {
      margin: 18px 0 0;
      color: var(--lf-muted, #5f5b56);
      font-size: 11px;
      line-height: 1.7;
    }

  .is-hidden {
      display: none !important;
    }

    @media (max-width: 900px) {
      .related-card {
        flex-basis: min(180px, 64vw);
      }
    }

    @media (max-width: 768px) {
      .detail {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .detail-actions {
        max-width: none;
      }

      .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, 64px);
      }

      .gallery-thumb {
        width: 64px;
      }

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

      .lightbox-zoom {
        display: none !important;
      }
    }
  


    /* Detail — gallery fits main image + thumbs below fixed header */
    body.page-detail .product-gallery {
      --lf-detail-thumb-chrome: calc(12px + 72px + 4px);
    }

    body.page-detail .gallery-main {
      width: 100%;
      max-width: 100%;
      max-height: calc(100svh - var(--lf-header-height) - var(--lf-detail-thumb-chrome) - 16px);
      aspect-ratio: 1 / 1.12;
      height: auto;
    }

    @media (max-width: 768px) {
      body.page-detail .product-gallery {
        --lf-detail-thumb-chrome: calc(12px + 64px + 4px);
      }
    }

    @media (min-width: 1025px) {
      body.page-detail.has-site-header:not(.account-space) .page-wrap {
        max-width: 1520px;
        width: 100%;
        margin: 0 auto;
        padding-left: clamp(32px, 4vw, 56px);
        padding-right: clamp(32px, 4vw, 56px);
      }

      body.page-detail .detail {
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
        gap: clamp(28px, 3.2vw, 44px);
        align-items: start;
      }

      body.page-detail .detail-gallery {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
      }

      body.page-detail .product-gallery {
        align-items: center;
        gap: 12px;
        --lf-detail-gallery-w: min(
          46vw,
          calc((100svh - var(--lf-header-height) - var(--lf-detail-thumb-chrome) - 16px) / 1.12)
        );
      }

      body.page-detail .gallery-main {
        --lf-detail-gallery-max-h: calc(
          100svh - var(--lf-header-height) - var(--lf-detail-thumb-chrome) - 16px
        );
        width: var(--lf-detail-gallery-w);
        max-width: 100%;
        max-height: var(--lf-detail-gallery-max-h);
        aspect-ratio: 1 / 1.12;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        border-radius: 12px;
        border: 1px solid var(--lf-line, #d8d4cd);
      }

      body.page-detail .gallery-thumbnails {
        width: var(--lf-detail-gallery-w);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(auto-fill, 72px);
        justify-content: start;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
      }

      body.page-detail .gallery-thumbnails::-webkit-scrollbar {
        height: 4px;
      }

      body.page-detail .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.16);
        border-radius: 999px;
      }

      body.page-detail .detail-info {
        padding-top: 0;
        max-width: min(100%, 540px);
      }

      body.page-detail .detail-desc,
      body.page-detail .detail-tags,
      body.page-detail .detail-purchase-layer,
      body.page-detail .detail-actions {
        max-width: min(100%, 520px);
      }
    }
  
