/* The Store interface: on top of the HR lab's look (.hr), the CRM's (.crm) and the Gym's (gym/gym.css, .gym), scoped to .store. */

.store .num { font-variant-numeric: tabular-nums; text-align: right; }
.store .note.bad { color: var(--red); font-weight: 600; }
.store .muted { color: var(--secondary); }
.store .link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.store .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.store .actions select { font: inherit; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--label); }
.store .banner-actions { display: flex; gap: 6px; margin-left: auto; }
.store .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.store .file .stats, .store .file .actions + .stats { margin-top: 18px; }

/* A product's picture: its photo, or its category's icon on the category's colour */
.store .thumb { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--c, #2f9e8f), color-mix(in srgb, var(--c, #2f9e8f) 62%, #000)); }
.store .thumb img { width: 100%; height: 100%; object-fit: cover; }
.store .thumb .i { width: 52%; height: 52%; }
.store .thumb.sm { width: 32px; height: 32px; border-radius: 9px; }
.store .thumb.md { width: 40px; height: 40px; }
.store .thumb.lg { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.store .thumb.xl { width: 72px; height: 72px; border-radius: 18px; }
.store .row-btn .thumb { margin-right: 2px; }

/* The order's lines */
.store .rows.lines .wide { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.store .rows.lines .wide small { display: block; color: var(--secondary); font-size: 12.5px; margin-top: 2px; }
.store .rows.lines .line.off { opacity: 0.5; }
.store .rows.lines .line.off b { text-decoration: line-through; }
.store .rows.lines .total { border-top: 1px solid var(--hairline); }
.store .pay-now { display: flex; gap: 8px; align-items: center; }
.store .pay-now select { font: inherit; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--label); }
.store .row-btn.due { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: color-mix(in srgb, var(--orange) 8%, transparent); }
.store .row-btn.due > div { flex: 1; min-width: 0; }

/* Sell: a counter. The shelf on the left, the basket on the right */
.store .pos { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; min-height: calc(100vh - 60px); }
.store .pos-shelf { padding: 18px 22px 40px; overflow: auto; }
.store .pos-top { display: grid; gap: 12px; margin-bottom: 16px; }
.store .seg.shops { display: flex; flex-wrap: wrap; gap: 6px; }
.store .seg.shops button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); color: var(--label); font: inherit; font-size: 13.5px; cursor: pointer; }
.store .seg.shops button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.store .seg.shops .i { width: 16px; height: 16px; }
.store .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.store .shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.store .product { position: relative; display: grid; gap: 4px; align-content: start; justify-items: start; padding: 12px; border-radius: 16px; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--label); font: inherit; text-align: left; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.store .product:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.25); }
.store .product:active { transform: scale(0.98); }
.store .product .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; margin-bottom: 4px; }
.store .product b { font-size: 13.5px; line-height: 1.25; }
.store .product small { color: var(--secondary); font-size: 11.5px; }
.store .product .price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.store .product .kind { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; }
.store .product .kind .i { width: 14px; height: 14px; }
.store .product.out { opacity: 0.45; cursor: not-allowed; }
.store .pos-basket { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-left: 1px solid var(--hairline); background: var(--surface); overflow: auto; }
.store .basket-head { display: flex; justify-content: space-between; align-items: center; }
.store .basket-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.store .basket-head h2 small { color: var(--secondary); font-weight: 500; font-size: 13px; }
.store .basket-lines { display: grid; gap: 8px; }
.store .bl { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.store .bl b { display: block; font-size: 13.5px; }
.store .bl small { display: block; color: var(--secondary); font-size: 11.5px; }
.store .qty { display: inline-flex; align-items: center; gap: 4px; }
.store .qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--label); font: inherit; cursor: pointer; }
.store .qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.store .basket-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.store .basket-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.store .basket-go .btn.big { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* The guest app: a phone beside what it is */
.store .guest-wrap { display: grid; grid-template-columns: minmax(0, 340px) auto; gap: 40px; align-items: start; justify-content: center; padding: 10px 0 40px; }
.store .guest-side h1 { margin-top: 0; }
.store .phone { width: 390px; height: 800px; padding: 14px; border-radius: 54px; background: #111; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #333; }
.store .phone-screen { height: 100%; overflow: auto; border-radius: 42px; padding: 26px 16px 110px; background: #f6f4f1; color: #1d1b19; position: relative; }
.store .ph-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.store .ph-top b { font-size: 20px; letter-spacing: -0.02em; }
.store .ph-top span { font-size: 13px; color: #6b6660; }
.store .ph-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.store .ph-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: inherit; }
.store .ph-cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.store .ph-cats button { flex: none; display: grid; justify-items: center; gap: 4px; width: 70px; padding: 8px 4px; border: 0; border-radius: 14px; background: #fff; color: #1d1b19; font: inherit; font-size: 11px; cursor: pointer; }
.store .ph-cats button.on { background: #1d1b19; color: #fff; }
.store .ph-cats .i { width: 20px; height: 20px; }
.store .phone-screen h3 { margin: 16px 0 8px; font-size: 16px; }
.store .ph-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; }
.store .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store .gp { display: grid; gap: 3px; align-content: start; padding: 8px; border: 0; border-radius: 16px; background: #fff; color: #1d1b19; font: inherit; text-align: left; cursor: pointer; }
.store .gp b { font-size: 13px; line-height: 1.25; }
.store .gp span { font-weight: 700; }
.store .gp small { font-size: 11px; color: #6b6660; }
.store .ph-orders { display: grid; gap: 6px; }
.store .ph-orders div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; font-size: 12.5px; }
.store .ph-orders span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store .ph-cart { position: sticky; bottom: -96px; margin: 16px -4px 0; display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: #1d1b19; color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.store .ph-cart > div { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; opacity: 0.85; }
.store .ph-cart .btn.primary { justify-content: center; }
.store .ph-cart .btn.plain { color: #fff; opacity: 0.7; }

/* New listing: fields by kind */
.store .listing-form .only-stock, .store .listing-form .not-stock, .store .listing-form .only-service, .store .listing-form .not-item { display: none; }
.store .listing-form[data-kind="stock"] .only-stock { display: grid; }
.store .listing-form:not([data-kind="stock"]) .not-stock, .store .listing-form:not([data-kind="stock"]) .not-item { display: grid; }
.store .listing-form[data-kind="service"] .only-service { display: grid; }

@media (max-width: 900px) {
  .store .pos { grid-template-columns: 1fr; }
  .store .pos-basket { border-left: 0; border-top: 1px solid var(--hairline); }
  .store .guest-wrap { grid-template-columns: 1fr; justify-items: center; }
  .store .phone { width: min(390px, 100%); height: 720px; }
}
