/* Foodzu storefront v5 — calm, clear and easy to shop */
:root {
    --fz-ink: #17382b;
    --fz-green: #2d8746;
    --fz-green-dark: #1e6035;
    --fz-soft: #f4f7f1;
    --fz-warm: #faf8f2;
    --fz-line: #e5e9e2;
    --fz-muted: #66756c;
    --fz-radius: 14px;
}

body {
    background: #fff;
    color: var(--fz-ink);
}

header {
    min-height: 72px;
    padding: 9px max(4vw, 22px);
    gap: 18px;
    border-bottom: 1px solid var(--fz-line);
    box-shadow: none;
}

.logo-link img {
    width: 126px;
    height: 46px;
}

.city-select {
    min-width: 112px;
    padding: 5px 10px;
    border-color: var(--fz-line);
    border-radius: 10px;
}

.header-search {
    max-width: 440px;
}

.header-search input {
    height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--fz-soft);
}

.header-search input:focus {
    border-color: #a9cbb2;
    outline: 3px solid rgba(45, 135, 70, .08);
}

header nav {
    gap: 18px;
}

header nav > a:not(.cart-link) {
    font-size: 13px;
}

.cart-link {
    padding: 10px 14px;
    background: var(--fz-green-dark);
}

/* The category navigation stays available but reads like a menu, not a row of buttons. */
.category-section {
    top: var(--foodzu-header-height, 72px);
    padding: 0 max(4vw, 22px);
    border-bottom: 1px solid var(--fz-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: none;
}

main:has(> .category-section) {
    padding-top: 43px;
}

.category-text-menu {
    gap: 26px;
    padding: 0;
}

.category-text-menu a {
    position: relative;
    padding: 13px 0 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #526258;
    font-size: 13px;
    font-weight: 600;
}

.category-text-menu a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: transparent;
}

.category-text-menu a:hover,
.category-text-menu a.active {
    border: 0;
    background: transparent;
    color: var(--fz-green-dark);
}

.category-text-menu a.active::after {
    background: var(--fz-green);
}

/* Compact hero: one clear message, three supporting photographs. */
.hero.hero-compact {
    width: min(1180px, calc(100% - 44px));
    min-height: 232px;
    height: 240px;
    margin: 18px auto 0;
    padding: 26px 32px;
    grid-template-columns: 1fr .86fr;
    gap: 32px;
    border-radius: 16px;
    background: #f0f5ed;
    box-shadow: none;
}

.hero-compact h1 {
    margin: 7px 0 9px;
    font-size: clamp(38px, 4vw, 54px);
}

.hero-compact p {
    max-width: 540px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 13px;
}

.hero-actions .button {
    margin-top: 0;
    padding: 11px 17px;
}

.hero-triptych {
    gap: 7px;
}

.hero-triptych figure,
.hero-triptych figure:nth-child(2) {
    border-radius: 12px;
    box-shadow: none;
    transform: none;
}

.product-anchor {
    scroll-margin-top: 128px;
}

.product-heading,
.home-product-heading,
.catalogue-heading {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 42px 0 17px;
}

.product-heading h2,
.catalogue-heading h2 {
    margin: 3px 0 0;
    font-size: clamp(26px, 3vw, 36px);
}

.product-anchor + .grid {
    padding-top: 0;
}

.grid {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 0 0 66px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;
}

.product {
    border: 1px solid var(--fz-line);
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-2px);
    border-color: #ced9d0;
    box-shadow: 0 9px 24px rgba(25, 58, 42, .07);
}

.photo {
    aspect-ratio: 1 / .88;
    border-radius: 0;
    background: var(--fz-soft);
}

.photo span {
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .9);
    font-size: 9px;
    letter-spacing: .03em;
}

.product-info {
    min-height: 120px;
    padding: 13px;
}

.product h3 {
    font-size: 17px;
    line-height: 1.3;
}

.product-info p,
.product-info .card-ingredients {
    display: none;
}

.buy {
    margin-top: 14px;
}

.buy strong {
    font-size: 16px;
}

.buy button {
    min-width: 62px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--fz-green);
    border-radius: 8px;
    background: #fff;
    color: var(--fz-green-dark);
    font-size: 12px;
}

.catalogue-cta {
    margin: -34px 0 58px;
}

.service-promise {
    width: min(1180px, 92%);
    margin: 0 auto 54px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--fz-line);
    border-bottom: 1px solid var(--fz-line);
}

.service-promise div {
    display: grid;
    gap: 4px;
    padding: 22px 28px;
    border-right: 1px solid var(--fz-line);
}

.service-promise div:last-child {
    border-right: 0;
}

.service-promise b {
    font-size: 14px;
}

.service-promise span {
    color: var(--fz-muted);
    font-size: 12px;
}

.nutripress-teaser {
    width: min(1180px, 92%);
    margin: 0 auto 70px;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.site-footer {
    padding-top: 48px;
}

.footer-grid {
    grid-template-columns: 1.5fr .8fr 1fr;
    gap: 42px;
}

.footer-grid > div:nth-child(3) {
    display: none !important;
}

/* Inner pages use the same restrained rhythm as the shop. */
.page-head {
    width: min(1240px, 92%);
    margin: 0 auto;
    padding: 38px 0 20px;
}

.page-head h1 {
    margin: 8px 0;
    font-size: clamp(34px, 4vw, 48px);
}

.product-detail {
    width: min(1100px, 92%);
    grid-template-columns: minmax(0, 500px) minmax(0, 470px);
    justify-content: center;
    gap: 54px;
    padding: 42px 0 78px;
}

.gallery {
    width: 100%;
    max-width: 500px;
}

.gallery-main {
    width: 100%;
    height: auto;
    max-height: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
}

.detail-copy {
    padding-top: 8px;
}

.detail-copy h1 {
    font-size: clamp(36px, 4vw, 52px);
}

.detail-description {
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.65;
}

.narrow {
    margin: 55px auto;
    padding: 32px;
    border-color: var(--fz-line);
    border-radius: 14px;
}

.narrow h1 {
    font-size: 40px;
}

@media (max-width: 1100px) {
    header nav {
        gap: 13px;
    }

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

@media (max-width: 850px) {
    header nav > a:not(.cart-link) {
        display: none;
    }

    .hero.hero-compact {
        min-height: 250px;
        height: 250px;
    }

    .service-promise div {
        padding: 20px;
    }

    .product-detail {
        width: min(620px, 92%);
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 110px;
    }

    .gallery {
        max-width: 460px;
        margin: 0 auto;
    }

    .gallery-main {
        max-height: 460px;
    }
}

@media (max-width: 750px) {
    body {
        padding-bottom: 68px;
    }

    header {
        grid-template-columns: auto minmax(82px, 1fr) auto;
        grid-template-areas:
            "logo city cart"
            "search search search";
        padding: 7px 14px 9px;
        gap: 7px 10px;
    }

    header > .logo-link {
        grid-area: logo;
    }

    .logo-link img {
        width: 102px;
        height: 38px;
    }

    .city-select {
        grid-area: city;
        order: initial;
        min-width: 0;
        max-width: 124px;
        margin: 0;
        padding: 5px 8px;
    }

    .city-select span {
        display: none;
    }

    .city-select select {
        font-size: 12px;
    }

    header nav {
        grid-area: cart;
        order: initial;
        display: contents;
        width: auto;
        margin: 0;
    }

    header nav > a:not(.cart-link) {
        display: none;
    }

    header nav > .cart-link {
        grid-area: cart;
        align-self: center;
        justify-self: end;
        min-height: 36px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .header-search {
        grid-area: search;
        order: initial;
        grid-column: 1 / -1;
    }

    .header-search input {
        height: 40px;
    }

    main:has(> .category-section) {
        padding-top: 40px;
    }

    .category-section {
        padding: 0 14px;
    }

    .category-text-menu {
        gap: 22px;
    }

    .category-text-menu a {
        padding: 11px 0 9px;
        font-size: 12px;
    }

    .hero.hero-compact {
        display: grid;
        width: calc(100% - 28px);
        height: auto;
        min-height: 0;
        margin-top: 12px;
        padding: 18px;
        border-radius: 14px;
    }

    .hero-compact h1 {
        font-size: 34px;
    }

    .hero-compact p {
        max-width: none;
        font-size: 13px;
    }

    .hero-triptych {
        position: static;
        height: 80px;
        padding: 0;
        margin-top: 16px;
    }

    .hero-triptych figure:nth-child(1),
    .hero-triptych figure:nth-child(3) {
        display: block;
    }

    .hero-triptych figure:nth-child(2) {
        height: auto;
    }

    .product-heading,
    .home-product-heading,
    .catalogue-heading {
        width: calc(100% - 28px);
        padding: 27px 0 13px;
    }

    .home-product-heading > a {
        font-size: 12px;
    }

    .grid {
        width: calc(100% - 28px);
        padding: 0 0 48px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 9px;
    }

    .product-info {
        min-height: 119px;
        padding: 11px;
    }

    .product h3 {
        font-size: 14px;
    }

    .buy {
        align-items: center;
        margin-top: 11px;
    }

    .buy strong {
        font-size: 14px;
    }

    .buy button {
        min-width: 54px;
        min-height: 34px;
        padding: 6px 8px;
    }

    .catalogue-cta {
        margin: -24px 0 45px;
    }

    .service-promise {
        grid-template-columns: 1fr;
        margin-bottom: 42px;
    }

    .service-promise div {
        padding: 15px 4px;
        border-right: 0;
        border-bottom: 1px solid var(--fz-line);
    }

    .service-promise div:last-child {
        border-bottom: 0;
    }

    .nutripress-teaser {
        width: calc(100% - 28px);
        margin-bottom: 50px;
        border-radius: 14px;
    }

    .product-detail {
        width: calc(100% - 28px);
        padding-top: 16px;
    }

    .gallery {
        max-width: 360px;
    }

    .gallery-main {
        max-height: 360px;
        aspect-ratio: 1 / .9;
    }

    .detail-copy h1 {
        font-size: 34px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .mobile-dock {
        grid-template-columns: repeat(4, 1fr);
    }

    .mobile-dock .dock-cart {
        display: none;
    }
}

@media (max-width: 380px) {
    .hero-triptych figure:nth-child(1),
    .hero-triptych figure:nth-child(3) {
        display: none;
    }

    .hero-triptych {
        grid-template-columns: 1fr;
    }

    .city-select {
        max-width: 104px;
    }
}
