/*
 * Direction 1 — search-led, category-first NEAD catalogue.
 * This file loads last so the approved mobile direction can coexist with the
 * existing desktop pages and the backend-managed content model.
 */

:root {
    --d1-navy: #052768;
    --d1-blue: #0866d9;
    --d1-muted: #64738d;
    --d1-line: #dce6f0;
    --d1-soft: #f5f8fc;
    --d1-green: #25d366;
    --d1-orange: #f45a0b;
}

body {
    color: #14213d;
}

.mobile-bottom-nav {
    display: none;
}

/* Desktop direction: categories become visual catalogue entry points. */
.page-home .nead-category-section {
    padding: 32px 0 34px;
    border-bottom: 1px solid var(--d1-line);
}

.page-home .nead-section-heading--categories {
    align-items: center;
    margin-bottom: 20px;
}

.page-home .nead-section-heading--categories h2 {
    font-size: clamp(28px, 2.4vw, 38px);
}

.page-home .nead-category-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.page-home .nead-category-card {
    min-height: 154px;
    padding: 13px 8px 15px;
    border: 0;
    background: #fff;
}

.page-home .nead-category-card__visual {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 0 10px;
    border: 1px solid var(--d1-line);
    border-radius: 50%;
    background: var(--d1-soft);
    color: var(--d1-blue);
    font-size: 28px;
}

.page-home .nead-category-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.page-home .nead-category-card--all {
    border-color: transparent;
    background: #fff;
}

.page-home .nead-category-card--all .nead-category-card__visual {
    border-color: var(--d1-navy);
    background: var(--d1-navy);
    color: #fff;
}

.page-home .nead-category-card--all strong {
    color: var(--d1-navy);
}

.page-home .nead-category-card--all small {
    color: var(--d1-muted);
}

.page-home .nead-hero__track,
.page-home .nead-hero__grid {
    min-height: 520px;
}

.page-home .nead-hero__grid {
    grid-template-columns: minmax(390px, .92fr) minmax(500px, 1.08fr);
}

.page-home .nead-hero__copy {
    padding-top: 52px;
    padding-bottom: 64px;
}

.page-home .nead-hero__visual img {
    object-position: 68% center;
}

.page-home .nead-featured {
    background: #fff;
}

.page-home .nead-product-card {
    border-color: #e4ebf3;
    box-shadow: 0 10px 30px rgba(5, 39, 104, .045);
}

.page-home .nead-product-card__action {
    min-height: 44px;
    border: 1px solid #83b3ef;
    background: #fff;
    color: var(--d1-blue);
}

.page-home .nead-product-card__action:hover,
.page-home .nead-product-card__action:focus-visible {
    border-color: var(--d1-blue);
    background: var(--d1-soft);
}

.page-home .nead-showcase {
    scroll-margin-top: 110px;
    padding: 68px 0 72px;
    border-top: 1px solid var(--d1-line);
    background: #fff;
}

.page-home .nead-section-heading--showcase {
    align-items: end;
    margin-bottom: 28px;
}

.page-home .nead-section-heading--showcase > div {
    max-width: 780px;
}

.page-home .nead-section-heading--showcase p {
    max-width: 680px;
    font-size: 14px;
    line-height: 1.65;
}

.page-home .nead-showcase__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 294px;
    gap: 16px;
}

.page-home .nead-showcase-card {
    grid-column: span 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--d1-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(5, 39, 104, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-home .nead-showcase-card--lead {
    grid-column: span 6;
    grid-row: span 2;
}

.page-home .nead-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(5, 39, 104, .11);
}

.page-home .nead-showcase-card__media {
    min-height: 146px;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--d1-soft);
}

.page-home .nead-showcase-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.page-home .nead-showcase-card:first-child .nead-showcase-card__media img {
    object-position: center 45%;
}

.page-home .nead-showcase-card:nth-child(2) .nead-showcase-card__media img,
.page-home .nead-showcase-card:nth-child(3) .nead-showcase-card__media img {
    object-position: center 55%;
}

.page-home .nead-showcase-card:hover .nead-showcase-card__media img {
    transform: scale(1.025);
}

.page-home .nead-showcase-card__body {
    flex: 0 0 auto;
    padding: 14px 16px 16px;
}

.page-home .nead-showcase-card--lead .nead-showcase-card__body {
    padding: 22px 24px 24px;
}

.page-home .nead-showcase-card__body > span {
    display: block;
    margin-bottom: 5px;
    color: var(--d1-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.page-home .nead-showcase-card h3 {
    margin: 0;
    color: var(--d1-navy);
    font: 800 15px/1.25 Manrope, sans-serif;
    letter-spacing: -.025em;
}

.page-home .nead-showcase-card--lead h3 {
    font-size: clamp(24px, 2.1vw, 32px);
}

.page-home .nead-showcase-card p {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--d1-muted);
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-home .nead-showcase-card--lead p {
    max-width: 630px;
    font-size: 13px;
    -webkit-line-clamp: 3;
}

.page-home .nead-showcase-card__body > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
    color: var(--d1-blue);
    font-size: 11px;
    font-weight: 800;
}

.page-home .nead-showcase-card--lead .nead-showcase-card__body > a {
    margin-top: 10px;
    font-size: 12px;
}

.target-search button:focus-visible,
.menu-toggle:focus-visible,
.mobile-bottom-nav a:focus-visible,
.mobile-bottom-nav button:focus-visible,
.nead-hero__controls button:focus-visible,
.nead-category-card:focus-visible,
.nead-product-card a:focus-visible,
.nead-showcase-card a:focus-visible {
    outline: 3px solid rgba(8, 102, 217, .35);
    outline-offset: 3px;
}

@media (max-width: 1050px) and (min-width: 781px) {
    .page-home .nead-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .page-home .nead-showcase-card,
    .page-home .nead-showcase-card--lead {
        grid-column: span 1;
        grid-row: auto;
    }

    .page-home .nead-showcase-card:first-child {
        grid-column: 1 / -1;
    }

    .page-home .nead-showcase-card__media {
        min-height: 250px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 780px) {
    html {
        scroll-padding-top: 146px;
    }

    body {
        padding-bottom: 72px;
    }

    .target-header.site-header {
        position: sticky !important;
        top: 0;
        z-index: 600;
        border-bottom: 1px solid #e5ecf4;
        box-shadow: 0 8px 26px rgba(5, 39, 104, .06);
    }

    .target-header__top {
        width: calc(100% - 32px);
        min-height: 138px;
        height: auto;
        padding: 10px 0 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px 46px;
        grid-template-rows: 58px 48px;
        gap: 8px 10px;
    }

    .target-brand {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        min-width: 0;
    }

    .target-brand img {
        width: 152px;
        height: 58px !important;
        object-fit: contain;
        object-position: left center;
    }

    .target-header .header-whatsapp {
        grid-column: 2;
        grid-row: 1;
        width: 46px;
        height: 46px;
        border-color: #c9d6e6;
        color: var(--d1-navy);
        font-size: 22px;
    }

    .target-header .menu-toggle {
        position: static;
        grid-column: 3;
        grid-row: 1;
        width: 46px;
        height: 46px;
        padding: 0 11px;
        border-radius: 50%;
        background: var(--d1-navy);
    }

    .target-header .menu-toggle span {
        width: 24px;
    }

    .target-search {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        max-width: none;
        height: 48px;
        border: 1px solid #d5e0ec;
        border-radius: 14px;
        background: #f6f8fb;
    }

    .target-search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 46px;
        padding: 0 14px 0 2px;
        border: 0;
        background: transparent;
        color: #243657;
        font-size: 15px;
    }

    .target-search input::placeholder {
        color: #75839b;
        opacity: 1;
    }

    .target-search button {
        flex: 0 0 50px;
        width: 50px;
        border: 0;
        background: transparent;
        color: var(--d1-navy);
        font-size: 19px;
    }

    .target-header .main-nav {
        top: 138px;
        left: 16px;
        right: 16px;
        max-height: calc(100vh - 230px);
        overflow-y: auto;
        border: 1px solid var(--d1-line);
        border-radius: 14px;
    }

    .target-header .main-nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
        border-radius: 8px;
    }

    .target-header .main-nav a.active {
        background: var(--d1-soft);
        color: var(--d1-blue);
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 700;
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        border-top: 1px solid #d8e2ee;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -10px 28px rgba(5, 39, 104, .10);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        min-width: 0;
        min-height: 64px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        background: transparent;
        color: #65728a;
        font: 500 10px/1.1 Inter, sans-serif;
        cursor: pointer;
    }

    .mobile-bottom-nav i {
        font-size: 20px;
    }

    .mobile-bottom-nav a[aria-current="page"] {
        color: var(--d1-blue);
        font-weight: 700;
    }

    .mobile-bottom-nav__whatsapp i {
        width: 37px;
        height: 37px;
        display: grid;
        place-items: center;
        margin-top: -15px;
        border-radius: 50%;
        background: var(--d1-green);
        color: #fff;
        box-shadow: 0 7px 16px rgba(37, 211, 102, .28);
        font-size: 22px;
    }

    .contact-widgets {
        display: none;
    }

    .page-home .nead-category-section {
        padding: 9px 0 8px;
        border-bottom: 1px solid var(--d1-line);
    }

    .page-home .nead-category-section .container {
        width: 100%;
    }

    .page-home .nead-section-heading--categories {
        position: relative;
        width: calc(100% - 32px);
        margin: 0 auto 6px;
        align-items: center;
    }

    .page-home .nead-section-heading--categories > div {
        min-width: 0;
        padding-right: 76px;
    }

    .page-home .nead-section-heading--categories > div > span {
        display: none;
    }

    .page-home .nead-section-heading--categories h2 {
        font-size: clamp(21px, 5.8vw, 26px);
        letter-spacing: -.035em;
        white-space: nowrap;
    }

    .page-home .nead-section-heading--categories > a {
        position: absolute;
        top: 50%;
        right: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        transform: translateY(-50%);
        color: var(--d1-blue);
        font-size: 12px;
    }

    .page-home .nead-category-rail {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        width: 100%;
        padding: 0 16px 2px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .page-home .nead-category-rail::-webkit-scrollbar {
        display: none;
    }

    .page-home .nead-category-card {
        flex: 0 0 68px;
        min-height: 83px;
        padding: 0;
        scroll-snap-align: start;
        transform: none;
        box-shadow: none;
    }

    .page-home .nead-category-card__visual {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        margin-bottom: 6px;
        font-size: 20px;
    }

    .page-home .nead-category-card strong {
        min-height: 25px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        color: var(--d1-navy);
        font-size: 10px;
        line-height: 1.25;
    }

    .page-home .nead-category-card small {
        display: none;
    }

    .page-home .nead-hero,
    .page-home .nead-hero__track,
    .page-home .nead-hero__grid {
        min-height: 246px;
        height: 246px;
    }

    .page-home .nead-hero__grid {
        position: relative;
        width: 100%;
        display: grid;
        grid-template-columns: 60% 40%;
        overflow: hidden;
    }

    .page-home .nead-hero__copy {
        position: relative;
        z-index: 2;
        min-height: 246px;
        width: 100%;
        padding: 18px 10px 15px 18px;
        justify-content: flex-start;
        background: #fff;
    }

    .page-home .nead-hero__eyebrow {
        margin-bottom: 8px;
        color: #2e6bbf;
        font-size: 8px;
        letter-spacing: .11em;
        white-space: nowrap;
    }

    .page-home .nead-hero h1 {
        max-width: 100%;
        font-size: clamp(23px, 6.1vw, 27px);
        line-height: 1.035;
        letter-spacing: -.05em;
    }

    .page-home .nead-hero__accent {
        width: 86%;
        height: 3px;
        margin: 10px 0 9px;
        background: var(--d1-orange);
    }

    .page-home .nead-hero__copy > p {
        display: -webkit-box;
        max-width: 205px;
        margin: 0 0 12px;
        overflow: hidden;
        color: #60708a;
        font-size: 10px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .page-home .nead-hero__actions {
        display: block;
    }

    .page-home .nead-primary-action {
        width: auto;
        min-width: 168px;
        min-height: 42px;
        justify-content: space-between;
        padding: 0 16px;
        border-radius: 8px;
        background: var(--d1-blue);
        box-shadow: 0 9px 20px rgba(8, 102, 217, .17);
        font-size: 12px;
    }

    .page-home .nead-text-action {
        display: none;
    }

    .page-home .nead-hero__visual {
        min-height: 246px;
        height: 246px;
        background: #eef4f8;
    }

    .page-home .nead-hero__visual::before {
        display: none;
    }

    .page-home .nead-hero__visual img {
        object-position: 91% center;
    }

    .page-home .nead-hero__controls {
        left: 50%;
        bottom: 7px;
        width: auto;
        gap: 5px;
    }

    .page-home .nead-hero__controls > [data-hero-previous],
    .page-home .nead-hero__controls > [data-hero-next] {
        display: none;
    }

    .page-home .nead-hero__controls > [data-hero-toggle] {
        width: 28px;
        height: 28px;
        box-shadow: none;
        font-size: 10px;
    }

    .page-home .nead-hero__dots {
        gap: 7px;
        padding: 7px 9px;
        box-shadow: none;
    }

    .page-home .nead-hero__dots button,
    .page-home .nead-hero__dots button.is-active {
        width: 8px;
        height: 8px;
    }

    .page-home .nead-featured {
        padding: 8px 0 28px;
        border-top: 0;
    }

    .page-home .nead-featured .container {
        width: calc(100% - 32px);
    }

    .page-home .nead-section-heading--featured {
        position: relative;
        align-items: center;
        margin-bottom: 6px;
    }

    .page-home .nead-section-heading--featured > div {
        min-width: 0;
        padding-right: 72px;
    }

    .page-home .nead-section-heading--featured > div > span,
    .page-home .nead-section-heading--featured p {
        display: none;
    }

    .page-home .nead-section-heading--featured h2 {
        font-size: clamp(22px, 6.1vw, 27px);
        white-space: nowrap;
    }

    .page-home .nead-section-heading--featured > a {
        position: absolute;
        top: 50%;
        right: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        transform: translateY(-50%);
        font-size: 12px;
    }

    .page-home .nead-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        overflow: visible;
        padding: 0;
    }

    .page-home .nead-product-card {
        min-width: 0;
        padding: 4px 7px 10px;
        border: 0;
        border-right: 1px solid var(--d1-line);
        border-bottom: 1px solid var(--d1-line);
        border-radius: 0;
        box-shadow: none;
        text-align: center;
        transform: none;
    }

    .page-home .nead-product-card:nth-child(2n) {
        border-right: 0;
    }

    .page-home .nead-product-card__image {
        height: clamp(146px, 39vw, 168px);
        padding: 0;
        border-radius: 0;
    }

    .page-home .nead-product-card__image img {
        object-fit: contain;
    }

    .page-home .nead-product-card > span {
        display: none;
    }

    .page-home .nead-product-card h3 {
        min-height: 38px;
        margin: 7px 0 3px;
        color: var(--d1-navy);
        font-size: 13px;
        line-height: 1.25;
    }

    .page-home .nead-product-card p {
        min-height: 18px;
        margin: 0 0 9px;
        color: var(--d1-muted);
        font-size: 10px;
    }

    .page-home .nead-product-card__action {
        min-height: 44px;
        gap: 10px;
        border-radius: 9px;
        font-size: 11px;
    }

    .page-home .nead-proof {
        border-top-width: 6px;
    }

    .page-home .nead-showcase {
        scroll-margin-top: 150px;
        padding: 36px 0 34px;
    }

    .page-home .nead-showcase .container {
        width: calc(100% - 32px);
    }

    .page-home .nead-section-heading--showcase {
        display: block;
        margin-bottom: 18px;
    }

    .page-home .nead-section-heading--showcase h2 {
        font-size: clamp(27px, 7.5vw, 34px);
    }

    .page-home .nead-section-heading--showcase p {
        margin-top: 9px;
        font-size: 12px;
        line-height: 1.55;
    }

    .page-home .nead-section-heading--showcase > a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-top: 5px;
        font-size: 12px;
    }

    .page-home .nead-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
    }

    .page-home .nead-showcase-card,
    .page-home .nead-showcase-card--lead {
        grid-column: 1 / -1;
        grid-row: auto;
        border-radius: 13px;
        box-shadow: 0 8px 22px rgba(5, 39, 104, .055);
        transform: none;
    }

    .page-home .nead-showcase-card:nth-child(4),
    .page-home .nead-showcase-card:nth-child(5) {
        grid-column: span 1;
    }

    .page-home .nead-showcase-card__media {
        min-height: 0;
        flex: none;
        aspect-ratio: 3 / 2;
    }

    .page-home .nead-showcase-card:first-child .nead-showcase-card__media {
        aspect-ratio: 16 / 10;
    }

    .page-home .nead-showcase-card:nth-child(4) .nead-showcase-card__media,
    .page-home .nead-showcase-card:nth-child(5) .nead-showcase-card__media {
        aspect-ratio: 1 / 1;
    }

    .page-home .nead-showcase-card__body,
    .page-home .nead-showcase-card--lead .nead-showcase-card__body {
        padding: 14px 15px 15px;
    }

    .page-home .nead-showcase-card h3,
    .page-home .nead-showcase-card--lead h3 {
        font-size: 18px;
    }

    .page-home .nead-showcase-card p,
    .page-home .nead-showcase-card--lead p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .page-home .nead-showcase-card:nth-child(4) h3,
    .page-home .nead-showcase-card:nth-child(5) h3 {
        font-size: 14px;
    }

    .page-home .nead-showcase-card:nth-child(4) p,
    .page-home .nead-showcase-card:nth-child(5) p {
        display: none;
    }

    .page-home .nead-showcase-card__body > a,
    .page-home .nead-showcase-card--lead .nead-showcase-card__body > a {
        min-height: 44px;
        margin-top: 4px;
        font-size: 11px;
    }

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

    .catalog-product-card__image,
    .catalog-grid .catalog-product-card__image {
        height: 190px;
        padding: 6px;
    }

    .catalog-product-card__body {
        padding: 12px;
    }

    .catalog-product-card h3 {
        font-size: 13px;
    }

    .catalog-product-card__action {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .page-home .nead-section-heading:not(.nead-section-heading--showcase) {
        display: flex;
    }

    .page-home .nead-section-heading > a {
        margin-top: 0;
    }

    .page-home .nead-category-card {
        flex-basis: 67px;
    }

    .page-home .nead-product-card {
        flex-basis: auto;
    }

    .page-home .nead-product-card__image {
        height: clamp(146px, 39vw, 168px);
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-product-card__image,
    .catalog-grid .catalog-product-card__image {
        height: 175px;
    }

    .page-home .nead-showcase-card:nth-child(4) .nead-showcase-card__body,
    .page-home .nead-showcase-card:nth-child(5) .nead-showcase-card__body {
        padding: 11px 10px 12px;
    }

    .page-home .nead-showcase-card:nth-child(4) .nead-showcase-card__body > span,
    .page-home .nead-showcase-card:nth-child(5) .nead-showcase-card__body > span {
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .target-header__top {
        width: calc(100% - 24px);
    }

    .target-brand img {
        width: 132px;
    }

    .page-home .nead-hero,
    .page-home .nead-hero__track,
    .page-home .nead-hero__grid,
    .page-home .nead-hero__copy,
    .page-home .nead-hero__visual {
        min-height: 254px;
        height: 254px;
    }

    .page-home .nead-hero__grid {
        grid-template-columns: 60% 40%;
    }

    .page-home .nead-hero h1 {
        font-size: 22px;
    }

    .page-home .nead-primary-action {
        min-width: 150px;
        padding: 0 12px;
        font-size: 11px;
    }

    .page-home .nead-product-card h3 {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .nead-category-card,
    .page-home .nead-product-card,
    .page-home .nead-showcase-card,
    .page-home .nead-showcase-card__media img,
    .mobile-bottom-nav__whatsapp i {
        transition: none;
    }
}
