/* IOR Commodity Category Landing */

.category-landing-hero {
    --category-accent: #e5c767;
    --category-hero-image: none;
    background: #071c42;
    color: #fff;
    min-height: 720px;
    overflow: hidden;
    padding: 130px 0 76px;
    position: relative;
}

.category-landing-hero--agriculture { --category-accent: #a8d17d; }
.category-landing-hero--spices { --category-accent: #e0b14a; }
.category-landing-hero--coffee { --category-accent: #d3a36a; }
.category-landing-hero--cocoa { --category-accent: #c98d67; }
.category-landing-hero--coconut { --category-accent: #dce7bc; }
.category-landing-hero--ingredients { --category-accent: #e8ca70; }
.category-landing-hero--natural { --category-accent: #8cc69c; }
.category-landing-hero--processed { --category-accent: #e6a766; }

.category-landing-hero__image {
    background-image: var(--category-hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(0.9) contrast(1.04);
    inset: 0;
    position: absolute;
    transform: scale(1.035);
}

.category-landing-hero__overlay {
    background:
        radial-gradient(circle at 83% 20%, rgba(36, 107, 59, 0.2), transparent 32%),
        linear-gradient(90deg, rgba(5, 20, 48, 0.99) 0%, rgba(7, 28, 66, 0.94) 45%, rgba(7, 28, 66, 0.64) 72%, rgba(7, 28, 66, 0.44) 100%);
    inset: 0;
    position: absolute;
}

.category-breadcrumb {
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.68rem;
    font-weight: 750;
    gap: 7px;
    margin-bottom: 56px;
}

.category-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.category-breadcrumb a:hover,
.category-breadcrumb a:focus-visible {
    color: var(--category-accent);
    outline: 0;
}

.category-breadcrumb svg {
    height: 13px;
    width: 13px;
}

.category-landing-hero__content {
    max-width: 830px;
}

.category-landing-hero__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--category-accent);
    display: flex;
    height: 54px;
    justify-content: center;
    margin-bottom: 22px;
    width: 54px;
}

.category-landing-hero__icon svg {
    height: 25px;
    width: 25px;
}

.category-landing-eyebrow {
    color: var(--category-accent);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin: 0 0 13px;
    text-transform: uppercase;
}

.category-landing-eyebrow--dark {
    color: var(--ior-green);
}

.category-landing-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 8vw, 8.5rem);
    letter-spacing: -0.065em;
    line-height: 0.88;
    margin: 0;
    text-wrap: balance;
}

.category-landing-tagline {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.2vw, 2.25rem);
    line-height: 1.2;
    margin: 25px 0 0;
    max-width: 740px;
}

.category-landing-description {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 19px 0 0;
    max-width: 730px;
}

.category-landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.category-primary-action,
.category-secondary-action {
    align-items: center;
    border: 1px solid;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 850;
    gap: 11px;
    min-height: 48px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-primary-action {
    background: var(--ior-gold);
    border-color: var(--ior-gold);
    color: #111a2b;
}

.category-secondary-action {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.category-primary-action:hover,
.category-primary-action:focus-visible,
.category-secondary-action:hover,
.category-secondary-action:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--ior-navy);
    outline: 0;
    transform: translateY(-2px);
}

.category-primary-action svg,
.category-secondary-action svg {
    height: 17px;
    width: 17px;
}

.category-landing-hero__meta {
    align-items: end;
    bottom: 74px;
    display: grid;
    position: absolute;
    right: 28px;
    text-align: right;
}

.category-landing-hero__meta > span {
    color: rgba(255, 255, 255, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 14vw, 13rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 0.7;
}

.category-landing-hero__meta > small {
    color: var(--category-accent);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-top: 22px;
    text-transform: uppercase;
}

.category-switcher-section {
    background: #fff;
    border-bottom: 1px solid var(--ior-line);
    padding: 24px 0;
}

.category-switcher-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.category-switcher-heading > span {
    color: var(--ior-navy);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-switcher-heading > a {
    align-items: center;
    color: var(--ior-green);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 850;
    gap: 7px;
    text-decoration: none;
}

.category-switcher-heading svg {
    height: 14px;
    width: 14px;
}

.category-switcher {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.category-switcher-card {
    align-content: start;
    background: #f6f8f3;
    border: 1px solid var(--ior-line);
    color: var(--ior-ink);
    display: grid;
    gap: 8px;
    min-height: 115px;
    padding: 12px;
    position: relative;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-switcher-card > span {
    color: var(--ior-gold-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.69rem;
}

.category-switcher-card > svg {
    color: var(--ior-green);
    height: 19px;
    width: 19px;
}

.category-switcher-card > strong {
    font-size: 0.72rem;
    line-height: 1.3;
}

.category-switcher-card:hover,
.category-switcher-card:focus-visible,
.category-switcher-card.is-active {
    background: var(--ior-navy);
    border-color: var(--ior-navy);
    color: #fff;
    outline: 0;
    transform: translateY(-2px);
}

.category-switcher-card.is-active > span,
.category-switcher-card.is-active > svg,
.category-switcher-card:hover > span,
.category-switcher-card:hover > svg,
.category-switcher-card:focus-visible > span,
.category-switcher-card:focus-visible > svg {
    color: var(--ior-light-gold);
}

.category-products-section {
    background:
        radial-gradient(circle at 8% 5%, rgba(201, 151, 35, 0.08), transparent 23%),
        linear-gradient(180deg, #f8faf5 0%, #fff 100%);
    padding: 92px 0;
}

.category-section-heading {
    align-items: end;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
    justify-content: space-between;
    margin-bottom: 40px;
}

.category-section-heading h2,
.category-review-heading h2,
.category-buyer-cta h2 {
    color: var(--ior-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 4.3vw, 4.7rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0;
}

.category-section-heading > p {
    color: var(--ior-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 0;
}

.category-product-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-product-card {
    background: #fff;
    border: 1px solid var(--ior-line);
    box-shadow: 0 18px 46px rgba(7, 28, 66, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.category-product-card__image {
    background: #e9eee5;
    display: block;
    height: 270px;
    overflow: hidden;
    position: relative;
}

.category-product-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.category-product-card:hover .category-product-card__image img {
    transform: scale(1.045);
}

.category-product-card__image > span {
    background: rgba(7, 28, 66, 0.88);
    bottom: 12px;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    left: 12px;
    letter-spacing: 0.06em;
    max-width: calc(100% - 24px);
    padding: 7px 9px;
    position: absolute;
    text-transform: uppercase;
}

.category-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.category-product-card__category {
    color: var(--ior-green);
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-product-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1.08;
    margin: 10px 0 0;
}

.category-product-card h3 a {
    color: var(--ior-navy);
    text-decoration: none;
}

.category-product-card__body > p {
    color: var(--ior-muted);
    font-size: 0.8rem;
    line-height: 1.68;
    margin: 14px 0 0;
}

.category-product-card__status {
    align-items: flex-start;
    background: #f4f8f1;
    border-left: 3px solid var(--ior-green);
    color: var(--ior-ink);
    display: flex;
    font-size: 0.7rem;
    gap: 8px;
    line-height: 1.5;
    margin-top: 18px;
    padding: 10px 11px;
}

.category-product-card__status svg {
    color: var(--ior-green);
    flex: 0 0 auto;
    height: 15px;
    margin-top: 2px;
    width: 15px;
}

.category-product-card__link {
    align-items: center;
    border-top: 1px solid var(--ior-line);
    color: var(--ior-navy);
    display: flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    text-decoration: none;
}

.category-product-card__link:hover,
.category-product-card__link:focus-visible {
    color: var(--ior-green);
    outline: 0;
}

.category-product-card__link svg {
    height: 16px;
    width: 16px;
}

.category-empty-state {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ior-line);
    box-shadow: 0 20px 54px rgba(7, 28, 66, 0.07);
    display: grid;
    gap: 22px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 28px;
}

.category-empty-state > span {
    align-items: center;
    background: #eef4eb;
    border-radius: 50%;
    color: var(--ior-green);
    display: flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.category-empty-state > span svg {
    height: 25px;
    width: 25px;
}

.category-empty-state h3 {
    color: var(--ior-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    margin: 0;
}

.category-empty-state p {
    color: var(--ior-muted);
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 6px 0 0;
}

.category-review-section {
    background:
        radial-gradient(circle at 93% 12%, rgba(201, 151, 35, 0.15), transparent 26%),
        linear-gradient(135deg, #071c42, #0b285f 58%, #104239);
    color: #fff;
    padding: 84px 0;
}

.category-review-heading {
    margin-bottom: 34px;
    max-width: 820px;
}

.category-review-heading h2 {
    color: #fff;
}

.category-review-grid {
    counter-reset: none;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-review-grid li {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.11);
    min-height: 230px;
    padding: 22px;
}

.category-review-grid li > span {
    color: var(--ior-light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.category-review-grid li > div {
    margin-top: 42px;
}

.category-review-grid strong {
    display: block;
    font-size: 0.91rem;
}

.category-review-grid p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    line-height: 1.65;
    margin: 8px 0 0;
}

.category-buyer-cta {
    background: #f3eee2;
    padding: 74px 0;
}

.category-buyer-cta__content {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.category-buyer-cta__content > div > p:last-child {
    color: var(--ior-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    margin: 17px 0 0;
    max-width: 760px;
}

@media (max-width: 1199.98px) {
    .category-switcher {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .category-landing-hero__meta {
        display: none;
    }

    .category-section-heading,
    .category-buyer-cta__content {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .category-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .category-landing-hero {
        min-height: 660px;
        padding: 108px 0 56px;
    }

    .category-breadcrumb {
        margin-bottom: 42px;
    }

    .category-landing-hero h1 {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
    }

    .category-landing-description {
        font-size: 0.88rem;
    }

    .category-switcher {
        display: flex;
        margin-inline: -12px;
        overflow-x: auto;
        padding: 0 12px 8px;
        scroll-snap-type: x mandatory;
    }

    .category-switcher-card {
        flex: 0 0 145px;
        scroll-snap-align: start;
    }

    .category-products-section,
    .category-review-section,
    .category-buyer-cta {
        padding: 62px 0;
    }

    .category-product-grid,
    .category-review-grid {
        grid-template-columns: 1fr;
    }

    .category-empty-state {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .category-empty-state .category-primary-action {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .category-buyer-cta .category-primary-action {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-landing-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-primary-action,
    .category-secondary-action {
        justify-content: space-between;
        width: 100%;
    }

    .category-product-card__image {
        height: 235px;
    }

    .category-empty-state {
        grid-template-columns: 1fr;
    }
}
