/* Desktop Electronics product-page mobile repair — v1.3.20 */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.store {
    overflow-x: clip;
  }

  .store .product-page {
    padding: 16px 0 30px;
  }

  .store .product-page > .container,
  .store .details > .container,
  .store .reviews-section > .container {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .store .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .store .product-layout > *,
  .store .gallery,
  .store .product-info {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .store .main-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .store .main-image > img,
  .store .main-image.accessory-image > img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
  }

  .store .thumbs {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    margin-top: 9px;
    padding: 1px 1px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .store .thumbs button {
    width: 64px;
    height: 56px;
    min-width: 64px;
    flex: 0 0 64px;
    scroll-snap-align: start;
  }

  .store .inspection {
    margin-top: 9px;
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .store .product-category {
    margin: 0 0 10px;
  }

  .store .product-category a {
    min-height: 34px;
    max-width: 100%;
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .store .product-brand {
    margin: 0 0 8px;
    gap: 8px;
    font-size: 11px;
    line-height: 1.5;
  }

  .store .product-brand span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .store .product-info h1 {
    margin: 5px 0 13px;
    font-size: clamp(24px, 7vw, 29px);
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .store .product-customer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 13px;
  }

  .store .product-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .store .product-action b {
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .store .product-favorites-link {
    grid-column: 1 / -1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  .store .rating-summary {
    width: fit-content;
    min-height: 42px;
    max-width: 100%;
    margin: 0 0 10px;
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .store .rating-summary .stars {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .store .lead {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .store .product-page-use-tags {
    width: 100%;
    margin: 12px 0 16px;
    gap: 7px;
  }

  .store .product-page-use-tags > span {
    flex-basis: 100%;
  }

  .store .product-page-use-tags a {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.4;
  }

  .store .spec-strip {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
    border-radius: 13px;
  }

  .store .spec-strip div {
    min-width: 0;
    padding: 11px 9px;
  }

  .store .spec-strip small {
    font-size: 10px;
  }

  .store .spec-strip b {
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .store .variant-panel {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .store .variant-group {
    width: 100%;
    margin-bottom: 16px;
  }

  .store .variant-group label {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .store .variant-group > div {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .store .variant-group > div:has(.option:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .store .option {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .store .upgrade-configurator {
    width: 100%;
    min-width: 0;
    padding: 14px;
  }

  .store .upgrade-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .store .upgrade-selects {
    grid-template-columns: minmax(0, 1fr);
  }

  .store .variant-panel > [data-stock] {
    margin: 4px 0 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .store .buy-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding-top: 15px;
  }

  .store .product-price-block {
    min-width: 0;
  }

  .store .product-price-line {
    min-width: 0;
    gap: 6px 8px;
  }

  .store .product-price-line strong {
    font-size: clamp(23px, 7vw, 28px);
    line-height: 1.25;
    white-space: nowrap;
  }

  .store .product-price-line del {
    font-size: 13px;
  }

  .store .qty {
    width: 126px;
    min-width: 126px;
    min-height: 46px;
  }

  .store .qty button {
    width: 40px;
    min-width: 40px;
    min-height: 44px;
    font-size: 20px;
  }

  .store .qty input {
    width: 44px;
    min-width: 0;
    padding: 0;
    font-size: 16px;
  }

  .store .variant-panel > .button {
    width: 100%;
    min-height: 52px;
    margin-top: 14px;
    font-size: 15px;
  }

  .store .payments {
    width: 100%;
    gap: 7px;
    margin-top: 12px;
  }

  .store .payments span {
    padding: 6px 8px;
    font-size: 10px;
  }

  .store .details {
    padding: 36px 0;
  }

  .store .details-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .store .details h2 {
    margin-top: 7px;
    font-size: 27px;
    line-height: 1.35;
  }

  .store .details-grid > div > p:last-child {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.95;
    color: #475569;
    overflow-wrap: anywhere;
  }

  .store .details dl {
    width: 100%;
    padding: 3px 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .store .details dl div {
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .store .reviews-section {
    padding: 36px 0;
  }

  .store .reviews-section .section-head {
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
  }

  .store .reviews-section .section-head h2 {
    font-size: 27px;
    line-height: 1.35;
  }

  .store .rating-large {
    width: 100%;
    align-items: center;
    flex-flow: row wrap;
  }

  .store .reviews-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .store .review-card,
  .store .review-form {
    min-width: 0;
    padding: 17px;
    border-radius: 15px;
  }

  .store .review-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .store .review-card p,
  .store .review-form > p {
    font-size: 14px;
    line-height: 1.8;
  }

  .store .review-form input,
  .store .review-form textarea,
  .store .review-form .button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 370px) {
  .store .product-page > .container,
  .store .details > .container,
  .store .reviews-section > .container {
    width: calc(100% - 18px);
  }

  .store .product-customer-actions,
  .store .variant-group > div,
  .store .spec-strip,
  .store .buy-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .store .qty {
    width: 100%;
  }

  .store .qty button,
  .store .qty input {
    flex: 1 1 33.333%;
    width: auto;
  }
}
