/* inparafarmacia design system.
   Flat and clean, square buttons, retail-pharmacy feel (Boots reference in docs/riferimenti).
   Brand colours come from config BRAND as --brand / --brand-2 / --accent (see base.html). */

@font-face { font-family: "Murecho"; src: url("../fonts/murecho-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Murecho"; src: url("../fonts/murecho-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Murecho"; src: url("../fonts/murecho-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("../fonts/arimo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arimo"; src: url("../fonts/arimo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #121212;
  --ink-soft: #4a4f5c;
  --muted: #6b7280;
  --line: #e3e6eb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --brand-soft: #eef3f9;
  --ok: #1a7f37;
  --warn: #b25e00;
  --danger: #c0262d;
  --font-head: "Murecho", system-ui, sans-serif;
  --font-body: "Arimo", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--brand-2);
  --bs-link-hover-color: var(--brand);
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
}

body { background: var(--surface); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5 { font-family: var(--font-head); font-weight: 700; color: var(--brand); }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.text-accent { color: var(--accent) !important; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Buttons: square, flat ---------- */
.btn { border-radius: 0; font-weight: 700; letter-spacing: .01em; }
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); --bs-btn-hover-color: #fff;
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); --bs-btn-disabled-color: #fff; }
.btn-accent { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #e86f00; --bs-btn-hover-border-color: #e86f00; --bs-btn-hover-color: #fff; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); }
.form-control, .form-select { border-radius: 0; border-color: #c9ced6; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(0, 71, 128, .15); }
.card { border-radius: 0; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--brand); color: #fff; font-size: .875rem; }
.announce .wrap { display: flex; justify-content: center; gap: 24px; padding-top: 7px; padding-bottom: 7px; }
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
@media (min-width: 768px) { .announce .wrap { justify-content: space-between; } }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; display: block; }
@media (min-width: 992px) { .logo img { height: 52px; } }
.icon-btn { background: none; border: 0; font-size: 1.6rem; padding: 0 4px; color: var(--brand); }
.search { flex: 1; display: flex; border: 2px solid var(--brand); background: #fff; }
.search input { flex: 1; border: 0; padding: 10px 14px; font-size: 1rem; min-width: 0; outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; width: 52px; font-size: 1.1rem; }
.header-row .search { max-width: 640px; margin: 0 auto; }
.header-icons { display: flex; gap: 18px; margin-left: auto; }
.icon-link { display: flex; flex-direction: column; align-items: center; color: var(--brand); text-decoration: none; font-size: .75rem; font-weight: 700; }
.icon-link i { font-size: 1.45rem; line-height: 1; }
.icon-link span { display: none; }
@media (min-width: 576px) { .icon-link span { display: block; } }

.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding-top: 0; padding-bottom: 0; overflow-x: auto; }
.cat-nav a { display: block; padding: 12px 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: var(--brand); border-bottom-color: var(--accent); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.hero-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.2fr 1fr; padding-top: 64px; padding-bottom: 64px; } }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 16px; }
.hero .lead { font-size: 1.15rem; opacity: .92; max-width: 34em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-card { background: #fff; color: var(--ink); padding: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); max-width: 420px; justify-self: center; width: 100%; }
.chat-bubble { padding: 12px 14px; margin-bottom: 10px; max-width: 88%; font-size: .95rem; line-height: 1.4; }
.chat-bubble.them { background: var(--surface-2); }
.chat-bubble.us { background: var(--brand-soft); margin-left: auto; border-left: 3px solid var(--accent); }
.chat-sign { margin: 6px 0 0; font-size: .85rem; color: var(--brand-2); font-weight: 700; }

/* ---------- Category quicklinks (round icons) ---------- */
.quicklinks ul { list-style: none; display: flex; gap: 18px; overflow-x: auto; padding: 28px 0 8px; margin: 0; scroll-snap-type: x mandatory; }
.quicklinks li { flex: 0 0 auto; scroll-snap-align: start; }
.quicklinks a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-decoration: none; color: var(--ink); }
.ql-circle { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); transition: border-color .15s; }
.ql-circle img { width: 78%; height: 78%; object-fit: contain; }
.ql-circle i { font-size: 2rem; color: var(--accent); }
.quicklinks a:hover .ql-circle { border-color: var(--accent); }
.ql-label { font-size: .85rem; font-weight: 700; text-align: center; line-height: 1.2; }

/* ---------- Promise strip ---------- */
.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 24px; padding-bottom: 8px; }
@media (min-width: 992px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise-item { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); }
.promise-item i { font-size: 1.6rem; color: var(--accent); }
.promise-item strong { display: block; color: var(--brand); font-size: .95rem; }
.promise-item span { font-size: .82rem; color: var(--muted); }

/* ---------- Shelves and product cards ---------- */
.shelf { padding-top: 32px; padding-bottom: 8px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shelf-head h2 { font-size: 1.5rem; margin: 0; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shelf-row > * { scroll-snap-align: start; }
@media (min-width: 768px) { .shelf-row { grid-auto-columns: calc((100% - 36px) / 4); } }
@media (min-width: 1200px) { .shelf-row { grid-auto-columns: calc((100% - 48px) / 5); } }
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }

.p-card { background: #fff; border: 1px solid var(--line); height: 100%; transition: box-shadow .15s, border-color .15s; }
.p-card:hover { border-color: #c9ced6; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.p-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.p-card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 12px; }
.p-card-img img { width: 100%; height: 100%; object-fit: contain; }
.p-card-noimg { width: 100%; height: 100%; display: grid; place-items: center; background: var(--surface-2); color: #b8bec8; font-size: 2.6rem; }
.p-card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card-brand { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-2); }
.p-card-title { margin: 0; font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-price { margin: auto 0 0; padding-top: 6px; display: flex; gap: 8px; align-items: baseline; }
.p-card-price strong { font-size: 1.1rem; color: var(--ink); }
.p-card-price s { color: var(--muted); font-size: .85rem; }
.p-card-stock { margin: 0; font-size: .8rem; color: var(--danger); }
.badge-offer { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; }
.badge-offer.static { position: static; }

/* ---------- "Ask the pharmacist" banner ---------- */
.ask-banner { background: var(--brand-soft); margin-top: 40px; }
.ask-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.ask-grid h2 { margin-bottom: 6px; }
.ask-grid p { margin: 0; color: var(--ink-soft); }
.ask-banner .btn-light { background: #fff; border: 2px solid var(--brand); color: var(--brand); }

/* ---------- Listing ---------- */
.breadcrumb { font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-soft); }
.page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-intro { color: var(--ink-soft); max-width: 48em; }
.result-count { color: var(--muted); font-size: .9rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 20px; }
.chips a { display: block; padding: 7px 14px; border: 1px solid var(--brand); color: var(--brand); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a:hover { background: var(--brand); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 28px 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 24px; }
@media (min-width: 992px) { .pdp { grid-template-columns: 55% 1fr; gap: 48px; } }
.pdp-main-img { position: relative; aspect-ratio: 1; border: 1px solid var(--line); display: grid; place-items: center; padding: 24px; background: #fff; }
.pdp-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; overflow-x: auto; }
.pdp-thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.pdp-thumbs button:hover, .pdp-thumbs button.active { border-color: var(--brand); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-brand { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--brand-2); text-decoration: none; }
.pdp-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 10px; line-height: 1.25; }
.pdp-short { color: var(--ink-soft); }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.pdp-price strong { font-size: 1.9rem; font-family: var(--font-head); color: var(--ink); }
.pdp-price s { color: var(--muted); }
.pdp-variants { margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-variants legend { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.chip-option { border: 1px solid #c9ced6; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.btn-check:checked + .chip-option { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.pdp-stock { font-weight: 700; margin-bottom: 14px; }
.pdp-stock.ok { color: var(--ok); } .pdp-stock.low { color: var(--warn); } .pdp-stock.none { color: var(--danger); }
.pdp-buy { display: flex; gap: 10px; margin-bottom: 20px; }
.qty { display: flex; border: 1px solid #c9ced6; }
.qty button { width: 42px; border: 0; background: #fff; font-size: 1.3rem; color: var(--brand); }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-delivery { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); }
.pdp-delivery li { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pdp-delivery li:last-child { border-bottom: 0; }
.pdp-delivery i { font-size: 1.3rem; color: var(--accent); }
.pdp-delivery strong { display: block; font-size: .95rem; }
.pdp-delivery span { font-size: .85rem; color: var(--muted); }
.pdp-ask { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--brand-soft); color: var(--brand); text-decoration: none; border-left: 4px solid var(--accent); }
.pdp-ask > i:first-child { font-size: 1.5rem; }
.medicine-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid #f0c99b; background: #fff8ef; font-size: .9rem; }
.medicine-note p { margin: 0; }
.pdp-details { margin-top: 32px; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0;
  --bs-accordion-active-bg: var(--brand-soft); --bs-accordion-active-color: var(--brand); --bs-accordion-btn-focus-box-shadow: none; }
.pdp-details .accordion-button { font-family: var(--font-head); font-weight: 700; }
.codes { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.codes dt { color: var(--muted); font-weight: 400; }
.codes dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--surface-2); }
.usp-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
@media (min-width: 992px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } }
.usp-grid div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--brand); }
.usp-grid i { font-size: 1.4rem; color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 36px; padding-bottom: 36px; }
.footer-grid > :first-child { grid-column: 1 / -1; }   /* phone: logo + address full width, the rest two by two */
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer-grid.has-eu { grid-template-columns: 1.3fr 1fr 1fr 1fr auto; }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-eu { display: flex; align-items: flex-start; }
.footer-eu .eu-logo img { display: block; width: 110px; height: auto; }
.footer-logo { height: 40px; width: auto; }
.footer-title { font-size: 1rem; margin-bottom: 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--ink); text-decoration: none; }
.footer-list a:hover { color: var(--brand); text-decoration: underline; }
.social { display: flex; gap: 14px; margin-top: 14px; font-size: 1.4rem; }
.social a { color: var(--brand); }
.pay-marks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-marks li { background: #fff; padding: 3px 6px; line-height: 0; }
.footer-legal { background: var(--brand); color: #fff; font-size: .8rem; padding: 12px 0; }

/* ---------- Admin (phone first) ---------- */
body.admin { background: var(--surface-2); }
.admin-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 1020; }
.admin-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.admin-brand img { background: #fff; }
.admin-nav { display: flex; gap: 4px; }
.admin-nav a { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .72rem; font-weight: 700; }
.admin-nav a i { font-size: 1.25rem; }
.admin-nav a.active, .admin-nav a:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 575px) {
  .admin-brand span { display: none; }
}
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 24px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat { display: flex; flex-direction: column; padding: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--brand); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.stat-attention { border-left: 4px solid var(--accent); }
.admin-card { background: #fff; border: 1px solid var(--line); padding: 18px; }
.admin-filters { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 768px) { .admin-filters { grid-template-columns: 1fr 180px 180px auto; } }
.admin-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.admin-list a:hover { background: var(--brand-soft); }
.admin-thumb { flex: 0 0 48px; height: 48px; display: grid; place-items: center; background: var(--surface-2); color: #b8bec8; }
.admin-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.admin-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-list-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.admin-list-main small { color: var(--muted); }
.status-pill { font-size: .75rem; font-weight: 700; padding: 3px 8px; white-space: nowrap; }
.status-draft { background: #eceff3; color: var(--ink-soft); }
.status-review { background: #fff1e0; color: var(--warn); }
.status-active { background: #e6f4ea; color: var(--ok); }
.status-hidden { background: #f3f4f6; color: var(--muted); }

/* ---------- Admin: approval / edit (thumb friendly) ---------- */
.nav-badge { position: absolute; top: 2px; right: 4px; background: var(--accent); color: #fff; font-size: .65rem; padding: 1px 5px; line-height: 1.3; }
.admin-nav a { position: relative; }
.edit-facts { margin-bottom: 14px; }
.src-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; background: var(--surface-2); color: var(--ink-soft); margin-right: 4px; }
.src-ai { background: #eef3f9; color: var(--brand-2); }
.ai-note { margin: 12px 0 0; padding: 10px 12px; background: #fff8ef; border-left: 3px solid var(--accent); font-size: .9rem; }
.photo-strip { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; overflow-x: auto; }
.photo-strip li { position: relative; flex: 0 0 104px; height: 104px; background: #fff; border: 1px solid var(--line); }
.photo-strip img { width: 100%; height: 100%; object-fit: contain; }
.photo-strip form { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.photo-btn { border: 0; background: rgba(255, 255, 255, .92); width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.photo-add label { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--brand); font-weight: 700; font-size: .85rem; }
.photo-add form { position: static; height: 100%; }
.photo-add i { font-size: 1.8rem; }
.edit-form { background: #fff; border: 1px solid var(--line); padding: 16px 16px 0; }
.edit-form .form-label { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.kind-options { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-actions { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 14px; margin-top: 16px; background: #fff; border-top: 1px solid var(--line); }
.edit-actions .btn { padding: 11px 12px; white-space: nowrap; font-size: .95rem; }
@media (max-width: 400px) { .edit-actions { gap: 6px; } .edit-actions .btn { padding: 11px 9px; font-size: .9rem; } }

/* ---------- Cart, checkout, order ---------- */
.cart-link { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: .68rem; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.empty-cart { text-align: center; padding: 48px 0; color: var(--muted); }
.empty-cart i { font-size: 3rem; color: #b8bec8; }
.cart-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) { .cart-grid { grid-template-columns: 1fr 360px; } }
.cart-lines { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); background: #fff; }
.cart-lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px; align-items: start; }
.cart-lines li + li { border-top: 1px solid var(--line); }
.cart-img { width: 72px; height: 72px; display: grid; place-items: center; background: var(--surface-2); color: #b8bec8; font-size: 1.6rem; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-title { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.cart-price { color: var(--muted); font-size: .9rem; }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-qty button { border: 1px solid #c9ced6; background: #fff; width: 34px; height: 34px; font-size: 1.1rem; color: var(--brand); }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 700; }
.cart-qty .cart-remove { width: auto; border: 0; font-size: .85rem; color: var(--muted); text-decoration: underline; margin-left: 6px; }
.cart-line-total { white-space: nowrap; }
.cart-summary { background: #fff; border: 1px solid var(--line); padding: 18px; position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 8px; }
.sum-note { font-size: .85rem; color: var(--ink-soft); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.summary-lines li.total { font-weight: 700; font-size: 1.05rem; border-bottom: 0; }
.checkout-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) { .checkout-grid { grid-template-columns: 1fr 360px; } }
.co-block { background: #fff; border: 1px solid var(--line); padding: 16px; margin-bottom: 14px; }
.co-block .form-label { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.delivery-option { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.delivery-option:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.delivery-option input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; }
.do-body { flex: 1; display: flex; flex-direction: column; }
.do-body small { color: var(--muted); }
.do-price { font-weight: 700; white-space: nowrap; }
.pay-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.order-page { max-width: 900px; }
.order-ok { color: var(--ok); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.order-steps { list-style: none; display: flex; padding: 0; margin: 16px 0; counter-reset: step; }
.order-steps li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 30px; }
.order-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; }
.order-steps li.done { color: var(--brand); font-weight: 700; }
.order-steps li.done::before { background: var(--brand); color: #fff; content: "✓"; }
.card-like { background: #fff; border: 1px solid var(--line); padding: 16px; }
.footer-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-links a { color: #fff; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.legal li { margin-bottom: .35rem; }
.legal-table { font-size: .9rem; }
.legal-table th { background: var(--surface-2, #F3F4F6); white-space: nowrap; }
.legal-form p { margin-bottom: .5rem; }
.legal-seller { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line, #e5e7eb); font-size: .85rem; }
.footer-seller { max-width: 640px; }
.footer-seller a { color: #fff; text-decoration: underline; }
.order-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 12px; }
.order-tabs a { padding: 8px 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.order-tabs a.active { border-color: var(--brand); color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); }
.order-tabs b { font-weight: 400; color: var(--muted); margin-left: 4px; }
.order-paid { background: #fff1e0; color: var(--warn); }
.order-preparing { background: #eef3f9; color: var(--brand-2); }
.order-ready, .order-shipped { background: #e6f4ea; color: var(--ok); }
.order-completed, .order-pending { background: #f3f4f6; color: var(--muted); }
.order-cancelled { background: #fdecec; color: var(--danger); }
@media print { .admin-header, .alert { display: none !important; } body.admin { background: #fff; } }
.order-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; margin-top: 12px; }
.order-banner.has-orders { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-banner i:first-child { font-size: 1.4rem; }
.table .text-end { white-space: nowrap; }

/* ---------- Shop window ---------- */
.promo-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px;
  padding: 24px; background: linear-gradient(120deg, #fff4ea 0%, #ffe1c4 100%); border-left: 6px solid var(--accent); }
.promo-hero h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 4px; }
.promo-hero p { margin: 0; color: var(--ink-soft); }
.shelf-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.pdp-expiry { font-weight: 700; color: var(--warn); margin-bottom: 8px; }
.promo-active, .promo-scheduled { background: #e6f4ea; color: var(--ok); }
.promo-proposed { background: #fff1e0; color: var(--warn); }
.promo-ended, .promo-rejected { background: #f3f4f6; color: var(--muted); }
.admin-nav a { padding: 6px 7px; }
.simulate-bar { background: #fff4ea; border-bottom: 2px solid var(--accent); padding: 10px 0; font-weight: 700; }

/* Uniform photo boxes: the image always stays inside its square, never stretches it */
.p-card-img, .pdp-main-img { position: relative; overflow: hidden; }
.p-card-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.pdp-main-img img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.p-card-img .badge-offer, .pdp-main-img .badge-offer { z-index: 1; }
.photo-small { outline: 2px solid var(--warn); outline-offset: -2px; }
.photo-warn { position: absolute; left: 4px; bottom: 4px; background: var(--warn); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; }
.photo-add form { display: flex; flex-direction: column; }
.photo-add label:first-of-type { flex: 1; }
.photo-bg { display: flex !important; flex-direction: row !important; gap: 4px; height: auto !important; font-size: .7rem !important; padding: 0 0 6px; color: var(--ink-soft) !important; }
.photo-bg input { width: 14px; height: 14px; }
.need-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; background: var(--brand-soft); border-left: 4px solid var(--accent); }
.need-banner > i { font-size: 1.6rem; color: var(--accent); }
.need-banner strong { display: block; color: var(--brand); font-size: 1.05rem; }
.need-banner span { font-size: .9rem; color: var(--ink-soft); }
.chips small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.need-suggest { margin-top: 32px; }
@media (max-width: 767px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .chips li { flex: 0 0 auto; }
  .chips a { padding: 6px 12px; font-size: .85rem; }
  .need-banner { align-items: flex-start; }
}

/* ---------- Loyalty ---------- */
.loyalty-page { max-width: 520px; margin: 0 auto; }
.loyalty-card-visual { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.lc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.lc-head img { background: #fff; }
.lc-head strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.lc-head span { opacity: .85; }
.lc-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lc-stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; font-weight: 700; opacity: .8; }
.lc-stamps span.on { background: var(--accent); border: 2px solid var(--accent); opacity: 1; font-size: 1.3rem; }
.lc-count { margin: 14px 0; font-weight: 700; }
.lc-qr { background: #fff; color: var(--ink); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lc-qr svg { width: 180px; height: 180px; }
.stamp-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 420px; }
.stamp-grid span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #c9ced6; display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.stamp-grid span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.scan-box input { font-size: 1.4rem; padding: 14px; letter-spacing: .05em; }
.loyalty-optin { background: var(--brand-soft); padding: 10px 10px 10px 34px; }
.loyalty-note { color: var(--brand); font-weight: 700; }
.lc-qr code { color: var(--ink); font-size: 1.1rem; letter-spacing: .08em; }
.staging-bar { background: #fff3cd; color: #664d03; text-align: center; font-size: .8rem; font-weight: 700; padding: 4px 8px; }

/* ---------- Chiedi alla farmacista ---------- */
.advice { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 220px); }
.advice-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.advice-head h1 { font-size: 1.4rem; margin: 0; }
.advice-head p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.advice-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.bubble { max-width: 86%; padding: 10px 14px; line-height: 1.45; }
.bubble p { margin: 0 0 6px; } .bubble p:last-of-type { margin-bottom: 0; }
.bubble.bot { background: var(--surface-2); align-self: flex-start; }
.bubble.me { background: var(--brand); color: #fff; align-self: flex-end; }
.bubble.pharmacist { background: var(--brand-soft); border-left: 4px solid var(--accent); align-self: flex-start; }
.bubble-who { display: block; font-weight: 700; color: var(--brand); font-size: .8rem; margin-bottom: 2px; }
.advice-product { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.advice-product:hover { border-color: var(--brand); }
.advice-product img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.ap-info { display: flex; flex-direction: column; min-width: 0; }
.ap-info small { color: var(--brand-2); font-weight: 700; text-transform: uppercase; font-size: .7rem; }
.ap-info strong { font-size: .9rem; font-weight: 400; }
.ap-price { font-weight: 700; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9aa1ad; animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.advice-escalated { background: #fff8ef; border-left: 4px solid var(--accent); padding: 12px 14px; margin-bottom: 12px; }
.advice-escalated p { margin-bottom: 6px; }
.advice-escalated .form-control { flex: 1 1 160px; }
.advice-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.advice-suggest .chip-option { background: #fff; font-weight: 400; font-size: .9rem; }
.advice-form { position: sticky; bottom: 0; background: #fff; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.advice-consent { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 8px; }
.advice-consent.needed { color: var(--danger); font-weight: 700; }
.advice-input { display: flex; gap: 8px; align-items: flex-end; }
.advice-input textarea { flex: 1; resize: none; border: 2px solid var(--brand); padding: 10px 12px; font-size: 1rem; min-height: 46px; }
.advice-input .btn { height: 46px; width: 52px; }
.advice-note { font-size: .75rem; color: var(--muted); margin: 6px 0 0; }
.advice-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1030; display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.advice-fab:hover { color: #fff; background: #e86f00; }
.advice-fab i { font-size: 1.3rem; }
@media (max-width: 575px) { .advice-fab span { display: none; } .advice-fab { border-radius: 50%; width: 56px; height: 56px; justify-content: center; padding: 0; } }
.admin-nav { overflow-x: auto; scrollbar-width: none; }
.admin-header-row { gap: 8px; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand-2); text-decoration: underline; font-size: inherit; }

/* Riordino intelligente */
.reorder-note { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 14px; margin: 12px 0; background: #fff; }
.reorder-note > i { font-size: 1.4rem; color: var(--accent); line-height: 1; }
.reorder-note ul { margin: 6px 0 0; padding-left: 18px; }
.reorder-note p { margin: 4px 0 10px; }
.reorder-items { list-style: none; padding: 0; margin: 0 0 16px; }
.reorder-items li { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 10px; margin-bottom: 8px; background: #fff; }
.reorder-items img { width: 72px; height: 72px; object-fit: contain; }
.reorder-items .ri-main { flex: 1; }
.reorder-items .ri-out { color: #b42318; font-size: .9rem; }

/* ---------- AI home banner (module banner) ---------- */
.aib { position: relative; background: var(--surface-2); }
.aib-stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.aib-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aib-left .aib-scene { object-position: 100% 50%; }   /* phone: show the people side */
.aib-right .aib-scene { object-position: 0 50%; }
.aib-noscene .aib-stage { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); }
.aib-shade { display: none; }
.aib-products { position: absolute; z-index: 2; bottom: 5%; display: flex; align-items: flex-end; gap: 3%; height: 46%; }
.aib-left .aib-products { left: 5%; }
.aib-right .aib-products { right: 5%; flex-direction: row-reverse; }
.aib-product { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%;
  justify-content: flex-end; text-decoration: none; }
.aib-product img { max-height: calc(100% - 30px); max-width: 32vw; object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .28)) drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); transition: transform .2s; }
.aib-product:nth-child(2) img { max-height: calc(88% - 30px); }
.aib-product:nth-child(3) img { max-height: calc(76% - 30px); }
.aib-on-white img { background: #fff; padding: 6px; }
.aib-product:hover img { transform: translateY(-4px); }
.aib-price { margin-top: 6px; background: #fff; color: var(--ink); font-size: .85rem; padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); white-space: nowrap; }
.aib-price b { color: var(--brand); }
.aib-price s { color: var(--muted); font-size: .78em; }
.aib-ai { position: absolute; right: 8px; top: 6px; font-size: .68rem; color: #fff; background: rgba(0, 0, 0, .45);
  padding: 2px 6px; letter-spacing: .02em; }
.aib-left .aib-ai { right: 8px; }
.aib-right .aib-ai { right: auto; left: 8px; }
.aib-text-wrap { padding: 20px var(--gutter) 26px; background: var(--surface); }
.aib-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700;
  color: var(--accent); margin: 0 0 6px; }
.aib-title { font-family: var(--font-head); font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; margin: 0 0 10px;
  color: var(--brand); font-weight: 700; }
.aib-sub { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 8px; max-width: 30em; }
.aib-until { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.aib-text .btn { margin-top: 6px; }

@media (min-width: 768px) {
  .aib-stage { aspect-ratio: 2048 / 864; width: 100%; max-width: 1680px; margin: 0 auto; }
  .aib-left .aib-scene, .aib-right .aib-scene { object-position: 50% 50%; }
  .aib-shade { display: block; position: absolute; inset: 0; pointer-events: none; }
  .aib-left.aib-dark .aib-shade { background: linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .45) 32%, rgba(255, 255, 255, 0) 52%); }
  .aib-right.aib-dark .aib-shade { background: linear-gradient(270deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .45) 32%, rgba(255, 255, 255, 0) 52%); }
  .aib-left.aib-light .aib-shade { background: linear-gradient(90deg, rgba(0, 25, 60, .62) 0%, rgba(0, 25, 60, .3) 34%, rgba(0, 25, 60, 0) 55%); }
  .aib-right.aib-light .aib-shade { background: linear-gradient(270deg, rgba(0, 25, 60, .62) 0%, rgba(0, 25, 60, .3) 34%, rgba(0, 25, 60, 0) 55%); }
  .aib-products { height: 44%; bottom: 7%; gap: 2.2%; }
  .aib-left .aib-products { left: 41%; }
  .aib-right .aib-products { right: 41%; }
  .aib-noscene.aib-left .aib-products { left: auto; right: 8%; height: 66%; }
  .aib-noscene.aib-right .aib-products { right: auto; left: 8%; height: 66%; }
  .aib-product img { max-width: 13vw; }
  .aib-text-wrap { position: absolute; inset: 0; background: none; padding: 0; display: flex; align-items: center;
    pointer-events: none; }
  .aib-text { pointer-events: none; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .aib-text > * { max-width: 38%; pointer-events: auto; }
  .aib-right .aib-text { text-align: right; }
  .aib-right .aib-text > * { margin-left: auto; }
  .aib-light .aib-title, .aib-light .aib-sub, .aib-light .aib-until { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
  .aib-light .aib-eyebrow { color: #ffb066; }
  .aib-dark .aib-sub { color: var(--ink); }
}
@media (min-width: 1500px) { .aib-text > * { max-width: 34%; } }

.aib-preview .aib-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.banner-card .aib { margin: 0 -18px; }
@media (min-width: 768px) { .banner-card .aib { margin: 0; } }
.banner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.banner-texts { display: grid; gap: 10px; margin-top: 10px; max-width: 560px; }
.banner-texts label { font-size: .85rem; color: var(--ink-soft); }

/* composed banner: the products are in the picture, links and prices sit on them */
.aib-hot { position: absolute; inset: 0; }
.aib-hot-desk { display: none; }
.aib-spot { position: absolute; display: block; }
.aib-spot .aib-price { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); transition: background .15s; }
.aib-spot-in .aib-price { top: auto; bottom: 3%; transform: translateX(-50%); }
.aib-spot:hover .aib-price { background: var(--accent); }
.aib-spot:hover .aib-price b, .aib-spot:hover .aib-price s { color: #fff; }
@media (min-width: 768px) { .aib-hot-desk { display: block; } .aib-hot-phone { display: none; } }
@media (max-width: 767px) {
  .aib-hot-phone .aib-price { font-size: .7rem; padding: 2px 5px; transform: translate(-50%, 3px); }
  .aib-hot-phone .aib-spot-in .aib-price { transform: translateX(-50%); }
  .aib-hot-phone .aib-price s { display: none; }
}
.promo-until { color: var(--ink-soft); margin: -6px 0 18px; }

/* home banner carousel */
.aib-carousel { position: relative; }
.aib-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; }
.aib-track::-webkit-scrollbar { display: none; }
.aib-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.aib-slide > .aib { height: 100%; }
.aib-slide > .hero { height: 100%; display: grid; align-content: center; min-width: 0; }
.aib-slide > .hero .hero-grid > * { min-width: 0; }
.aib-link { position: absolute; inset: 0; z-index: 1; }
.aib-hot { z-index: 2; pointer-events: none; }
.aib-spot { pointer-events: auto; }
.aib-text-wrap { z-index: 3; }
.aib-arrow { position: absolute; top: 0; z-index: 4; display: none; width: 44px; height: 44px; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--brand); font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.aib-arrow:hover { background: #fff; color: var(--accent); }
.aib-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 4px; background: var(--surface); }
.aib-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.aib-dots button[aria-current] { background: var(--accent); width: 22px; border-radius: 5px; }
@media (min-width: 768px) {
  .aib-arrow { display: block; top: calc(min(100vw, 1680px) * 864 / 2048 / 2 - 22px); }
  .aib-prev { left: 12px; }
  .aib-next { right: 12px; }
  .aib-dots { position: absolute; left: 0; right: 0; bottom: 10px; background: none; padding: 0; z-index: 4; pointer-events: none; }
  .aib-dots button { pointer-events: auto; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
}

/* admin: new product */
.new-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 170px; border: 2px dashed var(--line); background: var(--surface-2) center / contain no-repeat;
  cursor: pointer; color: var(--brand); text-align: center; padding: 16px; }
.new-photo i { font-size: 2rem; }
.new-photo small { color: var(--muted); }
.new-photo.has-photo { min-height: 240px; border-style: solid; }
.new-photo.has-photo i, .new-photo.has-photo span { display: none; }
.new-photo.has-photo small { margin-top: auto; background: rgba(255, 255, 255, .9); padding: 2px 8px; color: var(--ink); }
.ai-write { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* admin charts (inline SVG bars) */
.chart { margin: 0; }
.chart-title { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.chart-svg { width: 100%; height: 150px; display: block; }
.chart-now { fill: var(--brand-2); background: var(--brand-2); }
.chart-before { fill: #cfd5de; background: #cfd5de; }
.chart-hit { fill: transparent; }
.chart-col:hover .chart-hit { fill: rgba(0, 71, 128, .06); }
.chart-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; font-size: .68rem; color: var(--muted); }
.chart-axis span { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.chart-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

/* sales and buying */
.advice-card { border-left: 4px solid var(--accent); }
.advice-card ol { margin: 0; padding-left: 1.2rem; }
.advice-card li + li { margin-top: 8px; }
.sales-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .sales-tiles { grid-template-columns: repeat(3, 1fr); } }
.sales-tile { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sales-tile:hover { border-color: var(--accent); }
.sales-tile strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--brand); }
.sales-tile .num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.sales-tile small { color: var(--muted); }
.row-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--ink-soft); }
.row-facts b { color: var(--ink); }
.pill-warn { background: #fff1e6; color: var(--warn); padding: 1px 6px; font-size: .75rem; font-weight: 700; }
.pill-ok { background: #e8f5ec; color: var(--ok); padding: 1px 6px; font-size: .75rem; font-weight: 700; }
.verdict { padding: 22px 18px; color: #fff; text-align: center; }
.verdict-buy { background: var(--ok); }
.verdict-refuse { background: var(--danger); }
.verdict h2 { color: #fff; font-family: var(--font-head); font-size: 2.6rem; margin: 0; letter-spacing: .04em; }
.verdict p { margin: 8px 0 0; font-size: 1.02rem; }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.reasons li:first-child { border-top: 0; }
.reasons i { font-size: 1.2rem; line-height: 1.2; }
.reasons .bi-check-circle-fill { color: var(--ok); }
.reasons .bi-x-circle-fill { color: var(--danger); }
.counter { background: var(--brand-soft); padding: 12px 14px; }

/* customer account */
.account-perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; color: var(--ink-soft); }
.account-perks i { color: var(--accent); margin-right: 6px; }
.account-form { background: #fff; border: 1px solid var(--line); padding: 20px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.account-head { margin-bottom: 18px; }
.account-grid { display: grid; gap: 18px; }
@media (min-width: 992px) { .account-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.account-box { background: #fff; border: 1px solid var(--line); padding: 16px; }
.account-side { display: grid; gap: 14px; }
.account-order { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.account-order > a { flex: 1; min-width: 0; }
.account-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.account-links a, .account-links .btn-link { color: var(--ink); text-decoration: none; font-weight: 400; font-size: 1rem; }
.account-links i { color: var(--brand-2); margin-right: 6px; }
.checkout-login { background: var(--brand-soft); padding: 10px 14px; margin-bottom: 16px; }

/* chat: voice messages */
.advice-mic { background: #fff; border: 2px solid var(--brand); color: var(--brand); font-size: 1.2rem; }
.advice-mic:hover { color: var(--accent); border-color: var(--accent); }
.advice-mic.is-recording { background: var(--danger); border-color: var(--danger); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
.advice-mic.is-busy { opacity: .6; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 38, 45, .45); } 50% { box-shadow: 0 0 0 8px rgba(192, 38, 45, 0); } }
@media (prefers-reduced-motion: reduce) { .advice-mic.is-recording { animation: none; } }
.bubble-voice { display: block; font-size: .72rem; opacity: .8; margin-bottom: 2px; }

/* photos in the private archive (admin) and their staff-only preview on the product page */
.cand-imgs { display: flex; gap: 12px; flex-wrap: wrap; }
.cand-imgs figure { margin: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.cand-imgs img { width: 200px; height: 200px; object-fit: contain; background: #fff; border: 1px solid var(--line); display: block; }
.cand-ok { display: grid; gap: 6px; min-width: 240px; }
.pdp-main-img .staged-badge { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; background: rgba(192, 38, 45, .92); color: #fff;
  font-size: .78rem; text-align: center; padding: 4px 8px; }
.cand-flag { border-left: 4px solid var(--warn); }
.cand-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cand-item { margin: 0; width: 150px; font-size: .72rem; }
.cand-item img { width: 150px; height: 150px; object-fit: contain; background: #fff; border: 1px solid var(--line); display: block; }
.cand-item.is-main img { border: 2px solid var(--ok); }
.cand-item figcaption { padding-top: 4px; line-height: 1.35; }
.cand-actions form { display: flex; gap: 10px; margin-top: 2px; }

/* photos waiting for approval: selection bar and check boxes */
.cand-bar { position: sticky; top: var(--admin-h, 64px); z-index: 1010; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); padding: 8px 12px; margin: 10px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.cand-bar.has-sel { border-left-color: var(--accent); }
.cand-bar.is-busy { opacity: .7; }
.cand-all { font-weight: 700; margin: 0; }
.cand-count { color: var(--muted); font-size: .9rem; }
.cand-bar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cand-bar-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1 1 260px; }
.cand-bar-ok input.form-control { max-width: 240px; }
.cand-item { position: relative; }
.cand-check { position: absolute; top: 6px; left: 6px; z-index: 2; width: 22px; height: 22px; accent-color: var(--brand-2); cursor: pointer; }
.cand-item.is-sel img { outline: 3px solid var(--brand-2); outline-offset: -3px; }
.cand-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1100; max-width: min(92vw, 560px);
  padding: 10px 16px; color: #fff; background: var(--ok); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-weight: 700; font-size: .92rem; }
.cand-toast-danger { background: var(--danger); }
.cand-toast-info { background: var(--ink-soft); }
.cand-toast-warning { background: var(--warn); }

/* Brands in the admin */
.brand-logo-sm { flex: 0 0 64px; height: 40px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.brand-logo-sm img { max-width: 56px; max-height: 32px; object-fit: contain; }
.brand-logo-sm span, .brand-logo-lg span { font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.brand-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.brand-logo-lg { flex: 0 0 160px; height: 80px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 8px; }
.brand-logo-lg img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-logo-lg span { font-size: 1.6rem; }
.brand-head-text { min-width: 0; }
.brand-head-text a { word-break: break-all; }
.brand-stats .stat-num { font-size: 1.6rem; }
.brand-panels { display: grid; gap: 12px; grid-template-columns: 1fr; }
.brand-panels .panel { background: #fff; border: 1px solid var(--line); padding: 16px; }
@media (min-width: 992px) {
  .brand-panels { grid-template-columns: repeat(2, 1fr); }
  .brand-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .brand-logo-lg { flex-basis: 96px; height: 56px; }
}

/* Home: running brand weeks ("Le settimane del momento"), always shown */
.weeks { margin-top: 28px; }
.weeks-row { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.weeks-row li { scroll-snap-align: start; }
.week-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-top: 4px solid var(--accent); color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s; }
.week-card:hover, .week-card:focus-visible { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.week-logo { height: 40px; display: flex; align-items: center; overflow: hidden; margin-bottom: 4px; }
.week-logo img { max-height: 100%; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.week-logo span { font-family: Murecho, sans-serif; font-weight: 700; color: var(--brand); font-size: 1.1rem; }
.week-off { font-weight: 800; color: var(--accent); font-size: 1.35rem; line-height: 1.1; }
.week-title { font-size: 1rem; }
.week-meta { font-size: .85rem; color: var(--muted); margin-top: auto; }
@media (max-width: 576px) { .weeks-row { grid-auto-columns: 72%; } }

/* Home: "I migliori brand" (logos chosen in the admin brand page) */
.top-brands { margin-top: 40px; }
.top-brands-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; }
.top-brands-head h2 { margin: 0; text-align: center; }
.scroller-arrows { position: absolute; right: 0; display: flex; gap: 4px; }
.scroller-arrows button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; }
.scroller-arrows button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.scroller-arrows button:disabled { opacity: .35; }
.top-brands.no-scroll .scroller-arrows { display: none; }
.top-brands-row { list-style: none; margin: 0; padding: 2px 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.top-brands-row::-webkit-scrollbar { display: none; }
.top-brands-row li { scroll-snap-align: start; }
.top-brand { display: flex; align-items: center; justify-content: center; height: 100px; padding: 14px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.top-brand:hover, .top-brand:focus-visible { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.top-brand img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 991px) { .top-brands-row { grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px; } }
@media (max-width: 576px) {
  .top-brands-head { justify-content: space-between; }
  .scroller-arrows { position: static; }
  .top-brands-row { grid-auto-columns: 42%; }
  .top-brand { height: 84px; }
}

/* Home: payment methods, just before the footer */
.pay-banner { margin-top: 48px; padding: 32px 0 8px; border-top: 1px solid var(--line); text-align: center; }
.pay-banner h2 { margin-bottom: 12px; }
.pay-intro { max-width: 760px; margin: 0 auto 24px; color: var(--ink-soft); }
.pay-options { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.pay-options li { flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 20px; }
.pay-options li + li { border-left: 1px solid var(--line); }
.pay-options span { font-weight: 700; color: var(--brand); }
.pay-mark { width: auto; display: block; }
.pay-options .pay-mark { height: 48px; }
.pay-note { max-width: 760px; margin: 20px auto 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 576px) {
  .pay-options li { flex-basis: 100%; padding: 14px 0; }
  .pay-options li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Share buttons (product, brand, promotion and category pages) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0; }
.share-label { font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.share a, .share button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line);
  background: #fff; color: var(--brand); font-size: 1.05rem; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share-done { font-size: .85rem; color: var(--ok); }
@media (max-width: 576px) { .share.has-native a:not(.share-wa) { display: none; } }

/* Footer "Acquista": categories side by side as small buttons instead of a long column */
.footer-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-cats a { display: inline-block; padding: 4px 9px; font-size: .9rem; background: #fff; border: 1px solid var(--line); }
.footer-cats a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* "Chiedi alla farmacista" popup: a floating window on computers, a sheet from the bottom on phones */
.advice-fab { border: 0; }
.advice-fab-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px #fff; }
.advice-pop { position: fixed; z-index: 1040; right: 16px; bottom: 84px; width: 400px; height: min(620px, calc(100vh - 110px));
  background: #fff; box-shadow: 0 12px 40px rgba(0, 24, 60, .28); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; animation: advice-in .18s ease-out; }
.advice-pop[hidden] { display: none; }
@keyframes advice-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.advice-pop .advice { max-width: none; min-height: 0; margin: 0; height: 100%; display: flex; flex-direction: column; }
.advice-pop-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--brand); color: #fff; position: relative; }
.advice-pop-head img { border-radius: 50%; background: #fff; flex: 0 0 36px; }
.advice-pop-titles { flex: 1; min-width: 0; }
.advice-pop-head h2 { font-size: 1.05rem; margin: 0; color: #fff; }
.advice-pop-head p { font-size: .75rem; margin: 0; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advice-pop-btn { background: transparent; border: 0; color: #fff; width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.1rem; border-radius: 50%; }
.advice-pop-btn:hover, .advice-pop-btn:focus-visible { background: rgba(255, 255, 255, .15); }
.advice-pop-grip { display: none; }
.advice-pop-viewing { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #f3f4f6; border-bottom: 1px solid var(--line); }
.advice-pop-viewing img { width: 44px; height: 44px; object-fit: contain; background: #fff; flex: 0 0 44px; }
.advice-pop-viewing div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.advice-pop-viewing small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.advice-pop-viewing strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advice-pop-price { font-weight: 700; color: var(--brand); font-size: .9rem; }
.advice-pop-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.advice-pop-body .advice-thread { flex: 1 0 auto; padding: 14px 0; }
.advice-pop-body .advice-form { margin: 0 -14px; padding: 10px 14px 12px; }
.advice-pop-body .advice-input textarea { font-size: 16px; }   /* 16px: phones do not zoom in */
@media (max-width: 767px) {
  .advice-pop { left: 0; right: 0; bottom: 0; width: auto; height: 85vh; height: 85dvh; border-radius: 16px 16px 0 0; animation-name: advice-up; }
  @keyframes advice-up { from { transform: translateY(100%); } to { transform: none; } }
  .advice-pop-head { padding-top: 18px; touch-action: none; }
  .advice-pop-grip { display: block; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
  body.advice-open { overflow: hidden; }
  body.advice-open .advice-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .advice-pop { animation: none; } }
.advice-pop .advice-consent { font-size: .72rem; line-height: 1.35; }
.advice-pop .advice-note { font-size: .7rem; }

/* Account: questions to the pharmacist under the orders */
@media (min-width: 992px) {
  .account-questions { grid-column: 1; }
  .account-side { grid-column: 2; grid-row: 1 / span 4; }
}
/* Admin customer card: a tick before each conversation */
.advice-row-select { display: flex; align-items: center; gap: 10px; }
.advice-row-select > input { flex: 0 0 auto; margin: 0 0 0 4px; width: 1.2rem; height: 1.2rem; }
.advice-row-select > a { flex: 1; min-width: 0; }

/* Admin customers */
.customer-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 16px 0; }
@media (min-width: 768px) { .customer-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .customer-tiles { grid-template-columns: repeat(6, 1fr); } }
.customer-tiles .stat { padding: 12px; }
.customer-tiles .stat-num { font-size: 1.5rem; }
.customer-tiles .stat.is-on { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.customer-filters .form-select { max-width: 260px; }
.customer-nums { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.customer-nums small { font-weight: 400; color: var(--muted); }
.customer-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.customer-avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; }
.customer-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.customer-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 992px) { .customer-stats { grid-template-columns: repeat(4, 1fr); } }
.customer-stats .stat-num { font-size: 1.6rem; }
@media (max-width: 576px) { .customer-purchases .col-pieces { display: none; } }
.customer-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .customer-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.customer-top { margin: 0; padding-left: 1.2rem; }
.customer-top li + li { margin-top: 4px; }
.customer-purchases td { vertical-align: top; }

/* Discount code in the cart */
.sum-discount { color: var(--ok); }
.sum-discount-off { color: var(--warn); }
.coupon-form { margin: 10px 0 14px; font-size: .9rem; }
.coupon-form summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.narrow-page { max-width: 620px; margin: 0 auto; }
/* Admin: discount campaign */
.campaign-who { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 10px 14px; margin-bottom: 14px; }
.campaign-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .campaign-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.email-preview { width: 100%; height: 640px; border: 1px solid var(--line); background: #fff; }
/* Product page: same-day countdown */
.pdp-sameday strong { color: var(--ok); }
.pdp-sameday strong.is-close { color: var(--accent); }
.pdp-sameday strong.is-over { color: var(--ink); }
/* Pickup QR (order page) and the scanner box (admin orders) */
.pickup-qr { display: flex; gap: 16px; align-items: center; padding: 14px; margin: 12px 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.pickup-qr.is-ready { border-left-color: var(--ok); background: #f1faf3; }
.pickup-qr-img { flex: 0 0 150px; background: #fff; }
.pickup-qr-img svg { width: 150px; height: 150px; display: block; }
.pickup-qr code { font-size: .8rem; }
@media (max-width: 480px) { .pickup-qr { flex-direction: column; text-align: center; } .pickup-qr-img { flex-basis: auto; } .pickup-qr-img svg { width: 200px; height: 200px; } }
.pickup-scan { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); }
.pickup-scan i { font-size: 1.4rem; color: var(--brand); }
/* Chat: photo of a pack */
.bubble-photo img { display: block; max-width: 160px; max-height: 200px; border-radius: 8px; }
.advice-input .advice-cam { width: 46px; }
.advice-pop .advice-input { gap: 6px; }
.advice-pop .advice-input .btn { width: 44px; }
/* Subscriptions */
.subscribe-box { border-left-color: var(--accent); }
.sub-card { border: 1px solid var(--line); padding: 12px; margin-bottom: 10px; background: #fff; }
.sub-card.is-off { opacity: .7; }
@media (min-width: 992px) { .account-subs { grid-column: 1; } }

/* Product page: tax / lowest price line, Klarna box, favourite heart */
.pdp-tax { font-size: .85rem; color: var(--muted); margin: -4px 0 12px; }
.pdp-tax strong { color: var(--ink); }
.pdp-klarna { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); background: #fff; }
.pdp-klarna .pay-mark { flex: 0 0 auto; }
.pdp-klarna p { margin: 0; font-size: .92rem; }
.fav-btn { border: 2px solid var(--brand); color: var(--brand); background: #fff; min-width: 52px; }
.fav-btn:hover, .fav-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.fav-btn.is-on { border-color: var(--accent); color: var(--accent); }
.account-favs { grid-column: 1 / -1; }
@media (min-width: 992px) { .account-favs { grid-column: 1; } }
@media (max-width: 420px) {
  .pdp-buy .btn-lg { font-size: 1rem; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  .pdp-buy .fav-btn { min-width: 46px; padding-left: 0; padding-right: 0; }
  .pdp-buy .qty button { width: 34px; }
}
/* Admin: calendar of moments */
.moment-list li.is-off { opacity: .55; }
.moment-date { flex: 0 0 52px; text-align: center; line-height: 1; color: var(--brand); }
.moment-date b { display: block; font-size: 1.4rem; }
.moment-date small { text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }

/* Blog "I consigli della farmacista" */
.article-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.article-card-img { aspect-ratio: 1200 / 630; background: #f3f4f6; display: grid; place-items: center; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img i { font-size: 2.4rem; color: var(--brand); }
.article-card-text { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 16px; }
.article-card-text small { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.article-card-text strong { font-family: var(--font-head); color: var(--brand); font-size: 1.1rem; line-height: 1.25; }
.article-card-text span { color: var(--ink-soft); font-size: .92rem; }
.article-card.is-small { flex-direction: row; align-items: center; height: auto; }
.article-card.is-small .article-card-img { flex: 0 0 96px; aspect-ratio: 1; }
.article-card.is-small .article-card-text { padding: 8px 12px; }
.article-card.is-small strong { font-size: .95rem; }
.pdp-tips { display: grid; gap: 8px; margin: 14px 0; }
.blog-head .chips a.active { border-color: var(--accent); color: var(--accent); }
.article { max-width: 760px; margin: 0 auto; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brand); margin: 6px 0 10px; }
.article-kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; margin: 0; }
.article-kicker a { color: inherit; }
.article-excerpt { font-size: 1.15rem; color: var(--ink-soft); }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.article-meta img { border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.article-cover { width: 100%; height: auto; display: block; margin: 16px 0; }
.article-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 16px; }
.article-audio audio { flex: 1 1 240px; }
.article-body { font-size: 1.06rem; line-height: 1.7; }
.article-intro { font-size: 1.15rem; }
.article-step h2 { font-size: 1.4rem; color: var(--brand); margin-top: 28px; }
.article-products { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 12px 0 8px; }
@media (min-width: 640px) { .article-products { grid-template-columns: repeat(3, 1fr); } }
.article-tips { background: #fff8ef; border-left: 4px solid var(--accent); padding: 14px 18px; margin: 28px 0; }
.article-tips ul { margin: 0; padding-left: 1.2rem; }
.article-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.article-faq summary { font-weight: 700; cursor: pointer; }
.article-note { font-size: .8rem; color: var(--muted); margin-top: 18px; }
/* Admin: blog article */
.blog-edit-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .blog-edit-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.blog-edit-step { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.article-author { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 8px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.article-author img { border-radius: 50%; border: 1px solid var(--line); flex: 0 0 56px; }
.article-author div { display: flex; flex-direction: column; gap: 2px; }
.article-author strong { color: var(--brand); font-size: 1.05rem; }
.article-author span { font-size: .92rem; color: var(--ink-soft); }
.article-author small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.article-audio span { display: flex; flex-direction: column; line-height: 1.2; }
.article-audio small { font-size: .72rem; color: var(--muted); }

/* Approve list (/admin/approva): a check box beside each product, bulk bar on top */
.review-bar { position: sticky; top: var(--admin-h, 0); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.review-list li { display: flex; align-items: center; }
.review-list li > label.review-check { flex: 0 0 auto; padding: 14px 4px 14px 12px; cursor: pointer; }
.review-list li > label.review-check input { width: 22px; height: 22px; }
.review-list li > a { flex: 1; min-width: 0; padding-left: 8px; }
.review-list li.is-sel { background: var(--brand-soft); }
