/* Mobile product card: one layout for the gallery, actions and seller. */
@media (max-width: 1023px) {
  .design-product-head { width:100%;min-width:0;height:auto;min-height:60px;margin:0 0 16px;padding:8px 0;gap:12px;box-sizing:border-box; }
  .design-product-head>a:first-child { flex:0 0 32px;width:32px;height:40px; }
  .design-product-head>a:last-child { min-width:0;align-items:center;gap:10px; }
  .design-product-head>a:last-child>span { min-width:0; }
  .design-product-head img { flex:0 0 40px;width:40px;height:40px;object-fit:cover;border-radius:10px; }
  .design-product-head b { display:block;font-size:16px;line-height:22px;overflow-wrap:anywhere; }
  .design-product-head small { font-size:13px;line-height:18px; }
  .sp[data-sp] { width:100%;min-width:0;max-width:100%;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));box-sizing:border-box; }
  .sp[data-sp] *, .sp[data-sp] *::before, .sp[data-sp] *::after { box-sizing:border-box; }
  .sp[data-sp] .sp-top { display:flex;flex-direction:column;gap:20px;min-width:0; }
  .sp[data-sp] .sp-gal { width:100%;min-width:0;max-width:100%;margin:0; }
  .sp[data-sp] .sp-main { position:relative;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;border-radius:16px;overflow:hidden;animation:none;background:var(--bg-soft-2,#1e212b); }
  .sp[data-sp] .sp-main img { display:block;position:static;width:100%;height:auto;max-height:min(70vh,560px);max-width:100%;aspect-ratio:auto;object-fit:contain;object-position:center; }
  .sp[data-sp] .sp-thumbs { margin-top:10px;padding:0;gap:8px; }
  .sp[data-sp] .sp-side { display:flex;flex-direction:column;gap:14px;width:100%;min-width:0; }
  .sp[data-sp] .sp-side>h1 { order:1;margin:0;padding:0;font-size:19px;line-height:27px;font-weight:600;overflow-wrap:anywhere; }
  .sp[data-sp] .sp-price { order:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:40px;width:100%;min-width:0; }
  .sp[data-sp] .sp-price>b { font-size:26px;line-height:34px;white-space:nowrap; }
  .sp[data-sp] .sp-price::after { width:40px;height:40px;min-width:40px;min-height:40px;max-height:40px;aspect-ratio:1;border-radius:50%;padding:0;flex:0 0 40px; }
  .sp[data-sp] .sp-stock, .sp[data-sp] .sp-badges { order:2; }
  .sp[data-sp] .sp-actions { order:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;width:100%;margin:2px 0 0; }
  .sp[data-sp] .sp-actions>.sp-buy, .sp[data-sp] .sp-actions>.sp-msg { display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;height:56px;min-height:56px;max-height:none;margin:0;padding:8px 10px;border-radius:12px;font-size:14px;font-weight:700;line-height:18px;text-align:center;text-decoration:none;white-space:normal;word-break:normal;overflow-wrap:normal; }
  .sp[data-sp] .sp-actions svg { width:20px;height:20px;flex:0 0 20px; }
  .sp[data-sp] .sp-actions>button::before, .sp[data-sp] .sp-actions>a::before { width:20px;height:20px;flex:0 0 20px; }
  .sp[data-sp] .sp-seller { order:4;display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin:4px 0 0;padding:16px;border:1px solid var(--border,#30333d);border-radius:16px;background:var(--bg-soft-2,#1e212b); }
  .sp[data-sp] .sp-ava { display:grid;place-items:center;position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:50%;overflow:hidden; }
  .sp[data-sp] .sp-ava>img { display:block;width:100%;height:100%;object-fit:cover; }
  .sp[data-sp] .sp-ava>svg { display:block;width:24px;height:24px; }
  .sp[data-sp] .sp-seller>div { min-width:0; }
  .sp[data-sp] .sp-seller b { margin:0;font-size:15px;line-height:22px;overflow-wrap:anywhere; }
  .sp[data-sp] .sp-rate { display:flex;flex-wrap:wrap;gap:4px 7px;margin-top:3px;font-size:12px;line-height:18px; }
  .sp[data-sp] .sp-safe { order:5;margin:2px 0 0; }
  .sp[data-sp] .design-transfer { order:2; }
  .sp[data-sp] .sp-sec { margin-top:28px;padding:0;min-width:0; }
  .sp[data-sp] .sp-sec h2 { margin:0 0 12px;font-size:22px;line-height:29px; }
  .sp[data-sp] .sp-desc { margin:0;font-size:15px;line-height:24px;overflow-wrap:anywhere; }
}
@media(max-width:359px) {
  .sp[data-sp] .sp-actions { grid-template-columns:minmax(0,1fr); }
  .sp[data-sp] .sp-actions>.sp-buy, .sp[data-sp] .sp-actions>.sp-msg { height:48px;min-height:48px; }
}
