html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.product-shell,
.gallery,
.details,
.seller-card,
.section,
.related-grid,
.purchase-notes,
.ship-grid,
.specs-list {
  min-width: 0;
}

.product-menu-section {
  display: block;
  margin: 10px 12px 4px;
  color: #ff5722;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptx-mobile-panel a i {
  width: 18px;
  text-align: center;
}

.ptx-mobile-panel .product-menu-danger {
  color: #dc2626;
}

.ptx-mobile-panel .product-menu-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 16px, 1200px);
  }

  .breadcrumbs {
    gap: 6px;
    margin: 14px 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .breadcrumbs span,
  .breadcrumbs a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-shell {
    gap: 18px;
  }

  .gallery {
    gap: 10px;
  }

  .main-image {
    height: auto;
    aspect-ratio: 1 / 1.08;
    border-radius: 10px;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .thumb {
    border-radius: 9px;
  }

  .details h1 {
    margin-top: 10px;
    font-size: 23px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .seller,
  .event-chip-link,
  .promo-banner,
  .desc,
  .field label {
    font-size: 12px;
  }

  .price {
    font-size: 25px;
  }

  .stock-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stock-row span {
    justify-content: center;
    min-width: 0;
    padding: 8px 9px;
    text-align: center;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .stock-row span:first-child {
    grid-column: 1 / -1;
  }

  .options {
    gap: 7px;
  }

  .option {
    min-width: 42px;
    height: 40px;
    border-radius: 8px;
    font-size: 12px;
  }

  .quantity {
    width: 100%;
  }

  .quantity button,
  .quantity input {
    width: 33.333%;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 46px;
    border-radius: 10px;
    padding: 0 14px;
  }

  .purchase-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .note {
    min-height: 94px;
    border-radius: 10px;
    padding: 11px 10px;
  }

  .note strong {
    font-size: 11px;
  }

  .note span {
    font-size: 10px;
    line-height: 1.35;
  }

  .ship-panel {
    margin-top: 12px;
    border-radius: 10px;
    padding: 12px;
  }

  .ship-panel h3 {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .ship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ship-grid div {
    min-width: 0;
    border-radius: 10px;
    padding: 10px 9px;
    background: #fff;
  }

  .ship-grid div span:first-child {
    font-size: 9px;
    line-height: 1.2;
  }

  .ship-grid div span:last-child {
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.25;
  }

  .site-footer {
    margin-top: 34px;
    padding: 18px 0;
  }

  .powered-by {
    font-size: 12px;
  }

  .seller-card {
    margin-top: 14px;
    border-radius: 10px;
    padding: 16px;
  }

  .section {
    margin: 34px 0;
  }

  .section h2 {
    margin-bottom: 14px;
    font-size: 19px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .related-media {
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .related-card strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .related-card em {
    font-size: 13px;
  }

  .related-copy-btn {
    opacity: 1;
    transform: none;
  }

  .ptx-mobile-panel {
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 12px, 1200px);
  }

  .details h1 {
    font-size: 21px;
  }

  .purchase-notes,
  .ship-grid,
  .related-grid {
    gap: 7px;
  }

  .note {
    min-height: 90px;
    padding: 10px 8px;
  }

  .note i {
    font-size: 12px;
  }

  .note span {
    font-size: 9.5px;
  }

  .ship-grid div {
    padding: 9px 7px;
  }

  .ship-grid div span:last-child {
    font-size: 10px;
  }

  .related-card strong {
    font-size: 11.5px;
  }
}
