/* Keep the existing desktop gallery and native WooCommerce thumbnail actions. */
.pmproff-thumb-strip__arrow { display: none; }
@media (max-width: 767px) {
  .pmproff-product__gallery .pmproff-thumb-strip {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    min-width: 0;
  }
  .pmproff-product__gallery .pmproff-thumb-strip .flex-control-thumbs {
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 !important;
    padding: 3px 1px 5px;
  }
  .pmproff-product__gallery .pmproff-thumb-strip .flex-control-thumbs::-webkit-scrollbar { display: none; }
  .pmproff-product__gallery .pmproff-thumb-strip .flex-control-thumbs::before,
  .pmproff-product__gallery .pmproff-thumb-strip .flex-control-thumbs::after { content: none; }
  .pmproff-product__gallery .pmproff-thumb-strip .flex-control-thumbs li {
    flex: 0 0 54px;
    float: none;
    margin: 0;
    scroll-snap-align: start;
  }
  .pmproff-product__gallery .pmproff-thumb-strip__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 1px solid #dbe2ef;
    border-radius: 10px;
    background: #fff;
    color: #2563eb;
    box-shadow: none;
    cursor: pointer;
  }
  .pmproff-product__gallery .pmproff-thumb-strip__arrow:disabled {
    color: #94a3b8;
    opacity: .4;
    cursor: default;
  }
  .pmproff-thumb-strip__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .pmproff-thumb-strip__arrow:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
  .pmproff-product__gallery .pmproff-thumb-strip--fits { grid-template-columns: minmax(0, 1fr); }
  .pmproff-product__gallery .pmproff-thumb-strip--fits .pmproff-thumb-strip__arrow { display: none; }
}
