/* Bisro for supermarkets: a floor-plan page. Headline row, then a top-down store plan on tiled floor (aisles as long
   shelves, checkout and entrance) beside the chosen aisle's shelf; checkout as a numbered lane; staff and margins. */
.sm-hero { padding-top: 124px; padding-bottom: clamp(50px, 8vh, 90px) }
.sm-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5vw; align-items: end; margin-bottom: 34px }
.sm-hero .h-xl { font-size: clamp(36px, 4.4vw, 64px); max-width: 14ch } .sm-head .lead { margin-top: 0 }

.plan { border-radius: 18px; border: 1px solid var(--border); background: #fff; padding: 16px; box-shadow: 0 50px 90px -60px rgba(31,35,40,.5) }
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 2px 4px 14px; font-weight: 600; font-size: 15px } .pl-bar .tag { margin: 0 }
.pl-sum { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: #FDECEC; color: var(--red); font-weight: 700; font-size: 13.5px }
.pl-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px }
.floor { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr auto; gap: 14px; padding: 18px 18px 14px; border-radius: 12px;
  background: #F1F4F8 repeating-conic-gradient(#E7ECF3 0 25%, #F1F4F8 0 50%) 0 0 / 34px 34px; min-height: 380px }
.aisle { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 250px; padding: 14px 10px; border-radius: 8px;
  background: repeating-linear-gradient(0deg, #fff 0 22px, #E3EAF3 22px 24px); border: 2px solid #C9D6E6; text-align: center; transition: border-color .15s, transform .1s, box-shadow .15s }
.aisle b { font-size: 14px; color: var(--ink); background: #fff; padding: 4px 2px; border-radius: 6px; line-height: 1.25 }
.aisle span { font-size: 12.5px; font-weight: 700; color: #0B6B50; background: #fff; padding: 4px 2px; border-radius: 6px }
.aisle.has-low { border-color: #F2A9A9 } .aisle.has-low span { color: var(--red) }
.aisle.has-low::after { content: ""; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(186,26,26,.18) }
.aisle:hover { border-color: #7DB9EA } .aisle:active { transform: scale(.98) }
.aisle[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,35,40,.12) }
.aisle:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px }
.counter { grid-column: 1 / 4; display: grid; place-items: center; padding: 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px }
.door { grid-column: 4 / 6; display: grid; place-items: center; border: 2px dashed #A3ACB7; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 13px }
.shelf-p { padding: 16px; border-radius: 12px; background: #F7FAFD; border: 1px solid var(--border) } .shelf-p[hidden] { display: none }
.sp-h { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.01em }
.shelf-p ul { list-style: none; margin: 0 0 12px; padding: 0 }
.shelf-p li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14.5px }
.shelf-p li b { font-size: 14.5px } .shelf-p li small { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px }
.shelf-p li.low span, .shelf-p li.low b { color: var(--red) }
.shelf-p a { color: var(--link); font-weight: 700; font-size: 14.5px; text-decoration: none } .shelf-p a:hover { text-decoration: underline }
.plan .eg { margin: 12px 4px 0 }

/* checkout lane */
.sm-checkout { background: linear-gradient(180deg, var(--bg), #EAF4FD 25%, #EAF4FD 75%, var(--bg)) }
.co-lane { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative }
.co-lane::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 99px; background: repeating-linear-gradient(90deg, #0B1B2E 0 18px, #23384F 18px 36px); opacity: .85 }
.co-lane li { position: relative; padding-top: 50px }
.co-n { position: absolute; top: 4px; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--ink); font-weight: 800; box-shadow: 0 0 0 5px #EAF4FD }
.co-lane b { font-size: 19px } .co-lane p { margin: 6px 0 0; color: var(--muted) }
.co-link { margin-top: 24px } .co-link a { color: var(--link); font-weight: 700; text-decoration: none } .co-link a:hover { text-decoration: underline }

/* staff and margins */
.sm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px }
.tw-c { padding: 28px; border-radius: 18px; border: 1px solid var(--border); background: #fff }
.tw-vault { background: #1B2027; color: #fff; border-color: #1B2027; box-shadow: inset 0 0 0 1.5px rgba(201,162,39,.5) }
.tw-c h3 { margin: 0 0 8px; font: 800 26px/1.15 var(--font); letter-spacing: -0.02em } .tw-vault h3 { color: #F3D879 }
.tw-c p { margin: 0 0 14px; color: var(--muted) } .tw-vault p { color: #C8CED6 }
.tw-c ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px } .tw-vault ul { color: #E2E8F0 }
.tw-c a { color: var(--link); font-weight: 700; text-decoration: none } .tw-vault a { color: #F3D879 } .tw-c a:hover { text-decoration: underline }

@media (max-width: 980px) {
  .sm-hero { padding-top: 104px } .sm-head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 24px }
  .plan { padding: 10px } .pl-sum { margin-left: 0 }
  .pl-body { grid-template-columns: minmax(0, 1fr) }
  .floor { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px; min-height: 0 }
  .aisle { min-height: 170px; padding: 8px 3px } .aisle b { font-size: 11px } .aisle span { font-size: 10px }
  .counter, .door { font-size: 11.5px; padding: 8px }
  .co-lane { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 26px } .co-lane::before { display: none }
  .sm-two { grid-template-columns: minmax(0, 1fr) } .tw-c { padding: 20px }
}
@media (prefers-reduced-motion: reduce) { .aisle { transition: none } }
