/* Mobile-only single-product presentation. Loaded after all historical product rules. */
@media (max-width: 768px) {
  body.single-product .pk-product {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  body.single-product .pk-product-main {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.single-product .pk-product-gallery,
  body.single-product .pk-media-gallery,
  body.single-product .pk-gallery-stage,
  body.single-product .pk-gallery-main {
    width: 100% !important;
    max-width: none !important;
  }

  body.single-product .pk-gallery-stage {
    height: auto !important;
    aspect-ratio: auto !important;
    background: #f2f0ea;
  }

  body.single-product .pk-gallery-main {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
  }

  body.single-product .pk-gallery-main img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 68svh;
    object-fit: contain !important;
  }

  body.single-product .pk-gallery-thumbnails {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    margin: 10px 16px 0 !important;
    padding: 0 0 4px !important;
    scroll-snap-type: x proximity;
  }

  body.single-product .pk-gallery-thumbnail {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 78px !important;
    scroll-snap-align: start;
  }

  body.single-product .pk-product-summary {
    position: static !important;
    width: calc(100% - 2rem) !important;
    margin: 24px auto 0 !important;
    float: none !important;
  }

  body.single-product .product_title {
    margin: 0 0 12px !important;
    font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: anywhere;
  }

  body.single-product .summary .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 18px !important;
    font-size: 1.22rem !important;
    line-height: 1.35 !important;
  }

  body.single-product .summary .price del {
    color: #777772;
    font-size: .78em;
  }

  body.single-product .summary .price ins {
    color: var(--aws-ink);
    font-weight: 800;
    text-decoration: none;
  }

  body.single-product .woocommerce-product-details__short-description {
    margin: 0 0 22px !important;
    font-size: 14px;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
  }

  body.single-product .variations {
    margin-bottom: 18px !important;
  }

  body.single-product .aws-size-chips {
    gap: 8px;
  }

  body.single-product .aws-size-chip {
    min-width: 48px;
    min-height: 46px;
    height: 46px;
    padding: 0 12px;
  }

  body.single-product .summary form.cart,
  body.single-product .single_variation_wrap,
  body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: block !important;
    width: 100% !important;
  }

  body.single-product .summary form.cart .quantity {
    display: flex !important;
    width: 116px !important;
    height: 48px !important;
    margin: 0 0 12px !important;
  }

  body.single-product .summary form.cart .quantity input.qty {
    min-height: 46px;
  }

  body.single-product .summary form.cart .single_add_to_cart_button,
  body.single-product .summary form.cart button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid var(--aws-ink) !important;
    border-radius: 0 !important;
    background: var(--aws-ink) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  body.single-product .summary form.cart .single_add_to_cart_button:disabled,
  body.single-product .summary form.cart .single_add_to_cart_button.disabled {
    opacity: .45;
  }

  body.single-product .pk-product-details,
  body.single-product .pk-related-products {
    width: calc(100% - 2rem) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.single-product .pk-product-details {
    margin-top: 34px !important;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs {
    display: block !important;
    margin: 0;
    border: 0 !important;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs li {
    display: block !important;
    margin: 0 !important;
    border-top: 1px solid var(--aws-line) !important;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs li:last-child {
    border-bottom: 1px solid var(--aws-line) !important;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 0 !important;
    color: var(--aws-ink) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs li a::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs ul.tabs li a[aria-expanded="true"]::after {
    content: '−';
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs .woocommerce-Tabs-panel {
    max-width: none;
    padding: 16px 0 22px !important;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  body.single-product .woocommerce-tabs.aws-mobile-tabs .woocommerce-Tabs-panel[hidden] {
    display: none !important;
  }

  body.single-product .pk-related-products {
    margin-top: 42px !important;
    padding-bottom: 18px;
  }

  body.single-product .pk-related-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 12px !important;
  }

  body.single-product .pk-related-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  body.single-product .pk-related-products ul.products li.product a.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 44px !important;
    margin-top: auto !important;
    padding: 10px 4px !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: center;
    white-space: normal !important;
  }
}
