@media screen and (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-details-hero-section {
    padding-top: 56px !important;
  }

  .product-details-hero-section .container {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .product-details-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-media-column,
  .product-details,
  .product-1,
  .w-commerce-commerceaddtocartform,
  .product-faq-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product-media-column {
    gap: 10px !important;
  }

  #product-hero-frame.product-hero-frame {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 8px !important;
    background-size: contain !important;
  }

  .product-media-fallback.is-hero {
    min-height: 0 !important;
    height: 100%;
    border-radius: 8px !important;
  }

  .product-thumb-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .product-thumb {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px;
    border-radius: 8px !important;
  }

  .product-details {
    align-items: stretch !important;
  }

  .stock-block,
  .review-details,
  .cards-information,
  .cards-images,
  .order-timing-block {
    max-width: 100% !important;
  }

  .product-name {
    max-width: 100% !important;
    margin-bottom: 12px !important;
    font-size: 34px !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }

  .product-hero-description,
  .faq-para.product,
  .product-extended-block,
  .product-spec-summary-copy,
  .product-spec-summary-note,
  .spec-summary-line {
    font-size: 15px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
  }

  .review-details {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .rating-star.product,
  .review-star-icon {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px;
  }

  .product-price {
    width: 100% !important;
    margin-top: 18px !important;
    margin-bottom: 14px !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  .qty-field-label {
    display: block !important;
    margin-bottom: 8px !important;
  }

  .cart-main-block {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .quantity {
    width: 72px !important;
    min-width: 72px !important;
    height: 54px !important;
    border-radius: 8px !important;
    text-align: center;
  }

  .add-to-cart-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    white-space: normal !important;
  }

  .cards-information {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .cards-images {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .card-icon {
    max-width: 42px !important;
    height: auto !important;
  }

  .product-faq-wrapper {
    margin-top: 18px !important;
  }

  .faq-list-wrap.product {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .faq-question {
    gap: 12px !important;
  }

  .faq-ques.product {
    font-size: 22px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .product-spec-section {
    margin-top: 44px !important;
  }

  .product-spec-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-spec-grid {
    gap: 18px !important;
  }

  .product-spec-card,
  .product-spec-card.product-spec-card--difdim {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .product-spec-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
  }

  .product-video-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .product-vector-wrap {
    padding: 14px !important;
    border-radius: 8px !important;
  }

  .product-vector-viewer {
    min-height: 320px !important;
    border-radius: 8px !important;
  }

  .product-vector-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .product-vector-button,
  .product-manual-link {
    width: 100% !important;
    border-radius: 8px !important;
  }

  /* The two rotated marquee bars. At 102% width they already fell ~8px short
     of the right edge on a 390px phone, and the 10-11deg rotation pulls their
     corners further in, leaving wedges of background at both ends. A rotated
     bar has to be wider than the screen to cover it, so the bars overhang and
     the section does the clipping instead of the bars themselves — clipping
     them was what pinned their ends inside the viewport. */
  .product-marquee {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .product-marquee-top,
  .product-marquee-bottom {
    width: 124% !important;
    max-width: none !important;
    margin-left: -12% !important;
    margin-right: -12% !important;
    overflow: visible !important;
  }

  .customer-reviews-section,
  .related-product-section,
  .cta-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .related-product-wrapper,
  .accessories-bottom,
  .collection-list-product.w-dyn-items {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Two across: one card per row made "מוצרים דומים" four phone screens of
     mostly white space. */
  .collection-list-product.w-dyn-items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 12px !important;
  }

  .related-product-section .product-item-name {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .related-product-section .product-price {
    font-size: 18px !important;
  }

  .collection-item-product,
  .product-item-detail,
  .product-image-overflow,
  .product-item-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .product-image-overflow {
    aspect-ratio: 4 / 3;
    border-radius: 8px !important;
  }

  .product-item-name,
  .accessories-title {
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 479px) {
  .product-name {
    font-size: 30px !important;
  }

  .product-price {
    font-size: 30px !important;
  }

  .cart-main-block {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .quantity {
    width: 64px !important;
    min-width: 64px !important;
  }
}

/* ── Mobile sticky purchase bar ──────────────────────────────────────────────
   Everything here is inside the mobile breakpoint: desktop is untouched, and
   velto-sticky-buy.js removes the element entirely above 767px rather than
   leaving a hidden node in the tree. */
@media (max-width: 767px) {
  .velto-sticky-buy {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2147482000;          /* under the chat launcher and the consent bar,
                                     which must stay reachable */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    /* The chat launcher is fixed in the bottom-RIGHT corner, 20px in and 56px
       wide. Physical padding (not logical) keeps the bar's contents out of that
       corner on this RTL page, where inline-end resolves to the left. Measured:
       chat occupies x=424-480 in a 500px viewport. */
    padding-right: 80px;
    /* Home-indicator clearance on notched phones. */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #e1e6e3;
    box-shadow: 0 -6px 24px rgba(16, 32, 25, .10);

    /* Nothing in the real world appears from nothing: it slides from its own
       height rather than fading in from zero.

       The resting state is off-screen, and `visibility` is what keeps a parked
       bar out of the tab order. It flips to visible instantly on show, and is
       held back until the slide-out finishes on hide — hence the 0s duration
       with a delay only in the resting rule. */
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 220ms;
  }

  .velto-sticky-buy.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0s;
  }

  .velto-sticky-buy__price {
    flex: none;
    font-size: 17px;
    font-weight: 700;
    color: #14201a;
    font-variant-numeric: tabular-nums;
    /* An amount is a self-contained LTR run inside an RTL page. */
    direction: ltr;
    unicode-bidi: isolate;
  }

  .velto-sticky-buy__button {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #085136;          /* the brand green, same as the real control */
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .velto-sticky-buy__button:active { transform: scale(0.97); }
  .velto-sticky-buy__button:focus-visible { outline: 2px solid #0b6d35; outline-offset: 3px; }

  .velto-sticky-buy__button[disabled] {
    background: #9aa8a1;
    cursor: default;
  }

  /* The page needs somewhere to scroll to underneath the bar, or its last
     element sits permanently behind it.

     Reserved in CSS rather than added by the script when the bar appears.
     Toggling it from JS moved the whole page after first paint and pushed CLS
     from 0.003 to 0.023 — reproducible across three Lighthouse runs. Holding
     the space from the first frame costs a 68px gap on the rare phone with no
     IntersectionObserver, and shifts nothing. */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  @media (prefers-reduced-motion: reduce) {
    .velto-sticky-buy,
    .velto-sticky-buy__button { transition: none; }
    .velto-sticky-buy__button:active { transform: none; }
  }
}
