/* ncllc-storefront — storefront (non-checkout) styles. The storefront theme is light-only; these
   follow it. Brand coral #f88379 with white text is 2.4:1 — too faint to read — so buttons use the
   darker coral below: white on #c2493f is 4.9:1 (WCAG AA). */
:root {
  --ncllc-sf-cta: #c2493f;
  --ncllc-sf-cta-hover: #a93d34;
  --ncllc-sf-cta-text: #ffffff;
  --ncllc-sf-bar-h: 64px;
}

/* ── The product page's sticky add bar (card https://trello.com/c/hKyzYysp), phones only ── */
.ncllc-sf-bar[hidden] { display: none; }
.ncllc-sf-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--ncllc-sf-bar-h);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #ffffff; color: #1d1d1f;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.ncllc-sf-bar__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ncllc-sf-bar__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncllc-sf-bar__price { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncllc-sf-bar__price del { opacity: 0.7; margin-right: 4px; }
.ncllc-sf-bar__price ins { text-decoration: none; }
.ncllc-sf-bar__btn {
  flex: 0 0 auto; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 6px;
  background: var(--ncllc-sf-cta); color: var(--ncllc-sf-cta-text);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.ncllc-sf-bar__btn:hover { background: var(--ncllc-sf-cta-hover); }
.ncllc-sf-bar__btn:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 2px; }
/* Nothing hides behind the bar, and the side cart's floating bubble rides above it. */
body.ncllc-sf-bar-on { padding-bottom: calc(var(--ncllc-sf-bar-h) + env(safe-area-inset-bottom)); }
body.ncllc-sf-bar-on #fkcart-floating-toggler { transform: translateY(calc(-1 * var(--ncllc-sf-bar-h))); }
@media (min-width: 769px) { .ncllc-sf-bar { display: none !important; } }

/* ── Quick add (card https://trello.com/c/4XoyldYp) ──────────────────────────────────────────── */
/* The theme shows a product card's button only on mouse HOVER (over the photo). A phone has no hover,
   so "You may also like" and category cards had no button at all: on touch screens it is shown, under
   the card, full width. Desktop keeps the theme's hover. */
@media (hover: none) {
  .woocommerce ul.products li.product .button.add_to_cart_button {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
    margin: 8px 0 0; box-sizing: border-box; font-size: 14px !important;
    /* !important: the store's Additional CSS colours these buttons #f88379 (white on it reads 2.4:1). */
    background: var(--ncllc-sf-cta) !important; border-color: var(--ncllc-sf-cta) !important; color: var(--ncllc-sf-cta-text) !important;
  }
}

html.ncllc-sf-qa-open { overflow: hidden; }
.ncllc-sf-qa { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.ncllc-sf-qa__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.ncllc-sf-qa__sheet {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; box-sizing: border-box;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0;
  background: #ffffff; color: #1d1d1f; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}
@media (min-width: 600px) {
  .ncllc-sf-qa { align-items: center; }
  .ncllc-sf-qa__sheet { border-radius: 14px; padding-bottom: 20px; }
}
.ncllc-sf-qa__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: transparent; color: #1d1d1f; font-size: 28px; line-height: 1; cursor: pointer;
}
.ncllc-sf-qa__close:focus-visible, .ncllc-sf-qa__opt:focus-visible, .ncllc-sf-qa__step:focus-visible, .ncllc-sf-qa__add:focus-visible { outline: 3px solid #1d1d1f; outline-offset: 2px; }
.ncllc-sf-qa__body { display: flex; flex-direction: column; gap: 14px; }
.ncllc-sf-qa__loading { margin: 24px 0; text-align: center; }
.ncllc-sf-qa__head { display: flex; gap: 12px; align-items: center; padding-right: 40px; }
.ncllc-sf-qa__img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ncllc-sf-qa__titles { min-width: 0; }
.ncllc-sf-qa__name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ncllc-sf-qa__price { margin: 4px 0 0; font-size: 16px; }
.ncllc-sf-qa__price del { opacity: 0.7; margin-right: 4px; }
.ncllc-sf-qa__price ins { text-decoration: none; }
.ncllc-sf-qa__group { display: flex; flex-direction: column; gap: 8px; }
.ncllc-sf-qa__label { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.ncllc-sf-qa__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ncllc-sf-qa__opt {
  min-height: 44px; padding: 8px 14px; border: 1px solid #8a8a8a; border-radius: 22px; background: #ffffff;
  color: #1d1d1f; font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; text-align: center;
}
.ncllc-sf-qa__opt.is-on { border-color: var(--ncllc-sf-cta); background: var(--ncllc-sf-cta); color: var(--ncllc-sf-cta-text); }
.ncllc-sf-qa__opt:disabled { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.ncllc-sf-qa__foot { display: flex; gap: 12px; align-items: center; }
.ncllc-sf-qa__qty { display: flex; align-items: center; border: 1px solid #8a8a8a; border-radius: 8px; flex: 0 0 auto; }
.ncllc-sf-qa__step { width: 44px; height: 44px; border: 0; background: transparent; color: #1d1d1f; font-size: 20px; cursor: pointer; }
.ncllc-sf-qa__step:disabled { opacity: 0.35; cursor: not-allowed; }
.ncllc-sf-qa__count { min-width: 28px; text-align: center; font-weight: 600; }
.ncllc-sf-qa__add {
  flex: 1 1 auto; min-height: 48px; border: 0; border-radius: 8px; background: var(--ncllc-sf-cta);
  color: var(--ncllc-sf-cta-text); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.ncllc-sf-qa__add:hover { background: var(--ncllc-sf-cta-hover); }
.ncllc-sf-qa__add:disabled { background: #8a8a8a; cursor: not-allowed; }
.ncllc-sf-qa__error { margin: 0; color: #b3261e; font-size: 15px; }
.ncllc-sf-qa__error:empty { display: none; }
.ncllc-sf-qa__more { align-self: center; color: #1d1d1f; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* ── The menu tables (wc-product-table-lite), same card ─────────────────────────────────────────── */
/* "Add": the checkout's readable coral, white, no link underline, a real tap target. */
.wcpt-table .wcpt-button.wcpt-button-cart_ajax {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px !important;
  border-radius: 6px !important; border-color: var(--ncllc-sf-cta) !important;
  background: var(--ncllc-sf-cta) !important; color: var(--ncllc-sf-cta-text) !important; text-decoration: none !important;
}
.wcpt-table .wcpt-button.wcpt-button-cart_ajax * { color: inherit !important; fill: currentColor; text-decoration: none !important; }
.wcpt-table .wcpt-button.wcpt-button-cart_ajax:hover { background: var(--ncllc-sf-cta-hover) !important; }
@media (max-width: 768px) {
  /* The "Image | Details" header: an 80 px column broke "Image" mid-word, and the rows say it anyway.
     On phones the table is in its list view, which shows the row with
     `.wcpt-list-view:not(.wcpt-list-view--calc) :is(.wcpt-row, .wcpt-heading-row) { display: flex }`
     — three classes: the second selector here has four. */
  .wcpt-table .wcpt-heading-row,
  .wcpt.wcpt-list-view .wcpt-table .wcpt-heading-row { display: none; }
  /* Descriptions: 3 lines (the product's page has the rest), so the price and Add stay in view. */
  .wcpt-table .wcpt-excerpt {
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
  .wcpt-table .wcpt-excerpt p { display: inline; margin: 0; }
  .wcpt-table .wcpt-excerpt p::after { content: " "; }
}
