/* Prime chrome: Medicom "Care Line" (restricted preview).
   Identity kept from the live theme: clinical health / pharmacy retail, the merchant's main colour (pharmacy blue by default) as the
   one accent, white surfaces on cool blue-grey "clinic" grounds, soft rounded tiles, calm Rubik headings over a plain body face.
   Signature "care line": a thin hairline rule that carries a solid accent segment and a small round node (a calm status dot), used
   on the header edge, section titles, page mastheads, the footer and the product label. Shapes: rounded-square keys (12px), capsule
   actions, round nodes; soft rings only as faint backdrops; no warm grounds. No plus / cross symbols anywhere (owner decision 2026-10-11).
   One motion: on hover / focus the care line draws across a tile's lower edge (off with prefers-reduced-motion).
   Merchant inputs: --main-color-one, --heading-color, --body-color, --section-bg-3, --sf-merchant-heading / --sf-merchant-body
   (explicit merchant fonts win), --heading-font / --body-font (Store Admin › Typography). Every colour below is derived from them
   with color-mix() / relative colour; filled actions use the main colour darkened by lightness only so white text keeps ≥ 4.5:1. */

/* the care-line node, reusable: `background: var(--mc-dot)` on a square box draws a round dot in --mc-cc (accent by default);
   `background: var(--mc-halo)` draws a soft ring (large faint backdrops). Defined on every element so each element's own --mc-cc is used. */
body.medicom *, body.medicom *::before, body.medicom *::after,
.sfp-header--medicom *, .sfp-header--medicom *::before, .sfp-header--medicom *::after {
  --mc-dot: radial-gradient(circle closest-side, var(--mc-cc, var(--sfp-accent)) 0 calc(100% - 1px), transparent 100%) 50% 50% / 100% 100% no-repeat;
  --mc-halo: radial-gradient(circle closest-side, transparent 0 calc(74% - 1px), var(--mc-cc, var(--sfp-accent)) 74% calc(100% - 1px), transparent 100%) 50% 50% / 100% 100% no-repeat;
}
body.medicom {
  --sfp-accent: var(--main-color-one, #1A85ED);
  --sfp-cta: color-mix(in srgb, var(--main-color-one, #1A85ED) 72%, #000);
  --mc-cta-hover: color-mix(in srgb, var(--main-color-one, #1A85ED) 60%, #000);
  --mc-accent-ink: color-mix(in srgb, var(--main-color-one, #1A85ED) 66%, #000);
  /* where relative colours exist, darken by lightness only (OKLCH): the merchant's hue and chroma survive; a colour that is
     already dark enough is used as saved */
  --sfp-cta: oklch(from var(--main-color-one, #1A85ED) min(l, 0.52) c h);
  --mc-cta-hover: oklch(from var(--main-color-one, #1A85ED) min(l, 0.44) c h);
  --mc-accent-ink: oklch(from var(--main-color-one, #1A85ED) min(l, 0.48) c h);
  --mc-ink: color-mix(in srgb, var(--heading-color, #1B1C25) 90%, #000);
  --mc-text: color-mix(in srgb, var(--heading-color, #1B1C25) 94%, #000);
  --mc-muted: color-mix(in srgb, var(--body-color, #444444) 88%, #000);
  /* clinic grounds: the live theme's cool clinic ground (section-bg-3, Medicom's #e8f4fb) tinted with the merchant colour */
  --mc-mist: color-mix(in srgb, var(--main-color-one, #1A85ED) 6%, var(--section-bg-3, #E8F4FB));
  --mc-mist-2: color-mix(in srgb, var(--main-color-one, #1A85ED) 13%, var(--section-bg-3, #E8F4FB));
  --mc-tint: color-mix(in srgb, var(--main-color-one, #1A85ED) 9%, #fff);
  --mc-glow: color-mix(in srgb, var(--main-color-one, #1A85ED) 22%, transparent);
  --mc-line: color-mix(in srgb, var(--heading-color, #1B1C25) 10%, #fff);
  --mc-line-strong: color-mix(in srgb, var(--heading-color, #1B1C25) 24%, #fff);
  --mc-display: var(--sf-merchant-heading, var(--heading-font, "Rubik")), "Rubik", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mc-head: var(--sf-merchant-heading, var(--heading-font, "Rubik")), "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mc-body: var(--sf-merchant-body, var(--body-font, "Roboto")), "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mc-r: 14px;
  --mc-r-s: 10px;
  --mc-r-l: 20px;
  --mc-ease: cubic-bezier(.2, .7, .2, 1);
  --mc-shadow: 0 1px 2px color-mix(in srgb, var(--mc-ink) 5%, transparent), 0 8px 24px -16px color-mix(in srgb, var(--mc-ink) 26%, transparent);
  --mc-shadow-hi: 0 2px 4px color-mix(in srgb, var(--mc-ink) 5%, transparent), 0 20px 40px -22px color-mix(in srgb, var(--mc-ink) 34%, transparent);
  --sfp-font-head: var(--mc-display);
  --sfp-font-body: var(--mc-body);
  --sfp-logo-h: 42px;
  --sfp-focus: 0 0 0 3px color-mix(in srgb, var(--main-color-one, #1A85ED) 42%, transparent);
}

/* ---- announcement: a calm prescription strip in the deep accent, the store's text unchanged ---- */
.sfp-announce--medicom { background: var(--sfp-cta); color: #fff; font: 500 13.5px/1.5 var(--mc-body); padding-block: 9px; }
.sfp-announce--medicom .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sfp-mca__dot { flex: none; inline-size: 11px; block-size: 11px; --mc-cc: #fff; background: var(--mc-dot); }
.sfp-announce--medicom a { color: #fff; }

/* ---- header: white bar; its lower edge is the care line (hairline + accent segment + round node at the logo end) ---- */
nav.el-navbar.sfp-header--medicom { background: #fff; color: var(--mc-ink); font-family: var(--mc-body); border: 0; padding: 0; }
@supports (backdrop-filter: blur(8px)) { nav.el-navbar.sfp-header--medicom.is-scrolled { background: color-mix(in srgb, #fff 90%, transparent); backdrop-filter: saturate(1.3) blur(10px); } }
.sfp-mch__line { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 1px; background: var(--mc-line); pointer-events: none; }
.sfp-mch__line::before { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: clamp(80px, calc((100vw - 1296px) / 2 + 150px), 40vw); block-size: 2px; background: var(--sfp-accent); }
.sfp-mch__line::after { content: ""; position: absolute; inset-block-end: -5px; inset-inline-start: calc(clamp(80px, calc((100vw - 1296px) / 2 + 150px), 40vw) - 1px); inline-size: 12px; block-size: 12px;
  border-radius: 50%; background: var(--mc-dot); box-shadow: 0 0 0 3px #fff inset; }
.sfp-header--medicom .sfp-header__bar { min-block-size: 80px; }
.sfp-header--medicom .sfp-header__logo img { max-block-size: 44px; }
.sfp-header--medicom .sfp-header__nav { justify-content: center; }
.sfp-header--medicom .sfp-header__nav .theme-nav-menu { gap: 4px clamp(4px, .8vw, 12px); }
.sfp-header--medicom .sfp-header__nav .theme-nav-menu > li > a { font: 500 15px/1 var(--mc-head); color: var(--mc-ink); padding-inline: 12px; border-radius: 10px;
  transition: background var(--sfp-dur) var(--mc-ease), color var(--sfp-dur) var(--mc-ease); }
.sfp-header--medicom .sfp-header__nav .theme-nav-menu > li > a:hover { background: var(--mc-mist); color: var(--mc-accent-ink); }
.sfp-header--medicom .sfp-header__nav .theme-nav-menu > li.current-menu-item > a { color: var(--mc-accent-ink); font-weight: 600; }
.sfp-header--medicom .sfp-header__nav .theme-nav-menu > li.current-menu-item > a::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: 6px; block-size: 2px; border-radius: 2px; background: var(--sfp-accent); }
.sfp-header--medicom .sfp-header__nav .sub-menu { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-r); box-shadow: var(--mc-shadow-hi); }
.sfp-header--medicom .sfp-header__nav .sub-menu a { border-radius: 8px; font: 500 14px/1.35 var(--mc-body); }
.sfp-header--medicom .sfp-header__nav .sub-menu a:hover { background: var(--mc-mist); color: var(--mc-accent-ink); }

/* search: a soft clinic-grey field with a rounded-square "go" key */
.sfp-header--medicom .sfp-header__search { flex-basis: 300px; background: var(--mc-mist); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--mc-line); color: var(--mc-ink);
  transition: background var(--sfp-dur) var(--mc-ease), box-shadow var(--sfp-dur) var(--mc-ease); padding-inline: 14px 4px; }
.sfp-header--medicom .sfp-header__search:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--sfp-accent), 0 0 0 4px var(--mc-glow); }
.sfp-mcs__glyph { color: var(--mc-muted); font-size: 16px; }
.sfp-header--medicom .sfp-header__search input { font: 400 14px/1.2 var(--mc-body); padding-inline: 10px 6px; min-block-size: 46px; box-shadow: none !important; border: 0 !important; background: transparent !important; color: var(--mc-ink); }
.sfp-header--medicom .sfp-header__search input:focus-visible { box-shadow: none !important; }
.sfp-header--medicom .sfp-header__search input::placeholder { color: var(--mc-muted); opacity: 1; }
.sfp-header--medicom .sfp-header__search button { inline-size: 38px; block-size: 38px; border-radius: 9px; background: var(--sfp-cta); color: #fff; font-size: 15px; transition: background var(--sfp-dur) var(--mc-ease); }
.sfp-header--medicom .sfp-header__search button:hover { background: var(--mc-cta-hover); }
.sfp-header--medicom .sfp-header__search button:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sfp-accent) !important; border-radius: 9px !important; }
.sfp-header--medicom .el-search-dropdown { background: #fff; color: var(--mc-ink); border: 1px solid var(--mc-line); border-radius: var(--mc-r); box-shadow: var(--mc-shadow-hi); }
.sfp-header--medicom .el-search-dropdown li a:hover { background: var(--mc-mist); }
.sfp-header--medicom .el-search-dropdown .product-image { border-radius: 8px; background: var(--mc-mist); }
.sfp-header--medicom .el-search-dropdown .product-image img { object-fit: contain; }
.sfp-header--medicom .el-search-dropdown .flash-price { color: var(--mc-accent-ink); font: 700 13px/1.4 var(--mc-body); }
.sfp-header--medicom .el-search-dropdown .flash-old-prices { color: var(--mc-muted); font-size: 12px; text-decoration: line-through; margin-inline-start: 6px; }
.sfp-header--medicom .el-search-dropdown .el-search-footer a { justify-content: space-between; font: 600 14px/1.2 var(--mc-head); color: var(--mc-accent-ink); border-block-start: 1px solid var(--mc-line); margin-block-start: 4px; padding-block: 12px; }
.sfp-header--medicom .el-search-dropdown .el-search-empty { padding: 16px; font-size: 14px; color: var(--mc-muted); text-align: center; }

/* actions: rounded-square keys on a clinic-grey hover */
.sfp-header--medicom .sfp-header__actions { gap: 4px; }
.sfp-header--medicom .sfp-header__actions > a { color: var(--mc-ink); font-size: 21px; border-radius: 12px; transition: background var(--sfp-dur) var(--mc-ease), color var(--sfp-dur) var(--mc-ease); }
.sfp-header--medicom .sfp-header__actions > a:hover { background: var(--mc-mist); color: var(--mc-accent-ink); }
.sfp-header--medicom .sfp-header__actions > a:focus-visible { box-shadow: var(--sfp-focus); border-radius: 12px; }
.sfp-header--medicom .sfp-header__actions .el-badge { background: var(--sfp-cta); color: #fff; border-radius: 999px; font: 700 11px/18px var(--mc-body); box-shadow: 0 0 0 2px #fff;
  inset-block-start: 2px; min-inline-size: 18px; block-size: 18px; padding-inline: 5px; display: inline-flex; align-items: center; justify-content: center; }
[dir="rtl"] .sfp-header--medicom .sfp-header__actions .el-badge { right: auto; left: 0; }
[dir="ltr"] .sfp-header--medicom .sfp-header__actions .el-badge { left: auto; right: 0; }
.sfp-header--medicom .sfp-lang { font: 600 13px/1.2 var(--mc-body); color: var(--mc-ink); margin-inline: 4px; }
.sfp-header--medicom .sfp-lang__opt { min-block-size: 44px; display: inline-flex; align-items: center; padding-inline: 10px; opacity: .8; border-radius: 10px; }
.sfp-header--medicom .sfp-lang__opt.is-current { opacity: 1; background: var(--mc-mist); }

/* ---- footer: clinic-grey ground opened by the care line (a round node in a white key on a hairline), brand row, four columns ---- */
.sfp-footer--medicom { background: var(--mc-mist); color: var(--mc-text); font: 400 15px/1.7 var(--mc-body); margin-block-start: clamp(48px, 6vw, 88px); position: relative; }
.sfp-mcf__rule { position: relative; block-size: 1px; background: var(--mc-line-strong); }
.sfp-mcf__rule::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 50%; inline-size: min(240px, 40vw); block-size: 3px; transform: translateX(-50%); background: var(--sfp-accent); border-radius: 3px; }
[dir="rtl"] .sfp-mcf__rule::before { transform: translateX(50%); }
.sfp-mcf__node { position: absolute; inset-block-start: -23px; inset-inline-start: 50%; inline-size: 46px; block-size: 46px; transform: translateX(-50%); border-radius: 12px; background: #fff; box-shadow: var(--mc-shadow), inset 0 0 0 1px var(--mc-line); }
[dir="rtl"] .sfp-mcf__node { transform: translateX(50%); }
.sfp-mcf__node::after { content: ""; position: absolute; inset: 14px; background: var(--mc-dot); }
.sfp-mcf__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: clamp(48px, 5vw, 68px) 28px; border-block-end: 1px solid color-mix(in srgb, var(--mc-ink) 10%, transparent); }
.sfp-mcf__brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-inline-size: 0; }
.sfp-mcf__brand .mc-footer-logo { max-block-size: 52px; inline-size: auto; max-inline-size: 220px; object-fit: contain; display: block; }
.sfp-mcf__brand .mc-footer-logo-text { font: 700 26px/1 var(--mc-display); color: var(--mc-ink); }
.sfp-mcf__brand .mc-footer-tagline { margin: 0; color: var(--mc-muted); max-inline-size: 46ch; font-size: 15px; }
.sfp-mcf__social { display: flex; gap: 10px; flex-wrap: wrap; }
.sfp-mcf__social .mc-footer-social-icon { inline-size: 46px; block-size: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--mc-ink); font-size: 19px;
  box-shadow: inset 0 0 0 1px var(--mc-line); transition: color var(--sfp-dur) var(--mc-ease), box-shadow var(--sfp-dur) var(--mc-ease); }
.sfp-mcf__social .mc-footer-social-icon:hover, .sfp-mcf__social .mc-footer-social-icon:focus-visible { color: var(--mc-accent-ink); box-shadow: inset 0 0 0 1.5px var(--sfp-accent); }
.sfp-mcf__main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); padding-block: 36px clamp(40px, 5vw, 60px); }
.sfp-mcf__col .mc-footer-col-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--mc-ink); font: 600 17px/1.2 var(--mc-display); }
.sfp-mcf__col .mc-footer-col-title::before { content: ""; flex: none; inline-size: 10px; block-size: 10px; background: var(--mc-dot); }
.sfp-mcf__col .mc-footer-links li a { display: inline-flex; align-items: center; min-block-size: 36px; color: var(--mc-muted); transition: color var(--sfp-dur) var(--mc-ease); }
.sfp-mcf__col .mc-footer-links li a:hover { color: var(--mc-accent-ink); }
.sfp-mcf__col .mc-footer-contact { display: grid; gap: 10px; }
.sfp-mcf__col .mc-footer-contact-item { display: flex; align-items: center; gap: 12px; color: var(--mc-muted); min-inline-size: 0; }
.sfp-mcf__col .mc-footer-contact-item > span, .sfp-mcf__col .mc-footer-contact-item > a { min-inline-size: 0; overflow-wrap: anywhere; color: var(--mc-text); }
.sfp-mcf__col .mc-footer-contact-icon { flex: none; inline-size: 36px; block-size: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--mc-accent-ink); font-size: 17px; box-shadow: inset 0 0 0 1px var(--mc-line); }
.sfp-mcf__news .mc-footer-newsletter-text { margin: 0 0 14px; color: var(--mc-muted); }
.sfp-mcf__news .mc-footer-newsletter-row { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 4px; padding-inline-start: 16px; box-shadow: inset 0 0 0 1px var(--mc-line-strong); }
.sfp-mcf__news .mc-footer-newsletter-row:focus-within { box-shadow: inset 0 0 0 2px var(--sfp-accent), 0 0 0 4px var(--mc-glow); }
.sfp-mcf__news .mc-footer-email-input { flex: 1 1 auto; min-inline-size: 0; min-block-size: 44px; border: 0; outline: 0; background: transparent; font: 400 14px/1.2 var(--mc-body); color: var(--mc-ink); }
.sfp-mcf__news .mc-footer-email-input::placeholder { color: var(--mc-muted); opacity: 1; }
.sfp-footer--medicom .sfp-mcf__news .mc-footer-email-input:focus-visible { box-shadow: none; }
.sfp-mcf__news .mc-footer-subscribe-btn { flex: none; inline-size: 44px; block-size: 44px; border-radius: 10px; border: 0; background: var(--sfp-cta); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.sfp-mcf__news .mc-footer-subscribe-btn:hover { background: var(--mc-cta-hover); }
.sfp-footer--medicom .sfp-mcf__news .mc-footer-subscribe-btn:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sfp-accent); border-radius: 10px; }
.sfp-footer--medicom .newsletter-form .form-message-show { margin-block-start: 8px; font-size: 13.5px; }
.sfp-mcf__bottom { background: #fff; border-block-start: 1px solid var(--mc-line); }
.sfp-mcf__bottom-in { display: flex; align-items: center; gap: 12px; padding-block: 18px; }
.sfp-mcf__dot { flex: none; inline-size: 11px; block-size: 11px; background: var(--mc-dot); }
.sfp-mcf__bottom .mc-footer-copyright { font: 400 13.5px/1.5 var(--mc-body); color: var(--mc-muted); }
.sfp-mcf__bottom .mc-footer-copyright a { color: var(--mc-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
/* the live theme draws dividers and paints these blocks itself: the Prime composition replaces those rules */
.sfp-footer--medicom .mc-footer-divider { display: none; }
.sfp-footer--medicom :is(.mc-footer-top, .mc-footer-main, .mc-footer-bottom) { margin: 0; }

@media (max-width: 1199.98px) { .sfp-header--medicom .sfp-header__search { flex-basis: 210px; } }
@media (max-width: 991.98px) {
  .sfp-mcf__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-mcf__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .sfp-mcf__main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sfp-mcf__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---- mobile foundation skin (tokens only; the shared layer owns header, drawer, search, bottom bar, purchase bar) ---- */
body.sf-m.sf-m-t-medicom {
  --sf-m-header-bg: #fff;
  --sf-m-header-fg: var(--mc-ink);
  --sf-m-header-line: var(--mc-line);
  --sf-m-header-line-w: 1px;
  --sf-m-color-accent: var(--sfp-accent);
  --sf-m-drawer-bg: #fff;
  --sf-m-drawer-fg: var(--mc-ink);
  --sf-m-drawer-line: var(--mc-line);
  --sf-m-bar-bg: #fff;
  --sf-m-bar-fg: var(--mc-muted);
  --sf-m-bar-line: var(--mc-line);
  --sf-m-bar-active: var(--sfp-cta);
  --sf-m-sheet-bg: #fff;
  --sf-m-control-bg: var(--mc-mist);
  --sf-m-control-line: transparent;
  --sf-m-radius: 12px;
  --sf-m-font: var(--mc-body);
}
[dir="rtl"] .sfp-header--medicom *, [dir="rtl"] .sfp-footer--medicom *, [dir="rtl"] .sfp-announce--medicom { letter-spacing: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .sfp-header--medicom *, .sfp-footer--medicom * { transition: none !important; }
}

/* live-theme rules that fix sizes the Prime composition owns */
.sfp-header--medicom .sfp-header__search.el-search { inline-size: auto; block-size: auto; gap: 0; }
.sfp-header--medicom .el-search-dropdown { inset-block-start: calc(100% + 10px); }
.sfp-footer--medicom .mc-footer-logo-wrap { flex-direction: row; text-align: start; }
.sfp-footer--medicom .mc-footer-copyright { text-align: start; padding: 0; }
.sfp-footer--medicom .mc-footer-social-icon { border: 0; }
.sfp-footer--medicom .mc-footer-social-icon:hover { background: #fff; }
.sfp-footer--medicom .mc-footer-col-title { text-transform: none; letter-spacing: 0; }
.sfp-footer--medicom .mc-footer-links { gap: 2px; }
.sfp-footer--medicom .mc-footer-links a, .sfp-footer--medicom .mc-footer-contact-item { font-size: 14.5px; }
.sfp-footer--medicom .mc-footer-newsletter-row { border: 0; overflow: visible; }
.sfp-footer--medicom .mc-footer-subscribe-btn { padding: 0; }
.sfp-footer--medicom .mc-footer-bottom { background: #fff; }
@media (max-width: 768px) { .sfp-footer--medicom .mc-footer-logo-wrap { align-items: flex-start; } }
