/* Public special-offer skin. Publisher/admin pages keep their existing stylesheet. */
.so-public {
    --so-ink: #171717;
    --so-muted: #777;
    --so-line: #e8e4ec;
    --so-accent: #713493;
    color: var(--so-ink);
    background: #fff;
}
.so-public .so-public-shell { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.so-public .so-breadcrumbs {
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 auto;
    padding: 18px 0;
    color: var(--so-muted);
    font-size: 13px;
}
.so-public .so-breadcrumbs a { color: var(--so-accent); }
.so-public .so-page > .so-breadcrumbs { width: 100%; padding-top: 0; }
.so-public .so-hero { width: 100%; aspect-ratio: 1983/793; margin: 0; background: #221c19; }
.so-public .so-hero picture { width: 100%; height: 100%; display: block; }
.so-public .so-hero img { width: 100%; height: 100%; display: block; object-fit: contain; }
.so-public .so-collection-title { width: min(1180px, calc(100% - 32px)); margin: 22px auto 0; }
.so-public .so-collection-title h1 { margin: 0; font-size: 24px; line-height: 1.3; }
.so-public .so-collection-title p { margin: 5px 0 0; color: var(--so-muted); font-size: 14px; }
/* Preserve the original nested page/grid widths and image geometry. */
.so-public .so-category-grid,
.so-public .so-products,
.so-public .so-page,
.so-public .so-detail { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.so-public .so-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 28px 0; }
.so-public .so-category-grid a { min-height: 108px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; color: var(--so-ink); background: #faf7fc; border: 1px solid var(--so-line); border-radius: 14px; }
.so-public .so-category-grid b { font-size: 18px; }
.so-public .so-category-grid span { color: var(--so-muted); font-size: 12px; }
.so-public .so-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 10px 0 70px; }
.so-public .so-product-card { min-width: 0; color: inherit; background: #fff; border: 1px solid var(--so-line); border-radius: 14px; overflow: hidden; text-decoration: none; }
.so-public .so-product-image { aspect-ratio: 4/5; display: grid; place-items: center; color: var(--so-muted); background: #f3f2f4; }
.so-public .so-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-public .so-product-copy { display: grid; gap: 5px; padding: 14px; }
.so-public .so-product-copy b { display: -webkit-box; height: 3em; min-height: 3em; line-height: 1.5; overflow: hidden; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.so-public .so-product-copy small { color: var(--so-muted); }
.so-public .so-product-copy strong { margin-top: 5px; color: var(--so-accent); font-size: 18px; }
.so-public .so-page { padding-top: 18px; }
.so-public .so-title-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.so-public .so-title-row small { color: var(--so-accent); font-size: 12px; }
.so-public .so-title-row h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.3; }
.so-public .so-title-row > span { color: var(--so-muted); white-space: nowrap; font-size: 13px; }
.so-public .so-sample-note { display: grid; gap: 3px; margin: 18px 0 8px; padding: 13px 15px; color: #4f4656; background: #faf8fc; border: 1px solid #e9e2ed; border-radius: 12px; }
.so-public .so-sample-note strong { color: #5f3b70; font-size: 14px; }
.so-public .so-sample-note span { font-size: 13px; line-height: 1.55; }
.so-public .so-size-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 9px; padding: 22px 0 14px; }
.so-public .so-size-nav a { min-width: 0; min-height: 44px; display: grid; place-items: center; padding: 8px 14px; color: var(--so-ink); background: #fff; border: 1px solid var(--so-line); border-radius: 999px; text-align: center; }
.so-public .so-size-nav a[aria-current=page] { color: #fff; background: var(--so-accent); border-color: var(--so-accent); }
.so-public .so-empty { grid-column: 1/-1; padding: 54px 20px; color: var(--so-muted); background: #fafafa; border: 1px dashed var(--so-line); border-radius: 14px; text-align: center; }
.so-public .so-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 46px; padding: 18px 0 80px; }
.so-public .so-gallery { min-width: 0; }
.so-public .so-main-image { width: 100%; aspect-ratio: 4/5; display: grid; place-items: center; padding: 0; color: var(--so-muted); background: #f3f2f4; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.so-public .so-main-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.so-public .so-main-image[data-so-swipe] { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.so-public .so-main-image[data-so-swipe] img { -webkit-user-drag: none; }
.so-public .so-thumbs { display: flex; gap: 9px; overflow: auto; padding-top: 12px; }
.so-public .so-thumbs button { width: 74px; height: 88px; flex: 0 0 auto; padding: 0; background: #fff; border: 2px solid transparent; border-radius: 9px; overflow: hidden; }
.so-public .so-thumbs button[aria-current=true] { border-color: var(--so-accent); }
.so-public .so-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-public .so-detail-copy { padding-top: 30px; }
.so-public .so-detail-copy > small { color: var(--so-muted); letter-spacing: .12em; }
.so-public .so-detail-copy h1 { margin: 10px 0 16px; font-size: clamp(26px, 4vw, 38px); line-height: 1.3; }
.so-public .so-price { color: var(--so-accent); font-size: 26px; font-weight: 800; }
.so-public .so-size { font-weight: 700; }
.so-public .so-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; color: var(--so-ink); background: #fff; border: 1px solid var(--so-line); border-radius: 10px; font-weight: 750; text-decoration: none; cursor: pointer; }
.so-public .so-button-primary { color: #fff; background: var(--so-accent); border-color: var(--so-accent); }
.so-public .so-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 50px; }
.so-public .so-pagination > span { font-size: 13px; color: var(--so-muted); }
.so-public .so-category-grid a:active,
.so-public .so-size-nav a:active { background: #eee3f4; color: #54216f; }
.so-entrance { margin: 0 0 26px; }
.so-entrance h2 { margin: 0 0 14px; font-size: 18px; font-weight: 750; }
.so-entrance .so-entrance-card { display: block; overflow: hidden; border: 1px solid #e8e4ec; border-radius: 14px; background: #faf7fc; color: #713493; }
.so-entrance .so-entrance-card picture { display: block; }
.so-entrance .so-entrance-card img { display: block; width: 100%; height: auto; aspect-ratio: 1983/793; object-fit: contain; }
.so-entrance .so-entrance-card > span { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-size: 14px; }
.so-entrance .so-entrance-card:active { background: #eee3f4; }
@media (max-width: 820px) {
    .so-public .so-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .so-public .so-category-grid { grid-template-columns: repeat(2, 1fr); }
    .so-public .so-detail { grid-template-columns: 1fr; gap: 12px; }
    .so-public .so-detail-copy { padding-top: 8px; }
}
@media (max-width: 520px) {
    .so-public .so-category-grid,
    .so-public .so-products,
    .so-public .so-page,
    .so-public .so-detail { width: min(100% - 20px, 1180px); }
    .so-public .so-category-grid { gap: 8px; padding: 14px 0; }
    .so-public .so-category-grid a { min-height: 88px; }
    .so-public .so-products { padding-bottom: 45px; }
    .so-public .so-product-copy { padding: 10px; }
    .so-public .so-product-copy b { font-size: 14px; }
    .so-public .so-size-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
