/* Customer ordering portal (shop). Phone first; app-like on phones (bottom tabs, floating cart), roomy on desktop. */
@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/inter-latin-wght-normal.8e433c0592f7.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --p-brand: #4f2bea;
  --p-brand-ink: #2b1494;
  --p-brand-soft: #efebff;
  --p-brand-glow: rgba(79, 43, 234, .28);
  --p-accent: #ff7a1a;
  --p-accent-soft: #fff1e6;
  --p-bg: #f5f6fa;
  --p-surface: #fff;
  --p-sunken: #f1f2f7;
  --p-line: #e9ebf2;
  --p-text: #0f1222;
  --p-muted: #6a7085;
  --p-ok: #0a7d4f;
  --p-ok-soft: #e6f6ee;
  --p-low: #b45309;
  --p-low-soft: #fff4e0;
  --p-out: #c0262d;
  --p-out-soft: #fdecec;
  --p-radius: 18px;
  --p-radius-sm: 12px;
  --p-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --p-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 10px 30px -12px rgba(16, 24, 40, .16);
  --p-shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .35);
  --p-tabbar-h: 64px;
  --p-max: 1240px;
}

/* ---------------------------------------------------------------- base */
body.portal {
  background: var(--p-bg);
  color: var(--p-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
body.portal a { color: var(--p-brand); }
body.portal h1, body.portal h2, body.portal h3 { letter-spacing: -.02em; }
.p-main { max-width: var(--p-max); margin: 0 auto; padding: 20px 20px 48px; }
.p-muted { color: var(--p-muted); font-size: 13px; }
.p-problem { color: var(--p-out); font-size: 13px; font-weight: 500; }
.p-card { background: var(--p-surface); border-radius: var(--p-radius); padding: 18px; box-shadow: var(--p-shadow-sm); border: 1px solid var(--p-line); }
.p-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--p-brand-soft); color: var(--p-brand); letter-spacing: .01em; vertical-align: middle; }

/* Buttons */
.p-btn, .p-btn-light, .p-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 650; font-size: 15px;
  text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; cursor: pointer;
}
.p-btn { background: var(--p-brand); color: #fff !important; box-shadow: 0 8px 20px -8px var(--p-brand-glow); }
.p-btn:hover { background: var(--p-brand-ink); }
.p-btn:active, .p-btn-light:active { transform: scale(.97); }
.p-btn:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.p-btn-light { background: var(--p-brand-soft); color: var(--p-brand) !important; }
.p-btn-light:hover { background: #e3dcff; }
.p-btn-ghost { background: transparent; color: var(--p-muted) !important; }
.p-btn-lg { padding: 15px 24px; font-size: 16px; }

/* Forms */
body.portal .form-control, body.portal .form-select { border-radius: var(--p-radius-sm); border-color: var(--p-line); padding: 11px 14px; background-color: var(--p-surface); }
body.portal .form-control:focus, body.portal .form-select:focus { border-color: var(--p-brand); box-shadow: 0 0 0 4px var(--p-brand-soft); }
body.portal label { font-size: 13px; font-weight: 600; color: var(--p-muted); margin: 14px 0 6px; display: block; }

/* ---------------------------------------------------------------- header */
.p-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(15, 18, 34, .06); }
.p-top-row { display: flex; align-items: center; gap: 16px; max-width: var(--p-max); margin: 0 auto; padding: 12px 20px; }
.p-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--p-text) !important; font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.p-logo img { height: 38px; width: auto; border-radius: 10px; }
.p-logo-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, var(--p-brand), #8b5cf6); box-shadow: 0 6px 16px -6px var(--p-brand-glow); }
.p-search { position: relative; flex: 1; min-width: 0; display: flex; }
.p-search .bi-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--p-muted); pointer-events: none; }
.p-search input { width: 100%; border: 1px solid transparent; background: var(--p-sunken); border-radius: 999px; padding: 12px 52px 12px 44px; font-size: 15px; transition: background .15s, border-color .15s, box-shadow .15s; }
.p-search input:focus { outline: 0; background: #fff; border-color: var(--p-brand); box-shadow: 0 0 0 4px var(--p-brand-soft); }
.p-scan-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 0; background: var(--p-surface); color: var(--p-brand); border-radius: 999px; width: 38px; height: 34px; font-size: 18px; box-shadow: var(--p-shadow-sm); }
.p-links { display: flex; align-items: center; gap: 4px; }
.p-links a, .p-links button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--p-text) !important; text-decoration: none; font-weight: 600; font-size: 14px; border: 0; background: none; white-space: nowrap; }
.p-links a:hover, .p-links button:hover, .p-links a.active { background: var(--p-sunken); }
.p-cart { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--p-text); color: #fff !important; text-decoration: none; border-radius: 999px; padding: 9px 16px 9px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .12s; }
.p-cart:active { transform: scale(.97); }
.p-cart i { font-size: 18px; }
.p-cart .count { background: var(--p-accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.p-cart .count[hidden] { display: none; }
.p-cart.bump { animation: p-bump .35s ease; }
@keyframes p-bump { 40% { transform: scale(1.08); } }

/* Sales rep bar */
.p-repbar { background: linear-gradient(90deg, #fff6df, #ffefd0); color: #5c3d00; font-size: 14px; border-bottom: 1px solid #f6e1b1; }
.p-repbar-in { display: flex; align-items: center; gap: 10px; max-width: var(--p-max); margin: 0 auto; padding: 9px 20px; }
.p-repbar a { color: #5c3d00 !important; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px 12px; text-decoration: none; }

/* ---------------------------------------------------------------- toasts and notices */
.p-toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 1500; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.p-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--p-text); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 500; box-shadow: var(--p-shadow-lg); animation: p-toast-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.p-toast.error { background: var(--p-out); }
.p-toast.hide { opacity: 0; transform: translateY(-8px); transition: all .3s ease; }
@keyframes p-toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
.p-closed { display: flex; gap: 10px; align-items: center; background: var(--p-low-soft); color: var(--p-low); border-radius: var(--p-radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.p-welcome { background: var(--p-brand-soft); color: var(--p-brand-ink); border-radius: var(--p-radius); padding: 14px 18px; margin-bottom: 20px; white-space: pre-line; font-weight: 500; }
.p-msg { border-radius: var(--p-radius-sm); padding: 12px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.p-msg.error { background: var(--p-out-soft); color: var(--p-out); }
.p-msg.success { background: var(--p-ok-soft); color: var(--p-ok); }
.p-msg.info { background: var(--p-brand-soft); color: var(--p-brand); }

/* ---------------------------------------------------------------- banners */
.p-banners { border-radius: 24px; overflow: hidden; box-shadow: var(--p-shadow); margin-bottom: 28px; }
.p-banner { display: block; position: relative; aspect-ratio: 4 / 1; max-height: 300px; width: 100%; color: #fff !important; text-decoration: none; overflow: hidden; }
.p-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.p-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.carousel-item.active .p-banner img { transform: scale(1.04); }
.p-banner-text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 80px; max-width: 760px; }
.p-banner-text.on-image { max-width: none; background: linear-gradient(90deg, rgba(10, 8, 30, .62), rgba(10, 8, 30, 0) 72%); }
.p-banner-text .t { font-size: clamp(22px, 4.2vw, 46px); font-weight: 850; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.p-banner-text .s { font-size: clamp(14px, 1.9vw, 19px); opacity: .92; font-weight: 500; }
.p-banner-btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--p-text); border-radius: 999px; padding: 9px 20px; font-weight: 750; font-size: 14px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.p-banners .carousel-indicators { margin-bottom: 14px; }
.p-banners .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 999px; border: 0; transition: width .3s; }
.p-banners .carousel-indicators .active { width: 26px; }
.p-banners .carousel-control-prev, .p-banners .carousel-control-next { width: 64px; opacity: 0; transition: opacity .2s; }
.p-banners:hover .carousel-control-prev, .p-banners:hover .carousel-control-next { opacity: .9; }

/* ---------------------------------------------------------------- sections (main page rows) */
.p-section { margin-bottom: 34px; }
.p-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.p-section-head h2 { font-size: 21px; font-weight: 800; margin: 0; text-transform: capitalize; }
.p-section-head h2 a { color: var(--p-text) !important; text-decoration: none; }
.p-see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--p-text) !important; font-weight: 650; text-decoration: none; font-size: 14px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--p-surface); border: 1px solid var(--p-line); }
.p-see-all:hover { border-color: var(--p-text); }
.p-rail-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--p-line); background: var(--p-surface); align-items: center; justify-content: center; color: var(--p-text); transition: border-color .15s; }
.p-rail-btn:hover { border-color: var(--p-text); }
.p-rail-btn.p-hide { display: none !important; }
.p-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: -2px; scrollbar-width: none; }
.p-rail::-webkit-scrollbar { display: none; }
.p-rail > * { scroll-snap-align: start; }
.p-rail-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; border-radius: var(--p-radius); color: var(--p-brand) !important; font-weight: 700; text-decoration: none; background: linear-gradient(160deg, var(--p-brand-soft), #fff); border: 1px dashed #d6ccff; padding: 16px; text-transform: capitalize; }
.p-rail-more i { font-size: 36px; transition: transform .2s; }
.p-rail-more:hover i { transform: translateX(4px); }
.p-grid-more { grid-column: 1 / -1; }
.p-more { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--p-muted); padding: 24px; }

/* ---------------------------------------------------------------- product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.p-product { position: relative; display: flex; flex-direction: column; background: var(--p-surface); border-radius: var(--p-radius); padding: 10px 10px 12px; border: 1px solid var(--p-line); transition: box-shadow .2s ease, transform .2s ease, border-color .2s; }
.p-product:hover { box-shadow: var(--p-shadow); border-color: transparent; transform: translateY(-2px); }
.p-product .img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: #f7f8fb; overflow: hidden; margin-bottom: 10px; }
.p-product .img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.p-product:hover .img img { transform: scale(1.05); }
.p-product .img .none { color: #c9ccd8; font-size: 40px; }
.p-product.is-out .img img { filter: grayscale(1); opacity: .55; }
.p-pill { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: rgba(255, 255, 255, .92); box-shadow: var(--p-shadow-sm); }
.p-pill.in { color: var(--p-ok); }
.p-pill.low { color: var(--p-low); background: var(--p-low-soft); }
.p-pill.out { color: var(--p-out); background: var(--p-out-soft); }
.p-pill.flavors { color: var(--p-brand); background: var(--p-brand-soft); }
.p-price { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--p-text); }
.p-price .from { font-size: 12px; font-weight: 600; color: var(--p-muted); margin-right: 3px; letter-spacing: 0; }
.p-product .name { color: var(--p-text) !important; text-decoration: none; font-size: 13.5px; font-weight: 550; line-height: 1.3; margin: 3px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-product .actions { margin-top: auto; }
.p-product .unavailable { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--p-muted); background: var(--p-sunken); border-radius: 999px; padding: 10px; }
.p-choose { width: 100%; padding: 10px; font-size: 14px; }

/* Add button that becomes a − / + stepper */
.p-card-qty { display: flex; align-items: center; height: 40px; border-radius: 999px; background: var(--p-sunken); overflow: hidden; transition: background .2s, box-shadow .2s; }
.p-card-qty > button { flex: 0 0 40px; height: 40px; border: 0; background: transparent; color: var(--p-text); font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; }
.p-card-qty > button:active { transform: scale(.9); }
.p-card-qty input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; text-align: center; font-weight: 750; font-size: 15px; color: #fff; }
.p-card-qty input:focus { outline: 0; }
.p-card-qty .p-add { flex: 1; font-size: 14px; font-weight: 700; gap: 6px; display: flex; justify-content: center; color: var(--p-text); }
.p-card-qty .p-add:hover { background: #e7e9f1; }
.p-card-qty .p-add i { font-size: 18px; }
.p-card-qty:not(.has) > :not(.p-add) { display: none; }
.p-card-qty.has { background: var(--p-brand); box-shadow: 0 8px 20px -10px var(--p-brand-glow); }
.p-card-qty.has > button { color: #fff; }
.p-card-qty.has .p-add { display: none; }
.p-card-qty .minus .bi-trash3 { display: none; font-size: 15px; }
.p-card-qty.at-min .minus .bi-trash3 { display: block; }
.p-card-qty.at-min .minus .glyph { display: none; }
.p-card-qty.busy { opacity: .7; }
.p-card-problem { margin-top: 6px; font-size: 12px; }
.p-card-problem:empty { display: none; }
.p-card-qty.lg { height: 46px; width: 150px; flex-shrink: 0; }
.p-card-qty.lg > button { flex-basis: 46px; height: 46px; }

/* ---------------------------------------------------------------- category page */
.p-page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.p-page-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 850; margin: 0; }
.p-back { width: 42px; height: 42px; border-radius: 50%; background: var(--p-surface); border: 1px solid var(--p-line); display: inline-grid; place-items: center; color: var(--p-text) !important; font-size: 18px; flex-shrink: 0; text-decoration: none; transition: border-color .15s; }
.p-back:hover { border-color: var(--p-text); }
.p-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.p-chips::-webkit-scrollbar { display: none; }
.p-chip { background: var(--p-surface); border: 1px solid var(--p-line); color: var(--p-text) !important; border-radius: 999px; padding: 8px 16px; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.p-chip.active { background: var(--p-text); border-color: var(--p-text); color: #fff !important; }
.p-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }

/* ---------------------------------------------------------------- categories menu (slides in) */
.p-catmenu { max-width: 340px; border-radius: 0 24px 24px 0; }
.p-catmenu .offcanvas-header { padding: 20px 22px 12px; }
.p-catmenu .offcanvas-title { font-weight: 800; font-size: 22px; }
.p-catmenu-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 10px; border-radius: 12px; }
.p-catmenu-row:hover { background: var(--p-sunken); }
.p-catmenu-row > a, a.p-catmenu-row { flex: 1; padding: 12px 14px; color: var(--p-text) !important; text-decoration: none; font-weight: 600; text-transform: capitalize; }
a.p-catmenu-row { display: flex; gap: 10px; }
.p-catmenu-row.active { background: var(--p-brand-soft); }
.p-catmenu-row.active > a { color: var(--p-brand) !important; }
.p-catmenu-toggle { border: 0; background: none; width: 40px; height: 40px; color: var(--p-muted); border-radius: 10px; }
.p-catmenu-toggle[aria-expanded="true"] i { display: inline-block; transform: rotate(180deg); }
.p-catmenu-sub { display: block; padding: 9px 14px 9px 30px; margin: 0 10px; color: var(--p-text) !important; text-decoration: none; font-size: 14.5px; border-radius: 10px; text-transform: capitalize; }
.p-catmenu-sub:hover { background: var(--p-sunken); }
.p-catmenu-sub.active { color: var(--p-brand) !important; font-weight: 700; }

/* ---------------------------------------------------------------- product page */
.p-pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.p-pdp-img { position: sticky; top: 96px; background: var(--p-surface); border-radius: 24px; border: 1px solid var(--p-line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.p-pdp-img img { width: 82%; height: 82%; object-fit: contain; }
.p-pdp-img .none { font-size: 90px; color: #c9ccd8; }
.p-eyebrow { font-size: 12px; font-weight: 700; color: var(--p-brand); text-transform: uppercase; letter-spacing: .08em; }
.p-pdp h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 850; line-height: 1.1; margin: 6px 0 12px; }
.p-pdp-price { font-size: 30px; font-weight: 850; letter-spacing: -.03em; }
.p-pdp-desc { color: #3d4256; line-height: 1.6; margin: 14px 0 0; }
.p-variants { margin-top: 22px; }
.p-variant { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--p-line); }
.p-variant img { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: #f7f8fb; flex-shrink: 0; }
.p-variant .grow { flex: 1; min-width: 0; }
.p-variant .v-name { font-weight: 650; }
.p-variant .v-meta { font-size: 13px; color: var(--p-muted); }
.p-stock-txt { font-size: 12.5px; font-weight: 650; }
.p-stock-txt.in { color: var(--p-ok); }
.p-stock-txt.low { color: var(--p-low); }
.p-stock-txt.out { color: var(--p-out); }

/* ---------------------------------------------------------------- cart & checkout */
.p-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.p-summary { position: sticky; top: 96px; }
.p-summary h2, .p-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.p-sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.p-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; font-weight: 850; letter-spacing: -.02em; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--p-line); }
.p-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--p-line); transition: opacity .25s, transform .25s; }
.p-line:last-child { border-bottom: 0; }
.p-line.gone { opacity: 0; transform: translateX(16px); }
.p-line img, .p-line .noimg { width: 68px; height: 68px; object-fit: contain; border-radius: 14px; background: #f7f8fb; flex-shrink: 0; display: grid; place-items: center; color: #c9ccd8; }
.p-line .grow { flex: 1; min-width: 0; }
.p-line .l-name { font-weight: 650; line-height: 1.3; }
.p-line .l-total { font-weight: 800; min-width: 84px; text-align: right; }
.p-addr { display: block; position: relative; border: 1.5px solid var(--p-line); border-radius: 14px; padding: 14px 16px 14px 46px !important; margin: 0 0 10px !important; cursor: pointer; white-space: pre-line; font-size: 14px !important; font-weight: 500 !important; color: var(--p-text) !important; transition: border-color .15s, background .15s; }
.p-addr input { position: absolute; left: 16px; top: 17px; accent-color: var(--p-brand); width: 18px; height: 18px; }
.p-addr:has(input:checked) { border-color: var(--p-brand); background: var(--p-brand-soft); }
.p-empty { text-align: center; padding: 48px 20px; }
.p-empty i { font-size: 48px; color: #c9ccd8; }

/* Floating cart bar (phones only) */
.p-cartbar { display: none; }

/* ---------------------------------------------------------------- lists: orders, invoices, customers */
.p-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--p-line); color: inherit; text-decoration: none; }
.p-row:last-child { border-bottom: 0; }
.p-thumb { width: 56px; height: 56px; object-fit: contain; background: #f7f8fb; border-radius: 12px; flex-shrink: 0; }
.p-status { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--p-sunken); color: var(--p-muted); text-transform: capitalize; }
.p-status.confirmed, .p-status.open, .p-status.posted, .p-status.partial { background: var(--p-brand-soft); color: var(--p-brand); }
.p-status.invoiced, .p-status.shipped, .p-status.paid, .p-status.completed, .p-status.fulfilled { background: var(--p-ok-soft); color: var(--p-ok); }
.p-status.cancelled, .p-status.unpaid, .p-status.overdue { background: var(--p-out-soft); color: var(--p-out); }
.p-stat { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 18px; height: 100%; }
.p-stat .k { font-size: 13px; font-weight: 600; color: var(--p-muted); }
.p-stat .v { font-size: 28px; font-weight: 850; letter-spacing: -.03em; }
.p-stat.hero { background: linear-gradient(135deg, var(--p-brand), #7c3aed); color: #fff; border: 0; box-shadow: 0 16px 40px -18px var(--p-brand-glow); }
.p-stat.hero .k { color: rgba(255, 255, 255, .8); }
.p-cust-row { border-bottom: 1px solid var(--p-line); }
.p-cust-row:last-child { border-bottom: 0; }
.p-cust-row button { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 14px 18px; color: inherit; text-align: left; }
.p-cust-row button:hover, .p-cust-row.current button { background: #fafbfd; }
.p-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--p-brand); background: var(--p-brand-soft); flex-shrink: 0; }

/* ---------------------------------------------------------------- sign in / invite */
body.portal.p-authpage { background: var(--p-surface); }
body.portal.p-authpage .p-main { max-width: none; padding: 0; }
.p-auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.p-auth-hero { position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: radial-gradient(90% 70% at 10% 10%, #7c5cff 0%, transparent 60%), radial-gradient(80% 80% at 90% 95%, #ff7a1a 0%, transparent 55%), linear-gradient(140deg, #2b1494, #4f2bea 55%, #6d28d9); }
.p-auth-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.p-auth-hero > * { position: relative; }
.p-auth-hero h1 { font-size: clamp(32px, 4vw, 54px); font-weight: 850; line-height: 1.02; letter-spacing: -.04em; max-width: 12ch; margin: 0 0 14px; }
.p-auth-hero p { font-size: 17px; opacity: .88; max-width: 38ch; margin: 0; }
.p-auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.p-auth-points li { display: flex; align-items: center; gap: 12px; font-weight: 550; }
.p-auth-points i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.p-auth-hero .foot { font-size: 13px; opacity: .7; }
.p-auth-side { display: grid; place-items: center; padding: 40px 24px; }
.p-auth { width: 100%; max-width: 400px; }
.p-auth h2 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 4px; }
.p-auth .p-btn { width: 100%; margin-top: 22px; }
.p-auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.p-auth-brand img { height: 44px; border-radius: 12px; background: #fff; padding: 3px; }

/* ---------------------------------------------------------------- phone-browser scanner */
body.p-scanning { overflow: hidden; }
.p-scanner { position: fixed; inset: 0; z-index: 2000; background: #000; }
.p-scanner video { width: 100%; height: 100%; object-fit: cover; }
.p-scan-frame { position: absolute; left: 10%; right: 10%; top: 30%; height: 24%; border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); outline: 3px solid rgba(255, 255, 255, .9); outline-offset: -3px; }
.p-scan-frame::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #ff4d4d, transparent); animation: p-scanline 1.8s ease-in-out infinite; }
@keyframes p-scanline { 0%, 100% { transform: translateY(-36px); opacity: .4; } 50% { transform: translateY(36px); opacity: 1; } }
.p-scan-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 14px; color: #fff; font-size: 14px; font-weight: 500; }
.p-scan-close { border: 0; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 650; }
.p-scan-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--p-surface); border-radius: 26px 26px 0 0; padding: 20px 18px max(18px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); animation: p-sheet .3s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes p-sheet { from { transform: translateY(100%); } }
.p-scan-item { display: flex; gap: 14px; align-items: center; }
.p-scan-item img { width: 68px; height: 68px; object-fit: contain; border-radius: 14px; background: #f7f8fb; }
.p-scan-added { color: var(--p-ok); font-weight: 650; font-size: 14px; margin-top: 8px; }
.p-scan-miss { color: var(--p-out); font-weight: 650; }

/* ---------------------------------------------------------------- bottom tabs (phones only) */
.p-tabbar { display: none; }

@media (max-width: 1100px) {
  .p-rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .p-links .lbl { display: none; }
}
@media (max-width: 900px) {
  .p-pdp, .p-two { grid-template-columns: 1fr; }
  .p-pdp-img, .p-summary { position: static; }
  .p-pdp-img { aspect-ratio: 4 / 3; }
  .p-auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .p-auth-hero { padding: 32px 24px 36px; }
  .p-auth-hero h1 { font-size: 34px; }
  .p-auth-hero .p-auth-points, .p-auth-hero .foot { display: none; }
  .p-auth-side { align-items: start; padding-top: 28px; }
}
@media (max-width: 768px) {
  body.portal.has-tabbar { padding-bottom: calc(var(--p-tabbar-h) + env(safe-area-inset-bottom)); }
  .p-main { padding: 14px 14px 28px; }
  .p-top-row { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .p-search { order: 3; flex-basis: 100%; }
  .p-links { display: none; }
  .p-cart { margin-left: auto; padding: 8px 12px; }
  .p-cart .total { display: none; }
  .p-logo { font-size: 16px; }
  .p-repbar-in { padding: 8px 14px; }
  .p-toasts { top: 120px; }
  .p-banners { border-radius: 20px; margin-bottom: 22px; }
  .p-banner { aspect-ratio: 16 / 9; max-height: none; }
  .p-banner-text { padding: 20px 22px 34px; justify-content: flex-end; }
  .p-banner-text.on-image { background: linear-gradient(0deg, rgba(10, 8, 30, .72), rgba(10, 8, 30, 0) 75%); }
  .p-banners .carousel-control-prev, .p-banners .carousel-control-next { display: none; }
  .p-rail { grid-auto-columns: 46%; gap: 10px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-section { margin-bottom: 26px; }
  .p-section-head h2 { font-size: 19px; }
  .p-product { padding: 8px 8px 10px; }
  .p-product:hover { transform: none; box-shadow: none; border-color: var(--p-line); }

  .p-tabbar { display: flex; align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--p-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-top: 1px solid rgba(15, 18, 34, .07); }
  .p-tabbar a, .p-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--p-muted) !important; text-decoration: none; font-size: 11px; font-weight: 600; padding: 0; }
  .p-tabbar i { font-size: 21px; line-height: 1; }
  .p-tabbar .active { color: var(--p-brand) !important; }
  .p-tabbar .p-tab-scan { position: relative; top: -16px; flex: 0 0 60px; height: 60px; border-radius: 20px; margin: 0 6px; background: linear-gradient(135deg, var(--p-brand), #7c3aed); color: #fff !important; box-shadow: 0 12px 26px -10px var(--p-brand-glow), 0 0 0 5px var(--p-bg); }
  .p-tabbar .p-tab-scan i { font-size: 26px; }
  .p-tabbar .p-tab-scan span { display: none; }

  .p-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--p-tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 39; display: flex; align-items: center; gap: 12px; background: var(--p-text); color: #fff !important; text-decoration: none; border-radius: 18px; padding: 12px 16px; box-shadow: var(--p-shadow-lg); transition: transform .3s cubic-bezier(.2, .9, .3, 1.1), opacity .3s; }
  .p-cartbar.off { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .p-cartbar .n { background: var(--p-accent); border-radius: 10px; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; font-size: 14px; padding: 0 8px; }
  .p-cartbar .lbl { flex: 1; font-weight: 700; }
  .p-cartbar .amt { font-weight: 800; font-size: 16px; }
  body.has-cartbar .p-main { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.min-w-0 { min-width: 0; }

/* Request a visit */
.p-visit-cta { display: flex; align-items: center; gap: 14px; border-radius: var(--p-radius); padding: 16px 18px; color: #fff !important; text-decoration: none; background: linear-gradient(135deg, #0f1222, #2b1494); box-shadow: var(--p-shadow); transition: transform .15s; }
.p-visit-cta:hover { transform: translateY(-1px); }
.p-visit-cta .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 22px; flex-shrink: 0; }
.p-visit-cta .t { font-weight: 750; }
.p-visit-cta .s { font-size: 13px; opacity: .8; }
.p-visit-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--p-low-soft); color: var(--p-low); flex-shrink: 0; }
.p-visit-icon.scheduled { background: var(--p-ok-soft); color: var(--p-ok); }
.p-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.p-seg label { margin: 0 !important; }
.p-seg input { position: absolute; opacity: 0; pointer-events: none; }
.p-seg span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--p-line); font-weight: 600; font-size: 14px; color: var(--p-text); cursor: pointer; transition: all .15s; }
.p-seg input:checked + span { border-color: var(--p-brand); background: var(--p-brand-soft); color: var(--p-brand); }
.p-seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--p-brand-soft); }

/* Not found / error page */
.p-404 { max-width: 560px; margin: 6vh auto 0; text-align: center; padding: 0 8px; }
.p-404-art { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 18px; }
.p-404-art .d { font-size: clamp(88px, 18vw, 140px); font-weight: 900; line-height: 1; letter-spacing: -.06em; background: linear-gradient(135deg, var(--p-brand), #8b5cf6 60%, var(--p-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-404-art .bag { width: clamp(84px, 17vw, 128px); height: clamp(84px, 17vw, 128px); border-radius: 32%; display: grid; place-items: center; font-size: clamp(40px, 8vw, 60px); color: #fff; background: linear-gradient(135deg, var(--p-brand), #7c3aed); box-shadow: 0 24px 50px -20px var(--p-brand-glow); transform: rotate(-8deg); animation: p-wobble 3.5s ease-in-out infinite; }
@keyframes p-wobble { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
.p-404 h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 850; margin: 6px 0 10px; }
.p-404 p { font-size: 15px; max-width: 44ch; margin: 0 auto; }
.p-404-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.p-404-search { max-width: 420px; margin: 22px auto 0; }

/* Pay by card (Square) */
.p-paybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  margin-bottom: 20px; border-radius: var(--p-radius); background: var(--p-brand-soft); border: 1px solid #ddd5ff; }

/* ---------------------------------------------------------------- pay page (Apple Pay + Square's card page) */
.p-pay { max-width: 520px; }
.p-applepay { display: block; width: 100%; height: 50px; border: 0; border-radius: var(--p-radius); cursor: pointer;
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: pay; -apple-pay-button-style: black; }
.p-applepay:disabled { opacity: .6; }
.p-pay-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--p-muted, #6b6880); font-size: 13px; }
.p-pay-or::before, .p-pay-or::after { content: ""; flex: 1; border-top: 1px solid #e4e1ef; }

/* ---------------------------------------------------------------- new customer (sales reps) */
.p-newcust { max-width: 760px; }
.p-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.p-field.wide { grid-column: 1 / -1; }
.p-field label { margin-top: 10px; }
.p-req { color: var(--p-out); }
@media (max-width: 600px) { .p-fields { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- request an account */
.p-auth.p-auth-wide { max-width: 520px; }
.p-form-sec { font-size: 15px; font-weight: 800; margin: 22px 0 0; }
.p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-sent-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; color: var(--p-ok); background: var(--p-ok-soft); margin-bottom: 18px; }
.p-auth-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; }
.p-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; color: var(--p-muted); font-size: 13px; font-weight: 600; }
.p-or::before, .p-or::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }

/* Brand (Zacks Candy logo, static/brand/) */
.p-logo img.p-brand-mark { width: 38px; height: 38px; border-radius: 0; }
.p-auth-brand img.p-brand-white { height: 44px; width: 44px; background: none; padding: 0; border-radius: 0; }

/* Product pictures of any size or shape fit their box whole (owner 2026-10-24): pinned to the box instead of a
   percentage height, which grid layout ignores, so tall pictures were cut off. */
.p-product .img img, .p-pdp-img img { position: absolute; inset: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; object-position: center; }
.p-pdp-img img { inset: 9%; width: 82%; height: 82%; }
@media (max-width: 767.98px) { .p-pdp-img { position: relative; } }   /* sticky on wider screens; either holds the picture */
.p-variant img, .p-line img, .p-scan-item img { object-fit: contain; object-position: center; }

/* Visitors browsing without signing in: no prices, a way to sign in or ask for an account everywhere */
.p-guest-cta { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.p-guestbar { background: var(--p-brand-soft); color: var(--p-brand-ink); font-size: 14px; border-bottom: 1px solid #ddd5ff; }
.p-guestbar-in { display: flex; align-items: center; gap: 10px; max-width: var(--p-max); margin: 0 auto; padding: 9px 20px; }
.p-guestbar a { color: var(--p-brand) !important; font-weight: 700; white-space: nowrap; background: #fff; border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.p-price-locked { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--p-brand) !important; text-decoration: none; }
.p-price-locked i { font-size: 12px; }
.p-guest-price { display: flex; gap: 12px; align-items: flex-start; background: var(--p-brand-soft); color: var(--p-brand-ink); border-radius: var(--p-radius-sm); padding: 14px 16px; margin: 6px 0 4px; font-size: 15px; }
.p-guest-price i { font-size: 18px; margin-top: 1px; }
.p-guest-price a { color: var(--p-brand); font-weight: 700; }
.p-auth-browse { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--p-brand) !important; text-decoration: none; }
.p-auth-browse:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .p-guest-cta { margin-left: auto; padding: 8px 12px; }
  .p-guest-cta span { display: none; }
  .p-guestbar-in { padding: 8px 14px; }
}

/* Deals (promos app): a badge on product cards, a banner on the product page, lines in the cart / checkout summary */
.p-pill.deal { top: auto; bottom: 8px; color: #fff; background: var(--p-accent); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-deal-banner { display: inline-flex; align-items: center; gap: 8px; background: var(--p-accent-soft); color: #9a3f00; font-weight: 700; border-radius: 999px; padding: 6px 14px; margin: 4px 0 8px; }
.p-sumrow.p-deal { color: #9a3f00; }
