/* Business section: area overview, product catalogue rails and the product detail page.
   Loaded after professional-inner-pages.css (which holds the shared sub-nav and search styles). */

.biz-page button {
    font: inherit;
}

/* Banner: each page sets its own photo inline (a url() inside a custom property would
   resolve against this stylesheet instead of the page) */
.biz-page .banner-pchild-vns.biz-banner {
    background-color: var(--ssc-green-950);
    background-position: center !important;
    background-size: cover !important;
}

/* Intro card */
.biz-page .wp-navhoz-text-feature {
    margin-bottom: 30px !important;
}

.biz-page .text-feature-pchild {
    min-height: 0;
}

.biz-page .text-feature-pchild p {
    margin: 0;
    text-align: left;
}

.biz-page .prg-feature ul {
    margin: 0;
    padding-left: 1.25rem;
}

.biz-page .prg-feature ul li {
    margin-bottom: 6px;
    padding-left: 4px;
    list-style: disc outside;
}

.biz-eyebrow {
    margin: 0 0 6px;
    color: var(--ssc-green-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Catalogue heading + category jump links */
.biz-catalogue {
    padding: 4px 0 8px;
}

.biz-catalogue__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 14px;
}

.biz-catalogue__title {
    margin: 0;
    color: var(--ssc-green-950);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.biz-catalogue__meta {
    margin: 0;
    color: var(--ssc-muted);
    font-size: 14px;
    font-weight: 600;
}

.biz-jumpnav {
    position: sticky;
    top: 88px;
    z-index: 20;
    margin: 0 -10px 22px;
    padding: 10px;
    background: rgba(244, 248, 245, .94);
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(8px);
}

.biz-jumpnav ul,
.biz-chiplist {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.biz-jumpnav ul {
    overflow-x: auto;
    scrollbar-width: none;
}

.biz-jumpnav ul::-webkit-scrollbar {
    display: none;
}

.biz-chiplist {
    flex-wrap: wrap;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: 0;
}

.biz-chip {
    min-height: 38px;
    padding: 7px 8px 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ssc-green-900);
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.biz-chip:hover,
.biz-chip:focus-visible {
    color: #fff;
    background: var(--ssc-green-700);
    border-color: var(--ssc-green-700);
}

.biz-chip__count {
    min-width: 24px;
    padding: 2px 7px;
    color: var(--ssc-green-700);
    background: var(--ssc-surface);
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
}

.biz-chip:hover .biz-chip__count,
.biz-chip:focus-visible .biz-chip__count {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

/* Category card with a horizontally scrolling product rail */
.biz-category {
    margin: 0 0 22px;
    padding: clamp(18px, 2.4vw, 28px);
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: 0;
    box-shadow: 0 4px 14px rgba(7, 72, 48, .04);
    scroll-margin-top: 170px;
}

.biz-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.biz-category__title {
    margin: 0;
    color: var(--ssc-green-950);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.biz-category__meta {
    margin: 2px 0 0;
    color: var(--ssc-muted);
    font-size: 13px;
    font-weight: 600;
}

.biz-category__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-category__controls[hidden] {
    display: none;
}

.biz-rail-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--ssc-green-900);
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: 50%;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.biz-rail-btn svg,
.biz-group__link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.biz-rail-btn:hover:not(:disabled) {
    color: #fff;
    background: var(--ssc-green-700);
    border-color: var(--ssc-green-700);
}

.biz-rail-btn:disabled {
    opacity: .35;
    cursor: default;
}

.biz-viewall {
    min-height: 38px;
    padding: 8px 12px 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--ssc-green-700);
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

.biz-viewall:hover {
    background: var(--ssc-green-950);
}

.biz-viewall__count {
    padding: 1px 7px;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: 12px;
}

.biz-category.is-expanded .biz-rail-btn {
    display: none;
}

.biz-rail {
    margin: 0;
    padding: 4px 2px 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(146px, 40vw, 190px);
    gap: 16px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-color: var(--ssc-green-500) #e5efe9;
    scrollbar-width: thin;
}

.biz-rail::-webkit-scrollbar {
    height: 6px;
}

.biz-rail::-webkit-scrollbar-track {
    background: #e5efe9;
    border-radius: 99px;
}

.biz-rail::-webkit-scrollbar-thumb {
    background: var(--ssc-green-500);
    border-radius: 99px;
}

.biz-rail > li {
    min-width: 0;
    scroll-snap-align: start;
}

.biz-category.is-expanded .biz-rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    overflow: visible;
    scroll-snap-type: none;
}

/* Product card */
.biz-card__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ssc-ink);
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: 0;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.biz-card__link:hover {
    border-color: rgba(17, 134, 87, .35);
    box-shadow: 0 7px 18px rgba(7, 72, 48, .07);
    transform: translateY(-3px);
}

.biz-card__link:focus-visible {
    outline: 3px solid rgba(32, 170, 104, .45);
    outline-offset: 3px;
}

.biz-card__media {
    position: relative;
    display: block;
    aspect-ratio: 195 / 200;
    overflow: hidden;
    background: linear-gradient(145deg, #eef6f0, #dcebe1);
}

.biz-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform .35s ease;
}

.biz-card__link:hover .biz-card__media img {
    transform: scale(1.04);
}

.biz-card__placeholder,
.biz-card.is-missing-image .biz-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 44C10 36 8 18 22 6c14 6 20 20 12 32-2 3-6 5-10 6Z' fill='%2320aa68' opacity='.35'/%3E%3Cpath d='M24 44c0-14 4-26 12-34' stroke='%23118657' stroke-width='2' fill='none' opacity='.55'/%3E%3C/svg%3E") center / 46px no-repeat,
        linear-gradient(145deg, #eef6f0, #dcebe1);
}

.biz-card.is-missing-image .biz-card__media img {
    visibility: hidden;
}

.biz-card__name {
    display: block;
    padding: 11px 12px 13px;
    color: var(--ssc-green-950);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Landing page: one block per business area */
.biz-group {
    margin: 0 0 46px;
}

.biz-group__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ssc-line);
}

.biz-group__intro {
    max-width: 760px;
}

.biz-group__title {
    margin: 0 0 8px;
    color: var(--ssc-green-950);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.biz-group__lead {
    margin: 0;
    color: var(--ssc-muted);
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

.biz-group__link {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ssc-green-900);
    background: #fff;
    border: 1px solid var(--ssc-green-700);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.biz-group__link:hover,
.biz-group__link:focus-visible {
    color: #fff;
    background: var(--ssc-green-700);
}

/* Map embed: tinted while the external map loads */
.biz-page .block-map {
    background: #e6efe9;
}

/* Product catalogues */
.rice-catalogue-intro,
.product-catalogue-intro {
    margin-bottom: 34px;
    padding: clamp(26px, 4vw, 46px);
    background: #fff;
    border: 1px solid var(--ssc-line);
    box-shadow: 0 12px 30px rgba(7, 72, 48, .06);
}

.rice-catalogue-intro h1,
.product-catalogue-intro h1 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ssc-green-950);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.rice-catalogue-intro > p:not(.biz-eyebrow),
.product-catalogue-intro > p:not(.biz-eyebrow) {
    max-width: 900px;
    margin: 0;
    color: var(--ssc-muted);
    font-size: 17px;
    line-height: 1.7;
}

.rice-catalogue-intro .rice-catalogue-intro__note,
.product-catalogue-intro .product-catalogue-intro__note {
    margin-top: 18px;
    padding-left: 16px;
    border-left: 3px solid var(--ssc-green-300);
    font-size: 14px;
}

.rice-catalogue,
.product-catalogue {
    padding-bottom: 42px;
}

.rice-product-grid,
.catalogue-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rice-product-card,
.catalogue-product-card {
    min-width: 0;
}

.rice-product-card__inner,
.catalogue-product-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ssc-line);
    box-shadow: 0 8px 24px rgba(7, 72, 48, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rice-product-card__inner:hover,
.catalogue-product-card__inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(7, 72, 48, .11);
}

.rice-product-card__media,
.catalogue-product-card__media {
    min-height: 236px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 38%, #fff 0, #eef6f0 55%, #dcebe1 100%);
}

.rice-product-card__media img,
.catalogue-product-card__media img {
    width: min(190px, 58%);
    height: auto;
    aspect-ratio: 195 / 200;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(7, 72, 48, .16);
}

.rice-product-card__copy,
.catalogue-product-card__copy {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.rice-product-card__copy h3,
.catalogue-product-card__copy h3 {
    margin: 0 0 12px;
    color: var(--ssc-green-950);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.rice-product-card__copy h3 a:hover,
.rice-product-card__copy h3 a:focus-visible,
.catalogue-product-card__copy h3 a:hover,
.catalogue-product-card__copy h3 a:focus-visible {
    color: var(--ssc-green-700);
}

.rice-product-card__copy > p,
.catalogue-product-card__copy > p {
    margin: 0;
    color: var(--ssc-muted);
    font-size: 14px;
    line-height: 1.65;
}

.rice-product-card__facts,
.catalogue-product-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
}

.rice-product-card__facts > div,
.catalogue-product-card__facts > div {
    padding: 11px 12px;
    background: var(--ssc-surface);
    border: 1px solid var(--ssc-line);
}

.rice-product-card__facts dt,
.catalogue-product-card__facts dt {
    color: var(--ssc-green-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rice-product-card__facts dd,
.catalogue-product-card__facts dd {
    margin: 4px 0 0;
    color: var(--ssc-green-950);
    font-size: 12px;
    line-height: 1.45;
}

.rice-product-card__link,
.catalogue-product-card__link {
    margin-top: auto;
    padding-top: 20px;
    color: var(--ssc-green-700);
    font-size: 13px;
    font-weight: 700;
}

.rice-product-card__link::after,
.catalogue-product-card__link::after {
    margin-left: 7px;
    content: "\2192";
}

.rice-product-card__link:hover,
.rice-product-card__link:focus-visible,
.catalogue-product-card__link:hover,
.catalogue-product-card__link:focus-visible {
    color: var(--ssc-green-950);
}

.rice-catalogue-message,
.product-catalogue-message {
    padding: 20px;
    color: var(--ssc-muted);
    background: #fff;
    border: 1px solid var(--ssc-line);
}

/* Product detail page */
.biz-product-page .banner-pchild-vns {
    min-height: 260px;
}

.biz-product-page .product-detail-visual {
    min-height: 360px;
    padding: 32px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 38%, #fff 0, #eef6f0 55%, #dcebe1 100%);
}

.biz-product-page .product-detail-visual img.is-thumb {
    width: min(260px, 72%);
    height: auto;
    min-height: 0;
    aspect-ratio: 195 / 200;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(7, 72, 48, .18);
}

.biz-product-page .product-detail-copy p {
    margin: 0;
}

.biz-product-page .product-detail-copy p + p {
    margin-top: 10px;
}

.biz-product-page .product-detail-shell {
    align-items: start;
}

.biz-product-page .product-specifications {
    margin-top: 26px;
}

.biz-product-page .product-specifications[hidden] {
    display: none;
}

.biz-product-page .product-specifications h2 {
    margin: 0 0 14px;
    color: var(--ssc-green-950);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.biz-product-page .product-specifications dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.biz-product-page .product-specifications dl > div {
    min-width: 0;
    padding: 15px 16px;
    background: var(--ssc-surface);
    border: 1px solid var(--ssc-line);
}

.biz-product-page .product-specifications dt {
    margin-bottom: 5px;
    color: var(--ssc-green-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.biz-product-page .product-specifications dd {
    margin: 0;
    color: var(--ssc-green-950);
    font-size: 14px;
    line-height: 1.55;
}

.biz-product-page .product-detail-copy .product-detail-note {
    margin-top: 18px;
    padding-left: 14px;
    color: var(--ssc-muted);
    border-left: 3px solid var(--ssc-green-300);
    font-size: 13px;
    line-height: 1.55;
}

.biz-product-page .product-related {
    margin-top: 36px;
}

.biz-product-page .product-nav a[aria-current] {
    color: var(--ssc-green-700);
}

@media (max-width: 991.98px) {
    .biz-jumpnav {
        top: 72px;
    }

    .biz-product-page .wp-scrol-menu {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .biz-product-page .block-menu-right,
    .biz-product-page .product-nav {
        display: block;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .biz-product-page .product-nav > ul {
        gap: 20px;
    }

    .biz-product-page .banner-pchild-vns {
        margin-top: 101px;
    }

    .biz-category {
        scroll-margin-top: 150px;
    }
}

@media (max-width: 767.98px) {
    .rice-product-grid,
    .catalogue-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .biz-page .wp-navhoz-text-feature {
        margin-bottom: 22px !important;
    }

    .biz-product-page .product-specifications dl {
        grid-template-columns: 1fr;
    }

    .rice-product-card__facts,
    .catalogue-product-card__facts {
        grid-template-columns: 1fr;
    }

    .biz-category {
        margin-bottom: 16px;
        border-radius: 0;
    }

    .biz-category__controls {
        width: 100%;
    }

    .biz-viewall {
        margin-left: auto;
    }

    .biz-category.is-expanded .biz-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .biz-card__name {
        padding: 9px 10px 11px;
        font-size: 13px;
    }

    .biz-group__link {
        width: 100%;
        justify-content: center;
    }

    .biz-chiplist {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .biz-rail {
        scroll-snap-type: none;
    }

    .biz-card__link:hover,
    .biz-card__link:hover .biz-card__media img {
        transform: none;
    }
}
