/* 294C: the remaining buyer surfaces use the J30 homepage visual language.
   This layer is deliberately additive: data fetching, copy and page layout contracts stay in
   their existing modules while the shell gets one calm violet canvas, predictable cards and
   responsive touch targets at every audit width. */
:root {
  --audit-canvas: #f8f6ff;
  --audit-ink: #24183f;
  --audit-muted: #6b6280;
  --audit-line: #e8e1f5;
  --audit-card: #fff;
  --audit-shadow: 0 14px 38px rgba(38, 24, 75, .08);
}

html body:is(.i7-shop-body, .page-260-product, .rest268-cart, .rest268-account, .coming-page) {
  min-width: 320px;
  background: radial-gradient(circle at 8% 0%, rgba(255,255,255,.95), transparent 34rem), var(--audit-canvas);
  color: var(--audit-ink);
  overflow-x: clip;
}

/* All function pages begin with the same quiet vertical rhythm below J30's dark bar. */
html body:is(.page-260-product, .rest268-cart, .rest268-account, .coming-page) main[data-page] {
  max-width: 1200px;
  margin-inline: auto;
}
html body:is(.page-260-product, .rest268-cart, .rest268-account, .coming-page) :is(h1,h2,h3,p,button,input,select,textarea) {
  font-family: var(--roan-font-sans) !important;
}
html body:is(.page-260-product, .rest268-cart, .rest268-account, .coming-page) :is(button,.btn,.roan-btn,a.btn) {
  border-radius: var(--roan-button-radius, 999px);
  font-weight: var(--roan-button-weight, 600);
}

/* Shop: keep the catalogue's existing source-backed grid, but give it the page-head and card
   proportions used by the homepage. */
body.i7-shop-body .i7-shop-page { max-width: 1368px; margin-inline: auto; padding: 0 28px 64px; }
body.i7-shop-body .i7-shop { margin-top: 32px; gap: 32px; }
body.i7-shop-body .i7-shop-rail { border-color: var(--audit-line); box-shadow: var(--audit-shadow); }
body.i7-shop-body .i7-shop-main { min-width: 0; }
body.i7-shop-body .i7-shop-title { color: var(--audit-ink); font-weight: 600; letter-spacing: -.02em; }
body.i7-shop-body .i7-shop-count { color: var(--audit-muted); }
body.i7-shop-body .i7-card { border-color: var(--audit-line); border-radius: 20px; box-shadow: 0 5px 18px rgba(38,24,75,.04); }
body.i7-shop-body .i7-card:hover { box-shadow: var(--audit-shadow); }
body.i7-shop-body .i7-card-media { border-radius: 16px; background: linear-gradient(145deg,#f6f1ff,#fbf8ff); }
body.i7-shop-body .i7-card-name { font-weight: 500; }
body.i7-shop-body .i7-card-price b { color: var(--roan-violet-700, #5b35c5); font-weight: 600; }
body.i7-shop-body .i7-shop-tabs .i7-tab[aria-pressed="true"] { background: var(--roan-grad-primary); border-color: transparent; color: #fff; }

/* Product and bag: one readable page head and elevated content groups. */
body.page-260-product main[data-page="product"], body.rest268-cart main[data-page="cart"] {
  padding: 36px 28px 72px;
}
body.page-260-product main[data-page="product"] .product { max-width: 1120px; margin-inline: auto; }
body.page-260-product main[data-page="product"] .info h1 { font-weight: 600 !important; letter-spacing: -.025em; }
body.page-260-product main[data-page="product"] .buy-box,
body.rest268-cart main[data-page="cart"] .sheet-page {
  border: 1px solid var(--audit-line); border-radius: 24px; background: rgba(255,255,255,.86); box-shadow: var(--audit-shadow);
}
body.rest268-cart main[data-page="cart"] .sheet-page { padding: 28px; max-width: 920px; margin-inline: auto; }
body.rest268-cart main[data-page="cart"] .sheet-page > h1 { margin-top: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.035em; }
body.rest268-cart .bag-line { border-color: var(--audit-line); }
body.rest268-cart #checkout { margin-top: 28px; padding: 24px; border: 1px solid var(--audit-line); border-radius: 20px; background: #fff; }
body.rest268-cart .checkout-link, body.rest268-cart #pay { background: var(--roan-button-gradient); color: #fff; border: 0; box-shadow: var(--roan-button-shadow); }

/* Coming rooms: portrait and details read as a single editorial card. */
body.coming-page main[data-page="coming"] { max-width: none; padding: 0; }
body.coming-page .coming-room { max-width: 1200px; margin: 0 auto; padding: 48px 28px 80px; gap: 40px; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); }
body.coming-page .coming-portrait { border: 1px solid var(--audit-line); border-radius: 24px; box-shadow: var(--audit-shadow); background: linear-gradient(145deg,#f0eaff,#fff); }
body.coming-page .coming-detail { padding: 12px 0; }
body.coming-page .coming-detail h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -.035em; }
body.coming-page .coming-host-category { color: var(--roan-violet-700, #5b35c5); font-weight: 600; }
body.coming-page .coming-intro { color: #514665; }
body.coming-page .reminder-form, body.coming-page .coming-products { padding: 24px; border: 1px solid var(--audit-line); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: var(--audit-shadow); }
body.coming-page .reminder-form { margin-block: 28px; }
body.coming-page .reminder-control input { border-color: #d9cfee; border-radius: 14px; }
body.coming-page .reminder-control button, body.coming-page .coming-watch { background: var(--roan-button-gradient); box-shadow: var(--roan-button-shadow); }
body.coming-page .coming-products ul { display: grid; gap: 8px; }
body.coming-page .coming-product { padding: 12px; border: 1px solid #f0ebf8; border-radius: 14px; background: #fff; }
body.coming-page .coming-product img { border-radius: 12px; background: #f7f3ff; }
body.coming-page .coming-product h3 { font-weight: 500; }
body.coming-page .coming-product strong { color: var(--roan-violet-700, #5b35c5); font-weight: 600; }

/* Live room's visible document title. It is outside the stage so it remains available to screen
   readers and to the seven-width visual audit without changing player geometry. */
body.watch .room-page-title { position: absolute; left: 20px; top: 74px; z-index: 4; margin: 0; color: rgba(255,255,255,.92); font: 600 18px/1.3 var(--roan-font-sans); }

@media (max-width: 760px) {
  body.i7-shop-body .i7-shop-page, body.page-260-product main[data-page="product"], body.rest268-cart main[data-page="cart"] { padding-inline: 16px; }
  body.i7-shop-body .i7-shop { margin-top: 20px; }
  body.rest268-cart main[data-page="cart"] .sheet-page { padding: 20px 16px; border-radius: 20px; }
  body.rest268-cart #checkout { padding: 18px 14px; border-radius: 18px; }
  body.coming-page .coming-room { display: grid; grid-template-columns: 1fr; max-width: 620px; padding: 28px 16px 52px; gap: 24px; }
  body.coming-page .coming-portrait { position: relative; top: auto; max-height: 68vh; aspect-ratio: 3 / 4; }
  body.coming-page .coming-detail { padding: 0; }
  body.coming-page .reminder-form, body.coming-page .coming-products { padding: 18px; border-radius: 18px; }
  body.coming-page .reminder-control { flex-direction: column; }
  body.coming-page .reminder-control button { width: 100%; }
  body.watch .room-page-title { left: 16px; top: 64px; max-width: calc(100% - 100px); font-size: 15px; }
}

@media (min-width: 761px) and (max-width: 1150px) {
  body.i7-shop-body .i7-shop-page, body.page-260-product main[data-page="product"], body.rest268-cart main[data-page="cart"] { padding-inline: 24px; }
  body.coming-page .coming-room { grid-template-columns: minmax(240px, 36%) minmax(0,1fr); padding-inline: 24px; }
}
