/* Tumble Kitchen shared shop styles (linked by menu, dish and account pages). */
/* Shared with the dish/account pages; tk- prefixed and global so it also
       reaches DOM the client script builds with innerHTML. */
    .tk-shell { --tk-gold: #d99a1b; --tk-gold-soft: #f4e3bd; padding-bottom: 72px; }
    .tk-hero .reveal { opacity: 1; transform: none; }
    .tk-hero .inner-kicker { font-size: 14px; line-height: 1.5; letter-spacing: .08em; }
    :root[data-theme='dark'] .tk-shell { --tk-gold: #e6b64a; --tk-gold-soft: #3a3016; }
    .tk-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
    .tk-hero-dish { width: min(320px, 34vw); height: auto; filter: drop-shadow(0 20px 34px rgba(8, 34, 42, 0.28)); }
    .tk-hero-links { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 10px; }
    .tk-hero-links a { color: var(--teal); }
    @media (max-width: 820px) { .tk-hero-grid { grid-template-columns: 1fr; } .tk-hero-dish { width: min(300px, 72vw); justify-self: center; } }
    .tk-game-link { color: var(--teal); }
    .tk-lede { max-width: 56ch; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
    .tk-lede a { color: var(--teal); }
    .tk-note, .tk-rules { margin: 10px 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 16px; line-height: 1.65; }
    .tk-note-reset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; }
    .tk-note-reset p { margin: 0; }
    .tk-reset-practice { min-height: 44px; border: 1px solid var(--teal); border-radius: 999px; padding: 10px 16px; background: transparent; color: var(--teal); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap; }
    .tk-reset-practice:hover, .tk-reset-practice:focus-visible { background: var(--teal); color: var(--on-accent); }
    .tk-reset-status { grid-column: 1 / -1; color: var(--teal); font-size: 15px; line-height: 1.5; }
    .tk-rules { margin-bottom: 22px; }
    .tk-rules summary { cursor: pointer; font-weight: 700; color: var(--ink); }
    .tk-rules ul { margin: 10px 0 2px; padding-left: 20px; } .tk-rules li { margin: 4px 0; }
    .tk-grid { display: grid; grid-template-columns: 1fr 358px; gap: 28px; align-items: start; }
    .tk-grid > * { min-width: 0; }
    @media (max-width: 860px) { .tk-grid { grid-template-columns: 1fr; } }

    .tk-search { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
    .tk-search label, .tk-field label, .tk-discount label, .tk-filter-field label { display: block; font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
    .tk-field input, .tk-field select, .tk-search input, .tk-discount input, .tk-filter-field input, .tk-filter-field select {
      width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 16px;
      transition: border-color var(--t-fast, .15s), box-shadow var(--t-fast, .15s); }
    .tk-field input:focus, .tk-field select:focus, .tk-search input:focus, .tk-discount input:focus, .tk-filter-field input:focus, .tk-filter-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
    .tk-search-row { display: flex; gap: 10px; } .tk-search-row input { flex: 1; min-width: 0; }
    button { cursor: pointer; }
    .tk-search-row button, .tk-signin button, .tk-checkout, .tk-checkout-form button[type='submit'] { min-height: 44px; padding: 11px 20px; border: 0; border-radius: var(--r-pill, 999px); background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: var(--on-accent, #fff); font-weight: 700; font-size: 15.5px; transition: filter var(--t-fast, .15s); }
    .tk-search-row button:hover, .tk-checkout:hover { filter: brightness(1.06); }
    .tk-signin [data-testid='my-usual'] { background: transparent; border: 1px solid var(--teal); color: var(--teal); }

    .tk-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .tk-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill, 999px); }
    .tk-tab { min-height: 42px; padding: 9px 15px; border: 0; border-radius: var(--r-pill, 999px); background: transparent; color: var(--ink-2); font-weight: 700; font-size: 15px; transition: background var(--t-fast, .15s), color var(--t-fast, .15s); }
    .tk-tab[aria-pressed='true'] { background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm, 0 1px 3px rgba(8,34,42,.12)); }
    .tk-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); font-weight: 700; }
    .tk-sort select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 16px; }
    .tk-filters { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; background: var(--surface); }
    .tk-filters summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16px; padding: 3px 0; }
    .tk-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 12px 0 8px; align-items: end; }
    .tk-filter-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--ink-2); }
    .tk-clear { min-height: 40px; border: 0; background: transparent; color: var(--teal); font-weight: 700; font-size: 15px; text-decoration: underline; padding: 4px 0; }

    .tk-status { color: var(--ink-2); font-size: 15px; line-height: 1.5; font-weight: 700; margin: 0 0 14px; }
    .tk-products { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
    .tk-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; transition: transform var(--t-fast, .15s), box-shadow var(--t-fast, .15s), border-color var(--t-fast, .15s); }
    .tk-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lg, 0 16px 40px rgba(8, 34, 42, .14)); }
    .tk-card-media { position: relative; align-self: stretch; display: grid; place-items: center; padding: 10px 0 6px; border-radius: 14px; background: radial-gradient(60% 60% at 50% 42%, var(--surface-2), transparent 72%); }
    .tk-card-media img { width: 66%; max-width: 168px; height: auto; filter: drop-shadow(0 10px 16px rgba(8, 34, 42, .18)); transition: transform var(--t-fast, .15s); }
    .tk-card:hover .tk-card-media img { transform: scale(1.04) rotate(-1deg); }
    .tk-badge { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill, 999px); }
    .tk-badge-seasonal { background: var(--teal); color: var(--on-accent, #fff); }
    .tk-fav { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: #c9756f; font-size: 17px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow-sm, 0 1px 3px rgba(8,34,42,.12)); }
    .tk-fav.on { color: #d64f45; border-color: #e7b7b2; }
    .tk-card h3 { font-size: 18px; line-height: 1.35; margin: 0; } .tk-card h3 a { color: var(--ink); text-decoration: none; } .tk-card h3 a:hover { color: var(--teal); }
    .tk-soldout .tk-card-media img { filter: grayscale(.7) opacity(.65); }
    .tk-rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-2); }
    .tk-avgstars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: var(--line-2); white-space: nowrap; }
    .tk-avgstars-on { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--tk-gold); }
    .tk-avg { font-weight: 800; color: var(--ink); font-size: 14px; } .tk-rcount::before { content: '· '; } .tk-rcount { color: var(--ink-2); }
    .tk-desc { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0; flex: 1; }
    .tk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
    .tk-price { color: var(--ink); font-weight: 800; font-size: 15.5px; margin: 0; }
    .tk-card-foot button { min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--teal); border-radius: var(--r-pill, 999px); background: transparent; color: var(--teal); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background var(--t-fast, .15s), color var(--t-fast, .15s); }
    .tk-card-foot button:hover:not([disabled]) { background: var(--teal); color: var(--on-accent, #fff); }
    .tk-card-foot button[disabled] { border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; }

    .tk-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px 0 6px; }
    .tk-pager button { padding: 9px 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill, 999px); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; }
    .tk-pager button:hover:not([disabled]) { border-color: var(--teal); color: var(--teal); }
    .tk-pager button[disabled] { opacity: .4; cursor: not-allowed; }
    .tk-pageinfo { font-size: 14px; color: var(--ink-2); font-weight: 600; }

    .tk-signin { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 26px; }
    .tk-signin h2 { font-size: 19px; margin: 0 0 12px; }
    .tk-signin-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
    .tk-account-link { color: var(--teal); font-weight: 600; font-size: 14px; }
    .tk-field { margin-bottom: 12px; }
    .tk-error { color: #b3423a; font-size: 14px; margin: 4px 0 10px; }
    .tk-success { color: var(--teal); font-size: 14px; margin: 4px 0 10px; }

    .tk-cart { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; position: sticky; top: 90px; box-shadow: var(--shadow-md, 0 10px 30px rgba(8, 34, 42, .10)); }
    .tk-cart h2 { font-size: 20px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
    .tk-count { background: var(--teal); color: var(--on-accent, #fff); border-radius: 999px; font-size: 13px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-weight: 700; }
    .tk-cart-items { list-style: none; margin: 0 0 16px; padding: 0; }
    .tk-cart-items:empty::after { content: 'Your order is empty. Add a dish to get started.'; display: block; color: var(--ink-2); font-size: 16px; line-height: 1.55; padding: 6px 0 12px; }
    .tk-cart-items li { font-size: 16px; color: var(--ink-2); padding: 12px 0; border-bottom: 1px solid var(--line); }
    .tk-cart-items li:first-child { padding-top: 2px; }
    .tk-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
    .tk-line-name { color: var(--ink); font-weight: 700; } .tk-line-price { white-space: nowrap; font-weight: 700; color: var(--ink); }
    .tk-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .tk-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: var(--r-pill, 999px); padding: 3px; }
    .tk-qty { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1; }
    .tk-qty:hover:not([disabled]) { background: var(--surface); color: var(--teal); } .tk-qty[disabled] { opacity: .35; cursor: not-allowed; }
    .tk-qty-num { min-width: 22px; text-align: center; font-weight: 800; color: var(--ink); }
    .tk-remove { min-height: 38px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; padding: 6px 2px; } .tk-remove:hover { color: #b3423a; text-decoration: underline; }
    .tk-method { border: 0; padding: 0; margin: 0 0 16px; }
    .tk-method legend { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
    .tk-method-track { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
    .tk-method label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 15.5px; line-height: 1.45; font-weight: 600; color: var(--ink-2); }
    .tk-method label::before { content: ''; width: 15px; height: 15px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); }
    .tk-method input { position: absolute; opacity: 0; pointer-events: none; }
    .tk-method label:has(input:checked) { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm, 0 1px 3px rgba(8,34,42,.12)); }
    .tk-method label:has(input:checked)::before { border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--teal); }
    .tk-totals { margin: 0 0 16px; }
    .tk-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--ink-2); padding: 5px 0; }
    .tk-totals dd { margin: 0; white-space: nowrap; }
    .tk-grand { font-weight: 800; color: var(--ink); font-size: 17px; border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 10px; }
    .tk-discount { margin-bottom: 16px; }
    .tk-hint { font-size: 13px; color: var(--teal); font-weight: 600; margin: 8px 0 0; min-height: 1em; }
    .tk-checkout { width: 100%; padding: 13px 20px; font-size: 15px; }
    .tk-checkout-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
    .tk-checkout-form h3 { margin: 0 0 14px; font-size: 17px; }
    .tk-checkout-form button[type='submit'] { width: 100%; margin-top: 4px; }
    .tk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .tk-confirm { margin-top: 16px; border: 1px solid var(--teal); border-radius: 14px; padding: 16px 18px; background: linear-gradient(160deg, var(--teal-soft), var(--surface-2)); }
    .tk-confirm h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); } .tk-confirm p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); } .tk-confirm a { color: var(--teal); }
    @media (max-width: 700px) {
      .tk-hero { padding-top: calc(var(--header-h) + 44px); }
      .tk-note-reset { grid-template-columns: 1fr; }
      .tk-reset-practice { width: 100%; }
      .tk-search-row { flex-direction: column; }
      .tk-search-row button { width: 100%; }
      .tk-card-foot { align-items: flex-end; }
    }
