/* AFIKA v5: product rail and choices in a compact dialog. */
.section-customer:has(.market-home){background:#f6f7f6}
.section-customer .market-home{max-width:1180px}
.market-home .market-search{border-radius:12px;box-shadow:0 2px 9px #263b3020}
.market-home .market-card{border-radius:12px;box-shadow:0 2px 8px #17271b0d}
.market-home .market-card-photo{height:154px}
.market-home .market-card-photo img{transition:transform .2s}
.market-home .market-card:hover img{transform:scale(1.035)}
.market-home .market-more{display:block;width:auto;margin:13px 0 0 auto;padding:8px 12px;background:transparent;border:0;font-size:.8rem}
.market-home .market-disclaimer{margin-bottom:14px}
.market-picked{display:flex;align-items:center;gap:11px;grid-column:1/-1;padding:9px;border:1px solid #e4e9e2;border-radius:10px;background:#fafbf9}
.market-picked[hidden]{display:none!important}
.market-picked>img{width:66px;height:62px;flex:none;object-fit:cover;border-radius:7px}
.market-picked>span{display:grid;min-width:0;gap:1px}.market-picked small{color:#6f8073;font-size:.64rem;letter-spacing:.05em;font-weight:800}.market-picked b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.9rem}.market-picked strong{font-size:.78rem;color:#267344}
.market-dialog-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.18fr;gap:9px;margin-top:9px}.market-dialog-actions .schedule-apply{grid-column:auto;margin:0;background:#eef4ee;color:#276741}.market-dialog-actions .btn{min-height:45px}
.catalog-dialog{box-sizing:border-box;width:min(840px,calc(100% - 28px));max-height:min(88dvh,860px);padding:0;border:1px solid #dfe8e0;border-radius:16px;box-shadow:0 22px 65px #17291e40;background:#fff;color:#243528}.catalog-dialog::backdrop{background:#142518a8}
.catalog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 21px;border-bottom:1px solid #e5eae3;background:#fff}.catalog-head small{font-size:.65rem;color:#4b8355;font-weight:850;letter-spacing:.1em}.catalog-head h2{margin:2px 0 0;font-size:1.2rem}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 20px 24px}.catalog-grid .market-card{min-width:0}.catalog-grid .market-card-photo{height:140px}
@media(max-width:780px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .section-customer .market-home{padding:8px 0 96px;overflow:hidden}
  .market-home .market-search,.market-home .market-tabs,.market-home .market-result-heading,.market-home .market-schedule,.market-home .market-heading,.market-home .market-more,.market-home .market-disclaimer{margin-left:15px;margin-right:15px}
  .market-home .market-tabs{margin-top:8px}
  .market-home .market-panel{margin-top:14px}
  .market-home .market-heading{margin-bottom:11px}
  .market-home .market-heading h1{font-size:1.08rem}
  .market-home .market-grid{display:flex;gap:10px;overflow-x:auto;padding:2px 15px 10px;scroll-padding:15px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:none}
  .market-home .market-grid::-webkit-scrollbar{display:none}
  .market-home .market-card{display:flex!important;flex:0 0 min(57vw,224px);scroll-snap-align:start;min-height:220px}
  .market-home .market-card-photo{height:auto;aspect-ratio:1.62}
  .market-home .market-card-copy{min-height:94px}
  .market-home .market-empty{min-width:calc(100vw - 30px)}
  .market-home .market-more{margin-top:3px;margin-left:auto;text-align:right;padding:6px 13px}
  .market-home .market-disclaimer{margin-top:4px;font-size:.62rem}
  .market-home .schedule-dialog,.market-home .catalog-dialog{width:100%;max-width:none;max-height:calc(88dvh - env(safe-area-inset-bottom));margin:auto 0 0;border:0;border-radius:18px 18px 0 0}
  .market-home .catalog-dialog{padding-bottom:env(safe-area-inset-bottom)}
  .catalog-head{padding:16px}
  .catalog-grid{gap:9px;padding:12px 14px 20px}
  .catalog-grid .market-card{display:flex!important;min-height:0;flex:auto}
  .catalog-grid .market-card-photo{height:auto;aspect-ratio:1.55}
  .market-dialog-actions{position:sticky;bottom:0;z-index:2;margin:4px -17px -18px;padding:12px 17px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e9eee8}
  .market-picked{margin-bottom:1px}
}
@media(max-width:375px){.market-home .market-card{flex-basis:65vw}.market-dialog-actions{grid-template-columns:1fr 1fr}.market-dialog-actions .btn{font-size:.72rem;padding:8px}.market-dialog-actions .schedule-apply{font-size:.72rem}}
