@charset "UTF-8";

/*
 * Theme oftalpharmashop.it - stylesheet.
 * @copyright: CAFFEINAPURA Srls Unipersonale - All right reserved
 * Version: 1.8 - 2026-11-27 (footer: company line .footer__company, D-534)
 * Version: 1.7 - 2026-11-26 (Jost served from our own assets, no more Google Fonts: visitors' IP no longer sent to Google;
 *   "Jost Fallback" with Arial, and "Jost Fallback Roboto" for Android, resized to Jost's metrics against layout shift)
 * Version: 1.6 - 2026-11-16 (hero from a banner: height follows the 3:1 photo, text below the photo under 1100px)
 * Version: 1.5 - 2026-11-15 (home categories: logo banners for Medibase and Oftalpharma)
 * Version: 1.4 - 2026-11-15 (hero from a banner: bold title, light accompanying line under it)
 * Version: 1.3 - 2026-11-15 (hero from a banner: the photo is the background of the hero)
 * Version: 1.2 - 2026-11-15 (hero from a banner: h2 title, hidden h1, .sr-only)
 * Version: 1.1 - 2026-11-14 (purchase funnel header and footer)
 * Version: 1.0 - 2026-11-12
 * Author: Roberto Cheli
 *
 * Palette taken from the logo: teal iris (#7fc1b5) and near-black lettering.
 * Loaded AFTER the shared 3-default base.css and the template css, so it
 * (1) remaps the legacy green tokens (--g*) to the logo teal, which recolours
 * the pages not redesigned yet (cart, checkout, account), and (2) adds the
 * new components. New class names that clashed with the legacy shop CSS
 * carry the "op-" prefix (op-btn, op-container, op-badge, op-toolbar,
 * op-footer); tokens are all "--op-*".
 *
 * The logo teal is too light for white text (contrast ~2:1): buttons, links
 * and filled bands use --op-brand-600 (about 4.9:1 with white).
 */

/* Jost variable font (SIL OFL 1.1, see /assets/fonts/oftalpharmashop.it/OFL.txt), from @fontsource-variable/jost 5.2.8.
   One file per subset covers every weight 300-700 used by the theme. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/oftalpharmashop.it/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../../fonts/oftalpharmashop.it/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arial resized to Jost's metrics, shown until Jost arrives: the text keeps its width and height on the swap (less CLS).
   Values from the capsize metrics (Jost upm 1000, xWidthAvg 428, ascent 1070, descent 375; Arial upm 2048, xWidthAvg 913):
   size-adjust = (428/1000)/(913/2048), ascent and descent divided by size-adjust. */
@font-face {
  font-family: "Jost Fallback";
  font-weight: 100 549;
  src: local("Arial"), local("ArialMT");
  size-adjust: 96.01%;
  ascent-override: 111.45%;
  descent-override: 39.06%;
  line-gap-override: 0%;
}
/* Bold weights on the real Arial Bold (not a synthetic bold of the regular): Jost 600-700 is about 97% of its width,
   measured in the browser on Italian shop text (600: 95.7%, 700: 98.5%) */
@font-face {
  font-family: "Jost Fallback";
  font-weight: 550 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 97%;
  ascent-override: 110.31%;
  descent-override: 38.66%;
  line-gap-override: 0%;
}
/* Same for Android, where Arial is usually missing and the system font is Roboto (Roboto upm 2048, ascent 1900,
   descent 500). size-adjust measured in the browser on Italian shop text: regular 97%, bold 104%. */
@font-face {
  font-family: "Jost Fallback Roboto";
  font-weight: 100 549;
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  size-adjust: 97%;
  ascent-override: 110.31%;
  descent-override: 38.66%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback Roboto";
  font-weight: 550 900;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 104%;
  ascent-override: 102.88%;
  descent-override: 36.06%;
  line-gap-override: 0%;
}

:root {
  --op-brand: #7fc1b5;
  --op-brand-600: #2f7d71;
  --op-brand-700: #1f5c53;
  --op-brand-100: #d6ece8;
  --op-brand-50: #eef7f5;
  --op-ink: #1d1d1d;
  --op-ink-2: #4a4f4e;
  --op-ink-3: #6b7170;
  --op-line: #e2e8e7;
  --op-bg-soft: #f4f6f6;
  --op-dark: #14201d;
  --op-dark-2: #1c2c28;
  --op-white: #fff;
  --op-radius: 14px;
  --op-radius-sm: 8px;
  --op-shadow: 0 6px 24px rgba(20, 32, 29, .08);
  --op-container: 1440px;
  --op-font: "Jost", "Jost Fallback", "Jost Fallback Roboto", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* legacy tokens (3-default) remapped to the logo palette */
  --g50: #eef7f5; --g100: #d6ece8; --g200: #b4ddd5; --g300: #7fc1b5; --g400: #4f9f92;
  --g500: #2f7d71; --g600: #256a60; --g700: #1f5c53; --g800: #16433d; --g900: #0f2f2b;
  --t900: #1d1d1d; --t700: #2f3433; --t500: #4a4f4e; --t300: #6b7170; --t200: #b5c1bd;
  --ff-d: var(--op-font); --ff-b: var(--op-font);
  --hero-bg: var(--g800);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--op-font); font-size: 17px; line-height: 1.6;
  color: var(--op-ink-2); background: var(--op-white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--op-brand-600); text-decoration: none; }
a:hover { color: var(--op-brand-700); }
h1, h2, h3, h4 { color: var(--op-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--op-brand-600); outline-offset: 2px; border-radius: 4px; }

.op-container { width: 100%; max-width: calc(var(--op-container) + 48px); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--op-ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }
.section { padding: 80px 0; }
.section--soft { background: var(--op-bg-soft); }

/* ---------- buttons ---------- */
.op-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--op-brand-600); color: #fff; border: 2px solid var(--op-brand-600); border-radius: 999px;
  padding: 12px 28px; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.op-btn:hover { background: var(--op-brand-700); border-color: var(--op-brand-700); color: #fff; }
.op-btn--light { background: #fff; color: var(--op-brand-700); border-color: #fff; }
.op-btn--light:hover { background: var(--op-brand-50); color: var(--op-brand-700); border-color: var(--op-brand-50); }
.op-btn--outline { background: transparent; color: var(--op-brand-600); }
.op-btn--outline:hover { background: var(--op-brand-600); color: #fff; }
.op-btn--sm { padding: 8px 20px; font-size: .85rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--op-line); background: #fff; color: var(--op-brand-600); cursor: pointer;
}
.icon-btn:hover { background: var(--op-brand-50); }

/* ---------- section heading ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--op-brand-600); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; }
.section-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { margin: 0; white-space: nowrap; }
.section-head .rule { flex: 1; height: 1px; background: var(--op-line); margin-bottom: 12px; }
.section-head--center { display: block; text-align: center; }
.section-head--center h2 { white-space: normal; }
.section-head .tabs-inline { display: flex; gap: 24px; margin-bottom: 8px; }
.section-head .tabs-inline button { background: none; border: 0; cursor: pointer; color: var(--op-ink-3); padding: 0; }
.section-head .tabs-inline button[aria-selected="true"] { color: var(--op-brand-600); }
.arrows { display: flex; gap: 8px; margin-bottom: 8px; }
.arrows button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--op-line); color: var(--op-ink-2); cursor: pointer; display: grid; place-items: center; }
.arrows button:hover { background: var(--op-brand); color: var(--op-ink); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--op-brand-700); color: #fff; font-size: .85rem; }
.topbar .op-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar a { color: #fff; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.header { background: #fff; border-bottom: 1px solid var(--op-line); position: relative; z-index: 20; }
.header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 14px; }
.logo img { height: 64px; width: auto; }
.search { display: flex; max-width: 480px; width: 100%; margin: 0 auto; background: var(--op-brand-50); border: 1px solid var(--op-brand-100); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 20px; min-width: 0; }
.search input:focus-visible { outline-offset: -3px; }
.search button { border: 0; background: transparent; padding: 0 18px; cursor: pointer; color: var(--op-brand-600); }
.header__tools { display: flex; align-items: center; gap: 16px; }
.phone-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--op-brand); border-radius: 999px; padding: 8px 18px; color: var(--op-ink); font-weight: 500; }
.phone-pill:hover { background: var(--op-brand-50); color: var(--op-ink); }
.tool-link { position: relative; color: var(--op-ink); display: inline-grid; place-items: center; width: 40px; height: 40px; }
.tool-link .i { width: 24px; height: 24px; }
.tool-link:hover { color: var(--op-brand-600); }
.tool-link .count { position: absolute; top: 0; right: 0; background: var(--op-brand-600); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.nav-toggle { display: none; }
.nav { background: #fff; border-top: 1px solid var(--op-line); }
.nav ul { display: flex; justify-content: center; }
.nav li { flex: 1; text-align: center; }
.nav a { display: block; padding: 16px 12px; color: var(--op-ink); font-weight: 500; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--op-brand-600); border-bottom-color: var(--op-brand); }

/* ---------- inner page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; padding: 56px 0;
  background: linear-gradient(100deg, var(--op-brand-50) 0%, var(--op-brand-100) 55%, var(--op-brand) 100%);
}
.page-banner::before, .page-banner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.page-banner::before { width: 340px; height: 340px; right: 6%; top: -120px; }
.page-banner::after { width: 200px; height: 200px; right: 22%; bottom: -100px; background: rgba(255, 255, 255, .3); }
.page-banner .op-container { position: relative; z-index: 1; }
.page-banner h1 { margin: 0 0 8px; color: var(--op-brand-700); }
.op-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .95rem; color: var(--op-ink-2); }
.op-breadcrumb a { color: var(--op-ink-2); }
.op-breadcrumb a:hover { color: var(--op-brand-700); }
.op-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--op-ink-3); }
.op-breadcrumb [aria-current] { color: var(--op-ink); font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(120deg, #fff 0%, var(--op-brand-50) 50%, var(--op-brand-100) 100%); overflow: hidden; }
.hero .op-container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 620px; }
.hero__media img { width: 100%; max-height: 560px; object-fit: contain; }
.hero__text { text-align: center; }
.hero__text .kicker { color: var(--op-brand-600); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.25rem; }
.hero__text h1, .hero__text h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: .2em 0 .5em; }
.hero__text h2 a { color: inherit; }
/* Hero from a banner of the CMS: the h1 of the page is hidden; the photo is the background of the whole hero, the text sits
   in the right column. On small screens (the grid becomes one column, see below) the photo goes above the text. */
.hero--banner .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero--banner .op-container { position: relative; }
/* The hero is as tall as the photo (3:1 of the window width), so the left part with the product is not cropped when the window
   is narrower than the photo; at least 400px for the text, at most 620px (on very wide screens the photo is cropped above and
   below). Not aspect-ratio: with a min-height it would widen the box beyond the window. */
.hero--banner:not(.hero--no-image) { display: grid; align-items: center; height: clamp(400px, 33.34vw, 620px); }
.hero--banner:not(.hero--no-image) .op-container { min-height: 0; width: 100%; }
.hero--banner .hero__text { grid-column: 2; }
/* Title first and bold, the accompanying line under it in normal case and light (300: lighter weights are too thin to read on a photo) */
.hero--banner .hero__text h2 { font-weight: 700; margin: 0 0 .3em; }
.hero__sub { max-width: 30em; margin: 0 auto 1.6em; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 300; line-height: 1.5; color: var(--op-ink); }
.hero--dark .hero__text, .hero--dark .hero__text h2, .hero--dark .hero__sub { color: #fff; }
.hero--no-image .op-container { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 48px; }
.hero--no-image .hero__text { grid-column: 1; }
/* Under 1100px the text no longer fits beside the product: photo above, text below */
@media (max-width: 1100px) {
  .hero--banner:not(.hero--no-image) { display: block; height: auto; }
  .hero--banner .hero__bg { position: static; height: auto; aspect-ratio: 16 / 10; max-height: 520px; }
  .hero--banner .op-container { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 32px; }
  .hero--banner .hero__text { grid-column: 1; }
  .hero--dark { background: var(--op-ink); }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dots { display: flex; justify-content: center; gap: 10px; padding: 0 0 24px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--op-line); }
.dots span.is-on { background: var(--op-brand-600); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--op-brand-600); }

/* ---------- feature list around central image ---------- */
.benefits { display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; gap: 40px; align-items: center; }
.benefits__col { display: grid; gap: 48px; }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.benefit .i { width: 52px; height: 52px; color: var(--op-brand-600); stroke-width: 1.2; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { margin: 0; font-size: .98rem; }
.benefits__img { position: relative; display: grid; place-items: center; }
.benefits__img::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; background: var(--op-brand-50); }
.benefits__img img { position: relative; max-height: 480px; }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 32px 30px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-product { text-align: center; position: relative; }
.card-product__img { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--op-line); border-radius: var(--op-radius); display: grid; place-items: center; overflow: hidden; }
/* The image sits in a link: the link fills the box and centres the photo (photos come with a white background, D-379) */
.card-product__img > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-product__img img { width: 78%; height: 78%; object-fit: contain; }
.card-product h3 { font-size: 1rem; font-weight: 400; margin: 18px 0 4px; }
.card-product h3 a { color: var(--op-ink); }
.card-product h3 a:hover { color: var(--op-brand-600); }
.price { color: var(--op-brand-600); font-weight: 600; font-size: 1.15rem; }
.price del { color: var(--op-ink-3); font-size: .9rem; font-weight: 400; margin-left: 6px; }
.badges { position: absolute; top: 14px; right: 14px; display: grid; gap: 6px; justify-items: end; }
.op-badge { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 4px; color: #fff; background: var(--op-ink); }
.op-badge--new { background: var(--op-brand-600); }
.card-product__actions {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); opacity: 0;
  display: flex; gap: 8px; background: var(--op-brand-100); padding: 8px; border-radius: 999px; transition: .2s;
}
.card-product:hover .card-product__actions, .card-product:focus-within .card-product__actions { opacity: 1; transform: translate(-50%, 0); }
.card-product__actions button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--op-brand-600); cursor: pointer; display: grid; place-items: center; }
.card-product__actions button:hover { background: var(--op-brand-600); color: #fff; }

/* ---------- teal service band ---------- */
.services { background: linear-gradient(180deg, var(--op-brand), #6bb3a6); color: var(--op-ink); padding: 50px 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.services__icon { width: 120px; height: 120px; margin: 0 auto 20px; border: 1px dashed rgba(29, 29, 29, .45); border-radius: 50%; display: grid; place-items: center; }
.services__icon .i { width: 56px; height: 56px; stroke-width: 1.2; }
.services h3 { text-transform: uppercase; font-size: 1rem; margin-bottom: 4px; }
.services p { margin: 0; font-size: .98rem; }

/* ---------- blog cards ---------- */
.band-dark { background: var(--op-brand-700); color: #fff; padding: 80px 0; }
.band-dark h2, .band-dark .eyebrow { color: #fff; }
.band-dark .section-head .rule { background: rgba(255, 255, 255, .3); }
.card-post { background: #fff; border-radius: var(--op-radius); overflow: hidden; box-shadow: var(--op-shadow); color: var(--op-ink-2); display: flex; flex-direction: column; }
.card-post__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-post__img img { width: 100%; height: 100%; object-fit: cover; }
.card-post__date { position: absolute; right: 0; top: 18px; background: var(--op-brand-600); color: #fff; font-weight: 600; font-size: .85rem; padding: 4px 14px; text-transform: uppercase; border-radius: 4px 0 0 4px; }
.card-post__body { padding: 20px 22px 22px; }
.card-post__meta { display: flex; gap: 20px; font-size: .85rem; color: var(--op-ink-3); margin-bottom: 8px; }
.card-post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-post h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 14px; }
.card-post h3 a { color: var(--op-ink); }
.card-post h3 a:hover { color: var(--op-brand-600); }
.card-post__author { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--op-ink-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--op-brand); color: var(--op-ink); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 600; }

/* ---------- catalogue ---------- */
.shop { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.shop--right { grid-template-columns: 1fr 300px; }
.shop--right .sidebar { order: 2; }
.sidebar { display: grid; gap: 20px; }
.widget { background: var(--op-brand-50); border-radius: var(--op-radius); padding: 24px; }
.widget h2, .widget h3 { font-size: 1.2rem; margin-bottom: 14px; }
.widget label { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: .95rem; }
.widget input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--op-brand-600); }
.widget--promo { padding: 0; min-height: 300px; display: grid; place-items: center; text-align: center; color: #fff; position: relative; overflow: hidden; background: var(--op-brand-700); }
.widget--promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.widget--promo div { position: relative; padding: 24px; }
.widget--promo h3 { color: #fff; text-transform: uppercase; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes label { background: #fff; border-radius: 4px; padding: 2px 12px; border: 1px solid var(--op-brand-100); }
.op-toolbar { display: flex; align-items: center; gap: 24px; border: 1px solid var(--op-line); border-radius: var(--op-radius-sm); padding: 8px 16px; margin-bottom: 30px; flex-wrap: wrap; }
.op-toolbar .views { display: flex; gap: 6px; padding-right: 20px; border-right: 1px solid var(--op-line); color: var(--op-brand-600); }
.op-toolbar .sort { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.op-toolbar select { border: 1px solid var(--op-line); border-radius: 6px; padding: 8px 14px; background: #fff; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--op-line); border-radius: 50%; color: var(--op-ink); }
.pagination a:hover { border-color: var(--op-brand-600); }
.pagination a[aria-current="page"] { background: var(--op-brand-600); border-color: var(--op-brand-600); color: #fff; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.product__top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
.product__gallery .main { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--op-line); border-radius: var(--op-radius); display: grid; place-items: center; }
.product__gallery .main img { width: 60%; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.thumbs button { aspect-ratio: 1; background: var(--op-bg-soft); border: 1px solid transparent; border-radius: var(--op-radius-sm); padding: 14px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--op-brand-600); background: #fff; }
.product__info h1 { font-size: 1.7rem; }
.product__info ul.bullets { list-style: disc; padding-left: 20px; margin-bottom: 16px; font-size: .95rem; }
.stock { display: inline-flex; align-items: center; gap: 8px; color: #1a7f4b; font-weight: 500; }
.stock .i { background: #1a7f4b; color: #fff; border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.product__price { display: flex; align-items: center; gap: 16px; margin: 12px 0 20px; flex-wrap: wrap; }
.product__price .price { font-size: 1.8rem; }
.product__price .ship { border-left: 1px solid var(--op-line); padding-left: 16px; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; color: var(--op-ink); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--op-line); border-radius: 999px; }
.qty button { width: 40px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: var(--op-ink); }
.qty input { width: 44px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.meta { margin-top: 18px; font-size: .92rem; display: grid; gap: 4px; }
.meta strong { color: var(--op-ink); font-weight: 500; }
.tabs { margin-top: 56px; }
.tabs [role="tablist"] { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 0 0 10px rgba(20, 32, 29, .1); border-radius: var(--op-radius-sm); overflow: hidden; }
.tabs [role="tab"] { padding: 14px 8px; border: 0; background: #fff; cursor: pointer; color: var(--op-brand-600); font-weight: 500; text-transform: uppercase; }
.tabs [role="tab"][aria-selected="true"] { background: var(--op-brand-600); color: #fff; }
.tabs [role="tabpanel"] { padding: 28px 0 0; }
.tabs [hidden] { display: none; }
.side-box { background: var(--op-brand-50); border-radius: var(--op-radius); padding: 22px; margin-bottom: 20px; }
.side-box li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: .95rem; }
.side-box .i { color: var(--op-brand-600); }
.richtext { max-width: none; }
.richtext h2, .richtext h3 { margin-top: 1.4em; font-size: 1.3rem; }
.richtext img { border-radius: var(--op-radius); }
.richtext figure { margin: 28px 0; }
.richtext blockquote { margin: 28px 0; padding: 22px 28px; border: 2px solid var(--op-brand); border-radius: var(--op-radius-sm); color: var(--op-ink); font-size: 1.15rem; font-weight: 500; }

/* ---------- blog list / article ---------- */
.article-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.article__cover { border-radius: var(--op-radius); overflow: hidden; margin-bottom: 20px; }
.article__cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__meta { display: flex; gap: 22px; align-items: center; font-size: .9rem; color: var(--op-ink-3); margin-bottom: 14px; flex-wrap: wrap; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.two-img { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.two-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mini-post { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px 0; font-size: .85rem; }
.mini-post img { width: 64px; height: 54px; object-fit: cover; border-radius: 6px; }
.mini-post a { color: var(--op-ink); }
.mini-post time { display: block; color: var(--op-ink-3); font-size: .8rem; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--op-brand-100); }
.link-list li:last-child { border: 0; }
.link-list a { color: var(--op-ink); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: #fff; border: 1px solid var(--op-brand-100); border-radius: 999px; padding: 2px 14px; font-size: .85rem; color: var(--op-ink-2); }
.tags a:hover { background: var(--op-brand-600); color: #fff; border-color: var(--op-brand-600); }
.related { margin-top: 70px; }
.related h2 { text-align: center; }
.card-mini { text-align: center; }
.card-mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--op-radius) var(--op-radius) 0 0; }
.card-mini div { margin: -20px 16px 0; position: relative; background: #fff; box-shadow: var(--op-shadow); border-radius: var(--op-radius-sm); padding: 14px; font-size: .92rem; }
.card-mini h3 { font-size: .98rem; font-weight: 400; margin: 6px 0; }
.card-mini h3 a { color: var(--op-ink); }
.comments h2 { font-size: 2rem; margin-top: 56px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 1px solid var(--op-line); border-radius: var(--op-radius-sm); padding: 12px 16px; background: #fff; }
.field textarea { min-height: 120px; }
.field label { display: block; font-size: .92rem; margin-bottom: 4px; color: var(--op-ink); }
.back-row { text-align: center; margin: 36px 0; }

/* ---------- footer ---------- */
.footer-services { background: #fff; padding: 44px 0 50px; }
.footer-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.fs { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.fs .i { width: 52px; height: 52px; color: var(--op-brand-600); stroke-width: 1.3; }
.fs h2 { margin-bottom: 4px; font-size: 1.4rem; }
.fs p { color: var(--op-ink-3); font-size: .92rem; margin-bottom: 14px; }
.fs a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.op-footer { background: var(--op-dark); color: #d8e2df; }
.op-footer a { color: #fff; }
.op-footer a:hover { color: var(--op-brand); }
.footer__cta { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 44px 0; }
.footer__cta .op-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__cta h2 { color: #fff; margin-bottom: 8px; font-size: 2rem; }
.footer__cta p { margin: 0; color: #fff; }
.footer__cta .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr 1.4fr; gap: 40px; padding-block: 60px; }
.op-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; }
.footer__logo { background: #fff; display: inline-block; padding: 6px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer__logo img { height: 48px; width: auto; }
.op-footer ul li { margin-bottom: 12px; }
.op-footer .contact li { display: flex; gap: 14px; align-items: center; }
.op-footer .contact .ic { width: 42px; height: 42px; flex: none; border: 1px solid rgba(255, 255, 255, .15); background: var(--op-dark-2); border-radius: 50%; display: grid; place-items: center; color: var(--op-brand); }
.op-footer .social { display: flex; gap: 10px; margin-top: 22px; }
.op-footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.op-footer .social a:hover { background: var(--op-brand); color: var(--op-ink); border-color: var(--op-brand); }
.newsletter { display: flex; margin-top: 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px; background: var(--op-dark-2); }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 10px 16px; }
.newsletter input::placeholder { color: #aebbb7; }
.newsletter button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--op-brand-600); color: #fff; cursor: pointer; display: grid; place-items: center; }
.newsletter button:hover { background: var(--op-brand); color: var(--op-ink); }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .88rem; color: #aebbb7; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__legal a { color: #d8e2df; text-decoration: underline; }
.footer__company { flex: 1 0 100%; margin: 0; font-style: normal; font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr 1fr; }
  .stats { margin-right: 0; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer__thumbs { display: none; }
}
@media (max-width: 992px) {
  .section { padding: 56px 0; }
  .header__row { grid-template-columns: auto 1fr auto; gap: 16px; }
  .search { display: none; }
  .phone-pill span { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { text-align: left; border-bottom: 1px solid var(--op-line); }
  .hero .op-container, .benefits, .faq, .outlets, .product, .product__top, .article-layout, .shop, .shop--right, .promos { grid-template-columns: 1fr; }
  .hero .op-container { min-height: 0; padding-top: 32px; padding-bottom: 32px; }
  .shop--right .sidebar { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; gap: 90px; }
  .services__grid, .footer-services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .offer { grid-template-columns: 1fr; }
  .topbar .topbar__msg { display: none; }
  .stats { margin: 24px 0 0; }
  .band-photo { text-align: left; }
}
@media (max-width: 576px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .footer__main, .services__grid, .footer-services__grid, .two-img, .form-grid, .outlets__gallery { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .section-head h2 { white-space: normal; }
  .section-head .rule { display: none; }
  .promo { padding: 28px; }
  .offer__info { padding: 24px; }
  .float-tabs { display: none; }
  .topbar .op-container > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- legacy markup restyled (breadcrumb filter, price widget, cart badge) ---------- */
.breadcrumb { background: var(--op-brand-50); border-bottom: 1px solid var(--op-line); }
.breadcrumb .bc-in { max-width: calc(var(--op-container) + 48px); padding: 10px 24px; font-size: .92rem; color: var(--op-ink-3); }
.breadcrumb .bc-link { color: var(--op-ink-2); }
.breadcrumb .bc-link:hover { color: var(--op-brand-700); }
.breadcrumb .bc-sep { color: var(--op-ink-3); }
.price .now { font-weight: 600; color: var(--op-brand-600); }
.price .was { color: var(--op-ink-3); font-size: .9rem; font-weight: 400; margin-left: 6px; text-decoration: line-through; }
.price .off { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 4px; background: var(--op-ink); color: #fff; vertical-align: middle; }
.price .vat-note { display: block; font-size: .78rem; font-weight: 400; color: var(--op-ink-3); }
.price-omnibus { font-size: .8rem; color: var(--op-ink-3); margin-top: 2px; }
.price-hidden a { font-weight: 500; }
.card-product .price .now { font-size: 1.15rem; }
.product__price .price .now { font-size: 1.9rem; }
.tool-link .count.empty { display: none; }
.pg-thumb.active { border-color: var(--op-brand-600); background: #fff; }
.var-opt { border: 1px solid var(--op-line); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.var-opt.active { background: var(--op-brand-600); border-color: var(--op-brand-600); color: #fff; }
.var-label { font-weight: 500; color: var(--op-ink); margin: 10px 0 6px; }
.var-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; }
.avail.success { color: #1a7f4b; }
.avail.secondary { color: var(--op-ink-3); }
.qty button { font-size: 1.2rem; }
.attr-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.attr-table th, .attr-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--op-line); }
.attr-table th { width: 34%; color: var(--op-ink); font-weight: 500; }
.cat-empty { text-align: center; padding: 56px 16px; }
.cat-empty-ic { font-size: 2.4rem; color: var(--op-brand); margin-bottom: 12px; }

/* ---------- home: category cards ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cat-card { display: block; text-align: center; padding: 28px 16px; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: #fff; color: var(--op-ink); font-weight: 500; font-size: 1.1rem; transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--op-brand); box-shadow: var(--op-shadow); color: var(--op-brand-700); }
/* Brand-line banners (logo + gradient), 2026-11-15 */
.cat-card--banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 180px; padding: 24px 32px; text-align: left; border: 0; overflow: hidden; }
.cat-card__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1 1 50%; }
.cat-card__title { font-size: 1.6rem; font-weight: 600; line-height: 1.15; color: var(--op-ink); }
.cat-card__btn { display: inline-block; padding: 10px 22px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #fff; }
.cat-card__logo { mix-blend-mode: multiply; flex: 0 1 42%; max-width: 220px; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.cat-card--medibase { background: linear-gradient(120deg, #cfe3f7 0%, #e9f2fb 55%, #fff 100%); }
.cat-card--medibase .cat-card__btn { background: #1f3f99; }
.cat-card--oftalpharma { background: linear-gradient(120deg, #c4ece6 0%, #e6f6f3 55%, #fff 100%); }
.cat-card--oftalpharma .cat-card__btn { background: #1f7f77; }
.cat-card--banner:hover { box-shadow: var(--op-shadow); color: var(--op-ink); }
.cat-card--banner:focus-visible { outline: 3px solid var(--op-ink); outline-offset: 3px; }
@media (max-width: 720px) { .cat-card--banner { padding: 20px; min-height: 150px; } .cat-card__title { font-size: 1.3rem; } }
.hero__art { display: grid; place-items: center; }
.hero__art svg { width: min(100%, 420px); height: auto; }
.cart-line-ok { color: var(--op-brand-600); }

/* ---------- additions for the Twig templates ---------- */
.price-range { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-range input { width: 100%; border: 1px solid var(--op-line); border-radius: var(--op-radius-sm); padding: 8px 10px; background: #fff; }
.product__gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.lead { font-size: 1.15rem; color: var(--op-ink-2); }
.page-banner p { position: relative; margin: 0 0 8px; max-width: 60ch; }
.tags a[aria-current="page"], .link-list a[aria-current="page"] { background: var(--op-brand-600); color: #fff; border-color: var(--op-brand-600); }
.link-list a[aria-current="page"] { background: none; color: var(--op-brand-700); font-weight: 600; }
.footer__main .op-footer h2, .op-footer .footer__main h2 { margin-top: 0; }
.op-footer p { margin: 0 0 1em; }
.op-footer ul { list-style: none; padding: 0; }
.cat-results .grid { margin-top: 0; }
@media (max-width: 992px) { .footer__main { grid-template-columns: 1fr 1fr; } }
.section--soft .card-product__img { background: #fff; }

/* ---------- FAQ (native details/summary) ---------- */
.op-faq-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.op-faq-list details { background: var(--op-brand-50); border-radius: var(--op-radius-sm); padding: 0 24px; }
.op-faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; color: var(--op-ink); font-weight: 500; font-size: 1.1rem; }
.op-faq-list summary::-webkit-details-marker { display: none; }
.op-faq-list summary .i { background: var(--op-brand-700); color: #fff; border-radius: 50%; padding: 5px; width: 32px; height: 32px; transition: transform .2s; }
.op-faq-list details[open] summary .i { transform: rotate(180deg); }
.op-faq-list details > div { padding: 0 0 20px; }

/* ---------- promotional banners, locations, figures (CMS panel data, D-368) ---------- */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.promo { position: relative; border-radius: var(--op-radius); padding: 48px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; }
.promo > div { position: relative; z-index: 1; max-width: 60%; }
.promo p { margin: 0 0 4px; }
.promo h3 { font-size: 2rem; margin: 4px 0 18px; }
.promo h3 a { color: inherit; }
.promo img { position: absolute; right: 0; bottom: 0; height: 90%; width: 42%; object-fit: contain; }
.promo--light { background: linear-gradient(120deg, var(--op-brand-50), var(--op-brand-100)); }
.promo--brand { background: linear-gradient(120deg, var(--op-brand-100), var(--op-brand)); }
.promo--dark { background: var(--op-dark); color: #fff; }
.promo--dark h3 { color: #fff; }
.widget--promo p { margin: 0 0 4px; color: #fff; }
.location { background: #fff; border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 20px; }
.location img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--op-radius-sm); margin-bottom: 14px; }
.location h3 { margin-bottom: 6px; }
.location address { font-style: normal; margin-bottom: 8px; }
.location p { margin-bottom: 8px; }
.figures { list-style: none; padding: 28px 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: linear-gradient(180deg, var(--op-brand-600), var(--op-brand-700)); color: #fff; border-radius: var(--op-radius-sm); text-align: center; }
.figures li { padding: 0 12px; }
.figures li + li { border-left: 1px solid rgba(255, 255, 255, .4); }
.figures strong { display: block; font-size: 2.6rem; line-height: 1.1; }
@media (max-width: 576px) { .promo { padding: 28px; } .promo > div { max-width: 100%; } .promo img { opacity: .25; width: 60%; } .figures li + li { border-left: 0; } }

/* Unit that cannot be sold (stock_mode / pim_stock, D-373): contrast of ink-2 on white is above 7:1 */
.op-unavailable { margin: 4px 0 0; font-size: .9rem; color: var(--op-ink-2); font-weight: 500; }

/* Category tree of the filters: parents stand out, children are indented under a guide line (D-377) */
.link-list .cat-parent > a { font-weight: 600; font-size: 1rem; }
.link-list .cat-children { margin: 8px 0 2px 4px; padding-left: 12px; border-left: 2px solid var(--op-brand-100); }
.link-list .cat-children li { padding: 5px 0; border-bottom: 0; }
.link-list .cat-children a { font-size: .9rem; color: var(--op-ink-2); }
.link-list .cat-count { color: var(--op-ink-3); font-weight: 400; font-size: .85em; }
.link-list .cat-children a[aria-current="page"], .link-list .cat-parent > a[aria-current="page"] { color: var(--op-brand-700); font-weight: 700; }

/* Add to cart refused: the unit cannot be sold (D-379) */
.op-btn:disabled, .op-btn[aria-disabled="true"] { background: var(--op-line); color: var(--op-ink-2); border-color: var(--op-line); cursor: not-allowed; opacity: 1; }

/* Purchase funnel (cart, checkout, payment, confirmation): minimal header and footer, space above and below the content (2026-11-14) */
.header--checkout + main { padding-block: 32px 56px; }
.header--checkout .header__secure { display: inline-flex; align-items: center; gap: 8px; color: var(--op-ink-2); font-size: .9rem; white-space: nowrap; }
.header--checkout .header__secure .i { width: 18px; height: 18px; }
.op-footer--checkout .footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 20px; font-size: .85rem; }
.op-footer--checkout .footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.op-footer--checkout .footer__legal-links li { margin: 0; }
