/* Online ordering (HealPro) – uses the site's colours from custom.css */
.hp-shop { background: #f5f7fa; color: #1f2d3d; padding: 40px 0 80px; font-weight: 400; line-height: 1.55; }
.hp-shop a { color: var(--color-secondary, #013f70); display: inline; }
.hp-shop a:hover { color: var(--color-primary, #d73828); }
.hp-shop h2, .hp-shop h3, .hp-shop h4 { color: #13283d; font-weight: 500; }
.hp-shop .text-muted { color: #6b7a8c !important; }
.hp-shop svg { fill: currentColor; }

/* Sub-navigation */
.hp-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; padding: 8px; margin-bottom: 24px; }
.hp-subnav a, .hp-subnav button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; color: #33475b; font-weight: 500; font-size: 15px; background: none; border: 0; cursor: pointer; text-decoration: none; }
.hp-subnav a:hover, .hp-subnav button:hover { background: #eef3f8; color: var(--color-secondary); }
.hp-subnav a.active { background: var(--color-secondary, #013f70); color: #fff; }
.hp-subnav .hp-subnav__right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-subnav .hp-who { font-size: 13px; color: #6b7a8c; padding: 0 8px; }
.hp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--color-primary, #d73828); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }

/* Cards & panels */
.hp-card { background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; padding: 22px; box-shadow: 0 1px 2px rgba(16,40,64,.04); }
.hp-card + .hp-card { margin-top: 18px; }
.hp-card h3 { font-size: 18px; margin: 0 0 14px; }
.hp-narrow { max-width: 520px; margin: 0 auto; }
.hp-medium { max-width: 860px; margin: 0 auto; }

/* Buttons */
.hp-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 999px; border: 1px solid #cfd8e3; background: #fff; color: #1f2d3d !important; font-weight: 500; font-size: 15px; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.hp-btn:hover { background: #eef3f8; }
.hp-btn--primary { background: var(--color-primary, #d73828); border-color: var(--color-primary, #d73828); color: #fff !important; }
.hp-btn--primary:hover { background: #bd2d1f; border-color: #bd2d1f; }
.hp-btn--navy { background: var(--color-secondary, #013f70); border-color: var(--color-secondary, #013f70); color: #fff !important; }
.hp-btn--navy:hover { background: var(--color-secondary-dark, #003559); }
.hp-btn--sm { padding: 6px 14px; font-size: 14px; }
.hp-btn--block { width: 100%; }
.hp-btn--link { border: 0; background: none; color: #6b7a8c !important; padding: 6px 8px; }
.hp-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Forms */
.hp-shop .form-label { font-size: 14px; font-weight: 500; color: #33475b; margin-bottom: 4px; }
.hp-shop .form-control, .hp-shop .form-select { border-radius: 10px; border-color: #cfd8e3; padding: 9px 12px; font-size: 15px; color: #1f2d3d; }
.hp-shop .form-control:focus, .hp-shop .form-select:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(1,63,112,.12); }
.hp-shop .invalid-feedback { display: block; font-size: 13px; }
.hp-shop .form-text { font-size: 13px; color: #6b7a8c; }
.hp-section-title { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #6b7a8c !important; margin: 24px 0 12px; font-weight: 500; }

/* Alerts */
.hp-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; border: 1px solid transparent; }
.hp-alert--success { background: #e9f7ee; color: #17663a; border-color: #c4ead3; }
.hp-alert--warning { background: #fff6e5; color: #8a5300; border-color: #f8e0b0; }
.hp-alert--danger { background: #fdecec; color: #a12020; border-color: #f5c6c6; }
.hp-alert--info { background: #eaf2fb; color: #0b4a85; border-color: #c9dcf2; }

/* Catalogue */
.hp-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.hp-toolbar .form-control { flex: 1 1 260px; }
.hp-toolbar .form-select { flex: 0 1 220px; }
.hp-products { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; overflow: hidden; }
.hp-products th { background: #f8fafc; color: #6b7a8c; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; padding: 12px 14px; border-bottom: 1px solid #e3e8ee; text-align: left; }
.hp-products td { padding: 14px; border-bottom: 1px solid #eef2f6; vertical-align: middle; font-size: 15px; }
.hp-products tr:last-child td { border-bottom: 0; }
.hp-products .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-products .hp-pname { font-weight: 500; color: #13283d; }
.hp-products .hp-pmeta { font-size: 13px; color: #6b7a8c; }
.hp-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eaf2fb; color: #0b4a85; font-size: 12px; font-weight: 500; }
.hp-tag--ok { background: #e9f7ee; color: #17663a; }
.hp-tag--warn { background: #fff6e5; color: #8a5300; }
.hp-tag--bad { background: #fdecec; color: #a12020; }
.hp-stock { font-weight: 500; }
.hp-stock.ok { color: #17663a; } .hp-stock.low { color: #b26a00; } .hp-stock.out { color: #b42318; }
.hp-addform { display: flex; gap: 6px; justify-content: flex-end; }
.hp-addform input { width: 76px; text-align: center; padding: 6px 8px !important; }
.hp-pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hp-pager a, .hp-pager span { padding: 6px 12px; border-radius: 8px; border: 1px solid #e3e8ee; background: #fff; font-size: 14px; }
.hp-pager span.current { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.hp-empty { text-align: center; padding: 48px 20px; color: #6b7a8c; background: #fff; border: 1px dashed #cfd8e3; border-radius: 14px; }

/* Cart bar */
.hp-cartbar { position: sticky; bottom: 16px; z-index: 5; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--color-secondary-dark, #003559); color: #fff; border-radius: 14px; padding: 10px 10px 10px 20px; box-shadow: 0 10px 30px rgba(0,30,60,.25); }
.hp-cartbar span { color: #fff; }

/* Summary */
.hp-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; }
.hp-summary dt { color: #6b7a8c; font-weight: 400; }
.hp-summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hp-summary .total { font-size: 20px; font-weight: 600; color: #13283d; padding-top: 10px; border-top: 1px solid #e3e8ee; }

/* Order list / status */
.hp-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #eef2f6; color: #33475b; white-space: nowrap; }
.hp-status.s-sent { background: #eaf2fb; color: #0b4a85; }
.hp-status.s-done { background: #e9f7ee; color: #17663a; }
.hp-status.s-warn { background: #fff6e5; color: #8a5300; }
.hp-status.s-bad { background: #fdecec; color: #a12020; }
.hp-timeline { list-style: none; padding: 0; margin: 0; }
.hp-timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.hp-timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-secondary); }
.hp-timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: #d6dee8; }
.hp-timeline li:last-child::after { display: none; }

/* Invoice */
.hp-invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e3e8ee; padding-bottom: 16px; margin-bottom: 16px; }
.hp-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 340px; margin-left: auto; }
.hp-totals dt { color: #6b7a8c; font-weight: 400; } .hp-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hp-totals .grand { font-size: 18px; font-weight: 600; color: #13283d; border-top: 1px solid #e3e8ee; padding-top: 8px; }

/* Responsive tables → cards */
@media (max-width: 767px) {
  .hp-shop { padding: 24px 0 60px; }
  .hp-products thead { display: none; }
  .hp-products, .hp-products tbody, .hp-products tr, .hp-products td { display: block; width: 100%; }
  .hp-products tr { padding: 12px 14px; border-bottom: 1px solid #eef2f6; }
  .hp-products td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .hp-products td[data-label]::before { content: attr(data-label); color: #6b7a8c; font-size: 13px; text-align: left; }
  .hp-products td.hp-main { display: block; text-align: left; }
  .hp-products td.hp-main::before { display: none; }
  .hp-addform { width: 100%; justify-content: flex-start; margin-top: 6px; }
  .hp-subnav .hp-subnav__right { margin-left: 0; }
}

@media print {
  header, footer, .page-header, .hp-subnav, .hp-noprint, .hp-alert { display: none !important; }
  .hp-shop { background: #fff; padding: 0; }
  .hp-card { border: 0; box-shadow: none; padding: 0; }
}
