.product-page {
    background: #f3f6f4;
}

.product-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-page-hero {
    padding: 46px 0 50px;
    color: var(--ink);
    background: #edf4f1;
    border-bottom: 1px solid #d9e5e0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: #60736b;
    font-size: 13px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--green);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
}

.product-page-hero-copy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 64px;
}

.product-page-hero-copy > div:first-child {
    max-width: 800px;
}

.product-page-hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.18;
}

.product-page-hero-copy p {
    max-width: 760px;
    margin-top: 18px;
    color: #52645d;
    font-size: 17px;
    line-height: 1.9;
}

.product-page-stats {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, 120px);
    gap: 12px;
}

.product-page-stats > div {
    padding-left: 18px;
    border-left: 1px solid #bfd3ca;
}

.product-page-stats dt {
    color: #63766e;
    font-size: 12px;
}

.product-page-stats dd {
    margin-top: 2px;
    color: var(--green-dark);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.product-center-section {
    padding: 48px 0 96px;
}

.catalog-toggle {
    display: none;
}

.product-center-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.product-directory,
.product-reader {
    background: var(--white);
    border: 1px solid #dce5e1;
    border-radius: 6px;
}

.product-directory {
    position: sticky;
    top: 102px;
    max-height: calc(100vh - 124px);
    overflow: hidden;
}

.directory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px 22px;
    border-bottom: 1px solid var(--line);
}

.directory-header h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.directory-header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.directory-total {
    display: inline-flex;
    width: 46px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    background: #e9f3ef;
    border: 1px solid #cfe1d9;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.product-search {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 18px 20px;
    padding: 0 14px;
    background: #f5f8f6;
    border: 1px solid #dfe7e3;
    border-radius: 4px;
}

.product-search:focus-within {
    background: var(--white);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8, 124, 91, 0.1);
}

.product-search svg {
    width: 17px;
    height: 17px;
    color: #7d8c86;
}

.product-search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.product-search input::placeholder {
    color: #8c9994;
}

.product-directory-list {
    max-height: calc(100vh - 282px);
    padding: 0 20px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #b9cbc3 transparent;
    scrollbar-width: thin;
}

.directory-category {
    border-top: 1px solid var(--line);
}

.directory-category:first-child {
    border-top: 0;
}

.directory-category-toggle {
    display: grid;
    width: 100%;
    min-height: 68px;
    grid-template-columns: 32px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 11px;
    padding: 12px 8px;
    color: #34433d;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.directory-category-toggle:hover,
.directory-category-toggle:focus-visible,
.directory-category.is-open .directory-category-toggle {
    color: var(--green);
}

.directory-category-number {
    color: #82918b;
    font-size: 11px;
    font-weight: 700;
}

.directory-category-name {
    overflow-wrap: anywhere;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.directory-category-count {
    color: #8a9893;
    font-size: 11px;
}

.directory-category-toggle svg {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
}

.directory-category.is-open .directory-category-toggle svg {
    transform: rotate(180deg);
}

.directory-products {
    padding: 2px 0 12px 42px;
}

.directory-products[hidden],
.directory-category[hidden],
.directory-products li[hidden] {
    display: none;
}

.directory-product {
    display: grid;
    width: 100%;
    min-height: 42px;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    padding: 8px 6px 8px 12px;
    color: #5e6c67;
    text-align: left;
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    cursor: pointer;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.directory-product svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.directory-product:hover,
.directory-product:focus-visible,
.directory-product.is-active {
    color: var(--green-dark);
    background: #edf5f1;
    border-left-color: var(--green);
}

.directory-product:hover svg,
.directory-product:focus-visible svg,
.directory-product.is-active svg {
    opacity: 1;
    transform: translateX(0);
}

.directory-product.is-active {
    font-weight: 700;
}

.product-reader {
    min-width: 0;
    min-height: 760px;
    padding: 54px 64px 0;
    scroll-margin-top: 96px;
    overflow: hidden;
}

.reader-loading {
    display: flex;
    min-height: 480px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
}

.reader-loading svg {
    width: 22px;
    height: 22px;
    animation: product-spin 1s linear infinite;
}

@keyframes product-spin {
    to { transform: rotate(360deg); }
}

.reader-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.reader-category-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.reader-category-number {
    display: inline-flex;
    width: 34px;
    height: 25px;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    background: #e5f1ec;
    border: 1px solid #cae0d7;
    border-radius: 3px;
    font-size: 11px;
}

.reader-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.35;
}

.reader-subtitle {
    margin-top: 10px;
    color: #51746b;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.7;
}

.reader-document {
    padding: 10px 0 52px;
}

.document-heading {
    margin: 40px 0 16px;
    padding-left: 14px;
    color: var(--green-dark);
    border-left: 3px solid var(--green);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.document-paragraph {
    margin-top: 16px;
    color: #45544e;
    text-align: justify;
    font-size: 15px;
    line-height: 2;
}

.document-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 16px 18px;
    color: #4b6259;
    background: #f0f6f3;
    border: 1px solid #d9e8e1;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.8;
}

.document-note svg {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--green);
}

.document-table-wrap {
    width: 100%;
    margin-top: 22px;
    overflow-x: auto;
    border: 1px solid #dce5e1;
    border-radius: 4px;
}

.document-table {
    width: 100%;
    min-width: 640px;
    border-spacing: 0;
    border-collapse: collapse;
    color: #405049;
    font-size: 13px;
    line-height: 1.55;
}

.document-table th,
.document-table td {
    min-width: 116px;
    padding: 13px 15px;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #dce5e1;
    border-bottom: 1px solid #dce5e1;
}

.document-table th {
    color: var(--green-dark);
    background: #eaf3ef;
    font-weight: 700;
}

.document-table tr:last-child td {
    border-bottom: 0;
}

.document-table th:last-child,
.document-table td:last-child {
    border-right: 0;
}

.reader-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: center;
    gap: 36px;
    margin: 0 -64px;
    padding: 34px 64px 38px;
    background: #edf4f1;
    border-top: 1px solid #d7e4de;
}

.reader-contact-group h2 {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
}

.reader-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.reader-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green-dark);
    transition: color 0.2s ease;
}

.reader-contact-link:hover,
.reader-contact-link:focus-visible {
    color: var(--green);
}

.reader-contact-link > svg {
    width: 22px;
    height: 22px;
}

.reader-contact-copy {
    display: grid;
    gap: 1px;
}

.reader-contact-copy small {
    color: #64756e;
    font-size: 11px;
}

.reader-contact-copy strong {
    font-size: 13px;
    font-weight: 700;
}

.reader-download {
    display: grid;
    min-height: 74px;
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--white);
    background: var(--green-dark);
    border: 1px solid var(--green-dark);
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reader-download:hover,
.reader-download:focus-visible {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

.reader-download > svg:first-child {
    width: 30px;
    height: 30px;
}

.reader-download > svg:last-child {
    width: 18px;
    height: 18px;
}

.reader-download-copy {
    display: grid;
    gap: 2px;
}

.reader-download-copy strong {
    font-size: 14px;
}

.reader-download-copy small {
    color: #c8ddd5;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .product-center-layout {
        grid-template-columns: 310px minmax(0, 1fr);
        gap: 22px;
    }

    .product-reader {
        padding: 46px 44px 0;
    }

    .reader-actions {
        margin-right: -44px;
        margin-left: -44px;
        padding-right: 44px;
        padding-left: 44px;
    }
}

@media (max-width: 900px) {
    .product-page-hero-copy {
        align-items: start;
        flex-direction: column;
        gap: 28px;
    }

    .product-center-section {
        padding-top: 30px;
    }

    .catalog-toggle {
        position: sticky;
        top: 88px;
        z-index: 20;
        display: flex;
        width: 100%;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 14px;
        padding: 12px 18px;
        color: var(--green-dark);
        text-align: left;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #dce5e1;
        border-radius: 5px;
        box-shadow: 0 10px 24px rgba(28, 47, 39, 0.07);
    }

    .catalog-toggle > span {
        display: grid;
        min-width: 0;
        gap: 1px;
    }

    .catalog-toggle small {
        color: var(--muted);
        font-size: 10px;
    }

    .catalog-toggle strong {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog-toggle svg {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
    }

    .product-center-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-directory {
        position: static;
        display: none;
        max-height: none;
    }

    .product-directory.is-mobile-open {
        display: block;
    }

    .product-directory-list {
        max-height: 520px;
    }

    .product-reader {
        min-height: 620px;
        scroll-margin-top: 172px;
    }
}

@media (max-width: 680px) {
    .product-page .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .product-page-hero {
        padding: 28px 0 34px;
    }

    .breadcrumb {
        margin-bottom: 22px;
    }

    .product-page-hero h1 {
        font-size: 36px;
    }

    .product-page-hero-copy p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.8;
    }

    .product-page-stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-page-stats dd {
        font-size: 26px;
    }

    .product-center-section {
        padding-bottom: 64px;
    }

    .catalog-toggle {
        top: 76px;
    }

    .directory-header {
        padding: 22px 20px 18px;
    }

    .product-directory-list {
        padding-right: 14px;
        padding-left: 14px;
    }

    .directory-products {
        padding-left: 24px;
    }

    .product-reader {
        padding: 30px 20px 0;
        border-radius: 4px;
    }

    .reader-header {
        padding-bottom: 22px;
    }

    .reader-header h2 {
        font-size: 28px;
    }

    .reader-subtitle {
        font-size: 13px;
    }

    .document-heading {
        margin-top: 32px;
        font-size: 19px;
    }

    .document-paragraph {
        text-align: left;
        font-size: 14px;
        line-height: 1.9;
    }

    .document-table {
        min-width: 620px;
        font-size: 12px;
    }

    .document-table th,
    .document-table td {
        padding: 11px 12px;
    }

    .reader-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-right: -20px;
        margin-left: -20px;
        padding: 28px 20px 30px;
    }

    .reader-contact-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .reader-download {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reader-loading svg {
        animation: none;
    }

    .directory-category-toggle svg,
    .directory-product,
    .directory-product svg,
    .reader-download {
        transition: none;
    }
}
