/**
* Azytus Toolkit - Frontend Styles
*/

/* Product Search */
.azytus-product-search {
padding: 20px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}

.azytus-search-filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 20px;
}

.azytus-filter-group {
display: flex;
flex-direction: column;
gap: 5px;
}

.azytus-filter-group label {
font-weight: 600;
font-size: 14px;
color: #333;
}

.azytus-filter-group input[type="text"],
.azytus-filter-group select {
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border-color 0.3s ease;
}

.azytus-filter-group input[type="text"]:focus,
.azytus-filter-group select:focus {
outline: none;
border-color: #2271b1;
box-shadow: 0 0 0 1px #2271b1;
}

.azytus-filter-group button {
padding: 10px 20px;
background: #2271b1;
color: #fff;
border: none;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: auto;
}

.azytus-filter-group button:hover {
background: #135e96;
}

/* Search Results */
.azytus-search-results {
margin-top: 20px;
}

.azytus-loader,
.azytus-coa-loader {
text-align: center;
padding: 40px;
font-size: 16px;
color: #666;
}

.azytus-table-wrapper {
overflow-x: auto;
margin-top: 20px;
}

.azytus-results-table table,
.azytus-product-table,
.azytus-coa-table {
width: 100%;
min-width: 900px;
border-collapse: collapse;
background: #fff;
}

.azytus-product-table {
min-width: 1100px;
}

.azytus-results-table th,
.azytus-results-table td,
.azytus-product-table th,
.azytus-product-table td,
.azytus-coa-table th,
.azytus-coa-table td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
vertical-align: middle;
}

.azytus-results-table th,
.azytus-product-table th,
.azytus-coa-table th {
background: #2271b1;
color: #fff;
font-weight: 600;
white-space: nowrap;
word-break: keep-all;
overflow-wrap: normal;
hyphens: none;
position: sticky;
top: 0;
z-index: 10;
}

.azytus-results-table td,
.azytus-product-table td,
.azytus-coa-table td {
white-space: nowrap;
}

.azytus-results-table tr:hover,
.azytus-product-table tr:hover,
.azytus-coa-table tr:hover {
background: #f9f9f9;
}

.azytus-results-table .button,
.azytus-product-table .button,
.azytus-coa-table .button {
padding: 6px 12px;
font-size: 13px;
text-decoration: none;
display: inline-block;
white-space: nowrap;
}

.azytus-results-table .button-small,
.azytus-product-table .button-small,
.azytus-coa-table .button-small {
padding: 4px 10px;
font-size: 12px;
}

.azytus-col-formula {
font-weight: 500;
}

.azytus-col-cas {
white-space: nowrap;
word-break: keep-all;
overflow-wrap: normal;
hyphens: none;
}

.azytus-results-table td.azytus-col-name,
.azytus-product-table td.azytus-col-name,
.azytus-coa-table td.azytus-col-name {
max-width: 345px;
width: 345px;
white-space: normal;
word-break: normal;
overflow-wrap: break-word;
hyphens: none;
}

.azytus-pack-pills {
display: inline-flex;
flex-wrap: nowrap;
gap: 4px;
align-items: center;
}

.azytus-pack-pill {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 13px;
line-height: 1;
font-weight: 500;
color: #234f40;
background: #eef5f0;
border: 1px solid rgba(35, 79, 64, 0.12);
border-radius: 999px;
white-space: nowrap;
}

.azytus-no-results {
padding: 40px;
text-align: center;
color: #666;
font-size: 16px;
}

/* COA Lookup */
.azytus-coa-lookup {
padding: 30px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin: 0 auto;
}

.azytus-coa-lookup h3 {
margin: 0 0 15px 0;
color: #2271b1;
font-size: 24px;
}

.azytus-coa-form {
margin-bottom: 20px;
}

.azytus-coa-form label {
display: block;
margin-bottom: 10px;
font-weight: 600;
color: #333;
}

.azytus-coa-input-group {
display: flex;
gap: 10px;
}

.azytus-coa-input-group input {
flex: 1;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}

.azytus-coa-input-group button {
padding: 12px 24px;
background: #2271b1;
color: #fff;
border: none;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
white-space: nowrap;
}

.azytus-coa-input-group button:hover {
background: #135e96;
}

.azytus-coa-input-group button:disabled {
background: #ccc;
cursor: not-allowed;
}

.azytus-coa-results {
margin-top: 30px;
}

.azytus-coa-results h4 {
margin: 0 0 15px 0;
color: #333;
font-size: 18px;
}

.azytus-coa-error {
padding: 20px;
border-radius: 4px;
margin-top: 20px;
background: #ffebee;
border-left: 4px solid #dc3232;
}

.azytus-error-message {
margin: 0;
color: #dc3232;
font-weight: 600;
}

/* Product Display */
.azytus-product-category,
.azytus-product-subcategory,
.azytus-product-variation,
.azytus-product-subvariation {
padding: 30px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.azytus-product-category h2,
.azytus-product-subcategory h2,
.azytus-product-variation h2,
.azytus-product-subvariation h2 {
margin: 0 0 20px 0;
color: #333;
border-bottom: 2px solid #2271b1;
padding-bottom: 10px;
}

.azytus-details-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}

.azytus-details-table th,
.azytus-details-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}

.azytus-details-table th {
width: 200px;
font-weight: 600;
color: #555;
background: #f9f9f9;
}

.azytus-details-table td {
color: #333;
}

.azytus-product-description {
margin-top: 20px;
padding: 20px;
background: #f9f9f9;
border-radius: 4px;
}

/* Responsive */
@media screen and (max-width: 768px) {
.azytus-search-filters {
    grid-template-columns: 1fr;
}

.azytus-coa-input-group {
    flex-direction: column;
}

.azytus-results-table {
    font-size: 14px;
}

.azytus-results-table th,
.azytus-results-table td {
    padding: 8px;
}

.azytus-details-table th,
.azytus-details-table td {
    display: block;
    width: 100%;
}

.azytus-details-table th {
    background: #f5f5f5;
    padding-bottom: 5px;
}

.azytus-details-table td {
    padding-top: 5px;
    padding-bottom: 15px;
}
}

/* Status Badge */
.azytus-status-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: 600;
}

.azytus-status-badge.available {
background: #d4edda;
color: #155724;
}

.azytus-status-badge.unavailable {
background: #f8d7da;
color: #721c24;
}

/* Loading Spinner */
.azytus-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #2271b1;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* ==========================================================================
Header Search Button + Popup
========================================================================== */

.azytus-header-search-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
border: 0;
background: transparent;
cursor: pointer;
flex-shrink: 0;
line-height: 1;

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: rgba(var(--black-color-opc, 0, 0, 0), 0.08);
    border-radius: 50%;
    color: var(--title-color, #000);
    transition: background-color 0.35s ease, color 0.35s ease;

    svg {
        display: block;
        width: 20px;
        height: 20px;
        fill: none;
    }
}

&:hover .icon,
&:focus-visible .icon {
    background-color: var(--primary-color1, #5c9541);
    color: #fff;
    outline: none;
}
}

header.style-1 {
.nav-right .azytus-header-search-btn.contact-area {
    .icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background-color: rgba(var(--black-color-opc, 0, 0, 0), 0.08);
        border-radius: 50%;
        color: var(--title-color, #000);
        transition: background-color 0.35s ease, color 0.35s ease;

        svg {
            display: block;
            width: 20px;
            height: 20px;
            fill: none;
        }
    }

    &:hover .icon {
        background-color: rgba(var(--primary-color1-opc, 92, 149, 65), 0.22);
        color: var(--primary-color1, #5c9541);
        outline: none;
    }
}

&.engineering-header .azytus-header-search-btn {
    .icon {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--white-color, #fff);
    }

    &:hover .icon {
        background-color: rgba(255, 255, 255, 0.22);
        color: var(--white-color, #fff);
    }
}
}

@keyframes azytusSearchIn {
from {
    opacity: 0;
    transform: translate(-50%, -10px);
}
to {
    opacity: 1;
    transform: translate(-50%, 0);
}
}

.azytus-header-search-popup {
position: fixed;
inset: 0;
z-index: 99999;
display: none;

&.is-open {
    display: block;
}

.azytus-header-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 28, 24, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.azytus-header-search-dialog {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: min(1320px, calc(100% - 28px));
    max-height: 80vh;
    z-index: 1;
    animation: azytusSearchIn 0.28s ease;

    @media (max-width: 991px) {
        top: 8%;
    }
}

.azytus-header-search-dialog-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px 22px 18px;
    font-family: var(--font-manrope, "Manrope", sans-serif);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    min-height: 200px;

    @media (max-width: 575px) {
        padding: 16px;
        border-radius: 14px;
    }
}

.azytus-header-search-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;

    h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: var(--title-color, #000);
        line-height: 1.3;
        font-family: var(--font-manrope, "Manrope", sans-serif);

        @media (max-width: 575px) {
            font-size: 16px;
        }
    }
}

.azytus-header-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--primary-color1-opc, 92, 149, 65), 0.08);
    color: var(--primary-color1, #5c9541);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;

    &:hover {
        background: var(--primary-color1, #5c9541);
        color: #fff;
    }
}

.azytus-header-search-pill {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 4px 6px 4px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;

    &:focus-within {
        border-color: #bbb;
    }

    @media (max-width: 575px) {
        flex-wrap: wrap;
        border-radius: 18px;
        padding: 8px 10px;
        min-height: 0;
        gap: 8px;
    }
}

.azytus-header-search-query {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;

    @media (max-width: 575px) {
        flex: 1 1 100%;
        align-items: start;
    }
}

.azytus-header-product-input {
    display: block;
    width: 100%;
    height: auto;
    padding: 0 28px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--title-color, #222);
    font-family: var(--font-manrope, "Manrope", sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: auto;
    outline: none;
    box-shadow: none;

    &::placeholder {
        color: #9a9a9a;
        font-weight: 400;
        text-wrap: wrap;
    }

    &::-webkit-search-decoration,
    &::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }

    @media (max-width: 575px) {
        padding-left: 4px;
        padding-bottom: 25px;
    }
}

.azytus-header-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9a9a9a;
    cursor: pointer;
    transition: color 0.2s ease;

    &[hidden] {
        display: none !important;
    }

    svg {
        display: block;
        width: 14px;
        height: 14px;
    }

    &:hover:not(:disabled),
    &:focus-visible:not(:disabled) {
        background: transparent;
        color: #666;
        outline: none;
    }
    
    @media (max-width: 575px){
        padding-top: 5px;
    }
}

.azytus-header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    font-family: var(--font-manrope, "Manrope", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;

    &:not(:last-child) {
        margin-right: 6px;
        @media screen and (max-width: 575px) {
            margin-right: 0;
        }
    }

    svg {
        display: block;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    span {
        display: inline;
    }

    &:disabled {
        opacity: 0.55;
        cursor: wait;
    }

    @media (max-width: 575px) {
        height: 36px;
        padding: 0 12px;
        font-size: 11px;

        svg {
            width: 14px;
            height: 14px;
        }
    }
}

.azytus-header-product-btn {
    background: rgba(var(--primary-color1-opc, 92, 149, 65), 0.2);
    color: var(--primary-color1, #5c9541);

    &:hover:not(:disabled),
    &:focus-visible:not(:disabled) {
        background: var(--primary-color1, #5c9541);
        color: #fff;
        outline: none;
    }
}

.azytus-header-coa-btn {
    background: rgba(var( --primary-color2-opc, 20, 116, 155), 0.2);
    color: var( --primary-color2 );

    &:hover:not(:disabled),
    &:focus-visible:not(:disabled) {
        background: var( --primary-color2 );
        color: #fff;
        outline: none;
    }
}

.azytus-header-search-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-manrope, "Manrope", sans-serif);

    &.is-loading {
        background: rgba(var(--black-color-opc, 0, 0, 0), 0.05);
        color: #555;
    }

    &.is-success {
        background: rgba(var(--primary-color3-opc, 138, 188, 70), 0.18);
        color: var(--primary-color4, #234f40);
    }

    &.is-error {
        background: rgba(203, 0, 0, 0.08);
        color: #a40000;
    }
}

.azytus-header-search-results {
    margin-top: 14px;
    overflow: auto;
    max-height: min(48vh, 420px);
    border-radius: 10px;

    .azytus-table-wrapper {
        margin-top: 0;
    }
}

.azytus-header-results-table {
    min-width: 640px;

    &.azytus-product-table {
        min-width: 1100px;
    }

    th {
        background: var(--primary-color4, #234f40) !important;
        font-family: var(--font-manrope, "Manrope", sans-serif);
        font-size: 15px;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    td {
        font-family: var(--font-manrope, "Manrope", sans-serif);
        font-size: 17px;
        @media (max-width: 575px){
            font-size: 15px;
            padding: 5px;
        }
    }

    a {
        color: var(--primary-color4, #234f40);
        text-decoration: none;
        font-weight: 600;

        &:hover {
            color: var(--primary-color3, #8abc46);
        }
    }

    .button, .button-primary {
        background: var(--primary-color3, #8abc46);
        border-color: var(--primary-color3, #8abc46);
        color: #fff;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 12px;
        font-weight: 600;
    }

    .button-small {
        background: rgba(var(--black-color-opc, 0, 0, 0), 0.08);
        color: var(--title-color, #000);
        font-size: 16px;
    }

    .azytus-na {
        color: #999;
        font-size: 12px;
    }
}
}

body.azytus-search-open {
overflow: hidden;
}

.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}

/* Grade category page + shortcodes */
.azytus-grade-category-page {
--azytus-blue: #14749B;
--azytus-green: #5C9541;
--azytus-ink: #1a2b33;
--azytus-muted: #5a6b73;
--azytus-line: rgba(20, 116, 155, 0.12);
--azytus-soft: #f4f7f5;
max-width: 1100px;
margin: 0 auto;
padding: 30px 20px 60px;
color: var(--azytus-ink);
font-family: var(--font-manrope, "Manrope", sans-serif);

.azytus-gc-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--azytus-blue);
}

.azytus-gc-header {
    position: relative;
    margin-bottom: 40px;
}

.azytus-gc-logo {
    text-align: right;
    margin-bottom: 15px;

    img {
        max-height: 50px;
        width: auto;
    }

    .azytus-gc-logo-fallback {
        font-size: 1.2em;
        color: var(--azytus-blue);
    }
}

.azytus-gc-banner {
    display: flex;
    align-items: stretch;
    min-height: 220px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 116, 155, 0.08);
}

.azytus-gc-banner-image {
    flex: 0 0 58%;
    position: relative;
    background: #e8eef0;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1px;
        width: 80px;
        height: 100%;
        background: linear-gradient(135deg, transparent 49%, var(--azytus-blue) 50%);
        z-index: 1;
    }
}

.azytus-gc-banner-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azytus-blue) 0%, var(--azytus-green) 100%);
    padding: 30px 40px;

    h1 {
        margin: 0;
        color: #fff;
        font-size: 2.4em;
        font-weight: 700;
        text-align: center;
        line-height: 1.2;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }
}

.azytus-gc-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.azytus-gc-features {
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--azytus-line);
    border-left: 3px solid var(--azytus-green);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 116, 155, 0.05);

    h2 {
        margin: 0 0 14px;
        font-size: clamp(1.25rem, 2vw, 1.5rem);
        font-weight: 700;
        color: var(--azytus-ink);
    }

    .entry-content {
        font-size: 0.98rem;
        line-height: 1.7;
        color: var(--azytus-muted);

        ul {
            margin: 0;
            padding-left: 1.15rem;
        }

        li {
            margin-bottom: 8px;
        }
    }
}

@media (max-width: 768px) {
    .azytus-gc-banner {
        flex-direction: column;
        min-height: auto;
    }

    .azytus-gc-banner-image {
        flex: none;
        height: 200px;

        &::after {
            display: none;
        }
    }

    .azytus-gc-banner-title h1 {
        font-size: 1.8em;
    }

    .azytus-gc-content {
        grid-template-columns: 1fr;
    }
}
}

.azytus-gc-products-image {
width: 100%;
max-width: 100%;
text-align: center;
overflow: hidden;
border-radius: 14px;

.azytus-gc-products-image__img,
img {
    max-width: 100%;
    display: block;
}

&.azytus-gc-products-image--shortcode {
    line-height: 0;
}
}

.azytus-gc-catalog {
--azytus-blue: #14749B;
--azytus-green: #5C9541;
--azytus-ink: #1a2b33;
--azytus-muted: #5a6b73;
--azytus-line: rgba(20, 116, 155, 0.12);
--azytus-soft: #f4f7f5;
margin: 8px 0 20px;
font-family: var(--font-manrope, "Manrope", sans-serif);
color: var(--azytus-ink);

.azytus-gc-catalog__head {
    margin-bottom: 22px;
}

.azytus-gc-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--azytus-blue);
}

h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 2.6vw, 2.625rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--azytus-ink);
}

.azytus-gc-catalog__lead {
    margin: 0;
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--azytus-muted);
}
}

.azytus-gc-tables {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
width: 100%;

&.azytus-gc-tables--cols-1 {
    grid-template-columns: 1fr;
}

.azytus-gc-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    border: 1px solid var(--azytus-line, rgba(20, 116, 155, 0.12));
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 116, 155, 0.05);
    animation: azytus-pp-rise 0.7s ease both;
}

.azytus-gc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;

    thead th {
        padding: 13px 16px;
        text-align: left;
        border: none;
        background: var(--primary-color4, #234f40);
        color: #fff;
        font-family: var(--font-manrope, "Manrope", sans-serif);
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--azytus-ink, #1a2b33);
        vertical-align: middle;
    }

    tbody tr {
        transition: background-color 0.25s ease;

        &:last-child td {
            border-bottom: none;
        }

        &:hover {
            background: #eef5f0;
        }
    }

    .azytus-gc-table__code {
        width: 1%;
        white-space: nowrap;
    }

    .azytus-gc-table__name a {
        color: var(--azytus-ink, #1a2b33);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.25s ease;

        &:hover {
            color: var(--azytus-blue, #14749B);
        }
    }

    .azytus-gc-table__cas {
        width: 1%;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .azytus-gc-table__hsn {
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

        td.azytus-gc-table__formula {
            font-weight: 700;
        }

        .azytus-gc-table__mw {
            white-space: nowrap;
        }

        .azytus-gc-table__msds a {
            color: var(--azytus-ink, #1a2b33);
            text-decoration: none;
            font-weight: 600;

            &:hover {
                color: var(--azytus-blue, #14749B);
            }
        }

        .azytus-gc-table__packs {
            min-width: 140px;
        }
}

.azytus-gc-packs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        display: inline-flex;
        align-items: center;
        padding: 4px 12px;
        background: var(--azytus-soft, #f4f7f5);
        border: 1px solid rgba(20, 116, 155, 0.22);
        border-radius: 999px;
        color: var(--azytus-blue, #14749B);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.3;
        white-space: nowrap;
        transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;

        &:hover {
            background: var(--azytus-blue, #14749B);
            border-color: var(--azytus-blue, #14749B);
            color: #fff;
        }
    }
}

.azytus-gc-packs-empty {
    color: var(--azytus-muted, #5a6b73);
}

@media (max-width: 900px) {
    grid-template-columns: 1fr;
}

@media (max-width: 640px) {
    .azytus-gc-table {
        thead {
            display: none;
        }

        tbody tr {
            display: grid;
            gap: 10px;
            padding: 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        tbody td {
            display: grid;
            grid-template-columns: 7.5rem 1fr;
            gap: 10px;
            align-items: center;
            padding: 0;
            border: none;
            width: auto !important;
            min-width: 0;
            white-space: normal;

            &::before {
                content: attr(data-label);
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--azytus-muted, #5a6b73);
            }

            &.azytus-gc-table__cas,
            &.azytus-gc-table__mw {
                white-space: nowrap;
                word-break: keep-all;
                overflow-wrap: normal;
                hyphens: none;
            }
        }

        .azytus-gc-table__name a {
            font-size: 1.02rem;
        }
    }
}
}

.azytus-gc-no-products {
text-align: center;
padding: 40px 24px;
color: var(--azytus-muted, #5a6b73);
background: var(--azytus-soft, #f4f7f5);
border: 1px dashed rgba(20, 116, 155, 0.25);
border-radius: 14px;
font-family: var(--font-manrope, "Manrope", sans-serif);
}

/* ==========================================================================
Single Product Page
========================================================================== */

.azytus-pp {
--azytus-blue: #14749B;
--azytus-green: #5C9541;
--azytus-ink: #1c1a1e;
--azytus-muted: rgba(0, 0, 0, 0.58);
--azytus-line: rgba(20, 116, 155, 0.14);
--azytus-soft: #f4f7f5;
--azytus-cream: #f7f6f1;
padding: 70px 0 100px;
color: var(--azytus-ink);
background: radial-gradient(ellipse 80% 50% at 0% 0%, rgba(20, 116, 155, 0.06), transparent 55%), radial-gradient(ellipse 60% 40% at 100% 10%, rgba(92, 149, 65, 0.07), transparent 50%), #fff;
font-family: var(--font-manrope, "Manrope", sans-serif);

.container {
    max-width: 1200px;
}

.azytus-pp-eyebrow {
    display: inline-block;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--azytus-blue);

}

.azytus-pp-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--azytus-line);
    border-left: 4px solid var(--azytus-green);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(20, 116, 155, 0.06);
    animation: azytus-pp-rise 0.7s ease both;
}

.azytus-pp-identity__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.azytus-pp-identity__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.azytus-pp-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    background: var(--azytus-soft);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--azytus-ink);
    line-height: 1.2;

    .azytus-pp-chip__label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--azytus-muted);
    }

    .azytus-pp-chip__value {
        font-size: 20px;
        font-weight: 700;
    }

    &.azytus-pp-chip--formula {
        background: linear-gradient(135deg, rgba(20, 116, 155, 0.1), rgba(92, 149, 65, 0.1));
        border-color: rgba(20, 116, 155, 0.18);

        .azytus-pp-chip__value {
            font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
            letter-spacing: 0.02em;
            color: var(--azytus-blue);
        }
    }

    &.azytus-pp-chip--cas {
        white-space: nowrap;

        .azytus-pp-chip__value {
            font-variant-numeric: tabular-nums;
            color: var(--azytus-green);
            white-space: nowrap;
            word-break: keep-all;
            overflow-wrap: normal;
            hyphens: none;
        }
    }
}

.azytus-pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-family: var(--font-manrope, "Manrope", sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;

    svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    &.azytus-pp-btn--primary {
        background: var(--azytus-green);
        color: #fff;
        border: 1px solid var(--azytus-green);

        &:hover {
            background: #4a7a34;
            border-color: #4a7a34;
            color: #fff;
            transform: translateY(-2px);
        }
    }

    &.azytus-pp-btn--ghost {
        background: transparent;
        color: var(--azytus-blue);
        border: 1px solid rgba(20, 116, 155, 0.35);

        &:hover {
            background: var(--azytus-blue);
            border-color: var(--azytus-blue);
            color: #fff;
            transform: translateY(-2px);
        }
    }

}

.azytus-pp-layout {
    display: grid;
    gap: 36px;
    margin-bottom: 56px;

    &.azytus-pp-layout--with-media {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
        align-items: start;
    }
}

.azytus-pp-main {
    display: grid;
    gap: 28px;
}

.azytus-pp-section {
    padding: 32px 34px;
    background: #fff;
    border: 1px solid var(--azytus-line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(28, 26, 30, 0.04);
    animation: azytus-pp-rise 0.75s ease both;

    .azytus-pp-section__head {
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);

        h2 {
            margin: 0;
            font-size: clamp(1.45rem, 2vw, 1.85rem);
            font-weight: 700;
            color: var(--azytus-ink);
            line-height: 1.25;
        }

        .azytus-pp-section__lead {
            margin: 10px 0 0;
            max-width: 52ch;
            color: var(--azytus-muted);
            font-size: 15px;
            line-height: 1.6;
        }

        &.azytus-pp-section__head--row {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 20px;
        }
    }
}

.azytus-pp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;

    &.azytus-pp-spec-grid--safety {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.azytus-pp-spec {
    margin: 0;
    padding: 18px 18px 18px 20px;
    background: var(--azytus-soft);
    border-left: 3px solid var(--azytus-green);
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;

    &:hover {
        background: #eef5f0;
        transform: translateY(-2px);
    }

    &:nth-child(even) {
        border-left-color: var(--azytus-blue);
    }

    &.azytus-pp-spec--wide {
        grid-column: 1 / -1;
    }

    dt {
        margin: 0;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--azytus-muted);
    }

    dd {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--azytus-ink);
        word-break: break-word;
    }

    &.azytus-pp-spec--cas dd {
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }

    .azytus-pp-spec__mono {
        font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
        letter-spacing: 0.02em;
        color: var(--azytus-blue);
    }
}

.azytus-pp-signal {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85em;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    &.azytus-pp-signal--danger {
        background: rgba(203, 0, 0, 0.1);
        color: #cb0000;
    }

    &.azytus-pp-signal--warning {
        background: rgba(251, 82, 30, 0.12);
        color: #c2410c;
    }
}

.azytus-pp-pictograms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 65px));
    gap: 12px 14px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.azytus-pp-pictogram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    width: 65px;

    .azytus-pp-pictogram__img {
        display: block;
        width: 65px;
        height: 65px;
        object-fit: contain;
    }

    .azytus-pp-pictogram__name {
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        color: var(--azytus-muted);
        word-break: break-word;
    }
}

.azytus-pp-prose {
    color: var(--azytus-muted);
    font-size: 1.02rem;
    line-height: 1.8;

    p:last-child {
        margin-bottom: 0;
    }

    &.azytus-pp-prose--spec {
        white-space: pre-wrap;
        font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
        font-size: 0.92rem;
        background: var(--azytus-cream);
        padding: 20px 22px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 12px;
    }
}

.azytus-pp-media {
    position: sticky;
    top: 120px;
    animation: azytus-pp-rise 0.8s ease both;
    animation-delay: 0.08s;

    .azytus-pp-media__frame {
        overflow: hidden;
        border: 1px solid var(--azytus-line);
        border-radius: 16px;
        background: var(--azytus-soft);
        box-shadow: 0 16px 40px rgba(20, 116, 155, 0.1);
    }

    .azytus-pp-media__img {
        display: block;
        width: 100%;
        height: auto;
    }
}

.azytus-pp-grades {
    margin-bottom: 40px;

    .azytus-pp-grades__intro {
        margin-bottom: 18px;

        h2 {
            margin: 6px 0 0;
            font-size: clamp(1.45rem, 2vw, 1.85rem);
            font-weight: 700;
            color: var(--azytus-ink);
            line-height: 1.25;
        }

        .azytus-pp-section__lead {
            margin: 10px 0 0;
            max-width: 52ch;
            color: var(--azytus-muted);
            font-size: 15px;
            line-height: 1.6;
        }
    }

    .azytus-pp-grades__content {
        margin-top: 0;
    }
}

.azytus-pp-grade-tabs {
    .azytus-pp-grade-tabs__nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }

    .azytus-pp-grade-tabs__tab {
        appearance: none;
        border: 1px solid var(--azytus-line);
        background: #fff;
        color: var(--azytus-ink);
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;

        &:hover {
            border-color: rgba(20, 116, 155, 0.4);
            color: var(--azytus-blue);
        }

        &.is-active {
            background: var(--azytus-blue);
            border-color: var(--azytus-blue);
            color: #fff;
            box-shadow: 0 8px 20px rgba(20, 116, 155, 0.18);
        }

        &:focus-visible {
            outline: 2px solid var(--azytus-green);
            outline-offset: 2px;
        }
    }

    .azytus-pp-grade-tabs__panel {
        display: none;

        &.is-active {
            display: block;
            animation: azytus-pp-rise 0.45s ease both;
        }
    }
}

.azytus-pp-grade {
    position: relative;
    padding: 26px 24px 24px;
    background: #fff;
    border: 1px solid var(--azytus-line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

    &.azytus-pp-grade--tab {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        animation: none;

        &::before {
            display: none;
        }

        &:hover {
            transform: none;
            box-shadow: none;
        }
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--azytus-blue), var(--azytus-green));
    }

    .azytus-pp-grade__head {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .azytus-pp-grade__name {
        margin: 0 0 8px;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--azytus-ink);
        line-height: 1.3;

        a {
            color: inherit;
            text-decoration: none;

            &:hover {
                color: var(--azytus-blue);
            }
        }
    }

    .azytus-pp-grade__code {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;

        span {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--azytus-muted);
        }

        strong {
            display: inline-block;
            padding: 2px 12px;
            background: var(--azytus-blue);
            color: #fff;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }
    }

    .azytus-pp-grade__index {
        flex-shrink: 0;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
        color: rgba(20, 116, 155, 0.14);
    }

    .azytus-pp-grade__packs-label {
        display: block;
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--azytus-muted);
    }

    .azytus-pp-grade__empty {
        margin: 0;
        color: var(--azytus-muted);
        font-style: italic;
    }

    .azytus-pp-grade__spec {
        margin-top: 22px;
        padding-top: 20px;
        border-top: 1px solid var(--azytus-line);
    }
}

.azytus-pp-packs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        padding: 4px 14px;
        background: var(--azytus-soft);
        border: 1px solid rgba(20, 116, 155, 0.22);
        border-radius: 999px;
        color: var(--azytus-blue);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        transition: background-color 0.25s ease, color 0.25s ease;

        &:hover {
            background: var(--azytus-blue);
            border-color: var(--azytus-blue);
            color: #fff;
        }
    }
}

.azytus-pp-empty {
    padding: 36px;
    text-align: center;
    color: var(--azytus-muted);
    background: var(--azytus-soft);
    border: 1px dashed rgba(20, 116, 155, 0.25);
    border-radius: 14px;
}

@media (max-width: 991px) {
    .azytus-pp-layout.azytus-pp-layout--with-media {
        grid-template-columns: 1fr;
    }

    .azytus-pp-media {
        position: static;
        order: -1;
        max-width: 480px;
    }

    .azytus-pp-spec-grid--safety {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    padding: 40px 0 70px;

    .azytus-pp-identity {
        padding: 18px;
    }

    .azytus-pp-section {
        padding: 24px 18px;
    }

    .azytus-pp-spec-grid,
    .azytus-pp-spec-grid--safety {
        grid-template-columns: 1fr 1fr;
    }

    .azytus-pp-grade-tabs {
        .azytus-pp-grade-tabs__nav {
            gap: 6px;
        }

        .azytus-pp-grade-tabs__tab {
            padding: 9px 14px;
            font-size: 12px;
        }
    }
}
}

@keyframes azytus-pp-rise {
from {
    opacity: 0;
    transform: translateY(16px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@media (prefers-reduced-motion: reduce) {
.azytus-pp .azytus-pp-identity,
.azytus-pp .azytus-pp-section,
.azytus-pp .azytus-pp-media,
.azytus-pp .azytus-pp-grade {
    animation: none;
}
}

/* EmbedPress PDF gallery: high-DPI canvas overlay */
.ep-pdf-gallery .ep-pdf-gallery__thumbnail-wrap {
    .azytus-pdf-thumb-canvas {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;

        &.is-ready {
            opacity: 1;
        }
    }

    .ep-pdf-gallery__overlay {
        z-index: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ep-pdf-gallery .ep-pdf-gallery__thumbnail-wrap .azytus-pdf-thumb-canvas {
        transition: none;
    }
}