/* Molly product page: ported from approved prototype catalog-proto/product.html, scoped to .molly-pp */
.molly-pp, .molly-pp-fixed {
      --plum: #302333;
      --pink: #FF3B93;
      --cream: #FFF9F6;
      --blush: #FCE6EF;
      --white: #FFFFFF;
      --line: rgba(48, 35, 51, 0.10);
      --muted: #6b5a6e;
      --soft: #8a748d;
      --radius: 10px;
      --shadow: 0 1px 2px rgba(48, 35, 51, 0.04);
      --max: 1180px;
    }
.molly-pp *, .molly-pp-fixed * { box-sizing: border-box; margin: 0; padding: 0; }
.molly-pp, .molly-pp-fixed {
      font-family: "Molly Prompt", "Noto Sans Thai", "Sarabun", sans-serif;
      background: var(--cream);
      color: var(--plum);
      line-height: 1.55;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
    }
.molly-pp img, .molly-pp-fixed img { max-width: 100%; display: block; }
.molly-pp a, .molly-pp-fixed a { color: inherit; text-decoration: none; }
.molly-pp button, .molly-pp-fixed button { font-family: inherit; cursor: pointer; }
.molly-pp .btn-plum, .molly-pp-fixed .btn-plum {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--plum);
      color: var(--white);
      font-weight: 600;
      font-size: calc(0.92rem * var(--molly-fs, 1));
      letter-spacing: 0.01em;
      padding: 10px 18px;
      border-radius: 8px;
      border: 0;
      white-space: nowrap;
      transition: background .15s ease, transform .15s ease;
    }
.molly-pp .btn-plum:hover, .molly-pp-fixed .btn-plum:hover { background: #23181f; }
.molly-pp .btn-plum:focus-visible, .molly-pp-fixed .btn-plum:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.molly-pp .btn-plum:disabled, .molly-pp-fixed .btn-plum:disabled { opacity: 0.4; cursor: not-allowed; }
.molly-pp .page, .molly-pp-fixed .page {
      max-width: var(--max);
      margin: 0 auto;
      padding: 22px 24px 48px;
    }
.molly-pp .crumb, .molly-pp-fixed .crumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      font-size: calc(0.86rem * var(--molly-fs, 1));
      color: var(--muted);
      margin-bottom: 18px;
    }
.molly-pp .crumb a, .molly-pp-fixed .crumb a { color: var(--plum); font-weight: 500; }
.molly-pp .crumb a:hover, .molly-pp-fixed .crumb a:hover { color: var(--pink); }
.molly-pp .crumb .sep, .molly-pp-fixed .crumb .sep { color: var(--soft); }
.molly-pp .hero, .molly-pp-fixed .hero {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 16px 28px;
      align-items: start;
      margin-bottom: 20px;
    }
.molly-pp .hero-img, .molly-pp-fixed .hero-img { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.molly-pp .hero-copy, .molly-pp-fixed .hero-copy { grid-column: 2; }
.molly-pp .hero-extra, .molly-pp-fixed .hero-extra { grid-column: 2; }
.molly-pp .hero-img, .molly-pp-fixed .hero-img {
      background: #faf6f8;
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      aspect-ratio: 1 / 1;
      width: 100%;
      max-height: 220px;
    }
.molly-pp .hero-img img, .molly-pp-fixed .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.molly-pp .hero-sku, .molly-pp-fixed .hero-sku {
      font-size: calc(0.78rem * var(--molly-fs, 1));
      letter-spacing: 0.04em;
      color: var(--soft);
      font-weight: 500;
    }
.molly-pp .hero h1, .molly-pp-fixed .hero h1 {
      font-size: calc(1.42rem * var(--molly-fs, 1));
      font-weight: 600;
      letter-spacing: -0.02em;
      line-height: 1.3;
      margin: 4px 0 8px;
    }
.molly-pp .hero-price, .molly-pp-fixed .hero-price {
      font-size: calc(1.22rem * var(--molly-fs, 1));
      font-weight: 600;
      margin-bottom: 10px;
    }
.molly-pp .hero-price span, .molly-pp-fixed .hero-price span { font-size: calc(0.9rem * var(--molly-fs, 1)); font-weight: 400; color: var(--muted); }
.molly-pp .tier-table, .molly-pp-fixed .tier-table {
      width: 100%;
      max-width: 420px;
      border-collapse: collapse;
      font-size: calc(0.88rem * var(--molly-fs, 1));
      margin: 0 0 12px;
    }
.molly-pp .tier-table th, .molly-pp-fixed .tier-table th, .molly-pp .tier-table td, .molly-pp-fixed .tier-table td {
      border: 1px solid var(--line);
      padding: 7px 12px;
      text-align: left;
    }
.molly-pp .tier-table th, .molly-pp-fixed .tier-table th { background: #faf6f8; font-weight: 600; }
.molly-pp .tier-table tr.is-on td, .molly-pp-fixed .tier-table tr.is-on td { background: var(--blush); font-weight: 600; }
.molly-pp .note, .molly-pp-fixed .note, .molly-pp .ship-note, .molly-pp-fixed .ship-note {
      font-size: calc(0.82rem * var(--molly-fs, 1));
      color: var(--muted);
      line-height: 1.55;
      margin-top: 8px;
    }
.molly-pp .ship-note a, .molly-pp-fixed .ship-note a { color: var(--plum); font-weight: 500; }
.molly-pp .ship-note a:hover, .molly-pp-fixed .ship-note a:hover { color: var(--pink); }
.molly-pp .mobile-note, .molly-pp-fixed .mobile-note { display: none; }
.molly-pp .boxes, .molly-pp-fixed .boxes {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin: 10px 0 8px;
    }
.molly-pp .box-btn, .molly-pp-fixed .box-btn {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 8px 8px 9px;
      text-align: center;
      color: var(--plum);
      transition: border-color .15s, background .15s;
    }
.molly-pp .box-btn:hover, .molly-pp-fixed .box-btn:hover { border-color: rgba(48, 35, 51, 0.28); }
.molly-pp .box-btn:focus-visible, .molly-pp-fixed .box-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.molly-pp .box-btn.is-on, .molly-pp-fixed .box-btn.is-on {
      border-color: var(--plum);
      background: var(--blush);
    }
.molly-pp .box-btn .box-name, .molly-pp-fixed .box-btn .box-name { display: block; font-size: calc(0.78rem * var(--molly-fs, 1)); font-weight: 500; color: var(--muted); }
.molly-pp .box-btn.is-on .box-name, .molly-pp-fixed .box-btn.is-on .box-name { color: var(--plum); }
.molly-pp .box-btn .box-amt, .molly-pp-fixed .box-btn .box-amt { display: block; font-size: calc(1.05rem * var(--molly-fs, 1)); font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; }
.molly-pp .box-btn .box-ship, .molly-pp-fixed .box-btn .box-ship { display: block; font-size: calc(0.75rem * var(--molly-fs, 1)); color: var(--muted); }
.molly-pp .progress, .molly-pp-fixed .progress { margin: 8px 0 4px; }
.molly-pp .progress-bar, .molly-pp-fixed .progress-bar {
      height: 6px;
      background: #f0e8ed;
      border-radius: 999px;
      overflow: hidden;
    }
.molly-pp .progress-bar > span, .molly-pp-fixed .progress-bar > span {
      display: block;
      height: 100%;
      background: var(--pink);
      border-radius: 999px;
      width: 0;
      transition: width .2s ease;
    }
.molly-pp .progress-bar.is-full > span, .molly-pp-fixed .progress-bar.is-full > span { background: var(--plum); }
.molly-pp .progress-label, .molly-pp-fixed .progress-label {
      margin-top: 6px;
      font-size: calc(0.8rem * var(--molly-fs, 1));
      color: var(--muted);
    }
.molly-pp .section-title, .molly-pp-fixed .section-title {
      font-size: calc(1.02rem * var(--molly-fs, 1));
      font-weight: 600;
      margin: 4px 0 10px;
    }
.molly-pp .swatch-grid, .molly-pp-fixed .swatch-grid {
      display: grid;
      grid-template-columns: repeat(var(--molly-cols-d, 5), 1fr);
      gap: 12px;
    }
@media (min-width: 721px) {
.molly-pp .swatch-photo, .molly-pp-fixed .swatch-photo, .molly-pp .swatch-chip, .molly-pp-fixed .swatch-chip {
        aspect-ratio: auto;
        height: 140px;
      }

    
}
.molly-pp .swatch, .molly-pp-fixed .swatch {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 8px 10px;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
.molly-pp .swatch.is-oos, .molly-pp-fixed .swatch.is-oos { opacity: 0.72; }
.molly-pp .swatch-chip, .molly-pp-fixed .swatch-chip, .molly-pp .swatch-photo, .molly-pp-fixed .swatch-photo {
      aspect-ratio: 1 / 1;
      height: auto;
      border-radius: 6px;
      border: 1px solid rgba(48, 35, 51, 0.12);
      background: var(--chip, #f4f0f2);
      margin-bottom: 8px;
      overflow: hidden;
      width: 100%;
      padding: 0;
    }
.molly-pp .swatch-chip, .molly-pp-fixed .swatch-chip {
      background-image: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 42%, rgba(0,0,0,.08));
    }
.molly-pp .swatch-chip.is-empty, .molly-pp-fixed .swatch-chip.is-empty { background-image: none; background: #f4f0f2; }
.molly-pp .swatch-photo, .molly-pp-fixed .swatch-photo {
      display: block;
      cursor: zoom-in;
      background: #faf6f8;
    }
.molly-pp .swatch-photo img, .molly-pp-fixed .swatch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.molly-pp .swatch-photo:focus-visible, .molly-pp-fixed .swatch-photo:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.molly-pp .swatch-photo img, .molly-pp-fixed .swatch-photo img, .molly-pp .opt-photo img, .molly-pp-fixed .opt-photo img { object-fit: contain; background: #faf6f8; }
.molly-pp .swatch-name, .molly-pp-fixed .swatch-name { font-size: calc(0.86rem * var(--molly-fs, 1)); font-weight: 600; line-height: 1.3; word-break: break-word; }
.molly-pp .swatch-sku, .molly-pp-fixed .swatch-sku { font-size: calc(0.72rem * var(--molly-fs, 1)); color: var(--soft); margin: 1px 0 4px; letter-spacing: 0.01em; }
.molly-pp .swatch-meta, .molly-pp-fixed .swatch-meta {
      display: flex;
      justify-content: space-between;
      gap: 6px;
      font-size: calc(0.78rem * var(--molly-fs, 1));
      margin-bottom: 8px;
    }
.molly-pp .swatch-meta .price, .molly-pp-fixed .swatch-meta .price { font-weight: 600; }
.molly-pp .swatch-meta .stk, .molly-pp-fixed .swatch-meta .stk { color: var(--muted); }
.molly-pp .badge-oos, .molly-pp-fixed .badge-oos {
      display: block;
      text-align: center;
      font-size: calc(0.8rem * var(--molly-fs, 1));
      font-weight: 600;
      color: var(--muted);
      background: #eeeaf0;
      border-radius: 6px;
      padding: 8px 6px;
      margin-top: auto;
    }
.molly-pp .qty, .molly-pp-fixed .qty {
      display: flex;
      border: 1px solid var(--line);
      border-radius: 6px;
      overflow: hidden;
      height: 34px;
      margin-top: auto;
    }
.molly-pp .qty button, .molly-pp-fixed .qty button {
      width: 34px;
      border: 0;
      background: #faf6f8;
      color: var(--plum);
      font-size: calc(1.05rem * var(--molly-fs, 1));
      line-height: 1;
      flex: 0 0 34px;
    }
.molly-pp .qty button:hover, .molly-pp-fixed .qty button:hover { background: var(--blush); }
.molly-pp .qty button:disabled, .molly-pp-fixed .qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.molly-pp .qty button:focus-visible, .molly-pp-fixed .qty button:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.molly-pp .qty input, .molly-pp-fixed .qty input {
      flex: 1 1 auto;
      min-width: 0;
      width: 100%;
      border: 0;
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      text-align: center;
      font-family: inherit;
      font-size: calc(0.9rem * var(--molly-fs, 1));
      font-weight: 600;
      color: var(--plum);
      background: var(--white);
      -moz-appearance: textfield;
    }
.molly-pp .qty input::-webkit-outer-spin-button, .molly-pp-fixed .qty input::-webkit-outer-spin-button, .molly-pp .qty input::-webkit-inner-spin-button, .molly-pp-fixed .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.molly-pp .qty input:focus, .molly-pp-fixed .qty input:focus { outline: 2px solid var(--pink); outline-offset: -2px; }
.molly-pp .opt-list, .molly-pp-fixed .opt-list { display: flex; flex-direction: column; gap: 0; }
.molly-pp .opt-row, .molly-pp-fixed .opt-row {
      display: grid;
      grid-template-columns: 72px minmax(0, 1.4fr) 90px 100px 132px;
      gap: 12px 16px;
      align-items: center;
      background: var(--white);
      border: 1px solid var(--line);
      border-bottom-width: 0;
      padding: 10px 14px;
    }
.molly-pp .opt-row:first-child, .molly-pp-fixed .opt-row:first-child { border-radius: 10px 10px 0 0; }
.molly-pp .opt-row:last-child, .molly-pp-fixed .opt-row:last-child { border-radius: 0 0 10px 10px; border-bottom-width: 1px; }
.molly-pp .opt-row:first-child:last-child, .molly-pp-fixed .opt-row:first-child:last-child { border-radius: 10px; }
.molly-pp .opt-row.is-oos, .molly-pp-fixed .opt-row.is-oos { background: #fbf8fa; }
.molly-pp .opt-chip, .molly-pp-fixed .opt-chip, .molly-pp .opt-photo, .molly-pp-fixed .opt-photo {
      width: 72px; height: 72px; border-radius: 8px;
      border: 1px solid rgba(48, 35, 51, 0.12);
      background: var(--chip, #f4f0f2);
      flex-shrink: 0;
      overflow: hidden;
      padding: 0;
    }
.molly-pp .opt-chip, .molly-pp-fixed .opt-chip {
      background-image: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 42%, rgba(0,0,0,.08));
    }
.molly-pp .opt-chip.is-empty, .molly-pp-fixed .opt-chip.is-empty { background-image: none; }
.molly-pp .opt-photo, .molly-pp-fixed .opt-photo { display: block; cursor: zoom-in; background: #faf6f8; }
.molly-pp .opt-photo img, .molly-pp-fixed .opt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.molly-pp .opt-photo:focus-visible, .molly-pp-fixed .opt-photo:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.molly-pp .opt-name, .molly-pp-fixed .opt-name { font-size: calc(0.95rem * var(--molly-fs, 1)); font-weight: 600; line-height: 1.3; }
.molly-pp .opt-sku, .molly-pp-fixed .opt-sku { font-size: calc(0.75rem * var(--molly-fs, 1)); color: var(--soft); }
.molly-pp .opt-price, .molly-pp-fixed .opt-price { font-weight: 600; font-size: calc(0.95rem * var(--molly-fs, 1)); }
.molly-pp .opt-stock, .molly-pp-fixed .opt-stock { font-size: calc(0.82rem * var(--molly-fs, 1)); color: var(--muted); }
.molly-pp .opt-row .qty, .molly-pp-fixed .opt-row .qty { margin-top: 0; }
.molly-pp .opt-row .badge-oos, .molly-pp-fixed .opt-row .badge-oos { margin: 0; }
.molly-pp .opt-meta, .molly-pp-fixed .opt-meta { display: contents; }
.molly-pp .box-compact, .molly-pp-fixed .box-compact { display: none; }
.molly-pp .box-full, .molly-pp-fixed .box-full { display: block; }
.molly-pp .summary, .molly-pp-fixed .summary {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 25;
      background: var(--white);
      border-top: 1px solid var(--line);
      box-shadow: 0 -8px 24px rgba(48, 35, 51, 0.06);
    }
body.molly-has-summary { padding-bottom: 150px; }
.molly-pp .sum-progress, .molly-pp-fixed .sum-progress {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      max-width: var(--max);
      margin: 0 auto;
      padding: 8px 24px 0;
      border: 0;
      background: transparent;
      color: var(--plum);
      text-align: left;
      cursor: pointer;
    }
.molly-pp .sum-progress .progress-bar, .molly-pp-fixed .sum-progress .progress-bar { flex: 1 1 auto; height: 5px; }
.molly-pp .sum-progress-label, .molly-pp-fixed .sum-progress-label {
      flex: 0 0 auto;
      font-size: calc(0.75rem * var(--molly-fs, 1));
      font-weight: 500;
      color: var(--muted);
      white-space: nowrap;
    }
.molly-pp .summary-inner, .molly-pp-fixed .summary-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 8px 24px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
.molly-pp .summary-info, .molly-pp-fixed .summary-info {
      min-width: 0;
      border: 0;
      background: transparent;
      color: inherit;
      text-align: left;
      padding: 0;
      cursor: pointer;
    }
.molly-pp .summary-info:focus-visible, .molly-pp-fixed .summary-info:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.molly-pp .summary-main, .molly-pp-fixed .summary-main {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px 14px;
      font-size: calc(0.92rem * var(--molly-fs, 1));
    }
.molly-pp .summary-main .total, .molly-pp-fixed .summary-main .total {
      font-size: calc(1.2rem * var(--molly-fs, 1));
      font-weight: 700;
      letter-spacing: -0.02em;
    }
.molly-pp .summary-hint, .molly-pp-fixed .summary-hint { display: none; }
.molly-pp .summary .btn-plum, .molly-pp-fixed .summary .btn-plum { flex: 0 0 auto; min-width: 148px; }
.molly-pp .sheet, .molly-pp-fixed .sheet {
      display: none;
      border-bottom: 1px solid var(--line);
      background: var(--cream);
    }
.molly-pp .summary.is-open .sheet, .molly-pp-fixed .summary.is-open .sheet { display: block; }
.molly-pp .sheet-inner, .molly-pp-fixed .sheet-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 12px 24px 14px;
    }
.molly-pp .sheet-head, .molly-pp-fixed .sheet-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: calc(0.92rem * var(--molly-fs, 1));
    }
.molly-pp .sheet-x, .molly-pp-fixed .sheet-x {
      width: 32px; height: 32px; border: 0; background: transparent;
      color: var(--muted); font-size: calc(1.3rem * var(--molly-fs, 1)); border-radius: 8px; line-height: 1;
    }
.molly-pp .sheet-x:hover, .molly-pp-fixed .sheet-x:hover { background: var(--white); color: var(--plum); }
.molly-pp .sheet-rows, .molly-pp-fixed .sheet-rows { display: grid; gap: 6px; }
.molly-pp .sheet-row, .molly-pp-fixed .sheet-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--white);
      border-radius: 8px;
      padding: 8px 12px;
      font-size: calc(0.88rem * var(--molly-fs, 1));
    }
.molly-pp .sheet-row dt, .molly-pp-fixed .sheet-row dt { color: var(--muted); font-weight: 400; }
.molly-pp .sheet-row dd, .molly-pp-fixed .sheet-row dd { font-weight: 600; text-align: right; }
.molly-pp .sheet-row.is-total, .molly-pp-fixed .sheet-row.is-total {
      background: var(--plum);
      color: #fff;
    }
.molly-pp .sheet-row.is-total dt, .molly-pp-fixed .sheet-row.is-total dt { color: rgba(255,255,255,.8); }
.molly-pp .sheet-chip, .molly-pp-fixed .sheet-chip {
      display: inline-block;
      margin-left: 6px;
      background: var(--blush);
      color: var(--plum);
      font-size: calc(0.72rem * var(--molly-fs, 1));
      font-weight: 600;
      padding: 1px 8px;
      border-radius: 999px;
      vertical-align: middle;
    }
.molly-pp .is-total .sheet-chip, .molly-pp-fixed .is-total .sheet-chip { background: rgba(255,255,255,.16); color: #fff; }
.molly-pp .lightbox, .molly-pp-fixed .lightbox {
      border: 0;
      padding: 0;
      background: transparent;
      max-width: min(720px, calc(100% - 32px));
      width: 100%;
      margin: auto;
    }
.molly-pp .lightbox::backdrop, .molly-pp-fixed .lightbox::backdrop { background: rgba(48, 35, 51, 0.72); }
.molly-pp .lightbox-inner, .molly-pp-fixed .lightbox-inner {
      background: var(--white);
      border-radius: 14px;
      padding: 12px 12px 16px;
      position: relative;
    }
.molly-pp .lightbox-x, .molly-pp-fixed .lightbox-x {
      position: absolute; top: 8px; right: 8px;
      width: 36px; height: 36px; border: 0; border-radius: 8px;
      background: rgba(255,255,255,.92); color: var(--plum); font-size: calc(1.4rem * var(--molly-fs, 1)); line-height: 1;
      z-index: 1;
    }
.molly-pp .lightbox-inner img, .molly-pp-fixed .lightbox-inner img {
      width: 100%; height: auto; max-height: 72vh; object-fit: contain;
      border-radius: 8px; background: #faf6f8;
    }
.molly-pp .lightbox-cap, .molly-pp-fixed .lightbox-cap { margin-top: 8px; font-size: calc(0.88rem * var(--molly-fs, 1)); text-align: center; color: var(--muted); }
.molly-pp .toast, .molly-pp-fixed .toast {
      position: fixed;
      left: 50%;
      bottom: 96px;
      transform: translateX(-50%) translateY(8px);
      background: var(--plum);
      color: #fff;
      font-size: calc(0.86rem * var(--molly-fs, 1));
      padding: 10px 16px;
      border-radius: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s, transform .2s;
      z-index: 40;
      max-width: calc(100% - 40px);
      text-align: center;
    }
.molly-pp .toast.is-on, .molly-pp-fixed .toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.molly-pp .toast a, .molly-pp-fixed .toast a { color: #fff; font-weight: 600; text-decoration: underline; }
.molly-pp-fixed .toast { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.molly-pp-fixed .toast.is-on { pointer-events: auto; }
.molly-pp-fixed .toast-bill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; margin-top: 2px;
  background: var(--pink, #FF3B93); color: #fff !important; text-decoration: none !important;
  font-weight: 700; border-radius: 999px; pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.molly-pp .empty-state, .molly-pp-fixed .empty-state { padding: 48px 0; text-align: center; }
.molly-pp .empty-state a, .molly-pp-fixed .empty-state a { color: var(--pink); font-weight: 500; }
@media (max-width: 900px) {
.molly-pp .hero, .molly-pp-fixed .hero { grid-template-columns: 220px 1fr; gap: 20px; }
.molly-pp .hero h1, .molly-pp-fixed .hero h1 { font-size: calc(1.32rem * var(--molly-fs, 1)); }
.molly-pp .swatch-grid, .molly-pp-fixed .swatch-grid { grid-template-columns: repeat(3, 1fr); }
.molly-pp .sum-progress, .molly-pp-fixed .sum-progress, .molly-pp .sheet-inner, .molly-pp-fixed .sheet-inner, .molly-pp .summary-inner, .molly-pp-fixed .summary-inner { padding-left: 16px; padding-right: 16px; }

    
}
@media (max-width: 720px) {
.molly-pp .btn-plum, .molly-pp-fixed .btn-plum { padding: 9px 14px; font-size: calc(0.86rem * var(--molly-fs, 1)); }
.molly-pp .page, .molly-pp-fixed .page { padding: 16px 16px 32px; }
.molly-pp .hero, .molly-pp-fixed .hero {
        grid-template-columns: 88px 1fr;
        gap: 10px 12px;
        margin-bottom: 12px;
      }
.molly-pp .hero-img, .molly-pp-fixed .hero-img { border-radius: 8px; grid-row: 1; aspect-ratio: 1 / 1; }
.molly-pp .hero-copy, .molly-pp-fixed .hero-copy { grid-column: 2; }
.molly-pp .hero-extra, .molly-pp-fixed .hero-extra { grid-column: 1 / -1; }
.molly-pp .tier-table, .molly-pp-fixed .tier-table { max-width: none; font-size: calc(0.8rem * var(--molly-fs, 1)); margin-bottom: 8px; }
.molly-pp .tier-table th, .molly-pp-fixed .tier-table th, .molly-pp .tier-table td, .molly-pp-fixed .tier-table td { padding: 5px 8px; }
.molly-pp .note, .molly-pp-fixed .note, .molly-pp .ship-note, .molly-pp-fixed .ship-note { font-size: calc(0.75rem * var(--molly-fs, 1)); margin-top: 6px; }
.molly-pp .desk-note, .molly-pp-fixed .desk-note { display: none; }
.molly-pp .mobile-note, .molly-pp-fixed .mobile-note { display: block; margin-top: 6px; }
.molly-pp .hero h1, .molly-pp-fixed .hero h1 { font-size: calc(1.12rem * var(--molly-fs, 1)); margin: 2px 0 4px; }
.molly-pp .hero-price, .molly-pp-fixed .hero-price { font-size: calc(1.08rem * var(--molly-fs, 1)); margin-bottom: 8px; }
.molly-pp .swatch-grid, .molly-pp-fixed .swatch-grid { grid-template-columns: repeat(var(--molly-cols-m, 2), 1fr); gap: 8px; }
.molly-pp .swatch-photo, .molly-pp-fixed .swatch-photo, .molly-pp .swatch-chip, .molly-pp-fixed .swatch-chip, .molly-pp .opt-photo, .molly-pp-fixed .opt-photo, .molly-pp .opt-chip, .molly-pp-fixed .opt-chip {
        aspect-ratio: auto;
        height: 100px;
      }
.molly-pp .swatch, .molly-pp-fixed .swatch { padding: 6px 6px 8px; }
.molly-pp .swatch-name, .molly-pp-fixed .swatch-name, .molly-pp .opt-name, .molly-pp-fixed .opt-name { font-size: calc(0.82rem * var(--molly-fs, 1)); }
.molly-pp .swatch-sku, .molly-pp-fixed .swatch-sku { margin: 0 0 2px; }
.molly-pp .swatch-meta, .molly-pp-fixed .swatch-meta { margin-bottom: 6px; }
.molly-pp .section-title, .molly-pp-fixed .section-title { margin: 2px 0 8px; }
.molly-pp .opt-list, .molly-pp-fixed .opt-list { display: grid; grid-template-columns: repeat(var(--molly-cols-m, 2), 1fr); gap: 8px; }
.molly-pp .opt-row, .molly-pp-fixed .opt-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 8px 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
        border-bottom-width: 1px;
      }
.molly-pp .opt-row:first-child, .molly-pp-fixed .opt-row:first-child, .molly-pp .opt-row:last-child, .molly-pp-fixed .opt-row:last-child, .molly-pp .opt-row:first-child:last-child, .molly-pp-fixed .opt-row:first-child:last-child { border-radius: 10px; }
.molly-pp .opt-photo, .molly-pp-fixed .opt-photo, .molly-pp .opt-chip, .molly-pp-fixed .opt-chip { width: 100%; margin-bottom: 8px; }
.molly-pp .opt-price, .molly-pp-fixed .opt-price, .molly-pp .opt-stock, .molly-pp-fixed .opt-stock { grid-column: auto; }
.molly-pp .opt-row .qty, .molly-pp-fixed .opt-row .qty, .molly-pp .opt-row .badge-oos, .molly-pp-fixed .opt-row .badge-oos { grid-column: auto; margin-top: 8px; }
.molly-pp .opt-meta, .molly-pp-fixed .opt-meta {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        font-size: calc(0.78rem * var(--molly-fs, 1));
        margin: 4px 0 0;
      }
.molly-pp .boxes, .molly-pp-fixed .boxes {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        grid-template-columns: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        scrollbar-width: none;
      }
.molly-pp .boxes::-webkit-scrollbar, .molly-pp-fixed .boxes::-webkit-scrollbar { display: none; }
.molly-pp .box-btn, .molly-pp-fixed .box-btn {
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 7px 12px;
        border-radius: 999px;
        white-space: nowrap;
      }
.molly-pp .box-full, .molly-pp-fixed .box-full { display: none; }
.molly-pp .box-compact, .molly-pp-fixed .box-compact { display: inline; font-size: calc(0.78rem * var(--molly-fs, 1)); font-weight: 600; }
.molly-pp .hero .progress, .molly-pp-fixed .hero .progress { display: none; }
.molly-pp .sum-progress, .molly-pp-fixed .sum-progress, .molly-pp .sheet-inner, .molly-pp-fixed .sheet-inner, .molly-pp .summary-inner, .molly-pp-fixed .summary-inner { padding-left: 16px; padding-right: 16px; }
.molly-pp .sum-progress, .molly-pp-fixed .sum-progress { padding-top: 6px; padding-bottom: 0; }
.molly-pp .summary-inner, .molly-pp-fixed .summary-inner { padding-top: 6px; padding-bottom: 10px; gap: 10px; }
.molly-pp .summary .btn-plum, .molly-pp-fixed .summary .btn-plum { min-width: 0; padding: 10px 14px; }
.molly-pp .summary-main, .molly-pp-fixed .summary-main { font-size: calc(1.05rem * var(--molly-fs, 1)); font-weight: 700; gap: 6px; }
.molly-pp .summary-main .total, .molly-pp-fixed .summary-main .total { font-size: calc(1.15rem * var(--molly-fs, 1)); }
.molly-pp .summary-main .total::before, .molly-pp-fixed .summary-main .total::before { content: "· "; }
.molly-pp .summary-main .desk-only, .molly-pp-fixed .summary-main .desk-only { display: none; }

    
}


/* ===== 1.2.0 additions ===== */
/* toast link must be tappable (root cause of "ดูใบสั่ง" doing nothing: pointer-events stayed none) */
.molly-pp-fixed .toast.is-on a, .molly-pp .toast.is-on a { pointer-events: auto; text-decoration: underline; color: #fff; font-weight: 600; }

/* hero image + gallery */
.molly-pp .hero-main { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.molly-pp .hero-img.has-thumbs { aspect-ratio: auto; max-height: none; overflow: visible; border: 0; background: transparent; }
.molly-pp .hero-img.has-thumbs .hero-main { aspect-ratio: 1 / 1; max-height: 220px; background: #faf6f8; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.molly-pp .hero-thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.molly-pp .hero-thumbs::-webkit-scrollbar { display: none; }
.molly-pp .hero-thumb { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #faf6f8; cursor: pointer; }
.molly-pp .hero-thumb.is-on { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.molly-pp .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 4cm rules card */
.molly-pp .rules4 { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.molly-pp .rules4-head { display: inline-block; font-weight: 600; font-size: calc(0.86rem * var(--molly-fs, 1)); color: var(--plum); background: var(--blush); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.molly-pp .rules4-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.molly-pp .rules4 .tier-table, .molly-pp .rules4 .ship-table { width: 100%; max-width: none; margin: 0; border-collapse: collapse; font-size: calc(0.82rem * var(--molly-fs, 1)); }
.molly-pp .rules4 th, .molly-pp .rules4 td { border: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.molly-pp .rules4 th { background: #faf6f8; font-weight: 600; font-size: calc(0.76rem * var(--molly-fs, 1)); color: var(--muted, #6b5f6d); }
.molly-pp .rules4 td + td, .molly-pp .rules4 th + th { text-align: right; white-space: nowrap; }
.molly-pp .rules4 tr:last-child td { border-bottom: 0; }
.molly-pp .rules4 tr.is-on td { background: var(--blush); font-weight: 600; }
.molly-pp .rules4 tr.is-free td:last-child { color: var(--pink); font-weight: 600; }
.molly-pp .rules4-foot { margin: 8px 0 0; font-size: calc(0.76rem * var(--molly-fs, 1)); color: var(--muted, #6b5f6d); }
.molly-pp .rules4-foot::before { content: "* "; color: var(--pink); }
@media (max-width: 720px) {
  .molly-pp .rules4 { padding: 10px; }
  .molly-pp .rules4-tables { gap: 8px; }
  .molly-pp .rules4 th, .molly-pp .rules4 td { padding: 5px 6px; }
}

/* product description below the colour grid */
.molly-pp .pp-desc { margin: 28px 0 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.65; color: var(--plum); font-size: calc(0.92rem * var(--molly-fs, 1)); }
.molly-pp .pp-desc img { height: auto; border-radius: 8px; }
.molly-pp .pp-desc p { margin: 0 0 10px; }

/* pink "สรุปใบสั่งซื้อ" under the add-to-cart row */
.molly-pp-fixed .btn-bill {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; max-width: calc(var(--max, 1100px) - 48px); width: calc(100% - 32px);
  box-sizing: border-box; min-height: 48px; padding: 12px 18px;
  background: var(--pink, #FF3B93); color: #fff !important; text-decoration: none !important;
  font-weight: 700; font-size: calc(1rem * var(--molly-fs, 1)); letter-spacing: 0.01em;
  border-radius: 12px; box-shadow: 0 6px 16px rgba(255, 59, 147, 0.28);
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.molly-pp-fixed .btn-bill[hidden] { display: none; }
.molly-pp-fixed .btn-bill:active { transform: scale(0.985); }
.molly-pp-fixed .btn-bill:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
@media (max-width: 720px) {
  .molly-pp-fixed .btn-bill { width: calc(100% - 24px); margin-bottom: 8px; min-height: 48px; }
}

/* bottom "ดูตะกร้า" button */
.molly-pp-fixed .cartbar { display: flex; align-items: center; gap: 10px; margin: 0 auto 10px; max-width: calc(var(--max, 1100px) - 48px); width: calc(100% - 32px); box-sizing: border-box;
  background: var(--plum); color: #fff !important; text-decoration: none !important; border-radius: 999px; padding: 9px 9px 9px 16px; min-height: 48px;
  box-shadow: 0 6px 18px rgba(48, 35, 51, 0.22); font-weight: 600; font-size: calc(0.92rem * var(--molly-fs, 1)); -webkit-tap-highlight-color: transparent; cursor: pointer; }
.molly-pp-fixed .cartbar[hidden] { display: none; }
.molly-pp-fixed .cartbar:active { transform: scale(0.985); }
.molly-pp-fixed .cartbar:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.molly-pp-fixed .cartbar-icon { display: inline-flex; flex: 0 0 auto; }
.molly-pp-fixed .cartbar-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.molly-pp-fixed .cartbar-pill { flex: 0 0 auto; background: var(--pink); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: calc(0.86rem * var(--molly-fs, 1)); white-space: nowrap; }
.molly-pp-fixed .cartbar.is-bump { animation: molly-bump 0.9s ease 1; }
.molly-pp-fixed .cartbar.is-bump .cartbar-pill { animation: molly-glow 1.6s ease 2; }
@keyframes molly-bump { 0% { transform: translateY(0); } 25% { transform: translateY(-7px); } 45% { transform: translateY(0); } 62% { transform: translateY(-3px); } 80%, 100% { transform: translateY(0); } }
@keyframes molly-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 147, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 59, 147, 0.28); } }
@media (prefers-reduced-motion: reduce) { .molly-pp-fixed .cartbar.is-bump, .molly-pp-fixed .cartbar.is-bump .cartbar-pill { animation: none; } }
body.molly-has-summary.molly-has-cartbar { padding-bottom: 260px; }
@media (max-width: 720px) {
  .molly-pp-fixed .cartbar { width: calc(100% - 24px); margin-bottom: 8px; padding-left: 12px; font-size: calc(0.84rem * var(--molly-fs, 1)); gap: 8px; }
  .molly-pp-fixed .cartbar-pill { padding: 7px 11px; font-size: calc(0.8rem * var(--molly-fs, 1)); }
}
.molly-pp .rules4 td { white-space: nowrap; }
@media (max-width: 720px) {
  .molly-pp .rules4 .tier-table, .molly-pp .rules4 .ship-table { font-size: calc(0.76rem * var(--molly-fs, 1)); }
  .molly-pp .rules4 th { font-size: calc(0.7rem * var(--molly-fs, 1)); padding: 5px; }
  .molly-pp .rules4 td { padding: 6px 5px; }
  .molly-pp .rules4-tables { grid-template-columns: 1.08fr 1fr; gap: 6px; }
}
@media (max-width: 360px) { .molly-pp .rules4-tables { grid-template-columns: 1fr; } }
body.molly-has-cartbar .molly-pp-fixed .toast { bottom: 200px; }
