/* Public product list (/products) and product pages (/product/{barcode}).
   Both pages use .hv-pd for the shared tokens; the list page adds .hv-pl. */
:root {
    --hv-green: #00704a;
    --hv-green-dark: #005a3c;
    --hv-green-tint: #e8f5f0;
    --hv-ink: #111827;
    --hv-ink-2: #4b5563;
    --hv-ink-3: #8a94a3;
    --hv-line: #e7ecea;
    --hv-bg: #f7f8f7;
    --hv-radius: 20px;
}

#main-nav { background: #fff; box-shadow: 0 0 15px rgba(0,0,0,.05); }
#main-nav .nav-link, #main-nav .nav-button a { color: #333 !important; }
#main-nav .hamburger span { background: #333 !important; }
#main-nav .navbar-brand .white-text, #main-nav .navbar-brand .white-logo { display: none !important; }
#main-nav .navbar-brand .color-text, #main-nav .navbar-brand .color-logo { display: inline-block !important; }

.hv-page { background: var(--hv-bg); padding: 150px 0 72px; color: var(--hv-ink-2); font-family: 'Inter', sans-serif; }
.hv-page a { color: var(--hv-green); font-weight: 600; }
.hv-page a:hover, .hv-page a:focus { color: var(--hv-green-dark); }
.hv-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hv-crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--hv-ink-3); overflow-wrap: anywhere; }
.hv-crumbs a { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Product cards (list + similar products) */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.hv-page .hv-product { position: relative; display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 24px; background: #fff; text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .06); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.hv-page .hv-product:hover, .hv-page .hv-product:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(15, 23, 42, .35), inset 0 0 0 1px rgba(15, 23, 42, .08); }
.hv-page .hv-product:focus-visible { outline: 3px solid rgba(0, 163, 108, .45); outline-offset: 2px; }
.hv-product__img { position: relative; height: 196px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px 18px 18px;
    background: radial-gradient(120% 100% at 50% 0%, #fff 0%, #f1f4f6 100%); }
.hv-product__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 10px 14px rgba(15, 23, 42, .14)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.hv-product:hover .hv-product__img img { transform: scale(1.06); }
.hv-product__noimg { width: 64px; height: 64px; border-radius: 20px; background: #fff; color: #b6c2cf; display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px #e6ebf0; }
.hv-product__status { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 5px 10px 5px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--c, #64748b); font-size: .72rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .2); }
.hv-product__status .fa { font-size: .85rem; }
.hv-product__body { padding: 14px 10px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.hv-product__name { color: #0b1220; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hv-product__brand { color: #94a3b8; font-size: .86rem; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-page .hv-product__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--hv-green); font-size: .84rem; font-weight: 700; }
.hv-product__go .fa { transition: transform .2s; }
.hv-product:hover .hv-product__go .fa { transform: translateX(3px); }
/* Card status colours (the product page re-declares these inside .hv-pd) */
.hv-product.status-certified { --c: #047857; --soft: #ecfdf5; }
.hv-product.status-suitable { --c: #059669; --soft: #ecfdf5; }
.hv-product.status-doubtful { --c: #d97706; --soft: #fffbeb; }
.hv-product.status-haram { --c: #e11d48; --soft: #fff1f2; }
.hv-product.status-unknown { --c: #64748b; --soft: #f5f7f9; }

/* Product list page */
.pl-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; padding: 64px 32px 34px; color: #e2f5ec; text-align: center;
    background: radial-gradient(60% 80% at 15% 0%, rgba(52, 211, 153, .35) 0%, transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(16, 185, 129, .3) 0%, transparent 60%),
                linear-gradient(160deg, #052e21 0%, #064e3b 55%, #00704a 100%);
    box-shadow: 0 30px 60px -30px rgba(6, 78, 59, .6); }
.pl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%); }
.pl-hero__inner { max-width: 820px; margin: 0 auto; }
.pl-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: .85rem; font-weight: 600; color: #d1fae5; margin-bottom: 20px; backdrop-filter: blur(6px); }
.pl-pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pl-pulse 2s infinite; }
@keyframes pl-pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.pl-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 16px; }
.pl-hero h1 span { background: linear-gradient(90deg, #6ee7b7, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-lead { font-size: 1.06rem; line-height: 1.65; color: rgba(226, 245, 236, .82); margin: 0 auto 28px; max-width: 640px; }
.hv-pl .pl-lead a { color: #a7f3d0; text-decoration: underline; text-underline-offset: 3px; }
.hv-pl .pl-lead a:hover { color: #fff; }

.pl-search { max-width: 720px; margin: 0 auto; text-align: left; }
.pl-search__bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 22px; background: #fff;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .08); transition: box-shadow .2s; }
.pl-search__bar:focus-within { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45), 0 0 0 6px rgba(110, 231, 183, .35); }
.pl-search__icon { position: absolute; left: 24px; color: #94a3b8; font-size: 18px; pointer-events: none; }
.hv-pl .pl-search__bar input { flex: 1; min-width: 0; height: 56px !important; min-height: 56px; margin: 0; padding: 0 12px 0 48px; border: 0; background: transparent; color: #0b1220;
    font-size: 1.08rem; font-weight: 500; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.hv-pl .pl-search__bar input::placeholder { color: #94a3b8; }
.pl-search__btn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font-weight: 700; font-size: 1rem;
    background: linear-gradient(135deg, #00a36c, #00704a); box-shadow: 0 10px 22px -10px rgba(0, 112, 74, .8); transition: transform .15s, box-shadow .15s; }
.pl-search__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(0, 112, 74, .9); }

.pl-filters { margin-top: 14px; }
.pl-filters summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; cursor: pointer; list-style: none; color: #d1fae5; font-weight: 600; font-size: .92rem;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .15s; }
.pl-filters summary::-webkit-details-marker { display: none; }
.pl-filters summary:hover, .pl-filters[open] summary { background: rgba(255, 255, 255, .16); }
.pl-filters__panel { margin-top: 12px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.pl-filters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-field label { display: block; margin-bottom: 6px; color: #d1fae5; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.hv-pl .pl-field input { width: 100%; height: 46px !important; min-height: 46px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: #0b1220; font-size: .95rem; outline: none;
    -webkit-appearance: none; appearance: none; }
.hv-pl .pl-field input:focus { box-shadow: 0 0 0 3px rgba(110, 231, 183, .55); }
.pl-filters__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.pl-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hv-pl .pl-status a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #e2f5ec; font-size: .9rem; font-weight: 600; text-decoration: none;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .15s, color .15s; }
.hv-pl .pl-status a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hv-pl .pl-status a.is-active { background: #fff; color: #0b1220; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #a7f3d0); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.pl-status .status-certified .pl-dot { background: #34d399; }
.pl-status .status-suitable .pl-dot { background: #6ee7b7; }
.pl-status .status-doubtful .pl-dot { background: #fbbf24; }
.pl-status .status-haram .pl-dot { background: #fb7185; }
.pl-status .pl-all .pl-dot { background: conic-gradient(#34d399 0 33%, #fbbf24 0 66%, #fb7185 0); }

.pl-results { margin-top: 40px; }
.pl-results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pl-results__head h2 { margin: 0; color: #0b1220; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.pl-results__head p { margin: 4px 0 0; color: #94a3b8; font-size: .92rem; font-weight: 500; }
.pl-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hv-pl .pl-active__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #fff; color: #0b1220; font-size: .86rem; font-weight: 600; text-decoration: none;
    box-shadow: inset 0 0 0 1px #e6ebf0; transition: box-shadow .15s; }
.pl-active__chip span { color: #94a3b8; font-weight: 600; }
.pl-active__chip .fa { color: #94a3b8; margin-left: 2px; }
.hv-pl .pl-active__chip:hover { box-shadow: inset 0 0 0 1px #fb7185; }
.hv-pl .pl-active__chip:hover .fa { color: #e11d48; }
.hv-pl .pl-active__clear { font-size: .86rem; padding: 7px 6px; }

.pl-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding: 10px; border-radius: 20px; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .06); }
.pl-pager__pages { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hv-pl .pl-pager a, .pl-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px;
    color: #475569; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.hv-pl .pl-pager a:hover { background: #f5f7f6; color: #0b1220; }
.pl-pager .is-current { background: #0b1220; color: #fff; }
.pl-pager__gap { min-width: 20px !important; padding: 0 !important; color: #94a3b8 !important; }
.hv-pl .pl-pager .pl-pager__step { padding: 0 16px; box-shadow: inset 0 0 0 1px #e6ebf0; }
.pl-pager .pl-pager__step.is-disabled { color: #cbd5e1; box-shadow: inset 0 0 0 1px #eef2f6; }

.pl-empty { padding: 56px 24px; border-radius: 28px; background: #fff; text-align: center; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); }
.pl-empty__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 24px; background: #f5f7f6; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pl-empty h3 { margin: 0 0 6px; color: #0b1220; font-size: 1.3rem; font-weight: 800; }
.pl-empty p { margin: 0; }
.pl-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.pl-empty__note { color: #94a3b8; font-size: .88rem; }

.pl-learn { margin-top: 64px; padding: 36px; border-radius: 32px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), inset 0 0 0 1px rgba(15, 23, 42, .05); }
.pl-learn .px-section__head p { max-width: 720px; }
.pl-statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pl-st { padding: 20px; border-radius: 20px; background: linear-gradient(180deg, var(--soft), #fff 85%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.pl-st h3 { margin: 14px 0 4px; color: #0b1220; font-size: 1.02rem; font-weight: 800; }
.pl-st p { margin: 0; font-size: .88rem; line-height: 1.55; }
.pl-learn__sub { margin: 32px 0 14px; color: #0b1220; font-size: 1.1rem; font-weight: 800; }
.pl-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-pl .pl-guides a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; border-radius: 20px; background: #f5f7f6; color: #475569; text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s; }
.hv-pl .pl-guides a:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 20px 36px -24px rgba(15, 23, 42, .4), inset 0 0 0 1px #e6ebf0; }
.pl-guides__icon { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: #fff; color: #00704a; display: flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.pl-guides strong { color: #0b1220; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: .98rem; padding-right: 20px; }
.pl-guides span:not(.pl-guides__icon) { font-size: .86rem; font-weight: 500; }
.pl-guides__go { position: absolute; right: 18px; top: 22px; color: #94a3b8; transition: transform .2s, color .2s; }
.hv-pl .pl-guides a:hover .pl-guides__go { transform: translateX(3px); color: #00704a; }

@media (max-width: 991px) {
    .pl-statuses, .pl-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hv-container { padding: 0 12px; }
    .hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hv-page .hv-product { padding: 6px; border-radius: 20px; }
    .hv-product__img { height: 150px; padding: 30px 10px 12px; border-radius: 15px; }
    .hv-product__status { left: 7px; top: 7px; padding: 4px 8px 4px 6px; font-size: .64rem; }
    .hv-product__body { padding: 10px 6px 6px; }
    .hv-product__name { font-size: .9rem; }
    .hv-product__brand { font-size: .8rem; }
    .hv-page .hv-product__go { display: none; }

    .pl-hero { border-radius: 26px; padding: 40px 16px 22px; }
    .pl-eyebrow { font-size: .76rem; margin-bottom: 14px; }
    .pl-lead { font-size: .95rem; margin-bottom: 20px; }
    .pl-search__bar { padding: 6px; border-radius: 18px; }
    .pl-search__icon { left: 20px; font-size: 16px; }
    .hv-pl .pl-search__bar input { height: 50px !important; min-height: 50px; padding-left: 40px; font-size: 1rem; }
    .pl-search__btn { height: 50px; width: 50px; padding: 0; justify-content: center; border-radius: 14px; }
    .pl-search__btn span { display: none; }
    .pl-filters__grid { grid-template-columns: 1fr; }
    .pl-status { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
    .pl-status::-webkit-scrollbar { display: none; }
    .hv-pl .pl-status a { flex: none; padding: 8px 14px; font-size: .85rem; }
    .pl-results { margin-top: 28px; }
    .pl-results__head h2 { font-size: 1.3rem; }
    .pl-pager { padding: 8px; gap: 6px; }
    .pl-pager__step span { display: none; }
    .hv-pl .pl-pager .pl-pager__step { padding: 0; width: 42px; }
    .hv-pl .pl-pager a, .pl-pager span { min-width: 36px; height: 40px; padding: 0 8px; }
    .pl-learn { margin-top: 44px; padding: 22px 16px; border-radius: 24px; }
    .pl-statuses, .pl-guides { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pl-st { padding: 16px; }
}
@media (max-width: 380px) {
    .pl-statuses, .pl-guides { grid-template-columns: 1fr; }
}

/* Shared bits */
.hv-summary { font-size: 1rem; line-height: 1.7; margin: 0; }
.hv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hv-tag { padding: 6px 12px; border-radius: 999px; background: var(--hv-bg); border: 1px solid var(--hv-line); color: var(--hv-ink-2); font-size: .85rem; font-weight: 500; }
.hv-ecode { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--hv-green-tint); color: var(--hv-green); font-size: .72rem; font-weight: 800; margin-left: 8px; vertical-align: 2px; letter-spacing: .02em; }

/* Product page (/product/{barcode}) */
.hv-pd {
    --ink: #0b1220; --ink-2: #475569; --ink-3: #94a3b8; --line: #e6ebf0; --canvas: #f5f7f6;
    --brand: #00704a; --brand-2: #00a36c;
    --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --r-xl: 32px; --r-lg: 24px; --r-md: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -18px rgba(15, 23, 42, .18);
    --hdr: 84px;
    background: var(--canvas); color: var(--ink-2); font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* Vivid, accessible status palette for this page */
.hv-pd .status-certified { --c: #047857; --bg: #d1fae5; --soft: #ecfdf5; }
.hv-pd .status-suitable { --c: #059669; --bg: #d1fae5; --soft: #ecfdf5; }
.hv-pd .status-doubtful { --c: #d97706; --bg: #fef3c7; --soft: #fffbeb; }
.hv-pd .status-haram { --c: #e11d48; --bg: #ffe4e6; --soft: #fff1f2; }
.hv-pd .status-unknown { --c: #64748b; --bg: #e2e8f0; --soft: #f8fafc; }
.hv-pd h1, .hv-pd h2, .hv-pd h3, .hv-pd h4 { font-family: var(--display); }
.hv-pd .hv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.hv-pd .hv-crumbs .fa { font-size: .8rem; color: var(--ink-3); }
.hv-pd .hv-crumbs span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* Hero */
.px-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow);
    background-image: radial-gradient(120% 90% at 0% 0%, var(--soft) 0%, rgba(255,255,255,0) 60%), radial-gradient(80% 80% at 100% 100%, var(--soft) 0%, rgba(255,255,255,0) 55%); }
.px-hero__glow { position: absolute; inset: -30%; z-index: -1; background-size: cover; background-position: center; filter: blur(70px) saturate(1.5); opacity: .28; transform: translateZ(0); }
.px-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 40px; align-items: center; }
.px-stage { position: relative; margin: 0; aspect-ratio: 1; border-radius: 28px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35), inset 0 0 0 1px rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; padding: 34px; }
.px-stage img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .16)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.px-stage:hover img { transform: scale(1.03) rotate(-.6deg); }
.px-stage--empty { background: linear-gradient(145deg, #fff, var(--canvas)); }
.px-stage--empty .px-stage__code { top: 16px; bottom: auto; }
.px-noimg { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.px-noimg .fa { width: 84px; height: 84px; border-radius: 26px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #b6c2cf; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.px-stage__code { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px;
    background: rgba(11, 18, 32, .78); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); }
.px-hero__info { min-width: 0; }
.px-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.px-chip { padding: 5px 12px; border-radius: 999px; background: rgba(0, 112, 74, .08); color: var(--brand); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.px-brand { color: var(--ink-3); font-size: .95rem; }
.hv-pd .px-brand a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(11, 18, 32, .2); text-underline-offset: 3px; }
.px-hero h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 26px; overflow-wrap: anywhere; }

.px-verdict { display: flex; align-items: center; gap: 22px; padding: 18px 22px 18px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px); box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(15, 23, 42, .06); }
.px-ring { position: relative; flex: none; width: 112px; height: 112px; }
.px-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.px-ring circle { fill: none; stroke-width: 11; }
.px-ring__track { stroke: #eef2f6; }
.px-ring__arc { stroke: var(--c); stroke-linecap: round; animation: px-draw 1s cubic-bezier(.2, .8, .2, 1) both; }
.px-ring__icon { position: absolute; inset: 22px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px;
    box-shadow: 0 10px 22px -6px var(--c); }
@keyframes px-draw { from { stroke-dasharray: 0 400; } }
.px-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--c); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.px-verdict__title { margin: 8px 0 4px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.px-verdict__desc { margin: 0; font-size: .94rem; line-height: 1.55; }

.px-stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 0; margin: 16px 0 0; }
.px-stats li { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); min-width: 0; }
.px-stats strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.px-stats strong.px-stats__text { font-size: 1.05rem; padding: 5px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-stats span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.px-stats li.is-alert strong { color: #d97706; }
.px-stats li.is-ok strong { color: #059669; }

.px-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.px-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font-weight: 700; font-size: .95rem;
    cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.px-btn:active { transform: translateY(1px); }
.px-btn--primary { color: #fff !important; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 12px 24px -10px rgba(0, 112, 74, .65); }
.px-btn--primary:hover { box-shadow: 0 16px 30px -10px rgba(0, 112, 74, .75); transform: translateY(-1px); }
.px-btn--ghost { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1); }
.px-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .2); }
.px-btn:focus-visible, .px-segment button:focus-visible, .px-subnav a:focus-visible { outline: 3px solid rgba(0, 163, 108, .45); outline-offset: 2px; }

/* Sticky section bar */
.px-subnav { position: sticky; top: calc(var(--hdr) + 10px); z-index: 30; display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 7px; border-radius: 18px;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .3), inset 0 0 0 1px rgba(15, 23, 42, .06); }
.px-subnav__product { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .35s ease, opacity .25s ease, padding .35s; }
.px-subnav.is-stuck .px-subnav__product { max-width: 340px; opacity: 1; padding-left: 4px; }
.px-subnav__product img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.px-subnav__name { font-family: var(--display); font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--bg); }
.px-subnav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.px-subnav.is-stuck .px-subnav__links { margin-left: auto; }
.px-subnav__links::-webkit-scrollbar { display: none; }
.hv-pd .px-subnav__links a { flex: none; padding: 9px 16px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.hv-pd .px-subnav__links a:hover { background: var(--canvas); color: var(--ink); }
.hv-pd .px-subnav__links a.is-active { background: var(--ink); color: #fff; }

/* Sections */
.px-section { background: #fff; border-radius: var(--r-lg); padding: 30px; margin-top: 20px; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(15, 23, 42, .05);
    scroll-margin-top: calc(var(--hdr) + 90px); min-width: 0; }
.px-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.px-section__head h2 { margin: 0; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.px-section__head p { margin: 4px 0 0; color: var(--ink-3); font-size: .92rem; }
.px-text { margin: 0; font-size: .98rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }
.px-muted { margin: 8px 0 0; color: var(--ink-3); font-size: .88rem; }
.px-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 20px; align-items: start; }
.px-split--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* Ingredient filter */
.px-segment { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.px-segment::-webkit-scrollbar { display: none; }
.px-segment button { flex: none; border: 0; background: transparent; color: var(--ink-2); border-radius: 10px; padding: 8px 14px; font-size: .86rem; font-weight: 700; cursor: pointer;
    display: inline-flex; gap: 7px; align-items: center; transition: background .15s, color .15s, box-shadow .15s; }
.px-segment button span { font-size: .74rem; color: var(--ink-3); font-weight: 700; }
.px-segment button:hover { color: var(--ink); }
.px-segment button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -4px rgba(15, 23, 42, .15); }
.px-segment button.is-active span { color: var(--brand); }

/* Ingredient groups */
.px-group + .px-group { margin-top: 30px; }
.px-group[hidden] { display: none; }
.px-group__title { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.px-group__title .fa { color: var(--c); font-size: 1.05rem; }
.px-group__title span { padding: 1px 9px; border-radius: 999px; background: var(--bg); color: var(--c); font-size: .78rem; font-family: 'Inter', sans-serif; }
.px-group__hint { margin: 4px 0 14px; color: var(--ink-3); font-size: .88rem; }
.px-cards, .px-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.px-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.px-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.px-badge { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    box-shadow: 0 8px 16px -8px var(--c); }
.px-badge--sm { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; background: var(--bg); color: var(--c); box-shadow: none; }
.px-pill { flex: none; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--c); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; font-family: 'Inter', sans-serif; }
.px-pill--sm { padding: 2px 8px; font-size: .64rem; margin-left: 8px; vertical-align: 2px; }

.px-card { position: relative; padding: 18px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--soft), #fff 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
    transition: transform .2s, box-shadow .2s; }
.px-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 14px 28px -18px var(--c); }
.px-card__top { display: flex; align-items: center; gap: 12px; }
.px-card h4 { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 1.02rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.px-card p { margin: 12px 0 0; font-size: .93rem; line-height: 1.6; color: var(--ink-2); }

.px-tile { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; min-width: 0; }
.px-tile:hover { background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.px-tile > div { min-width: 0; }
.px-tile h4 { margin: 4px 0 0; color: var(--ink); font-size: .96rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.px-tile p { margin: 5px 0 0; font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.px-uses { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(15, 23, 42, .04); color: var(--ink-2); font-size: .78rem; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.px-uses .fa { color: var(--ink-3); }
.hv-pd .hv-ecode { background: rgba(15, 23, 42, .06); color: var(--ink-2); }

.px-empty { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-md); background: var(--canvas); }
.px-empty__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.px-empty p { margin: 0; line-height: 1.65; }

/* Nutrition */
.px-nutrition { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.px-nut { --lc: var(--ink-3); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--canvas); min-width: 0; }
.px-nut__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.px-nut__label small { display: block; color: var(--ink-3); font-weight: 500; }
.px-nut strong { color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.px-nut__sub { font-size: .8rem; color: var(--ink-3); }
.px-nut__bar { height: 6px; border-radius: 999px; background: rgba(15, 23, 42, .08); overflow: hidden; margin-top: 6px; }
.px-nut__bar i { display: block; height: 100%; border-radius: inherit; background: var(--lc); }
.px-nut__ri { font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.px-nut--energy { grid-column: span 2; background: linear-gradient(135deg, #0f172a, #1e293b); }
.px-nut--energy .px-nut__label, .px-nut--energy .px-nut__sub, .px-nut--energy .px-nut__ri { color: rgba(255, 255, 255, .7); }
.px-nut--energy strong { color: #fff; font-size: 1.9rem; }
.px-nut--energy .px-nut__bar { background: rgba(255, 255, 255, .15); }
.px-nut--energy .px-nut__bar i { background: linear-gradient(90deg, #34d399, #00a36c); }
.px-level { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--lc); background: #fff; }
.px-nut.lvl-low { --lc: #059669; background: #ecfdf5; }
.px-nut.lvl-medium { --lc: #d97706; background: #fffbeb; }
.px-nut.lvl-high { --lc: #e11d48; background: #fff1f2; }
.px-footnote { margin: 14px 0 0; font-size: .78rem; line-height: 1.5; color: var(--ink-3); }

/* About */
.px-facts { display: grid; gap: 0; margin: 20px 0 0; }
.px-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.px-facts dt { flex: none; color: var(--ink-3); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.px-facts dt .fa { width: 16px; text-align: center; }
.px-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.hv-pd .hv-tags { margin-top: 16px; }
.hv-pd .hv-tag { background: var(--canvas); border: 0; color: var(--ink-2); font-weight: 600; }

/* FAQ */
.px-faq details { border-radius: 16px; padding: 0 18px; background: var(--canvas); transition: background .2s; }
.px-faq details + details { margin-top: 10px; }
.px-faq details[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 12px 24px -18px rgba(15, 23, 42, .3); }
.px-faq summary { cursor: pointer; color: var(--ink); font-weight: 700; font-family: var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary .fa { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s; }
.px-faq details[open] summary .fa { transform: rotate(180deg); background: var(--ink); color: #fff; box-shadow: none; }
.px-faq details p { margin: 0; padding: 0 0 18px; line-height: 1.7; }

/* Label key */
.px-key ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.px-key li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.45; }
.px-key .px-pill { justify-content: center; }
.px-note { display: flex; gap: 10px; margin: 20px 0 0; padding: 14px; border-radius: 14px; background: var(--canvas); font-size: .85rem; line-height: 1.6; color: var(--ink-2); }
.px-note .fa { margin-top: 3px; color: var(--ink-3); }

/* Related products */
.px-related { margin-top: 44px; }
.hv-pd .px-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.px-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px;
    scrollbar-width: thin; }
.px-rail > * { scroll-snap-align: start; }

/* Toast */
.px-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px;
    background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .5); transition: opacity .2s, transform .2s; }
.px-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Entrance */
.px-hero, .px-subnav, .px-section { animation: px-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.px-subnav { animation-delay: .08s; }
.px-section { animation-delay: .12s; }
@keyframes px-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
    .hv-pd *, .hv-pd *::before { animation: none !important; transition: none !important; }
}

@media (max-width: 991px) {
    .px-hero__grid { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
    .px-stage { max-width: 380px; width: 100%; margin: 0 auto; }
    .px-split--wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hv-page { padding-top: 112px; }

    .hv-pd { --r-xl: 26px; --r-lg: 22px; }
    .hv-pd .hv-container { padding: 0 12px; }
    .px-hero__grid { padding: 16px 16px 20px; gap: 20px; }
    .px-stage { max-width: none; aspect-ratio: 4 / 3; padding: 20px; border-radius: 22px; }
    .px-stage--empty { aspect-ratio: 16 / 9; }
    .px-hero h1 { margin-bottom: 18px; }
    .px-verdict { gap: 4px 14px; padding: 16px; grid-template-rows: auto auto; }
    .px-verdict { display: grid; grid-template-columns: 76px 1fr; align-items: center; }
    .px-ring { grid-row: 1 / span 2; }
    .px-ring { width: 76px; height: 76px; }
    .px-ring__icon { inset: 15px; font-size: 20px; }
    .px-verdict__text { display: contents; }
    .px-status { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; }
    .px-verdict__title { grid-column: 2; grid-row: 2; align-self: start; margin: 2px 0 0; font-size: 1.08rem; }
    .px-verdict__desc { grid-column: 1 / -1; margin-top: 10px; }
    .px-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .px-stats li { padding: 12px 10px; }
    .px-stats strong { font-size: 1.3rem; }
    .px-stats span { font-size: .72rem; display: block; line-height: 1.3; }
    .px-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .px-actions .px-btn--primary { grid-column: 1 / -1; }
    .px-btn { padding: 0 12px; font-size: .9rem; }
    .px-subnav { top: calc(var(--hdr) + 6px); padding: 5px; gap: 8px; border-radius: 16px; }
    .px-subnav.is-stuck .px-subnav__product { max-width: 42px; }
    .px-subnav__name, .px-subnav .px-dot { display: none; }
    .hv-pd .px-subnav__links a { padding: 8px 12px; font-size: .86rem; }
    .px-section { padding: 20px 16px; margin-top: 14px; }
    .px-section__head { margin-bottom: 16px; }
    .px-section__head h2 { font-size: 1.25rem; }
    .px-segment { width: 100%; }
    .px-card { padding: 16px; }
    .px-nutrition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .px-nut { padding: 14px; }
    .px-nut strong { font-size: 1.15rem; }
    .px-nut--energy strong { font-size: 1.6rem; }
    .px-level { position: static; align-self: flex-start; order: -1; margin-bottom: 2px; }
    .px-key li { grid-template-columns: 96px 1fr; }
    .px-facts div { flex-direction: column; gap: 2px; }
    .px-facts dd { text-align: left; }
    .px-rail { grid-auto-columns: 46%; }
}


/* Links from an ingredient to its E-number page or guide */
.hv-pd .px-guide { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .84rem; font-weight: 700; }
.hv-pd .px-guide--sm { margin-top: 4px; font-size: .78rem; font-weight: 600; }

.hv-crumbs .px-langs { margin-left: 6px; }
.hv-crumbs .px-langs a { margin-left: 4px; }
