/* SafeShelf test shops: one stylesheet, three fictional storefronts (body.skin-kaimono, .skin-haatbox, .skin-megadealz24)
   and the home page (body.home). Product pages are a grid on <body> so the guide stays a sibling of <main>: the
   extension reads only the product block, never the guide. */
:root {
  --ink: #16202b; --muted: #5d6874; --line: #e2e6eb; --soft: #f3f5f8; --bg: #ffffff; --page: #f6f7f9;
  --ss-navy: #001123; --ss-blue: #0271e4; --ss-blue-pale: #e8f2fd;
  --red: #c62828; --red-bg: #fdecec; --amber: #9a5b00; --amber-bg: #fff3dc; --green: #1e7a3c; --green-bg: #e6f5eb; --unknown: #4f5b67; --unknown-bg: #eceff2;
  --brand: #0d5c63; --brand-ink: #fff; --accent: #ff8a00; --accent-ink: #1a1200; --cart: #ffd54a; --cart-ink: #1a1200; --price: #b12704;
  --radius: 12px; --gutter: max(16px, calc((100vw - 1200px) / 2));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
a { color: var(--ss-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ss-blue); outline-offset: 2px; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the prompt-injection test (MegaDealz24 only): off screen for shoppers, still in the page for any AI reading it */
.offscreen { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- skins ---- */
.skin-kaimono { --brand: #1f2a56; --accent: #e2462b; --accent-ink: #fff; --cart: #f7c948; --price: #c2272d; }
.skin-haatbox { --brand: #0d5c63; --accent: #ff8a00; --accent-ink: #1a1200; --cart: #ffd54a; --price: #b12704; }
.skin-megadealz24 { --brand: #d1001f; --accent: #ffe600; --accent-ink: #2a0006; --cart: #ffe600; --price: #d1001f; }

/* ---- SafeShelf test strip ---- */
.testbar { grid-column: 1 / -1; background: var(--ss-navy); color: #dbe7f5; font-size: 13px; }
.tb-in { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px var(--gutter); }
.tb-in .ss-mark { width: 20px; height: 20px; flex: none; }
.tb-in p { margin: 0; flex: 1 1 320px; } .tb-in p b { color: #fff; font-weight: 600; margin-right: 6px; }
.tb-in nav { display: flex; gap: 16px; } .tb-in nav a { color: #9cc8ff; text-decoration: none; } .tb-in nav a:hover { text-decoration: underline; }

/* ---- shop header ---- */
.shopbar { grid-column: 1 / -1; background: var(--brand); color: var(--brand-ink); }
.sb-in { display: flex; align-items: center; gap: 12px 20px; padding: 12px var(--gutter); flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.logo small { display: block; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .08em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; background: var(--accent); position: relative; }
.skin-kaimono .logo-mark { border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 30px var(--accent); }
.skin-haatbox .logo-mark { border-radius: 8px 8px 14px 14px; background: linear-gradient(var(--accent) 0 40%, #ffb347 40%); }
.skin-megadealz24 .logo-mark { transform: rotate(-8deg); background: var(--accent); box-shadow: 3px 3px 0 #2a0006; }
.skin-megadealz24 .logo { font-style: italic; font-weight: 800; text-transform: uppercase; }
.search { flex: 1 1 280px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 10px 12px; font: inherit; color: var(--ink); }
.search button { border: 0; border-radius: 0 8px 8px 0; padding: 0 16px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.cart { font-weight: 600; white-space: nowrap; } .cart b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.sb-tag { padding: 6px var(--gutter); background: rgba(0, 0, 0, .18); font-size: 12.5px; letter-spacing: .02em; }
.skin-megadealz24 .sb-tag { background: var(--accent); color: #2a0006; font-weight: 800; text-align: center; letter-spacing: .08em; animation: mdz-flash 1.2s steps(2) infinite; }
@keyframes mdz-flash { 50% { background: #fff; } }

/* ---- product page layout: a grid on body ---- */
body[class^="skin-"] { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); align-content: start; }
body[class^="skin-"] > .crumbs, body[class^="skin-"] > main, body[class^="skin-"] > .guide, body[class^="skin-"] > .reviews { grid-column: 2; }
body[class^="skin-"] > .foot { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  body[class^="skin-"] { grid-template-columns: var(--gutter) minmax(0, 1fr) 340px var(--gutter); column-gap: 0; }
  body[class^="skin-"] > .crumbs { grid-column: 2 / 4; }
  body[class^="skin-"] > main { grid-column: 2; grid-row: 4; }
  body[class^="skin-"] > .reviews { grid-column: 2; grid-row: 5; }
  body[class^="skin-"] > .guide { grid-column: 3; grid-row: 4 / span 2; margin-left: 24px; align-self: start; position: sticky; top: 16px; }
}
.crumbs { padding: 14px 0 10px; font-size: 13px; color: var(--muted); }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; background: var(--bg); border-radius: var(--radius); padding: 20px; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 720px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; padding: 24px; } .specs-box { grid-column: 1 / -1; } }
.gallery { display: grid; gap: 10px; align-content: start; }
.shot { margin: 0; display: none; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fbfcfd; }
.shot.on { display: block; } .shot svg { display: block; width: 100%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.thumb { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.thumb svg { display: block; width: 64px; height: auto; } .thumb.on { box-shadow: 0 0 0 2px var(--brand); }
.info { min-width: 0; }
.brand { font-size: 13.5px; color: var(--brand); text-decoration: none; } .brand:hover { text-decoration: underline; }
.info h1 { margin: 4px 0 6px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rating { margin: 0 0 12px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stars { color: #e08a00; letter-spacing: 1px; } .rating a { color: var(--ss-blue); text-decoration: none; }
.urgency { display: grid; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff4f4; box-shadow: inset 0 0 0 2px var(--brand); color: var(--brand); font-size: 13.5px; }
.urgency b { font-size: 15px; letter-spacing: .02em; }
.buybox { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 14px; }
.mrp { margin: 0; color: var(--muted); font-size: 13.5px; } .mrp .off { color: var(--price); font-size: 20px; font-weight: 600; margin-right: 6px; }
.price { margin: 2px 0 0; font-size: 30px; font-weight: 600; color: var(--price); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tax, .delivery, .seller { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.delivery { color: var(--green); margin-top: 8px; } .skin-megadealz24 .delivery { color: var(--brand); font-weight: 600; }
.seller #seller { color: var(--ink); font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btns button { flex: 1 1 140px; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.b-cart { background: var(--cart); color: var(--cart-ink); } .b-buy { background: var(--accent); color: var(--accent-ink); }
.skin-megadealz24 .b-buy { background: var(--brand); color: #fff; animation: mdz-pulse 1.4s ease-in-out infinite; }
@keyframes mdz-pulse { 50% { transform: scale(1.03); } }
.about-h { font-size: 15px; margin: 0 0 6px; } .about { margin: 0; padding-left: 20px; } .about li { margin: 3px 0; }
.specs-box h2 { font-size: 16px; margin: 0 0 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; background: var(--soft); }

.reviews { margin: 16px 0 0; background: var(--bg); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 0 0 1px var(--line); }
.reviews h2 { font-size: 18px; margin: 0 0 8px; }
.review { padding: 12px 0; border-top: 1px solid var(--line); } .review:first-of-type { border-top: 0; }
.r-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.review strong { display: block; margin: 4px 0 2px; } .review p { margin: 0; }
.reviews .none { margin: 0; color: var(--muted); }

/* ---- the guide ---- */
.guide { margin: 16px 0 0; padding: 20px; border-radius: var(--radius); background: var(--ss-navy); color: #dbe7f5; font-size: 14px; }
@media (min-width: 1000px) { .guide { margin-top: 0; } }
.guide a { color: #9cc8ff; }
.g-kicker { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8fb0d6; }
.guide h2 { margin: 2px 0 12px; font-size: 19px; color: #fff; font-weight: 600; }
.g-steps { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: g; display: grid; gap: 10px; }
.g-steps li { counter-increment: g; position: relative; padding-left: 34px; }
.g-steps li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ss-blue); color: #fff; font-size: 13px; font-weight: 600; }
.g-steps b { color: #fff; font-weight: 600; }
.g-check { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--ss-blue); color: #fff; }
.g-point { color: #9cc8ff; font-weight: 700; animation: g-nudge 1.6s ease-in-out infinite; display: inline-block; }
@keyframes g-nudge { 50% { transform: translateX(4px); } }
.g-expect { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--tone-bg); color: var(--tone); }
.g-expect span { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; } .g-expect b { font-size: 15px; font-weight: 600; }
.tone-red { --tone: var(--red); --tone-bg: var(--red-bg); } .tone-amber { --tone: var(--amber); --tone-bg: var(--amber-bg); }
.tone-green { --tone: var(--green); --tone-bg: var(--green-bg); } .tone-unknown { --tone: var(--unknown); --tone-bg: var(--unknown-bg); }
.g-what { margin: 12px 0 0; } .g-what b { color: #fff; font-weight: 600; }
.g-more { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px; }
.g-more summary { cursor: pointer; color: #fff; } .g-more p { margin: 8px 0 0; } .g-more code { font-size: 12px; overflow-wrap: anywhere; color: #cfe2f8; }
.g-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.g-nav a { display: grid; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; font-size: 13px; line-height: 1.3; }
.g-nav a:hover { background: rgba(255, 255, 255, .14); } .g-nav a[rel="next"] { text-align: right; }
.g-nav small { color: #8fb0d6; font-size: 11.5px; }

.foot { margin-top: 32px; padding: 20px var(--gutter) 28px; background: #e9edf1; color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 6px; max-width: 900px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; z-index: 10; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: var(--ss-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 17, 35, .3); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- home page ---- */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #0b3a7a 0, transparent 60%), var(--ss-navy); color: #fff; }
.hero-in { padding: 48px var(--gutter) 40px; max-width: calc(860px + 2 * var(--gutter)); }
.kicker { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fb0d6; }
.hero h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.lede { margin: 0; color: #c7d6e8; font-size: 16.5px; max-width: 70ch; }
.home-main { padding: 0 var(--gutter); }
.howto { margin: -20px 0 28px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 17, 35, .08); position: relative; }
.howto h2 { margin: 0 0 14px; font-size: 20px; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ways li { display: flex; gap: 12px; } .ways h3 { margin: 2px 0 4px; font-size: 15.5px; } .ways p { margin: 0; color: var(--muted); }
.w-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ss-blue-pale); color: var(--ss-blue); font-weight: 700; }
.howto-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 14px; }
.shopgroup { margin: 0 0 28px; } .shopgroup > header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.shopgroup h2 { margin: 0; font-size: 19px; } .shopgroup header p { margin: 0; color: var(--muted); font-size: 13.5px; }
.sg-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pcard { position: relative; display: grid; gap: 2px; height: 100%; padding: 12px 12px 14px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 0 0 1.5px var(--ss-blue), 0 12px 28px rgba(2, 113, 228, .12); transform: translateY(-2px); }
.pc-art { display: block; border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: #fbfcfd; } .pc-art svg { display: block; width: 100%; height: auto; }
.pc-n { position: absolute; top: 18px; left: 18px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.pcard b { font-size: 15px; font-weight: 600; } .pcard small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.pc-price { font-weight: 600; margin-top: 4px; }
.pc-exp { justify-self: start; margin-top: 8px; padding: 3px 9px; border-radius: 8px; background: var(--tone-bg); color: var(--tone); font-size: 12.5px; }
.realshops { margin: 8px 0 0; padding: 20px 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.realshops h2 { margin: 0 0 4px; font-size: 17px; } .realshops p { margin: 0; color: var(--muted); }
.rs-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.rs-links a { padding: 6px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: 14px; } .rs-links a:hover { background: var(--ss-blue-pale); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
