/* ─────────────────────────────────────────────────────────────
   Avena Health · estilos compartidos (tokens, header, footer,
   buscador, banner y filas de ingredientes)
   ───────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Figtree';
    src: url('../assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype-variations'),
         url('../assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #155DFC;
    --primary-hover: #0F46C8;
    --primary-ring: #93B8FD;
    --primary-soft: #EDF2FF;
    --fg: #111827;
    --fg-muted: #6A7282;
    --fg-subtle: #B3B3B3;
    --bg: #FFFFFF;
    --bg-canvas: #F8FAFC;
    --bg-subtle: #F1F5F9;
    --border: #E7E7E7;
    --promo: #D6FF00;

    --macro-carbs: #086A39;
    --macro-protein: #155DFC;
    --macro-fat: #B45309;

    --shadow-sm: 0 4px 8px -2px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 12px 24px -6px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 16px 32px -12px rgba(17, 24, 39, 0.12);
    --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}
/* Base tipográfica del sistema de diseño: 14/20 y -2% de tracking heredado */
html, body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    overflow-x: hidden;
    overflow-x: clip;
}
a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
img {
    max-width: 100%;
}
:focus-visible {
    outline: 2px solid var(--primary-ring);
    outline-offset: 2px;
}

.box__body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 15px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s cubic-bezier(.16, 1, .3, 1), box-shadow .15s cubic-bezier(.16, 1, .3, 1), background .15s cubic-bezier(.16, 1, .3, 1), color .15s cubic-bezier(.16, 1, .3, 1);
}
.btn--primary,
.btn--primary:hover,
.btn--primary:focus {
    background: var(--primary);
    color: #FFFFFF;
}
.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}
.btn--outline {
    border-color: var(--border);
    background: var(--bg);
    color: var(--fg);
}
.btn--outline:hover {
    background: var(--bg-canvas);
    box-shadow: inset 0 0 0 1px var(--primary-ring);
    color: var(--primary);
}

/* ── Header ──────────────────────────────────────────────── */
.siteNav {
    position: sticky;
    top: 0;
    z-index: 60;
}
[hidden] {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.promoBar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 56px 11px 32px;
    background: var(--promo);
    color: var(--fg);
    font-size: 14px;
}
.promoBar__title {
    font-weight: 700;
    white-space: nowrap;
}
.promoBar__text {
    flex: 1;
    min-width: 0;
    font-weight: 500;
}
.promoBar__timer {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 500;
}
.promoBar__timer strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.promoBar__close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.85);
    color: var(--promo);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}
.promoBar__close:hover {
    background: var(--fg);
}
.header {
    position: relative;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header__avena {
    max-width: 1360px;
    height: 76px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}
.header__logo {
    display: flex;
    flex: none;
}
.header__logoMark {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--primary);
    display: grid;
    place-items: center;
}
.header__logoMark img {
    display: block;
    width: 20px;
    height: 23px;
}
.header__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
}
.nav__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 26px 0;
    color: var(--fg);
    white-space: nowrap;
    cursor: default;
    box-shadow: inset 0 -2px 0 0 transparent;
    transition: color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.nav__item:focus {
    outline: none;
}
.nav__item:hover,
.nav__item:focus-within {
    color: var(--primary);
    box-shadow: inset 0 -2px 0 0 var(--primary);
}
.nav__chevron {
    flex: none;
    color: var(--fg-muted);
}
.nav__link {
    color: var(--fg);
    white-space: nowrap;
    transition: color 180ms var(--ease);
}
.nav__link:hover {
    color: var(--primary);
}
.header__actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.countryPicker {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--fg-muted);
    white-space: nowrap;
    cursor: pointer;
}
.countryPicker:hover {
    background: var(--bg-subtle);
    color: var(--fg);
}
.countryPicker svg {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mega menú: abre con hover o foco (sin JS) */
.mega {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2px 24px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
.nav__item:hover .mega,
.nav__item:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s;
}
.mega__panel {
    width: max-content;
    max-width: min(1040px, 92vw);
    display: flex;
    align-items: stretch;
    gap: 36px;
    padding: 22px 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    color: var(--fg);
    cursor: auto;
}
.mega__links {
    flex: 1;
    display: grid;
    gap: 2px;
    align-content: start;
}
.mega__grid--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
}
.mega__links.mega__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mega__col {
    display: grid;
    gap: 2px;
    align-content: start;
}
.mega__title {
    margin: 0 0 4px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-muted);
}
.mega__link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.mega__link:hover {
    background: var(--bg-canvas);
    box-shadow: inset 0 0 0 1px var(--primary-ring);
    color: var(--primary);
}
.mega__link--active,
.mega__link--active:hover {
    background: var(--bg-subtle);
    color: var(--primary);
    font-weight: 600;
}
.mega__icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--primary-soft);
    display: grid;
    place-items: center;
}
.mega__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mega__aside {
    flex: none;
    width: 320px;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-canvas) 100%);
    white-space: normal;
}
.mega__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-muted);
}
.mega__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}
.mega__aside h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.mega__more,
.mega__more:hover {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.mega__more:hover {
    color: var(--primary-hover);
}
.mega__more svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Buscador ────────────────────────────────────────────── */
.search__container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 760px;
    height: 64px;
    margin: 0 auto;
    padding: 0 12px 0 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.search__container:hover {
    border-color: var(--primary-ring);
}
.search__container:focus-within {
    border-color: var(--primary);
}
.search__icon {
    flex: none;
    display: block;
    width: 22px;
    height: 22px;
    opacity: .55;
}
/* Borde animado del buscador (como el mock): una línea azul recorre el
   contorno y se detiene mientras el buscador tiene foco o texto */
@property --avAng {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes avBorderRun {
    0% { --avAng: 0deg; opacity: 0; }
    5% { opacity: 1; }
    38% { opacity: 1; }
    45% { --avAng: 360deg; opacity: 0; }
    100% { --avAng: 360deg; opacity: 0; }
}
.search__container::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--avAng), transparent 0deg 240deg, var(--primary-ring) 290deg, var(--primary) 335deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: avBorderRun 6s cubic-bezier(.4, 0, .2, 1) infinite;
    pointer-events: none;
    will-change: opacity;
}
.search__container:focus-within::after,
.search__container:has(input:not(:placeholder-shown))::after {
    animation: none;
    opacity: 0;
}
.search__container input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.search__container input::placeholder {
    color: var(--fg-muted);
}
.search__button {
    flex: none;
    line-height: normal;
    height: 46px;
    padding: 0 22px;
}

/* Sugerencias del buscador (como el mock) */
.search {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
.search__clear {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 9999px;
    background: var(--bg-subtle);
    color: var(--fg-muted);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.search__clear:hover {
    background: var(--border);
    color: var(--fg);
}
.search__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 2px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: left;
    animation: searchFade 180ms var(--ease);
}
@keyframes searchFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.search__option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fg);
}
.search__option:hover,
.search__option.is-active {
    background: var(--bg-canvas);
    color: var(--primary);
}
.search__optionIcon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--primary-soft);
    display: grid;
    place-items: center;
}
.search__optionIcon svg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.search__optionName {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.search__optionCat {
    flex: none;
    max-width: 46%;
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bg-subtle);
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search__optionCat::first-letter {
    text-transform: uppercase;
}
.search__empty {
    display: grid;
    gap: 4px;
    padding: 20px 16px;
}
.search__empty p {
    margin: 0;
    font-size: 14px;
    color: var(--fg-muted);
}
.search__empty p:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
}

/* ── Banner "¿Eres un nutriólogo…?" ─────────────────────── */
.banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0 0 40px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(90deg, #FFFFFF 0%, var(--primary-soft) 100%);
}
.banner__info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 320px;
    min-width: 0;
}
.brandImage {
    flex: none;
    box-sizing: content-box;
    width: 18px;
    height: 20px;
    padding: 12px 13px;
    border-radius: 9999px;
    background: var(--primary);
}
.banner__infoContainer {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.banner h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 20px;
    color: var(--fg);
}
.banner h3 b {
    font-weight: inherit;
}
.banner__subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: var(--fg-muted);
}
.banner__button,
.banner__button:hover,
.banner__button:focus {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--bg);
    color: var(--fg);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .15s cubic-bezier(.16, 1, .3, 1), box-shadow .15s cubic-bezier(.16, 1, .3, 1), background .15s cubic-bezier(.16, 1, .3, 1);
}
.banner__button:hover {
    background: var(--bg-subtle);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.10);
}

/* ── Filas de ingredientes (resultados y relacionados) ──── */
.ingredient__container--item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
    transition: background 120ms var(--ease);
}
.ingredient__container--item::after {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A7282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ingredient__container--item:hover {
    background: var(--bg-canvas);
    color: var(--fg);
}
.ingredient__container--title {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.ingredient__container--title h3,
.ingredient__info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 20px;
}
.ingredient__container--title p,
.ingredient__info p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-muted);
}
.ingredient__container--title p::first-letter {
    text-transform: uppercase;
}
.ingredient__info {
    flex: none;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}
.ingredient__info h3 {
    font-variant-numeric: tabular-nums;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.footer__insideContainer {
    max-width: 1360px;
    margin: 0 auto;
    padding: 72px 32px 32px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer__brand a {
    display: inline-block;
    margin-bottom: 28px;
}
.footer__icon {
    display: block;
    width: 28px;
    height: 32px;
}
.footer__brand p {
    margin: 0;
    max-width: 15em;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-muted);
}
.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
}
.footer__col h5 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--fg-subtle);
}
.footer__col a {
    color: var(--fg);
    transition: color 120ms var(--ease);
}
.footer__col a:hover {
    color: var(--primary);
}
.footer__legal {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
}
.footer__legal p {
    margin: 0;
    padding: 24px 0 40px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--fg-subtle);
}

/* ── Estados de carga ────────────────────────────────────── */
@keyframes avSpin {
    to { transform: rotate(360deg); }
}
@keyframes avLoaderSlide {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}
@keyframes avShimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

/* barra superior mientras carga la siguiente página (aparece si tarda) */
.pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 3px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms var(--ease);
}
.pageLoader::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    border-radius: 9999px;
    background: var(--primary);
    animation: avLoaderSlide 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
.is-navigating .pageLoader {
    opacity: 1;
    transition-delay: 120ms;
}
.is-navigating body {
    cursor: progress;
}

/* un enlace que ya está cargando no se puede volver a presionar */
a.is-loading {
    cursor: progress;
}

/* spinner reutilizable */
.btn.is-loading,
.search__button.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn.is-loading::after,
.search__button.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid #FFFFFF;
    border-right-color: transparent;
    border-radius: 9999px;
    animation: avSpin 700ms linear infinite;
}
.btn--outline.is-loading::after {
    border-color: var(--primary);
    border-right-color: transparent;
}

/* fila o enlace presionado: la flecha se vuelve spinner */
.ingredient__container--item.is-loading::after,
.category__items a.is-loading::after,
.search__option.is-loading::after {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    margin: 1px;
    background: none;
    border: 2px solid var(--primary);
    border-right-color: transparent;
    border-radius: 9999px;
    animation: avSpin 700ms linear infinite;
}
.ingredient__container--item.is-loading,
.category__items a.is-loading,
.search__option.is-loading {
    background: var(--bg-canvas);
}
.recipe__container.is-loading,
.category.is-loading,
.category__head.is-loading {
    opacity: .7;
}

/* buscador: spinner en lugar de la lupa mientras llegan sugerencias */
.search.is-searching .search__icon {
    opacity: 0;
}
/* sugerencias anteriores atenuadas mientras llegan las nuevas */
.search.is-searching .search__option,
.search.is-searching .search__empty {
    opacity: .45;
    transition: opacity 150ms var(--ease);
}
.search.is-searching .search__container::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--primary);
    border-right-color: transparent;
    border-radius: 9999px;
    animation: avSpin 700ms linear infinite;
}
.search__skeleton {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
}
.search__skeleton span,
img[data-loading-image]:not(.is-loaded) {
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-canvas) 50%, var(--bg-subtle) 75%) 0 0 / 200% 100%;
    animation: avShimmer 1.4s linear infinite;
}
.search__skeleton span {
    display: block;
    height: 14px;
    border-radius: 6px;
}
.search__skeleton span:nth-child(1) {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}
.search__skeleton span:nth-child(2) {
    flex: 1;
    max-width: 45%;
}
.search__skeleton span:nth-child(3) {
    width: 90px;
    margin-left: auto;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1140px) {
    .nav__link--sec {
        display: none;
    }
}
@media (max-width: 940px) {
    .header__tert {
        display: none;
    }
    .footer__insideContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer__brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    .header__nav {
        display: none;
    }
    .header__avena {
        justify-content: space-between;
        height: 64px;
        padding: 0 16px;
    }
    .header__actions .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .promoBar {
        flex-wrap: wrap;
        gap: 2px 8px;
        padding: 9px 44px 9px 16px;
        font-size: 13px;
    }
    .promoBar__text {
        flex-basis: 100%;
        order: 2;
    }
    .promoBar__timer {
        order: 3;
    }
    .promoBar__close {
        right: 12px;
    }
    .countryPicker {
        display: none;
    }
    .box__body {
        padding: 0 16px;
    }
    .search__container {
        height: 56px;
        padding: 0 8px 0 18px;
        gap: 10px;
    }
    .search__container input {
        font-size: 16px;
    }
    .search__button {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }
    .banner {
        padding: 18px;
    }
    .footer__insideContainer {
        padding: 48px 16px 24px;
        gap: 32px;
    }
    .footer__legal {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .footer__insideContainer {
        grid-template-columns: minmax(0, 1fr);
    }
    .ingredient__container--item {
        padding: 14px 4px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
