/*
 * SKANARE mobile PDP Android/Samsung cache recovery (2026-10-13 v2).
 * A new URL is intentional: returning browsers must not reuse the older
 * product-mobile-immersive.css, which sometimes arrives with newer HTML.
 * This sheet is loaded AFTER all other PDP stylesheets.
 */
@media (max-width: 600px) {
  .product-page .product-info {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "rating original"
      "title price"
      "meta price"
      "highlights highlights"
      "badges badges"
      "variants variants"
      "quantity quantity"
      "qr qr"
      "description description"
      "delivery delivery"
      "benefits benefits";
    column-gap: 10px;
    align-items: start;
  }

  .product-page .product-info #productTitle {
    display: block !important;
    grid-area: title;
    justify-self: start;
    align-self: start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 3px;
    padding: 0;
    font-size: clamp(19px, 5.25vw, 25px);
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .product-page .product-info #productMeta {
    display: block !important;
    grid-area: meta;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 2px 0 11px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.3;
    font-size: 11px;
  }

  .product-page .product-info .product-price-area {
    display: flex !important;
    grid-area: price;
    justify-self: end;
    align-self: start;
    align-items: flex-end;
    flex-direction: column;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    gap: 3px;
    padding: 0;
    margin: 0;
    border: 0;
    text-align: right;
  }
  .product-page .product-info #productPrice {
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
  .product-page .product-info #productPrice .product-price__current {
    font-size: clamp(19px, 5vw, 23px);
    white-space: nowrap;
  }
  .product-page .product-info .tax-note {
    display: block;
    margin: 0;
    white-space: nowrap;
    font-size: 9px;
  }

  .product-page .product-info .pdp-eco-highlights:not([hidden]) {
    display: flex !important;
    grid-area: highlights;
    flex-wrap: nowrap !important;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 7px 0 14px;
  }
  .product-page .product-info #pdpEcoHighlights .pdp-eco-full {
    display: none !important;
  }
  .product-page .product-info #pdpEcoHighlights .pdp-eco-compact {
    display: inline-flex !important;
    box-sizing: border-box;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 6px 8px;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(10px, 2.6vw, 12px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
    border-radius: 999px;
  }
}
@media (max-width: 355px) {
  .product-page .product-info { column-gap: 6px; }
  .product-page .product-info #productTitle { font-size: 19px; }
  .product-page .product-info #pdpEcoHighlights .pdp-eco-compact {
    font-size: 9px; padding: 5px 5px;
  }
  .product-page .product-info .pdp-eco-highlights:not([hidden]) { gap: 4px; }
}

/* Mobile PDP restore: sale price beside the title (as in the pre-partner layout).
   Two columns preserve legibility, with the left title allowed to wrap naturally.
   This file is intentionally last-loaded so it wins over older mobile rules. */
@media (max-width:600px) {
  .product-page .product-info {
    display:grid;
    width:100%;
    min-width:0;
    max-width:100%;
    grid-template-columns:minmax(0,1fr) 112px;
    grid-template-areas:
      "rating original"
      "title price"
      "meta price"
      "highlights highlights"
      "badges badges"
      "variants variants"
      "quantity quantity"
      "qr qr"
      "description description"
      "partner partner"
      "delivery delivery"
      "benefits benefits";
    column-gap:10px;
    row-gap:0;
    align-items:start;
  }
  .product-page .product-info .mobile-review-old-price:not([hidden]) {
    grid-area:original;
    justify-self:end;
    align-self:center;
    margin:0 0 8px;
    max-width:100%;
  }
  .product-page .product-info #productTitle {
    display:block!important;
    grid-area:title;
    justify-self:start;
    align-self:start;
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0 0 3px;
    font-size:clamp(19px,5.2vw,24px);
    line-height:1.15;
    letter-spacing:-.035em;
    white-space:normal;
    text-wrap:wrap;
    overflow-wrap:break-word;
    word-break:normal;
    overflow:visible;
    -webkit-line-clamp:unset;
    line-clamp:unset;
  }
  .product-page .product-info #productMeta {
    grid-area:meta;
    width:100%;
    max-width:100%;
    min-width:0;
    margin:2px 0 11px;
    white-space:normal;
    overflow-wrap:break-word;
    font-size:11px;
  }
  .product-page .product-info .product-price-area {
    display:flex!important;
    grid-area:price;
    flex-direction:column;
    justify-self:end;
    align-self:start;
    align-items:flex-end;
    width:112px;
    min-width:0;
    max-width:112px;
    gap:3px;
    margin:0;
    padding:0;
    text-align:right;
    border:0;
  }
  .product-page .product-info #productPrice {
    width:auto;
    max-width:100%;
    margin:0;
    white-space:nowrap;
    text-align:right;
    justify-content:flex-end;
    flex-wrap:nowrap;
  }
  .product-page .product-info #productPrice .product-price__current {
    font-size:clamp(18px,4.7vw,22px);
    white-space:nowrap;
  }
  .product-page .product-info .pdp-eco-highlights:not([hidden]) {
    grid-area:highlights;
    justify-content:flex-start;
    min-width:0;
    max-width:100%;
    margin:7px 0 14px;
  }
  .product-page .product-info .pdp-partner-trust {
    grid-area:partner;
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    min-width:0;
  }
}
@media (max-width:355px) {
  .product-page .product-info {grid-template-columns:minmax(0,1fr) 102px;column-gap:7px;}
  .product-page .product-info .product-price-area {width:102px;max-width:102px;}
  .product-page .product-info #productTitle {font-size:19px;}
  .product-page .product-info #productPrice .product-price__current {font-size:18px;}
}

/* November mobile price alignment: keep sale price and tax at same right edge. */
@media (max-width:600px) {
  .product-page .product-info {grid-template-columns:minmax(0,1fr) 128px;column-gap:8px;}
  .product-page .product-info .product-price-area {
    box-sizing:border-box;grid-area:price;width:100%;max-width:100%;min-width:0;
    justify-self:stretch;align-items:stretch;text-align:right;
  }
  .product-page .product-info #productPrice {
    display:flex!important;box-sizing:border-box;width:100%;max-width:100%;
    justify-content:flex-end!important;align-items:center;text-align:right;flex-wrap:nowrap;
  }
  .product-page .product-info #productPrice .product-price__current {
    display:block;flex:0 0 auto;margin-left:auto;
    font-size:clamp(23px,6vw,27px);font-weight:850;line-height:1.12;
    white-space:nowrap;text-align:right;
  }
  .product-page .product-info .tax-note {
    box-sizing:border-box;width:100%;align-self:flex-end;text-align:right;margin:2px 0 0;
  }
}
@media (max-width:355px) {
  .product-page .product-info {grid-template-columns:minmax(0,1fr) 115px;column-gap:6px;}
  .product-page .product-info #productPrice .product-price__current {font-size:22px;}
}


/* Mobile PDP: use the same measured title auto-fit as desktop.
   Never wrap into the price column; JS reduces font size only when necessary. */
@media (max-width: 600px) {
  .product-page .product-info #productTitle {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    text-wrap: nowrap;
    word-break: normal;
    overflow: visible;
    transform-origin: left center;
  }
}
