/* Salus Biosciences - mobile and tablet refinements.
   Loaded after style.css. Rectangular controls only (max 5px radius). */

html { -webkit-text-size-adjust: 100%; }
.status-pill { border-radius: 3px; }
.main-nav__actions { display: none; }

/* ---------- Header and navigation (below desktop) ---------- */
@media (max-width: 1019px) {
    .utility-bar, .utility-bar__inner { min-height: 34px; }
    .utility-help { font-size: 11px; letter-spacing: .06em; }
    .site-header, .nav-wrap { height: 68px; }
    .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav-wrap { grid-template-columns: 44px 1fr auto; gap: 6px; }
    .brand { justify-self: center; }
    .brand { display: block; width: 180px; max-width: 100%; }
    .brand img { width: 100%; height: auto; }
    .menu-toggle { display: grid; width: 44px; height: 44px; padding: 0; place-content: center; border-radius: 5px; }
    .menu-toggle span { width: 24px; margin: 3px 0; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
    .nav-actions { display: flex; align-items: center; gap: 6px; }
    .cart-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 0; }
    .cart-link .nav-action-icon { width: 24px; height: 24px; font-size: 24px; }
    .cart-link span { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; color: #fff; background: var(--orange); border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
    .button--nav { width: 44px; min-height: 44px; border-radius: 5px; }
    .button--nav:hover { transform: none; }

    .main-nav { inset: 102px 0 0; z-index: 5; overflow-y: auto; padding: 8px 20px 76px; border-top: 1px solid var(--line); }
    .main-nav.is-open { display: flex; }
    .main-nav a:not(.button) { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 0; font-size: 19px; }
    .main-nav a:not(.button).active { color: var(--blue); }
    .main-nav a:not(.button).active::before { content: ""; width: 4px; height: 22px; margin-right: 12px; background: var(--orange); }
    .main-nav a:not(.button)::after { content: "\203A"; color: #9aa8b4; font-size: 24px; }
    .main-nav a:not(.button).active { justify-content: flex-start; }
    .main-nav a:not(.button).active::after { margin-left: auto; }
    .main-nav__actions { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }
    .main-nav__actions .button { width: 100%; min-height: 52px; padding: 13px 20px; border-bottom: 1px solid transparent; font-size: 15px; }
    .main-nav__actions .button--outline { border-color: #aab8c4; }
    .main-nav__actions .button--orange { border-color: transparent; }
}
@media (min-width: 1020px) { .main-nav__actions { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
    body { padding-bottom: 58px; font-size: 16px; line-height: 1.6; }
    .container { width: calc(100% - 40px); }
    .section { padding: 56px 0; }
    .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; }
    .button { min-height: 50px; padding: 12px 20px; font-size: 15px; }
    .button--large { min-height: 54px; }

    /* Hero */
    .hero-grid { min-height: 0; padding-top: 44px; padding-bottom: 40px; }
    .hero h1 { margin-bottom: 20px; font-size: clamp(32px, 9.4vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
    .hero-copy .eyebrow { display: flex; align-items: center; line-height: 1.5; }
    .hero-copy .eyebrow span { flex: 0 0 22px; }
    .hero-lead { font-size: 16px; line-height: 1.65; }
    .button-row { margin-top: 26px; }
    .button-row .button { width: 100%; }
    .hero-meta { margin-top: 32px; gap: 0; font-size: 13px; }
    .hero-meta span { padding: 12px 0; }
    .hero-index { display: none; }
    .trust-grid > div { min-height: 92px; padding: 16px 12px; }

    /* Section headings and cards */
    .section-heading h2, .editorial-sticky h2, .process-copy h2, .cta-panel h2 { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.14; }
    .split-heading { gap: 14px; margin-bottom: 30px; }
    .split-heading > p { font-size: 16px; }
    .feature-grid { gap: 14px; }
    .feature-card { min-height: 0; padding: 26px 22px 22px; }
    .feature-card h3 { margin-top: 22px; font-size: 23px; }
    .feature-card .feature-icon-cdn, .feature-card .icon-box { width: 58px; height: 58px; margin-top: 4px; font-size: 30px; }
    .feature-card > a { position: static; margin-top: 24px; padding-top: 16px; }
    .card-number { top: 22px; right: 22px; }
    .process-grid { gap: 36px; }
    .process-copy > p:not(.eyebrow) { font-size: 16px; }
    .process-list li { grid-template-columns: 38px 1fr; gap: 12px; padding: 22px 0; }
    .process-list h3 { font-size: 19px; }
    .cta-panel { padding: 30px 22px; gap: 20px; }
    .cta-panel .button { width: 100%; }

    /* Inner page heroes */
    .page-hero { padding: 44px 0; }
    .page-hero--compact { padding: 36px 0; }
    .page-hero__grid { gap: 16px; }
    .page-hero h1, .page-hero--compact h1 { font-size: clamp(31px, 9vw, 40px); line-height: 1.12; }
    .page-hero__grid > p { font-size: 16px; }
    .editorial-grid { gap: 32px; }
    .editorial-content > p { font-size: 16px; }
    .editorial-content .large-copy { font-size: 19px; }
    .value-list { margin-top: 32px; }
    .value-list article { grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; }
    .value-list h3 { font-size: 20px; }
    .stats-grid div { padding: 26px 22px; }
    .stats-grid strong { font-size: 34px; }
    .contact-band { padding: 26px 22px; }
    .contact-band h2 { font-size: 26px; }

    /* FAQ */
    .faq-layout { gap: 32px; }
    .faq-layout aside h2 { font-size: 28px; }
    .accordion-list summary { min-height: 60px; padding: 16px 0; grid-template-columns: 32px 1fr 18px; font-size: 16px; line-height: 1.35; }
    .accordion-content { padding: 0 0 20px 32px; font-size: 15px; }

    /* Policies */
    .policy-layout { gap: 24px; }
    .policy-nav { margin: 0 -20px; padding: 0 20px 6px; gap: 8px; -webkit-overflow-scrolling: touch; }
    .policy-nav a { display: inline-flex; min-height: 44px; align-items: center; border-radius: 5px; }
    .policy-notice { padding: 22px 20px; }
    .policy-article { padding: 36px 0; scroll-margin-top: 96px; }
    .policy-article h2 { font-size: clamp(25px, 7vw, 30px); }
    .policy-article h3 { margin-top: 26px; font-size: 19px; }
    .policy-contact { margin-top: 36px; padding: 24px 20px; }

    /* Auth, contact and checkout forms */
    .auth-layout { min-height: 0; padding-top: 36px; padding-bottom: 48px; gap: 30px; }
    .auth-intro h1 { font-size: clamp(31px, 9vw, 38px); line-height: 1.12; }
    .auth-intro > p:not(.eyebrow) { font-size: 16px; }
    .auth-rule { padding: 15px 0; font-size: 15px; }
    .auth-rule span { margin-right: 16px; }
    .form-card { padding: 26px 20px; }
    .form-card h2, .contact-form-wrap h2, .checkout-form h2 { margin-bottom: 22px; font-size: 27px; }
    .stack-form, .form-grid { gap: 18px; }
    .stack-form label { font-size: 14px; }
    .stack-form input, .stack-form textarea, .stack-form select, .catalog-tools input { min-height: 52px; font-size: 16px; border-radius: 4px; }
    .stack-form input[type="checkbox"] { min-height: 0; }
    .check-row { grid-template-columns: 24px 1fr; font-size: 14px; }
    .check-row input { width: 22px !important; height: 22px; }
    .form-switch { margin-top: 20px; }
    .form-switch a { display: inline-block; padding: 6px 2px; }
    .contact-layout { gap: 32px; }
    .contact-aside h2 { font-size: 28px; }
    .contact-aside > p:not(.eyebrow) { font-size: 16px; }
    .contact-form-wrap { padding: 24px 18px; }
    .checkout-layout { gap: 28px; }
    .compliance-panel { padding: 26px 22px; }
    .compliance-panel h2 { margin-top: 20px; font-size: 26px; }

    /* Catalog, product, cart, account */
    .catalog-hero, .account-hero { padding: 40px 0; }
    .account-hero h1, .catalog-hero h1 { font-size: clamp(31px, 9vw, 38px); }
    .catalog-hero p:last-child { font-size: 16px; }
    .product-grid { gap: 16px; }
    .product-card > .product-visual, .product-card > .product-visual > img { height: 220px; max-height: 220px; }
    .product-body { padding: 20px; }
    .product-body h2 { margin: 14px 0 10px; font-size: 22px; }
    .product-body > p { min-height: 0; }
    .product-meta { font-size: 11px; }
    .document-row { font-size: 11px; }
    .product-purchase { flex-wrap: wrap; gap: 14px; }
    .product-purchase form { flex: 1 1 160px; }
    .product-purchase .button { width: 100%; }
    .product-detail-section { padding: 28px 0 56px; }
    .product-detail-grid { gap: 28px; }
    .product-back { margin-bottom: 22px; }
    .product-detail-copy h1 { margin: 14px 0 16px; font-size: clamp(29px, 8vw, 36px); }
    .product-detail-description { font-size: 16px; }
    .product-records { margin-top: 24px; }
    .product-records > div { padding: 14px; }
    .product-records span { font-size: 10px; }
    .product-detail-purchase form { width: 100%; }
    .product-detail-purchase .button { flex: 1; }
    .product-accordion { margin-top: 40px; padding-right: 0; padding-left: 0; }
    .product-accordion summary { min-height: 62px; padding: 14px 2px; font-size: 16px; }
    .product-accordion__content { padding: 0 2px 22px; font-size: 15px; }
    .cart-layout { gap: 28px; }
    .cart-item { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 20px 0; }
    .cart-item > div { grid-column: 1 / -1; }
    .cart-item h2 { font-size: 19px; }
    .cart-item input { width: 84px; min-height: 48px; border-radius: 4px; font-size: 16px; }
    .cart-item > strong { align-self: center; text-align: right; }
    .cart-controls { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
    .cart-controls .button { width: 100%; }
    .text-button { min-height: 44px; }
    .order-summary { padding: 24px 20px; }
    .order-summary h2 { font-size: 26px; }
    .account-sidebar { margin: 0 -20px; padding: 0 20px; }
    .account-sidebar a { display: inline-flex; min-height: 48px; align-items: center; }
    .dashboard-grid { gap: 28px; }
    .dashboard-header { margin-bottom: 24px; }
    .dashboard-header h2 { font-size: 28px; }
    .dashboard-header .button { width: 100%; }
    .account-cards article { padding: 22px; }
    .empty-state--large { padding: 48px 20px; }
    .empty-state--large h2 { font-size: 27px; }
    th, td { padding: 12px 10px; font-size: 14px; }

    /* Footer */
    .site-footer { padding: 44px 0 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-brand img { width: 190px; height: auto; }
    .footer-brand p { margin-top: 14px; }
    .site-footer h2 { margin-bottom: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
    .site-footer a { padding: 10px 0; font-size: 15px; }
    .site-footer p { font-size: 14px; line-height: 1.55; }
    .footer-bottom { margin-top: 32px; padding-top: 20px; font-size: 12px; }
    .footer-bottom a { display: inline-block; padding: 12px 0; font-size: 12px; }
    .sticky-disclaimer { min-height: 0; padding: 8px 14px; font-size: 10.5px; line-height: 1.35; }

    /* Age gate */
    .age-gate { padding: 16px; align-items: center; overflow-y: auto; }
    .age-gate__panel { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 22px; }
    .age-gate__panel > img { width: 180px; height: auto; margin-bottom: 18px; }
    .age-gate__panel h2 { font-size: 27px; }
    .age-gate__panel .check-row { margin: 20px 0; }
    .age-gate__exit { padding: 12px 0; font-size: 14px; }
}

@media (max-width: 359px) {
    .brand { width: 150px; }
    .hero h1 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Round 2: contrast, product cards, tablet footer, account tabs ---------- */
.order-summary .eyebrow, .compliance-panel .eyebrow { color: #85c7ed; }
.product-card { display: flex; flex-direction: column; }
.product-card > .product-body { display: flex; flex: 1 1 auto; flex-direction: column; }
.product-card .product-purchase { margin-top: auto; padding-top: 22px; }

@media (min-width: 700px) and (max-width: 1019px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .site-footer a { padding: 10px 0; }
    .footer-bottom a { padding: 12px 0; }
    .account-sidebar a { min-height: 48px; display: inline-flex; align-items: center; }
}

@media (max-width: 699px) {
    .account-sidebar { display: flex; justify-content: space-between; margin: 0; padding: 0; overflow: visible; }
    .account-sidebar a { flex: 1 1 auto; justify-content: center; padding: 12px 6px; font-size: 14px; text-align: center; }
    .product-purchase { flex-wrap: nowrap; }
}

/* Paired form fields stay level when one has a hint line (e.g. Password / Confirm password) */
.stack-form .form-grid > label { align-content: start; }

/* ---------- Brand logos (new horizontal/vertical/icon set) ---------- */
.brand img { height: auto; }
.footer-brand img { height: auto; }
.age-gate__logo { width: 210px; height: auto; }
@media (min-width: 1020px) { .brand img { width: 260px; height: auto; } .nav-wrap { grid-template-columns: 260px 1fr auto; } }
@media (min-width: 700px) and (max-width: 1019px) { .brand { width: 210px; } }

/* ---------- No numbered labels: icons and clean lists instead ---------- */
.hero-meta i { margin-right: 12px; color: var(--orange); font-size: 15px; vertical-align: -1px; }
.process-list li { grid-template-columns: 40px 1fr; }
.process-list li > span { padding-top: 2px; font-size: 24px; line-height: 1; }
.value-list article > span { padding-top: 2px; font-size: 26px; line-height: 1; }
.auth-rule { display: flex; align-items: center; gap: 14px; }
.auth-rule span { display: inline-flex; margin: 0; font-size: 18px; line-height: 1; }
.accordion-list summary { grid-template-columns: 1fr 20px; gap: 16px; }
.accordion-list summary .faq-question { color: inherit; font-size: inherit; }
.accordion-content { padding-left: 0; }
@media (max-width: 699px) {
    .process-list li { grid-template-columns: 34px 1fr; }
    .value-list article { grid-template-columns: 34px 1fr; }
    .auth-rule span { margin: 0; }
    .accordion-list summary { grid-template-columns: 1fr 18px; }
    .accordion-content { padding-left: 0; }
}

/* ================= Real icons (Bootstrap Icons, self-hosted): menu, FAQ, placeholders, large icon treatment ================= */
i.bi { line-height: 1; }
a > i.bi-arrow-right, a > i.bi-arrow-left, a > i.bi-box-arrow-up-right { margin: 0 4px; vertical-align: -1px; }

/* Hamburger */
.menu-toggle { display: grid; place-items: center; color: var(--navy); font-size: 30px; }
.menu-toggle .bi-x-lg { display: none; font-size: 26px; }
.menu-toggle[aria-expanded="true"] .bi-list { display: none; }
.menu-toggle[aria-expanded="true"] .bi-x-lg { display: block; }
@media (min-width: 1020px) { .menu-toggle { display: none; } }

/* FAQ + / - */
.accordion-list summary i.bi { width: 22px; height: 22px; color: var(--navy); font-size: 22px; }
.accordion-list summary i.bi::before { position: static; top: auto; left: auto; width: auto; height: auto; background: none; transform: none; content: "\f64d"; }
.accordion-list summary i.bi::after { content: none; }
.accordion-list details[open] summary i.bi::before { content: "\f63b"; }

/* Product placeholders (no photo) */
.product-visual > span.product-placeholder-icon { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.88); font-size: 92px; letter-spacing: 0; }
.product-gallery__placeholder > span.product-placeholder-icon { position: static; inset: auto; display: grid; color: rgba(255,255,255,.88); font-size: 130px; letter-spacing: 0; }
.empty-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; margin-bottom: 22px; color: var(--navy); background: var(--pale); border: 1px solid var(--line); border-radius: 5px; font-size: 42px; }
.empty-inline-icon { display: block; margin-bottom: 12px; color: var(--blue); font-size: 38px; }

/* Larger icons */
.feature-icon-cdn { width: 84px; height: 84px; font-size: 44px; }
.button-icon { width: 20px; height: 20px; font-size: 20px; }
.contact-icon { width: 32px; height: 32px; font-size: 32px; }
.process-list li > span { font-size: 30px; }
.value-list article > span { font-size: 32px; }
.process-list li { grid-template-columns: 48px 1fr; }
.card-icon { display: block; margin-bottom: 14px; color: var(--blue); font-size: 36px; }
.status-ok { margin-right: 6px; color: #14704c; }
.compliance-panel > .compliance-icon { font-size: 34px; }
.account-sidebar a i.bi { margin-right: 8px; font-size: 18px; vertical-align: -2px; }
@media (min-width: 700px) { .trust-icon { width: 54px; height: 54px; padding: 12px; font-size: 30px; } .trust-grid > div { grid-template-columns: 58px minmax(0, 1fr); } }

/* ================= Catalog search + filters ================= */
.catalog-tools { padding: 18px 0; }
.catalog-tools > .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.catalog-filter { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.catalog-tools form.catalog-filter { position: static; width: auto; }
.catalog-filter__search { position: relative; flex: 1 1 300px; min-width: 0; }
.catalog-filter__search > .bi-search { position: absolute; top: 50%; left: 16px; color: #7b8791; font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.catalog-tools .catalog-filter__search input { width: 100%; height: 48px; min-height: 48px; padding: 0 48px 0 46px; font-size: 16px; background: #fff; border: 1px solid #cbd5dd; border-radius: 4px; outline: none; }
.catalog-tools .catalog-filter__search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.catalog-tools .catalog-filter__search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,71,117,.12); }
.catalog-filter__clear { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; color: #5b6875; border-radius: 4px; place-items: center; transform: translateY(-50%); font-size: 16px; }
.catalog-filter__clear:hover { color: var(--navy); background: var(--pale); }
.catalog-filter__select { flex: 0 1 190px; height: 48px; padding: 0 14px; color: var(--ink); background: #fff; border: 1px solid #cbd5dd; border-radius: 4px; font-size: 15px; }
.catalog-filter__select:focus, .catalog-filter__check:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,71,117,.12); outline: none; }
.catalog-filter__check { display: inline-flex; height: 48px; padding: 0 14px; align-items: center; gap: 9px; background: #fff; border: 1px solid #cbd5dd; border-radius: 4px; font-size: 15px; white-space: nowrap; cursor: pointer; }
.catalog-filter__check input { width: 18px; height: 18px; accent-color: var(--orange); }
.catalog-tools .catalog-filter__submit { position: static; width: auto; height: 48px; min-height: 48px; padding: 0 24px; color: #fff; background: var(--navy); border: 0; border-radius: 5px; }
.catalog-tools .catalog-filter__submit:hover { background: var(--blue); }
.catalog-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.catalog-tools .catalog-count { color: var(--slate); font-size: 14px; }
.filter-chip { display: inline-flex; padding: 6px 10px; align-items: center; gap: 8px; color: var(--navy); background: var(--pale); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; }
.filter-chip:hover { border-color: var(--navy); }
.filter-chip i { font-size: 11px; }
.catalog-reset { color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: underline; }
@media (max-width: 699px) {
    .catalog-tools > .container { gap: 10px; }
    .catalog-filter__search { flex: 1 1 100%; }
    .catalog-filter__select { flex: 1 1 calc(50% - 5px); }
    .catalog-filter__check { flex: 1 1 100%; }
    .catalog-tools .catalog-filter__submit { flex: 1 1 100%; justify-content: center; height: 50px; min-height: 50px; }
    .feature-card .feature-icon-cdn { width: 68px; height: 68px; font-size: 36px; }
    .product-visual > span.product-placeholder-icon { font-size: 76px; }
    .account-sidebar a { flex-direction: column; gap: 3px; font-size: 12px; }
    .account-sidebar a i.bi { margin: 0; font-size: 20px; }
}

/* Catalog controls below wide desktop: search on its own row, filters + button aligned on the next */
@media (min-width: 700px) and (max-width: 1199px) {
    .catalog-filter__search { flex: 1 1 100%; }
    .catalog-filter__select { flex: 1 1 160px; }
    .catalog-filter__check, .catalog-tools .catalog-filter__submit { flex: 0 0 auto; }
}

/* Cart icon spacing in header; cart count badge on account tabs */
.cart-link { gap: 8px; }
.cart-link .nav-action-icon { width: 22px; height: 22px; font-size: 22px; }
@media (max-width: 699px) {
    .account-sidebar a { position: relative; }
    .account-sidebar a span { position: absolute; top: 2px; left: calc(50% + 6px); width: 18px; height: 18px; margin: 0; background: var(--orange); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 800; }
}
@media (max-width: 1019px) { .cart-link .nav-action-icon { width: 26px; height: 26px; font-size: 26px; } }

/* Account: three cards (profile, access, security) and the card link */
.account-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-link { display: inline-flex; margin-top: 14px; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; }
.card-link:hover { text-decoration: underline; }
@media (max-width: 699px) { .account-sidebar a { padding-left: 4px; padding-right: 4px; } .account-sidebar a span { left: calc(50% + 4px); } }
