/* =========================================================================
   VetCare & Festin — public site
   Mobile first. Brand: blue #4D67B5, green #8BC53F.
   Green is used for accents and backgrounds; text uses the darker shade.
   ========================================================================= */

/* --- Fonts (self-hosted, SIL Open Font License) -------------------------- */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.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;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.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;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---------------------------------------------------------------- */

:root {
    --blue: #4D67B5;
    --blue-dark: #3A4F92;
    --blue-soft: #EEF1FA;
    --green: #8BC53F;
    --green-dark: #4F7A1C;
    --green-soft: #F1F8E8;
    --ink: #1C2434;
    --muted: #5B6475;
    --line: #E6E9F0;
    --tint: #F7F8FC;
    --white: #FFFFFF;

    --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(28, 36, 52, 0.08);
    --shadow-hover: 0 16px 40px rgba(28, 36, 52, 0.12);
    --container: 1200px;
    --gutter: 16px;
}

/* --- Base -------------------------------------------------------------------- */

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

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

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute !important;
    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: 16px; top: -100px;
    z-index: 100;
    background: var(--ink); color: var(--white);
    padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: var(--white); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.lead {
    font-size: 1.125rem;
    color: var(--muted);
}

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.8em;
}
.eyebrow a { color: inherit; text-decoration: none; }
/* Brand pill (a product of both catalogs shows both). */
.brand-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
    vertical-align: 1px;
    background: var(--blue);
    color: var(--white);
}
.brand-badge.is-festin { background: var(--green); color: var(--ink); }
.product-catalogs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.product-catalogs a { display: inline-flex; align-items: center; gap: 8px; }
.product-catalogs a:hover { text-decoration: underline; }
.product-catalogs-sep { color: var(--muted); font-weight: 400; }
.eyebrow-green { color: var(--green-dark); }

/* --- Buttons & links ------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #7AB32F; color: var(--ink); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-block { width: 100%; }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.link-arrow {
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    gap: 6px;
}
.link-arrow span { transition: transform 0.2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* --- Header ------------------------------------------------------------------- */

.site-header {
    --header-h: 60px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(28, 36, 52, 0.07); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: var(--header-h);
    flex-wrap: wrap;
}
.js .header-inner { height: var(--header-h); flex-wrap: nowrap; }

/* Logo image: width/height attributes reserve the space, CSS sets the size. */
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 6px;
}
.logo picture { display: block; }
.logo img { display: block; height: 38px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-right: -10px; }

/* Round icon buttons: search, burger, close. */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}
.header-icon:hover { color: var(--blue); background: var(--blue-soft); }
.header-icon:focus-visible { border-radius: 50%; }
.header-icon[aria-expanded="true"] { color: var(--blue); }

.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: currentColor; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: currentColor; }

/* Mobile: the menu is a full-height panel under the header (a plain list without JS). */
.site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 16px;
}
.js .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 1px);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    padding: 8px var(--gutter) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
}
.js .site-nav.is-open { display: flex; animation: header-drop 0.2s ease-out; }
/* On body only: its overflow then applies to the viewport and the sticky header keeps working. */
html.nav-locked body { overflow: hidden; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 2px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: #3A4252;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--blue); }
.nav-list a.is-active { font-weight: 600; }
.nav-list a.is-active::after {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.nav-lang { margin-top: auto; padding-top: 28px; }
.header-lang { display: none; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 2px; transition: color 0.2s; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch-current { color: var(--blue); padding: 6px 2px; }
.lang-switch-sep { width: 1px; height: 14px; background: #CDD2DC; }

/* Search bar: opens under the header from the magnifier icon. */
.header-search {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(28, 36, 52, 0.1);
    animation: header-drop 0.2s ease-out;
}
.header-search[hidden] { display: none; }
.header-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.header-search-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--tint);
    color: var(--muted);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.header-search-field:focus-within { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-soft); }
.header-search-field .icon { flex: none; }
.header-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
}
.header-search input:focus { outline: none; }
.header-search-submit { display: none; padding: 12px 22px; font-size: 0.95rem; }

/* Live suggestions: dropdown right under the search field. */
.header-search-field { position: relative; }
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: -1px; right: -1px; /* lined up with the field border */
    z-index: 5;
    max-height: min(480px, calc(100vh - 150px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    color: var(--ink);
    animation: header-drop 0.15s ease-out;
}
.search-suggest[hidden] { display: none; }
.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.suggest-item:hover, .suggest-item[aria-selected="true"] { background: var(--blue-soft); color: var(--ink); }
.suggest-thumb {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--tint);
    object-fit: cover;
}
.suggest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.suggest-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.75rem; color: var(--muted); }
.suggest-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-badge {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--blue);
    color: var(--white);
}
.suggest-badge.is-festin { background: var(--green); color: var(--ink); }
.suggest-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest-name mark { background: none; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.suggest-arrow { flex: none; color: var(--muted); transition: color 0.2s, transform 0.2s; }
.suggest-item:hover .suggest-arrow, .suggest-item[aria-selected="true"] .suggest-arrow { color: var(--blue); transform: translateX(3px); }
.suggest-all {
    justify-content: space-between;
    margin-top: 4px;
    padding: 12px 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
}
.suggest-all > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.suggest-all:hover, .suggest-all[aria-selected="true"] { color: var(--blue-dark); }
.suggest-item + .suggest-all { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.suggest-empty { margin: 0; padding: 12px 10px 4px; font-size: 0.92rem; color: var(--muted); }

@keyframes header-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* --- Breadcrumbs ------------------------------------------------------------ */

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 16px 0 0;
    font-size: 0.875rem;
    color: var(--muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #A0A7B5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* --- Sections ----------------------------------------------------------------- */

.section { padding: 56px 0; }
.section-compact { padding: 32px 0 48px; }
.section-tint { background: var(--tint); }

.section-head {
    max-width: 680px;
    margin-bottom: 32px;
}
.section-intro { color: var(--muted); font-size: 1.1rem; }

.page-hero {
    padding: 40px 0 36px;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--white) 70%);
}
.page-hero .lead { max-width: 680px; }
.page-hero-small h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.page-hero-vetcare { background: linear-gradient(135deg, var(--blue-soft) 0%, var(--white) 75%); }
.page-hero-festin { background: linear-gradient(135deg, var(--green-soft) 0%, var(--white) 75%); }
.page-hero-festin .eyebrow { color: var(--green-dark); }

/* Square image frame (product gallery) */
.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--blue-soft);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame picture { display: contents; }

/* --- Chips (filters, subcategories, species) -------------------------------- */

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
a.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip-static { background: var(--green-soft); border-color: transparent; color: var(--green-dark); font-weight: 600; }

.filter-block { margin-bottom: 20px; }
.filter-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.result-count { color: var(--muted); font-size: 0.95rem; margin: 8px 0 20px; }
.empty-state { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--tint); border-radius: var(--radius); }

/* --- Product cards ------------------------------------------------------------ */

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-card-link:hover { color: inherit; }
.product-card-media { aspect-ratio: 1 / 1; background: var(--tint); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-media img { transform: scale(1.03); }
.product-card-body { padding: 14px 14px 18px; border-top: 3px solid var(--blue); }
.product-card.is-festin .product-card-body { border-top-color: var(--green); }
.product-card-cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.product-card-title { font-size: 1rem; margin: 0 0 6px; }
.product-card-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Pagination ------------------------------------------------------------------ */

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px;
    padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}
.pagination a { border: 1px solid var(--line); color: var(--ink); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination-current { background: var(--blue); color: var(--white); }
.pagination-gap { color: var(--muted); min-width: 20px !important; padding: 0 !important; }

/* --- Product page -------------------------------------------------------------- */

.product-layout { display: grid; gap: 32px; }
.product-gallery-main { background: var(--tint); }
.gallery-slide { height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.product-gallery-thumbs a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; aspect-ratio: 1 / 1; }
.product-gallery-thumbs a[aria-current="true"] { border-color: var(--blue); }
.product-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 0.25em; }
.product-ref { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2em; }
.product-meta { margin: 24px 0; }
.meta-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}
.doc-list a:hover { border-color: var(--blue); color: var(--blue); }
.doc-icon {
    flex-shrink: 0;
    font-size: 0.7rem; font-weight: 800;
    padding: 6px 8px;
    border-radius: 6px;
    background: #FDECEC; color: #B42318;
}

.product-details { max-width: 860px; }

/* Rich content: product descriptions, legal pages */
.prose { color: #333B4B; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose h4 { font-size: 1rem; margin: 1.2em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose-narrow { max-width: 760px; }

/* Tables: styled, and scrollable sideways on small screens */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.4em 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.prose table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.95rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th, .prose thead td { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--tint); }
.prose caption { caption-side: bottom; padding: 8px; color: var(--muted); font-size: 0.85rem; }

/* --- Search, contact, 404 ------------------------------------------------------- */

.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin-top: 16px; }
.search-form input {
    flex: 1 1 220px;
    font: inherit;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
}
.search-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.notice { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue-dark); }
.notice-muted { background: var(--tint); color: var(--muted); }

.not-found { text-align: center; }
.not-found-inner { max-width: 640px; }
.not-found-code { font-family: var(--font-heading); font-size: clamp(5rem, 20vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue-soft); margin: 0; -webkit-text-stroke: 2px var(--blue); }
.not-found .search-form { margin: 24px auto; }

/* --- Footer ------------------------------------------------------------------------ */

.site-footer { background: #182033; color: #C6CCD8; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer a { color: #E4E8F0; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.logo-light { margin-bottom: 16px; }
.logo-light img { height: 56px; }
.footer-title { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-label { font-size: 0.85rem; color: var(--white); font-weight: 600; margin: 18px 0 8px; }
.footer-links, .footer-contact, .social-list { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a { display: inline-block; padding: 6px 12px; border: 1px solid #334060; border-radius: 999px; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid #2A3550; padding: 18px 0; font-size: 0.85rem; color: #8F98AB; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-credit-line { white-space: nowrap; } /* one unit: never split, moves below the copyright instead */
.site-footer .footer-credit { color: inherit; }
.site-footer .footer-credit:hover, .site-footer .footer-credit:focus-visible { color: inherit; text-decoration: underline; }
.phone-line { display: block; }
.phone-number { white-space: nowrap; }

/* =========================================================================
   Wider screens
   ========================================================================= */

@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
}

@media (min-width: 900px) {
    .section { padding: 88px 0; }
    .section-compact { padding: 40px 0 64px; }
    .product-layout { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
    .product-gallery { position: sticky; top: 76px; }
    .page-hero { padding: 56px 0 48px; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
    /* Desktop: horizontal menu, always visible. */
    /* Logo left, links centered, search + languages right. */
    .header-inner, .js .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 24px;
        height: var(--header-h);
    }
    .site-header .logo { justify-self: start; }
    .site-header .logo img { height: 46px; }
    .header-actions { justify-self: end; gap: 10px; }
    .js .nav-toggle, .nav-toggle { display: none; }
    .site-nav, .js .site-nav, .js .site-nav.is-open {
        display: block; position: static; order: 0; width: auto; padding: 0;
        overflow: visible; background: none; animation: none;
    }
    .nav-list { display: flex; gap: 36px; }
    .nav-list a {
        position: relative;
        padding: 8px 0;
        font-size: 0.95rem;
        border: 0;
    }
    .nav-list a.is-active { font-weight: 500; }
    .nav-list a.is-active::after {
        position: absolute;
        left: 50%; bottom: 0;
        width: 18px; height: 2px;
        border-radius: 2px;
        transform: translateX(-50%);
    }
    .nav-lang { display: none; }
    .header-lang { display: block; padding-left: 10px; border-left: 1px solid var(--line); }
    .header-search-submit { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Splash screen (logo animation while the page loads) — switch: admin › Page d'accueil.
   Only on the first page of a visit (the inline head script adds .no-splash afterwards).
   site.js hides it once the page is ready: at least ~300 ms after the first paint, at most
   ~0.6 s in all. Without JavaScript, the animation below hides it after ~1.1 s, so it can
   never block the page. The logo layers are CSS backgrounds: nothing is downloaded when the
   splash is not shown. Never on the admin. Layer positions come from tools/build-logo.php.
   ========================================================================= */

.splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    animation: splash-auto-hide 0.3s ease-in 0.8s forwards;
}
.splash[hidden], .no-splash .splash { display: none; }
.splash.is-leaving {
    animation: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.splash-logo {
    position: relative;
    width: min(170px, 50vw);
    aspect-ratio: 440 / 252;
}
.splash-logo span { position: absolute; display: block; background: no-repeat center / contain; }
.splash-vet {
    left: 0; top: 0; width: 74.77%; aspect-ratio: 329 / 182;
    background-image: url("../img/brand/splash-vet.png");
    background-image: image-set(url("../img/brand/splash-vet.webp") type("image/webp"), url("../img/brand/splash-vet.png") type("image/png"));
    animation: splash-vet 0.26s ease-out both;
}
.splash-care {
    left: 45.91%; top: 42.06%; width: 54.09%; aspect-ratio: 238 / 146;
    background-image: url("../img/brand/splash-care.png");
    background-image: image-set(url("../img/brand/splash-care.webp") type("image/webp"), url("../img/brand/splash-care.png") type("image/png"));
    animation: splash-care 0.3s ease-in-out 0.12s both;
}

@keyframes splash-vet {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes splash-care {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
@keyframes splash-auto-hide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (min-width: 640px) {
    .splash-logo { width: 220px; }
}

/* Reduced motion: the logo just shows, then a quick fade. */
@media (prefers-reduced-motion: reduce) {
    .splash-vet, .splash-care { animation: none; }
    .splash.is-leaving { transition: opacity 0.15s linear !important; }
}

@media print {
    .splash { display: none; }
}

/* =========================================================================
   Floating WhatsApp button (every public page, unless switched off in the admin)
   Official WhatsApp green with the white logo; above the page, under the header.
   ========================================================================= */

.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(28, 36, 52, 0.22), 0 2px 6px rgba(28, 36, 52, 0.12);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}
.wa-float-icon { display: block; width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.96); }
/* Visible on the white page and on the dark footer: white ring, then blue. */
.wa-float:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--blue-dark), 0 6px 18px rgba(28, 36, 52, 0.22);
}
.wa-float-label { display: none; }

/* Never over the mobile menu or the search bar; on phones, also hidden while a form field
   is being filled in (the keyboard is open), so it never covers a field or a button. */
html.nav-locked .wa-float,
html.search-open .wa-float {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

/* Room for the button under the footer credit when the page is scrolled to the end. */
.has-whatsapp .footer-bottom { padding-bottom: 84px; }

@media (max-width: 639px) {
    html:has(:is(input, textarea, select):focus) .wa-float {
        opacity: 0;
        visibility: hidden;
    }
}

@media (min-width: 640px) {
    .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; }
    .wa-float-icon { width: 32px; height: 32px; }
    .has-whatsapp .footer-bottom { padding-bottom: 18px; }
}
/* Footer bar on one row: keep the credit (right) out of the button's way, until the
   centered container leaves enough margin on its own. */
@media (min-width: 640px) and (max-width: 1343px) {
    .has-whatsapp .footer-bottom-inner { padding-right: calc(var(--gutter) + 72px); }
}

/* Mouse: slight zoom + label on the left. Keyboard focus shows the label too. */
@media (hover: hover) and (pointer: fine) {
    .wa-float:hover {
        transform: scale(1.08);
        box-shadow: 0 10px 26px rgba(28, 36, 52, 0.26), 0 3px 8px rgba(28, 36, 52, 0.14);
    }
    .wa-float-label {
        display: block;
        position: absolute;
        right: calc(100% + 12px);
        top: 50%;
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--ink);
        color: var(--white);
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(6px, -50%);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .wa-float:hover .wa-float-label,
    .wa-float:focus-visible .wa-float-label {
        opacity: 1;
        visibility: visible;
        transform: translate(0, -50%);
    }
}

/* One soft pulse once the page (and the splash) is shown. None with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .wa-float::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 50%;
        background: #25D366;
        opacity: 0;
        pointer-events: none;
        animation: wa-pulse 1.4s ease-out 1.6s 1 both;
    }
}
@keyframes wa-pulse {
    0%   { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.7); }
}

@media print {
    .wa-float { display: none; }
}

/* Gammes (product lines): filter chips with an icon, small label on cards and product pages */
.chip-line { display: inline-flex; align-items: center; gap: 6px; }
.chip-line .icon { flex: none; }
.line-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 7px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
}
.line-label .icon { flex: none; }
.product-card-line { margin: 0 0 6px; }
.product-line { margin: -4px 0 14px; }

/* Outline button on dark backgrounds (home hero, about) */
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: #0F172A; }

/* Scroll reveal (home, about): site.js adds .is-visible; nothing is hidden without JS or with reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s;
    }
    .js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
}
@media print {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
