/* Category landing aligned with the premium homepage. */

body:has(.category-landing-hero) .site-header--navigation {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    position: absolute;
}

body:has(.category-landing-hero) .site-header--navigation .navbar {
    min-height: 96px;
    padding-block: 14px;
}

body:has(.category-landing-hero) .header-brand-logo {
    filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.2));
    width: clamp(154px, 12vw, 205px);
}

body:has(.category-landing-hero) .gateway-header-menu .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

body:has(.category-landing-hero) .language-toggle-group {
    background: rgba(4, 18, 43, 0.56);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

body:has(.category-landing-hero) .language-option {
    color: rgba(255, 255, 255, 0.85);
}

body:has(.category-landing-hero) .language-option.is-active {
    background: var(--ior-green-deep);
    color: #fff;
}

body:has(.category-landing-hero) .gateway-header-quote {
    background: linear-gradient(135deg, #f2c95d, #d99a22);
    border-color: #e8b43d;
    color: #13233a;
}

.category-landing-hero {
    min-height: 760px;
    padding-top: 150px;
}

.category-landing-hero__content h1 {
    font-size: clamp(4rem, 6vw, 6.8rem);
    line-height: 0.92;
    max-width: 860px;
}

.category-landing-tagline {
    font-size: 1.1rem;
}

.category-landing-description {
    font-size: 0.98rem;
    line-height: 1.82;
    max-width: 780px;
}

.category-products-section--direct {
    background:
        radial-gradient(circle at 10% 8%, rgba(201, 151, 35, 0.07), transparent 22%),
        linear-gradient(180deg, #f7f8f3 0%, #fff 100%);
    padding: 92px 0 80px;
}

.category-section-heading--premium {
    align-items: end;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.category-section-heading--premium h2 {
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    line-height: 0.98;
}

.category-section-heading--premium > p {
    color: var(--ior-muted);
    font-size: 0.88rem;
    line-height: 1.72;
    margin: 0;
}

.category-premium-product-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.category-premium-product-card {
    --category-product-accent: #28744c;
    background: #fff;
    border: 1px solid rgba(11, 40, 95, 0.1);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(7, 28, 66, 0.065);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-premium-product-card:hover {
    box-shadow: 0 24px 54px rgba(7, 28, 66, 0.13);
    transform: translateY(-5px);
}

.category-premium-product-card--spices { --category-product-accent: #8a5a22; }
.category-premium-product-card--wood { --category-product-accent: #7b4a2e; }
.category-premium-product-card--natural { --category-product-accent: #263c35; }
.category-premium-product-card--produce { --category-product-accent: #4e873d; }

.category-premium-product-card__media {
    border-radius: 17px 17px 0 0;
    display: block;
    height: 236px;
    overflow: hidden;
    position: relative;
}

.category-premium-product-card__media::after {
    background: linear-gradient(180deg, rgba(4, 18, 43, 0.03) 35%, rgba(4, 18, 43, 0.58) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.category-premium-product-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 100%;
}

.category-premium-product-card:hover .category-premium-product-card__media img {
    transform: scale(1.035);
}

.category-premium-product-card__category,
.category-premium-product-card__verification {
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    max-width: calc(100% - 32px);
    padding: 7px 10px;
    position: absolute;
    text-transform: uppercase;
    z-index: 2;
}

.category-premium-product-card__category {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ior-navy);
    left: 16px;
    top: 16px;
}

.category-premium-product-card__verification {
    background: rgba(5, 27, 60, 0.9);
    bottom: 16px;
    color: #fff;
    left: 16px;
}

.category-premium-product-card__icon {
    align-items: center;
    background: var(--category-product-accent);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 11px 26px rgba(4, 18, 43, 0.24);
    color: var(--ior-light-gold);
    display: flex;
    height: 58px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 236px;
    transform: translate(-50%, -50%);
    width: 58px;
    z-index: 4;
}

.category-premium-product-card__icon svg {
    height: 24px;
    width: 24px;
}

.category-premium-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 42px 24px 24px;
}

.category-premium-product-card__eyebrow {
    color: var(--ior-green);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.category-premium-product-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 0;
}

.category-premium-product-card h3 a {
    color: var(--ior-navy);
    text-decoration: none;
}

.category-premium-product-card__body > p:not(.category-premium-product-card__eyebrow) {
    color: var(--ior-muted);
    display: -webkit-box;
    font-size: 0.86rem;
    line-height: 1.72;
    margin: 16px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.category-premium-product-card__status {
    align-items: flex-start;
    background: #f8faf6;
    border: 1px solid rgba(11, 40, 95, 0.08);
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    margin-top: 18px;
    padding: 11px;
}

.category-premium-product-card__status > span {
    align-items: center;
    background: #eaf2e8;
    border-radius: 50%;
    color: var(--ior-green);
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.category-premium-product-card__status svg {
    height: 15px;
    width: 15px;
}

.category-premium-product-card__status small {
    color: var(--ior-muted);
    display: block;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.category-premium-product-card__status strong {
    color: var(--ior-ink);
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
    margin-top: 3px;
}

.category-premium-product-card__link {
    align-items: center;
    border-top: 1px solid rgba(11, 40, 95, 0.08);
    color: #a87412;
    display: flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 8px;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    text-decoration: none;
}

.category-premium-product-card__link:hover,
.category-premium-product-card__link:focus-visible {
    color: var(--ior-green);
    outline: 0;
}

.category-premium-product-card__link svg {
    height: 17px;
    width: 17px;
}

.category-buyer-cta--premium {
    background: #fff;
    padding: 0 0 84px;
}

.category-buyer-cta--premium .category-buyer-cta__content {
    border-radius: 16px;
    box-shadow: 0 22px 52px rgba(7, 28, 66, 0.1);
}

@media (max-width: 1199.98px) {
    body:has(.category-landing-hero) .site-header--navigation {
        background: rgba(4, 18, 43, 0.97);
        position: fixed;
    }

    body:has(.category-landing-hero) .gateway-header-collapse {
        background: #071c42;
    }

    .category-landing-hero {
        min-height: 690px;
        padding-top: 142px;
    }

    .category-section-heading--premium {
        grid-template-columns: 1fr;
    }

    .category-premium-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .category-landing-hero {
        min-height: auto;
        padding: 118px 0 82px;
    }

    .category-landing-hero__content h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .category-products-section--direct {
        padding: 64px 0 58px;
    }

    .category-premium-product-grid {
        grid-template-columns: 1fr;
    }
}
