.crumb {
    display: flex; flex-wrap: wrap; gap: 6px 8px;
    margin: 0 0 14px; padding: 0;
    font-size: 12px; color: var(--muted);
  }
  .crumb a:hover { color: var(--link); }
  .crumb span { color: var(--ink); }

  .item {
    display: grid;
    gap: 28px;
    padding: 12px 0 48px;
  }
  @media (min-width: 860px) {
    .item {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
      gap: 48px;
      align-items: start;
      padding: 20px 0 64px;
    }
  }

  .gallery {
    position: relative;
    background: #f5f5f3;
    aspect-ratio: 1;
    overflow: hidden;
    outline: none;
  }
  .gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .gallery__slide img {
    width: 100%; height: 100%;
    object-fit: contain;
  }
  .gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(145, 145, 145, .72);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
  }
  .gallery__arrow svg {
    display: block;
    width: 15px;
    height: 22px;
  }
  .gallery__arrow:hover { background: rgba(120, 120, 120, .82); }
  .gallery__arrow:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
  .gallery__arrow--prev { left: 18px; }
  .gallery__arrow--next { right: 18px; }
  .gallery__counter {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    min-width: 76px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(145, 145, 145, .72);
    color: #fff;
    font-size: 16px;
    text-align: center;
  }
  @media (max-width: 859px) {
    .gallery__arrow {
      width: 38px;
      height: 38px;
    }
    .gallery__arrow svg { width: 13px; height: 20px; }
    .gallery__arrow--prev { left: 12px; }
    .gallery__arrow--next { right: 12px; }
    .gallery__counter {
      top: 12px;
      right: 12px;
      min-width: 64px;
      padding: 8px 12px;
      font-size: 14px;
    }
  }

  .buy .brand-line {
    margin: 0 0 8px;
    line-height: 0;
  }
  .buy .brand-line img {
    height: 18px;
    width: auto;
    object-fit: contain;
  }
  .crumb a img {
    height: 14px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
  }
  .buy h1 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
  }
  .buy__price {
    margin: 0 0 18px;
    font-size: 20px; font-weight: 700;
  }
  .buy__price .tax {
    margin-left: 6px;
    font-size: 12px; font-weight: 400; color: var(--muted);
  }

  .meta {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 12px;
  }
  .meta th,
  .meta td {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }
  .meta th {
    width: 5.5em;
    color: var(--muted);
    font-weight: 400;
    white-space: nowrap;
  }
  .meta a { color: var(--link); }
  .meta a:hover { text-decoration: underline; }

  .item-parts {
    margin: 0 0 22px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
  }
  .item-parts h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }
  .item-parts__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .item-parts__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
  }
  .item-parts__list li:last-child {
    border-bottom: 0;
  }
  .item-parts__name {
    min-width: 0;
    word-break: break-word;
  }
  .item-parts__qty {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
  }

  .buy__row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px; margin-bottom: 12px;
  }
  .qty {
    display: inline-flex; align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
  }
  .qty button {
    width: 36px; height: 40px;
    font-size: 16px; color: var(--ink);
  }
  .qty button:hover { background: #f6f6f6; }
  .qty input {
    width: 48px; height: 40px;
    border: 0; border-left: 1px solid #d0d0d0; border-right: 1px solid #d0d0d0;
    text-align: center; font: inherit; color: var(--ink);
  }
  .btn-cart {
    flex: 1 1 180px;
    min-height: 44px;
    padding: 12px 18px;
    background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 700;
    border-radius: 4px;
  }
  .btn-cart:hover { filter: brightness(1.06); }
  .btn-cart:disabled {
    background: #c8c8c8; cursor: not-allowed; filter: none;
  }
  .btn-diy {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font-size: 14px; font-weight: 700;
  }
  .btn-diy:hover { background: #f7f7f7; }
  .buy__note {
    margin: 14px 0 0;
    font-size: 12px; color: var(--muted);
  }

  .tabs {
    display: flex; gap: 0;
    margin: 0 0 20px;
  }
  .buy .tabs {
    margin-top: 26px;
  }
  .tabs button {
    padding: 12px 18px;
    font-size: 14px; color: var(--muted);
  }
  .tabs button.is-on {
    color: var(--ink); font-weight: 700;
  }
  .panel { display: none; padding-bottom: 40px; }
  .buy .panel { padding-bottom: 0; }
  .panel.is-on { display: block; }
  .panel h2 {
    margin: 0 0 12px;
    font-size: 16px; font-weight: 700;
  }
  .panel p {
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.8;
    white-space: pre-line;
  }
  .panel .muted { color: var(--muted); font-size: 12px; }

  .product-detail-content {
    padding: 20px 0 64px;
  }
  .product-detail-block + .product-detail-block {
    margin-top: 54px;
  }
  .product-detail-block h2 {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
  }
  .product-detail-block__text {
    max-width: 900px;
    margin: 0;
    font-size: 14px;
    line-height: 2;
    white-space: pre-line;
  }
  .product-detail-block__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
  }
  .product-detail-block__split.is-right .product-detail-block__image {
    order: 2;
  }
  .product-detail-block__image {
    margin: 0;
  }
  .product-detail-block__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  .product-detail-block__copy {
    padding-top: 4px;
  }
  .product-detail-block--full .product-detail-block__image img {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }
  .product-detail-block__gallery {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 2), minmax(0, 1fr));
    grid-template-rows: repeat(var(--gallery-rows, 1), auto);
    gap: 16px;
  }
  .product-detail-block__gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  @media (max-width: 700px) {
    .product-detail-content {
      padding-bottom: 48px;
    }
    .product-detail-block + .product-detail-block {
      margin-top: 40px;
    }
    .product-detail-block h2 {
      margin-bottom: 18px;
      font-size: 16px;
    }
    .product-detail-block__split {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .product-detail-block__split .product-detail-block__image,
    .product-detail-block__split.is-right .product-detail-block__image {
      order: 1;
    }
    .product-detail-block__copy {
      order: 2;
      padding-top: 0;
    }
    .product-detail-block__gallery {
      gap: 12px;
    }
  }

  .reviews {
    padding: 16px 0 56px;
  }
  .buy .reviews {
    margin-top: 26px;
    padding: 26px 0 0;
  }
  .reviews > h2 {
    margin: 0 0 28px;
    font-size: 20px;
    font-weight: 700;
  }
  .buy .reviews > h2 {
    margin-bottom: 22px;
    font-size: 16px;
  }
  .review {
    padding: 0 0 30px;
  }
  .review + .review {
    padding-top: 4px;
  }
  .review__content {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
  }
  .review__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #aaa;
    font-size: 12px;
  }
  .reviews__empty,
  .reviews__status {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
  }
  .reviews__more {
    margin: 0 0 34px;
    color: #1769aa;
    font-size: 14px;
  }
  .reviews__more:hover { text-decoration: underline; }
  .review-form {
    max-width: 720px;
    padding-top: 28px;
  }
  .review-form h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
  }
  .review-form textarea {
    display: block;
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    color: var(--ink);
    font: inherit;
    line-height: 1.7;
    resize: vertical;
  }
  .review-form__submit,
  .review-form__login {
    min-width: 180px;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: 3px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }
  .review-form__submit:disabled {
    cursor: wait;
    opacity: .55;
  }
  .review-form__message {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
  }
  .review-form__message.is-error { color: #a80000; }

  .related { padding: 8px 0 56px; }
  .related h2 {
    margin: 0 0 18px;
    font-size: 16px; font-weight: 700;
  }
  .grid {
    display: grid; gap: 24px 14px;
    grid-template-columns: repeat(2, 1fr);
  }
  @media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
  .card { display: flex; flex-direction: column; gap: 8px; }
  .card:hover .card__img img { transform: scale(1.03); }
  .card__img { aspect-ratio: 1; background: #f0eeea; overflow: hidden; }
  .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
  .card h3 {
    margin: 0; font-size: 12px; font-weight: 400;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card__price { font-size: 14px; font-weight: 700; }
  .card__price .tax { font-size: 11px; font-weight: 400; margin-left: 4px; color: var(--muted); }

  .empty, .error {
    padding: 48px 0 80px;
    text-align: center; color: var(--muted);
  }
  .error a { color: var(--link); }

  .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
  }
  .brand img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
  }

  .foot__copy img { height: 14px; width: auto; display: inline-block; vertical-align: middle; object-fit: contain; }
