/* Pharmacie-Hommes.fr — Authentic Classic French Pharmacy Design Modernized (2026) */

:root {
  --ph-navy: #26264d;
  --ph-text: #4a5565;
  --ph-muted: #768292;
  --ph-crimson: #ef4135;
  --ph-crimson-dark: #d33126;
  --ph-slate: #525c6b;
  --ph-slate-dark: #3e4754;
  --ph-blue: #1f5fbf;
  --ph-blue-dark: #184b97;
  --ph-border: #e5e9f0;
  --ph-border-strong: #d4dce6;
  --ph-thead: #cdd4dc;
  --ph-row-odd: #f3f5f7;
  --ph-row-even: #f8f9fb;
  --ph-row-hover: #f5e5e7;
  --ph-surface: #ffffff;
  --ph-soft: #f5f7fa;
  --ph-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ph-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ph-text);
  background-color: #ffffff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.main-page {
  background-image:
    url('/assets/img/theme/bg.webp'),
    linear-gradient(180deg, #e7f4fd 0%, #f4fafe 360px, #ffffff 599px);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 1440px 599px, 100% 599px;
}

body.inner-page {
  background-image:
    url('/assets/img/theme/bg-inner.webp'),
    linear-gradient(180deg, #ebf5fd 0%, #f6fbff 320px, #ffffff 599px);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: 1440px 599px, 100% 599px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ph-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ph-crimson);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ph-navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------- MOBILE TOP BAR (< 992px) ---------------- */
.ph-mobile-bar {
  display: none;
}

.ph-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 38, 77, 0.42);
  z-index: 190;
}

/* ---------------- MAIN SHELL & HEADER ---------------- */
.ph-page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 36px;
}

.ph-header {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: stretch;
}

.ph-header__logo {
  background: #ffffff;
  border-left: 1px solid var(--ph-border);
  border-right: 1px solid var(--ph-border);
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
}

.ph-header__logo a {
  display: inline-block;
  text-decoration: none;
}

.ph-header__logo img {
  width: 199px;
  height: 58px;
}

.ph-topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.ph-topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.ph-topnav a {
  color: var(--ph-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.ph-topnav a:hover,
.ph-topnav a.is-active {
  color: var(--ph-crimson);
  text-decoration: underline;
}

/* ---------------- 3-COLUMN LAYOUT ---------------- */
.ph-columns {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 215px;
  align-items: start;
}

/* ---------------- LEFT SIDEBAR ---------------- */
.ph-left {
  background: #ffffff;
  border: 1px solid var(--ph-border);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 16px rgba(38, 38, 77, 0.04);
}

.ph-left__mobile-head,
.ph-mobile-links {
  display: none;
}

.ph-cart-box {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f6 100%);
  border-bottom: 1px solid var(--ph-border);
  padding: 14px 18px 16px;
  color: var(--ph-navy);
  transition: background 0.15s ease;
}

.ph-cart-box:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaedf3 100%);
  color: var(--ph-navy);
}

.ph-cart-box__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 10px;
}

.ph-cart-box__body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ph-cart-box__icon {
  color: #5c6878;
  flex-shrink: 0;
  display: flex;
}

.ph-cart-box.is-active .ph-cart-box__icon {
  color: var(--ph-crimson);
}

.ph-cart-box__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.ph-cart-box__qty {
  font-size: 13.5px;
  color: var(--ph-navy);
}

.ph-cart-box__total {
  font-size: 13px;
  color: var(--ph-muted);
}

.ph-cart-box__total strong {
  color: var(--ph-navy);
  font-weight: 600;
}

/* Sidebar Search (March 2026 refinement) */
.ph-search-box {
  padding: 14px 16px;
  background: #f9fafc;
  border-bottom: 1px solid var(--ph-border);
}

.ph-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-search-form input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ph-navy);
  font-family: inherit;
  font-size: 13px;
}

.ph-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 2px rgba(31, 95, 191, 0.14);
}

.ph-search-form button {
  height: 35px;
  border: 0;
  border-radius: 4px;
  background: var(--ph-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ph-search-form button:hover {
  background: var(--ph-blue-dark);
}

/* Catalog Menu */
.ph-catalog-nav {
  padding: 8px 16px 16px;
}

.ph-catalog-group {
  padding: 12px 0 14px;
  border-bottom: 1px solid #edf0f4;
}

.ph-catalog-group:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.ph-catalog-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ph-catalog-group h3 a {
  color: var(--ph-navy);
  text-decoration: none;
}

.ph-catalog-group h3 a:hover,
.ph-catalog-group h3 a.is-active {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-catalog-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-catalog-group li {
  margin: 0;
}

.ph-catalog-group li a {
  position: relative;
  display: block;
  padding: 4px 0 4px 19px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ph-text);
  text-decoration: none;
  transition: color 0.12s ease;
}

.ph-catalog-group li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%2399a3b1' stroke-width='1.3'/%3E%3Cpath d='M6.6 5.2L9.8 8l-3.2 2.8' fill='none' stroke='%237a8594' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ph-catalog-group li a:hover,
.ph-catalog-group li.is-active a {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-catalog-group li.is-active a {
  font-weight: 600;
}

.ph-catalog-group li a:hover::before,
.ph-catalog-group li.is-active a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23ef4135' stroke-width='1.3'/%3E%3Cpath d='M6.6 5.2L9.8 8l-3.2 2.8' fill='none' stroke='%23ef4135' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------------- CENTER COLUMN & WHITE SHEET ---------------- */
.ph-center {
  min-width: 0;
}

.ph-home-hero {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 26px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, 0.85) 88%, #ffffff 100%);
}

.ph-hero-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ph-hero-checks li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-navy);
}

.ph-check-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 3px 10px rgba(38, 38, 77, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ph-sheet {
  background: #ffffff;
  border-top: 2px solid var(--ph-border);
  border-right: 1px solid var(--ph-border);
  border-bottom: 1px solid var(--ph-border);
  padding: 22px 26px 32px;
  min-height: 540px;
}

body.inner-page .ph-sheet {
  box-shadow: inset 0 18px 20px -22px rgba(38, 38, 77, 0.14);
}

/* Brand Logos Strip */
.ph-brands-strip {
  list-style: none;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ph-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
}

.ph-brands-strip--bottom {
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-bottom: 0;
  border-top: 1px solid var(--ph-border);
}

.ph-brands-strip a {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.ph-brands-strip a:hover {
  opacity: 1;
}

/* Breadcrumbs & Headings */
.ph-breadcrumbs {
  font-size: 12.5px;
  color: var(--ph-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ph-breadcrumbs a {
  color: var(--ph-muted);
  text-decoration: none;
}

.ph-breadcrumbs a:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-page-title,
.ph-intro h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ph-navy);
}

.ph-hr {
  border: 0;
  border-top: 1px solid var(--ph-border);
  margin: 12px 0 20px;
}

.ph-lead {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ph-text);
}

.ph-muted {
  color: var(--ph-muted);
  margin: 0 0 14px;
  font-size: 13.5px;
}

.ph-h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-navy);
}

.ph-section {
  margin-top: 26px;
}

.ph-red-link {
  color: var(--ph-crimson);
  font-weight: 600;
  text-decoration: none;
}

.ph-red-link:hover {
  text-decoration: underline;
}

/* ---------------- PRODUCT CARDS GRID (3 COLUMNS) ---------------- */
.ph-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ph-product-card {
  background: #ffffff;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ph-product-card:hover {
  border-color: #cbd4e1;
  box-shadow: 0 4px 14px rgba(38, 38, 77, 0.07);
}

.ph-product-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.ph-product-card__img {
  height: 136px;
  padding: 16px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-product-card__img img {
  max-height: 110px;
  max-width: 136px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ph-product-card__title {
  margin: 6px 0 3px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ph-navy);
}

.ph-product-card__sub {
  font-size: 11.5px;
  color: var(--ph-muted);
  padding: 0 10px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ph-product-card__price {
  margin-top: auto;
  padding: 0 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ph-crimson);
}

.ph-product-card__price--muted {
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 600;
}

.ph-product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  background: var(--ph-slate);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.ph-product-card__link:hover .ph-product-card__btn {
  background: var(--ph-slate-dark);
}

.ph-catalog-more {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 13.5px;
}

.ph-catalog-more a {
  color: var(--ph-navy);
  font-weight: 600;
  text-decoration: none;
}

.ph-catalog-more a:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

/* ---------------- DRUG PAGE TOP & SPECS ---------------- */
.ph-drug-top {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.ph-drug-photo {
  border: 1px solid #d5dce6;
  border-radius: 4px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-drug-photo img {
  width: 176px;
  height: 176px;
  object-fit: contain;
}

.ph-specs {
  margin: 0;
  padding: 12px 14px;
  background: #f8f9fb;
  border: 1px solid var(--ph-border);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.ph-specs dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ph-muted);
  margin-bottom: 2px;
}

.ph-specs dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ph-navy);
}

/* Calm regulatory / status notices */
.ph-notice {
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 14px 0 20px;
  border: 1px solid var(--ph-border);
  border-left: 3px solid var(--ph-slate);
  background: #f6f8fa;
  color: #3d4856;
}

.ph-notice strong {
  color: var(--ph-navy);
}

.ph-notice--warn {
  border-left-color: #c77d19;
  background: #fcf9f2;
  border-color: #ece1cc;
}

.ph-notice--success {
  border-left-color: #2f7d4d;
  background: #f3faf6;
  border-color: #cfe6d8;
}

/* ---------------- PRICING & DATA TABLES ---------------- */
.ph-pricing-section {
  margin-top: 22px;
}

.ph-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 6px;
}

.ph-pricing-head .ph-h2 {
  margin: 0;
}

.ph-pricing-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ph-muted);
}

.ph-dose-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ph-dose-tab {
  border: 1px solid #cfd7e3;
  background: #f3f5f8;
  color: var(--ph-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ph-dose-tab:hover {
  border-color: var(--ph-navy);
}

.ph-dose-tab.is-active {
  background: var(--ph-navy);
  border-color: var(--ph-navy);
  color: #ffffff;
}

.ph-dose-heading {
  margin: 8px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ph-navy);
}

.ph-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 5px;
}

.ph-price-table,
.ph-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.ph-price-table th,
.ph-data-table th {
  background: var(--ph-thead);
  color: var(--ph-navy);
  font-weight: 700;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #ffffff;
  white-space: nowrap;
}

.ph-price-table tr th:first-child,
.ph-data-table tr th:first-child {
  border-top-left-radius: 5px;
}

.ph-price-table tr th:last-child,
.ph-data-table tr th:last-child {
  border-top-right-radius: 5px;
}

.ph-price-table td,
.ph-data-table td {
  background: var(--ph-row-odd);
  padding: 10px 12px;
  border-bottom: 1px solid #ffffff;
  color: #3d4856;
  vertical-align: middle;
}

.ph-price-table tbody tr:nth-child(even) td,
.ph-data-table tbody tr:nth-child(even) td {
  background: var(--ph-row-even);
}

.ph-price-table tbody tr:hover td,
.ph-data-table tbody tr:hover td {
  background: var(--ph-row-hover);
}

.ph-price-table tbody tr:last-child td:first-child,
.ph-data-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 5px;
}

.ph-price-table tbody tr:last-child td:last-child,
.ph-data-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 5px;
}

.ph-price-table th.ph-price-table__act {
  text-align: right;
}

.ph-qty-cell strong {
  color: var(--ph-navy);
}

.ph-bonus-tag {
  display: inline-block;
  margin-left: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-crimson);
}

.ph-unit-cell,
.ph-num {
  white-space: nowrap;
  color: var(--ph-muted);
}

.ph-price-cell {
  white-space: nowrap;
}

.ph-price-cell strong {
  color: var(--ph-navy);
  font-size: 14.5px;
  font-weight: 700;
}

.ph-buy-cell {
  text-align: right;
  white-space: nowrap;
  padding-top: 6px;
  padding-bottom: 6px;
}

.ph-buy-cell form {
  margin: 0;
  display: inline-block;
}

.ph-buy-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ph-crimson);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ph-buy-inline:hover {
  background: var(--ph-crimson);
  color: #ffffff;
}

.ph-buy-inline:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ---------------- CLINICAL EDITORIAL PROSE & ORIGINAL CHECK LISTS ---------------- */
.ph-prose-block {
  margin-bottom: 24px;
  min-width: 0;
  max-width: 100%;
}

.ph-prose {
  max-width: 100%;
  overflow-x: auto;
}

.ph-prose-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ph-navy);
  line-height: 1.3;
}

.ph-prose-block h3 {
  margin: 16px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ph-navy);
}

.ph-prose p {
  margin: 0 0 12px;
  line-height: 1.62;
  color: var(--ph-text);
}

.ph-prose a {
  color: var(--ph-crimson);
  text-decoration: none;
}

.ph-prose a:hover {
  text-decoration: underline;
}

.ph-prose strong {
  color: var(--ph-navy);
}

.ph-prose ul {
  margin: 12px 0 16px;
  padding-left: 20px;
}

.ph-prose li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Signature red-checkmark circle lists (classic Pharmacie-Hommes.fr .list-features) */
.ph-prose--checks ul {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 18px;
}

.ph-prose--checks ul li {
  position: relative;
  padding: 4px 0 12px 42px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
  min-height: 32px;
}

.ph-prose--checks ul li:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.ph-prose--checks ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e4e8f0;
  box-shadow: 0 2px 5px rgba(38, 38, 77, 0.06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4135' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.ph-prose ol {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.ph-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 13.5px;
}

.ph-prose table th,
.ph-prose table td {
  padding: 9px 11px;
  border: 1px solid var(--ph-border);
  text-align: left;
}

.ph-prose table th {
  background: var(--ph-thead);
  color: var(--ph-navy);
}

/* ---------------- FAQ ACCORDION ---------------- */
.ph-faq-list {
  border-top: 1px solid var(--ph-border);
}

.ph-faq-item {
  border-bottom: 1px solid var(--ph-border);
}

.ph-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 28px 13px 28px;
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ph-navy);
  transition: color 0.15s ease;
}

.ph-faq-item summary::-webkit-details-marker {
  display: none;
}

.ph-faq-item summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #cbd4e1;
  color: var(--ph-muted);
  font-weight: 700;
  font-size: 13px;
}

.ph-faq-item[open] summary::before {
  content: "−";
  border-color: var(--ph-crimson);
  color: var(--ph-crimson);
}

.ph-faq-item summary:hover {
  color: var(--ph-crimson);
}

.ph-faq-item[open] {
  background: #f9fafc;
}

.ph-faq-item__body {
  padding: 0 16px 14px 28px;
  color: var(--ph-text);
  font-size: 13.5px;
  line-height: 1.6;
}

.ph-faq-item__body p {
  margin: 0;
}

/* ---------------- E-E-A-T STRIP ON DRUG PAGE ---------------- */
.ph-eeat-strip {
  margin-top: 24px;
  padding: 15px 18px;
  background: #f8f9fb;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
  font-size: 13px;
}

.ph-eeat-strip__head {
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 8px;
}

.ph-eeat-strip__grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ph-text);
}

.ph-eeat-strip__grid strong {
  color: var(--ph-navy);
}

.ph-eeat-strip__note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--ph-border);
  color: var(--ph-muted);
  font-size: 12.5px;
}

.ph-eeat-strip__note strong {
  color: var(--ph-navy);
}

/* ---------------- RIGHT SIDEBAR ---------------- */
.ph-right {
  padding-left: 14px;
}

body.main-page .ph-right {
  margin-top: 26px;
}

.ph-sidebox {
  background: #ffffff;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(38, 38, 77, 0.04);
}

.ph-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f6 100%);
  border-bottom: 1px solid var(--ph-border);
  border-radius: 5px 5px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ph-navy);
}

.ph-flag-fr {
  display: inline-flex;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(38, 38, 77, 0.14);
}

.ph-sidebox__pad {
  padding: 14px;
}

.ph-service-hours {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f5;
}

.ph-service-hours__days {
  font-size: 12.5px;
  color: var(--ph-muted);
}

.ph-service-hours__time {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ph-navy);
  margin: 2px 0 6px;
}

.ph-service-hours__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-crimson);
  text-decoration: none;
}

.ph-service-hours__link:hover {
  text-decoration: underline;
}

.ph-service-perks {
  padding: 10px 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ph-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ph-service-perks strong {
  color: var(--ph-navy);
}

/* Signature Red-Header Promo Card */
.ph-promo-card {
  background: var(--ph-crimson);
  border-radius: 5px;
  padding: 0 3px 3px;
  margin: 6px 0 16px;
  text-align: center;
}

.ph-promo-card a {
  display: block;
  text-decoration: none;
}

.ph-promo-card__head {
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.ph-promo-card__body {
  background: #ffffff;
  border-radius: 3px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ph-promo-card__body img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
}

.ph-promo-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-crimson);
  margin-bottom: 10px;
}

.ph-btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 38px;
  border-radius: 4px;
  background: var(--ph-slate);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.ph-promo-card a:hover .ph-btn-buy {
  background: var(--ph-slate-dark);
}

/* Useful Info Nav */
.ph-useful-nav {
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

.ph-useful-nav h4 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ph-navy);
}

.ph-useful-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-useful-nav li a {
  position: relative;
  display: block;
  padding: 4px 0 4px 20px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ph-text);
  text-decoration: none;
}

.ph-useful-nav li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  background-size: 13px 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%2399a3b1' stroke-width='1.2'/%3E%3Ctext x='8' y='11.4' text-anchor='middle' font-family='Arial' font-size='9.5' font-weight='700' fill='%237a8594'%3Ei%3C/text%3E%3C/svg%3E");
}

.ph-useful-nav li a:hover,
.ph-useful-nav li.is-active a {
  color: var(--ph-crimson);
  text-decoration: underline;
}

/* Payments & ANSM Right Cards */
.ph-pay-box,
.ph-ansm-box {
  margin-top: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
}

.ph-pay-box h4,
.ph-ansm-box h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-navy);
}

.ph-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ph-pay-list img {
  height: 28px;
  width: auto;
}

.ph-ansm-box p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ph-muted);
}

.ph-ansm-box strong {
  color: var(--ph-navy);
}

.ph-ansm-box__samu {
  margin-bottom: 0 !important;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
  color: var(--ph-text) !important;
}

/* ---------------- BUTTONS, FORMS & CART ---------------- */
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ph-btn--crimson {
  background: var(--ph-crimson);
  color: #ffffff;
}

.ph-btn--crimson:hover {
  background: var(--ph-crimson-dark);
  color: #ffffff;
}

.ph-btn--slate {
  background: var(--ph-slate);
  color: #ffffff;
}

.ph-btn--slate:hover {
  background: var(--ph-slate-dark);
  color: #ffffff;
}

.ph-btn--blue {
  background: var(--ph-blue);
  color: #ffffff;
}

.ph-btn--blue:hover {
  background: var(--ph-blue-dark);
  color: #ffffff;
}

.ph-btn--outline {
  background: #ffffff;
  border-color: #c5cedb;
  color: var(--ph-navy);
}

.ph-btn--outline:hover {
  border-color: var(--ph-navy);
  color: var(--ph-navy);
}

.ph-btn--lg {
  padding: 12px 24px;
  font-size: 15px;
}

.ph-btn--block {
  width: 100%;
}

/* Cart specifics */
.ph-empty-box {
  padding: 28px 20px;
  text-align: center;
  background: #f8f9fb;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
  margin-bottom: 24px;
}

.ph-empty-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ph-navy);
}

.ph-empty-box p {
  margin: 0 0 16px;
  color: var(--ph-muted);
}

.ph-cart-prod {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ph-cart-prod img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 3px;
  padding: 3px;
  flex-shrink: 0;
}

.ph-cart-prod__name {
  font-weight: 700;
  color: var(--ph-navy);
  text-decoration: none;
}

.ph-cart-prod__name:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-cart-prod__meta {
  font-size: 12.5px;
  color: var(--ph-muted);
}

.ph-cart-qty input {
  width: 62px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cbd4e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ph-navy);
}

.ph-cart-del {
  text-align: right;
}

.ph-remove-link {
  color: var(--ph-crimson);
  font-size: 13px;
  text-decoration: none;
}

.ph-remove-link:hover {
  text-decoration: underline;
}

.ph-cart-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ph-option-box {
  background: #f8f9fb;
  border: 1px solid var(--ph-border);
  border-radius: 5px;
  padding: 14px 16px;
}

.ph-option-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ph-navy);
}

.ph-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}

.ph-radio-row input {
  margin-top: 3px;
  accent-color: var(--ph-crimson);
}

.ph-radio-row span {
  display: flex;
  flex-direction: column;
}

.ph-radio-row strong {
  color: var(--ph-navy);
  font-size: 13.5px;
}

.ph-radio-row small {
  color: var(--ph-muted);
  font-size: 12.5px;
}

.ph-cart-update-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.ph-back-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ph-slate);
  text-decoration: none;
}

.ph-back-link:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-cart-summary {
  margin-top: 24px;
  padding: 18px 20px;
  background: #f8f9fb;
  border: 1px solid var(--ph-border-strong);
  border-radius: 5px;
}

.ph-cart-summary h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--ph-navy);
}

.ph-summary-rows {
  margin: 0 0 16px;
}

.ph-summary-rows > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e6ebf2;
  font-size: 14px;
}

.ph-summary-rows dt {
  color: var(--ph-text);
}

.ph-summary-rows dd {
  margin: 0;
  font-weight: 600;
  color: var(--ph-navy);
}

.ph-summary-total {
  border-bottom: 0 !important;
  padding-top: 12px !important;
  font-size: 16.5px !important;
}

.ph-summary-total dt,
.ph-summary-total dd {
  font-weight: 700 !important;
  color: var(--ph-navy) !important;
}

.ph-checkout-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ph-muted);
  text-align: center;
}

/* Contact & Inline Search Forms */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ph-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ph-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ph-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ph-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-navy);
}

.ph-field input,
.ph-field textarea,
.ph-inline-search input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd4e1;
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ph-navy);
}

.ph-field input:focus,
.ph-field textarea:focus,
.ph-inline-search input:focus {
  outline: none;
  border-color: var(--ph-blue);
  box-shadow: 0 0 0 2px rgba(31, 95, 191, 0.14);
}

.ph-inline-search {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

/* ---------------- FOOTER ---------------- */
.ph-footer {
  background: #f5f7fa;
  border-top: 1px solid var(--ph-border);
  padding: 28px 0 32px;
  color: var(--ph-muted);
  font-size: 13px;
}

.ph-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 28px;
}

.ph-footer__brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--ph-navy);
  margin-bottom: 6px;
}

.ph-footer__copy p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.ph-footer__rev {
  font-size: 12px;
  color: #8a95a5;
}

.ph-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3e8ef;
}

.ph-footer__nav a {
  color: var(--ph-navy);
  font-weight: 600;
  text-decoration: none;
}

.ph-footer__nav a:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

.ph-footer__disclaimer {
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 12.5px;
  color: #6b7686;
}

.ph-footer__disclaimer strong {
  color: var(--ph-navy);
}

.ph-footer__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
}

.ph-footer__refs a {
  color: var(--ph-text);
  text-decoration: none;
}

.ph-footer__refs a:hover {
  color: var(--ph-crimson);
  text-decoration: underline;
}

/* ---------------- TOAST NOTIFICATION ---------------- */
.ph-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  background: var(--ph-navy);
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(38, 38, 77, 0.25);
  font-size: 13.5px;
  line-height: 1.45;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ph-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ph-toast a {
  color: #ffd3cf;
  font-weight: 700;
}

/* ---------------- TABLET (992px - 1140px) ---------------- */
@media (max-width: 1140px) {
  .ph-header {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .ph-columns {
    grid-template-columns: 215px minmax(0, 1fr) 196px;
  }
  .ph-sheet {
    padding: 20px 20px 28px;
  }
}

/* ---------------- MOBILE & SMALL TABLET (<= 991px) ---------------- */
@media (max-width: 991px) {
  body.main-page,
  body.inner-page {
    background-image: none;
    background-color: #ffffff;
  }

  .ph-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--ph-border);
    box-shadow: 0 2px 8px rgba(38, 38, 77, 0.05);
  }

  .ph-mobile-bar__menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d5dce6;
    background: #f7f9fc;
    color: var(--ph-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
  }

  .ph-mobile-bar__logo img {
    height: 38px;
    width: auto;
  }

  .ph-mobile-bar__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border: 1px solid #d5dce6;
    border-radius: 4px;
    color: var(--ph-navy);
    text-decoration: none;
  }

  .ph-mobile-bar__cart.is-active {
    border-color: var(--ph-crimson);
    color: var(--ph-crimson);
  }

  .ph-mobile-bar__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ph-crimson);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
  }

  .ph-header {
    display: none;
  }

  .ph-page-wrap {
    padding: 0 0 24px;
  }

  .ph-columns {
    display: block;
  }

  /* Left sidebar becomes slide-over catalog drawer */
  .ph-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px;
    max-width: 86vw;
    z-index: 210;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(38, 38, 77, 0.24);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .ph-left.is-open {
    transform: translateX(0);
  }

  .ph-left__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: var(--ph-navy);
    color: #ffffff;
    font-size: 15px;
  }

  .ph-left__close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }

  .ph-mobile-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ph-border);
    padding: 12px 16px 20px;
    gap: 8px;
    background: #f8f9fb;
  }

  .ph-mobile-links a {
    color: var(--ph-navy);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
  }

  .ph-home-hero {
    min-height: 240px;
    padding: 140px 14px 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.92) 82%, #ffffff 100%),
      url('/assets/img/theme/bg.webp') center top / cover no-repeat;
  }

  .ph-hero-checks {
    gap: 8px;
  }

  .ph-hero-checks li {
    font-size: 12px;
    align-items: center;
    text-align: center;
  }

  .ph-check-circle {
    width: 30px;
    height: 30px;
  }

  .ph-sheet {
    border: 0;
    border-top: 1px solid var(--ph-border);
    padding: 18px 14px 26px;
    min-height: auto;
  }

  .ph-right {
    padding: 0 14px;
    margin-top: 20px !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ph-sidebox {
    grid-column: 1 / -1;
  }

  .ph-pay-box,
  .ph-ansm-box {
    margin-top: 0;
  }

  .ph-footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------------- MOBILE (<= 640px) ---------------- */
@media (max-width: 640px) {
  .ph-page-title,
  .ph-intro h1 {
    font-size: 21px;
  }

  .ph-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ph-product-card__img {
    height: 112px;
    padding: 12px 8px 6px;
  }

  .ph-product-card__img img {
    max-height: 92px;
  }

  .ph-product-card__title {
    font-size: 13px;
  }

  .ph-product-card__price {
    font-size: 14px;
    padding-bottom: 10px;
  }

  .ph-drug-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ph-drug-photo {
    max-width: 210px;
    margin: 0 auto;
  }

  .ph-specs {
    grid-template-columns: 1fr;
  }

  .ph-price-table th,
  .ph-price-table td {
    padding: 8px 6px;
    font-size: 12.5px;
  }

  .ph-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ph-buy-inline {
    padding: 6px 7px;
    font-size: 12.5px;
    gap: 4px;
  }

  .ph-form-row {
    grid-template-columns: 1fr;
  }

  .ph-inline-search {
    flex-direction: column;
  }

  .ph-right {
    grid-template-columns: 1fr;
  }

  .ph-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
