/* RoutineX · แผ่นสรุป feature (bento)
   ใช้ร่วมกัน: ท้ายห้อง A B C D (คู่กับ room.css) และแถบสรุป 4 ห้องท้ายหน้าแรก (คู่กับ recap.css)
   ทุกกฎอยู่ใต้ .rx-bento เพราะหน้าแรกมี class .bx ของภาพกล่องอยู่แล้ว
   ตาราง 12 ช่อง ภาพสินค้าอยู่กลาง ช่องเล็กรอบ ๆ บอกทีละเรื่อง มือถือเหลือ 2 ช่อง ภาพสินค้าขึ้นก่อน
   ขนาดช่อง: --w กว้างกี่ช่อง (จอกว้าง) · --mw กว้างกี่ช่อง (มือถือ 1 หรือ 2) */
.rx-bento{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:minmax(136px,auto);gap:12px;margin-top:26px}
:where(.rx-bento) .bx{position:relative;grid-column:span var(--w,3);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:16px;border-radius:24px;overflow:hidden;isolation:isolate;text-align:center;background:#fff;color:rgb(var(--rx-ink,27 23 20));border:1px solid rgb(var(--rx-ink,27 23 20) / .07);box-shadow:0 14px 30px -26px rgb(60 30 10 / .7)}
:where(.rx-bento) .bx b{font-size:clamp(19px,2.3vw,30px);line-height:1.18;font-weight:700;letter-spacing:-.01em;text-wrap:balance}
:where(.rx-bento) .bx span{font-size:clamp(13px,1.2vw,15.5px);font-weight:600;line-height:1.4;text-wrap:balance}
:where(.rx-bento) .bx small{font-size:11.5px;font-weight:600;line-height:1.45;color:rgb(var(--rx-ink,27 23 20) / .6);text-wrap:balance}
:where(.rx-bento) .bx--num b{font-size:clamp(38px,5.4vw,68px);line-height:1;color:rgb(var(--accent-rgb,200 92 52));font-variant-numeric:tabular-nums}
:where(.rx-bento) .bx--dark{background:#15120f;color:#f7eee2;border-color:transparent}
:where(.rx-bento) .bx--dark small{color:#f7eee2b0}
:where(.rx-bento) .bx--accent{background:rgb(var(--accent-rgb,200 92 52));color:#fff;border-color:transparent}
:where(.rx-bento) .bx--accent small{color:#ffffffd0}
:where(.rx-bento) .bx--img{justify-content:flex-end;color:#fff;background:#141110;border-color:transparent;text-shadow:0 1px 3px rgb(0 0 0 / .5),0 2px 16px rgb(0 0 0 / .6);padding-bottom:14px}
:where(.rx-bento) .bx--img>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--op,50% 50%);transition:transform 1.2s var(--rx-ease,cubic-bezier(.2,.8,.2,1))}
:where(.rx-bento) .bx--img::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0000 28%,#000000a8 100%)}
:where(.rx-bento) .bx--img small{color:#ffffffd6}
:where(.rx-bento) .bx--img:hover>img{transform:scale(1.05)}
/* ช่องสีล้วน (--tint พื้น · --tc ตัวอักษร) และช่องตัวเลขที่มีภาพเป็นพื้น */
:where(.rx-bento) .bx--tint{background:var(--tint);color:var(--tc,#fff);border-color:transparent}
:where(.rx-bento) .bx--tint small{color:inherit;opacity:.82}
:where(.rx-bento) .bx--tint.bx--num b,:where(.rx-bento) .bx--img.bx--num b{color:inherit}
:where(.rx-bento) .bx--img.bx--num b{font-size:clamp(36px,4.6vw,58px)}
:where(.rx-bento) .bx--img.bx--num::before{background:linear-gradient(180deg,#0000000d 0%,#00000099 100%)}
:where(.rx-bento) .bx--pic{justify-content:flex-start;gap:6px;padding-top:15px}
:where(.rx-bento) .bx--pic>img{flex:1 1 0;min-height:0;width:auto;max-width:100%;object-fit:contain;margin-top:4px;border-radius:10px}
:where(.rx-bento) .bx--hero{grid-column:4 / span 6;grid-row:2 / span 2;justify-content:flex-end;gap:2px;padding:20px 20px 18px;background:var(--bx-hero,linear-gradient(160deg,#fff,#f0e6d6))}
:where(.rx-bento) .bx--hero>img{flex:1 1 0;min-height:0;width:auto;max-width:82%;object-fit:contain;margin-bottom:10px;border-radius:var(--bx-r,12px);filter:drop-shadow(0 24px 26px rgb(60 30 10 / .36));transition:transform .9s var(--rx-ease,cubic-bezier(.2,.8,.2,1))}
:where(.rx-bento) .bx--hero:hover>img{transform:translateY(-6px) rotate(-2deg)}
:where(.rx-bento) .bx--hero b{font-size:clamp(24px,3vw,40px)}
.rx-bento+.rx-fine{margin-top:16px}
@media (max-width:760px){
  .rx-bento{grid-template-columns:repeat(2,1fr);grid-auto-rows:minmax(112px,auto);gap:10px}
  :where(.rx-bento) .bx{grid-column:span var(--mw,1);border-radius:20px;padding:14px 12px}
  :where(.rx-bento) .bx--hero{order:-1;grid-column:1 / -1;grid-row:auto;min-height:300px}
  :where(.rx-bento) .bx--hero>img{max-height:210px}
  :where(.rx-bento) .bx--img{min-height:132px}
}
