:root {
    --poe-ink: #0b1520;
    --poe-navy: #0c2238;
    --poe-slate: #566777;
    --poe-line: #d9e0e6;
    --poe-surface: #f4f6f8;
    --poe-white: #ffffff;
    --poe-red: #d62b2f;
}

.poe-product-browser {
    color: var(--poe-ink);
}

.poe-product-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 clamp(32px, 5vw, 64px);
}

.poe-product-filter__item {
    appearance: none;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    min-height: 96px;
    padding: 10px 16px 10px 10px;
    border: 1px solid var(--poe-line);
    border-radius: 3px;
    background: var(--poe-white);
    color: var(--poe-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.poe-product-filter__item:hover,
.poe-product-filter__item.is-active {
    border-color: var(--poe-navy);
    background: var(--poe-navy);
    color: var(--poe-white);
}

.poe-product-filter__item:hover {
    transform: translateY(-2px);
}

.poe-product-filter__item:focus-visible,
.poe-product-card a:focus-visible,
.poe-product-gallery > .wp-block-image:focus-visible {
    outline: 3px solid var(--poe-red);
    outline-offset: 3px;
}

.poe-product-filter__media {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    background: var(--poe-surface);
}

.poe-product-filter__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.poe-product-filter__fallback {
    color: var(--poe-navy);
    font-size: 1.1rem;
    font-weight: 800;
}

.poe-product-filter__label {
    font-size: clamp(.86rem, 1vw, 1rem);
    font-weight: 760;
    line-height: 1.25;
}

.poe-product-panel + .poe-product-panel {
    margin-top: 72px;
}

.poe-product-browser.is-enhanced .poe-product-panel + .poe-product-panel {
    margin-top: 0;
}

.poe-product-panel__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--poe-line);
}

.poe-product-panel__header h3 {
    margin: 0 0 7px;
    color: var(--poe-ink);
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.poe-product-panel__header p {
    max-width: 68ch;
    margin: 0;
    color: var(--poe-slate);
    line-height: 1.65;
}

.poe-product-panel__all,
.poe-product-card__link {
    color: var(--poe-red);
    font-weight: 750;
    text-decoration: none;
    text-underline-offset: 4px;
}

.poe-product-panel__all:hover,
.poe-product-card__link:hover {
    text-decoration: underline;
}

.poe-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.poe-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--poe-line);
    border-radius: 4px;
    background: var(--poe-white);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.poe-product-card:hover {
    transform: translateY(-4px);
    border-color: #aebbc7;
    box-shadow: 0 18px 36px rgba(11, 21, 32, .10);
}

.poe-product-card__media {
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 24px;
    background: var(--poe-surface);
}

.poe-product-card__media img {
    width: 100%;
    height: 210px;
    object-fit: contain;
}

.poe-product-card__placeholder {
    color: var(--poe-slate);
}

.poe-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.poe-product-card__model {
    margin: 0 0 8px;
    color: var(--poe-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.poe-product-card h4 {
    margin: 0 0 18px;
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.poe-product-card h4 a {
    color: var(--poe-ink);
    text-decoration: none;
}

.poe-product-card__specs {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    color: var(--poe-slate);
    font-size: .92rem;
    line-height: 1.45;
    list-style: none;
}

.poe-product-card__specs li {
    position: relative;
    padding-left: 14px;
}

.poe-product-card__specs li::before {
    position: absolute;
    top: .58em;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--poe-red);
    content: '';
}

.poe-product-card__link {
    margin-top: auto;
}

.poe-product-panel__empty,
.poe-product-browser__empty {
    padding: 28px;
    border: 1px dashed #aebbc7;
    background: var(--poe-surface);
    color: var(--poe-slate);
}

.single-poe_product .entry-header {
    display: none;
}

.single-poe_product .site-content > .ast-container,
.single-poe_product .site-main,
.single-poe_product .content-area,
.single-poe_product .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.single-poe_product .site-content {
    padding-top: 0;
    padding-bottom: 0;
}

.single-poe_product .post-navigation {
    display: none;
}

.poe-product-hero,
.poe-product-detail {
    box-sizing: border-box;
    padding: clamp(56px, 8vw, 112px) max(24px, calc((100vw - 1180px) / 2));
}

.poe-product-hero {
    background: #eef2f5;
}

.poe-product-hero__grid {
    gap: clamp(36px, 6vw, 84px);
    align-items: center !important;
}

.poe-product-identity__model {
    margin: 0 0 12px;
    color: var(--poe-red);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.poe-product-identity h1 {
    margin: 0 0 18px;
    color: var(--poe-ink);
    font-size: clamp(1.9rem, 2.6vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.poe-product-identity__summary {
    max-width: 58ch;
    margin: 0 0 20px;
    color: var(--poe-slate);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.65;
}

.poe-product-identity__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.poe-product-identity__specs span {
    padding: 7px 11px;
    background: var(--poe-white);
    color: var(--poe-navy);
    font-size: .82rem;
    font-weight: 750;
}

.poe-product-hero h2 {
    margin: 26px 0 14px;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.poe-selling-points {
    display: grid;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.poe-selling-points li {
    position: relative;
    padding-left: 26px;
    color: #23384c;
    line-height: 1.5;
}

.poe-selling-points li::before {
    position: absolute;
    top: .35em;
    left: 0;
    width: 15px;
    height: 8px;
    border-bottom: 2px solid var(--poe-red);
    border-left: 2px solid var(--poe-red);
    transform: rotate(-45deg);
    content: '';
}

.poe-product-gallery__main {
    display: grid;
    min-height: 470px;
    margin: 0 0 12px;
    place-items: center;
    overflow: hidden;
    background: var(--poe-white);
}

.poe-product-gallery__main img {
    width: 100%;
    max-height: 470px;
    object-fit: contain;
}

.poe-product-gallery.is-enhanced {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px !important;
}

.poe-product-gallery.is-enhanced > .wp-block-image {
    width: 100% !important;
    min-height: 78px;
    margin: 0 !important;
    padding: 5px;
    border: 1px solid var(--poe-line);
    background: var(--poe-white);
    cursor: pointer;
}

.poe-product-gallery.is-enhanced > .wp-block-image.is-selected {
    border-color: var(--poe-red);
}

.poe-product-gallery.is-enhanced > .wp-block-image img {
    width: 100%;
    height: 78px !important;
    object-fit: contain !important;
}

.poe-product-detail {
    background: var(--poe-white);
}

.poe-product-detail > * {
    max-width: 900px;
}

.poe-product-detail > h2 {
    margin-top: clamp(48px, 7vw, 82px);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--poe-line);
    color: var(--poe-ink);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -.025em;
}

.poe-product-detail p,
.poe-product-detail li,
.poe-product-detail td {
    color: #405466;
    line-height: 1.7;
}

.poe-product-detail .wp-block-table table {
    border-collapse: collapse;
}

.poe-product-detail .wp-block-table td {
    padding: 14px 16px;
    border-color: var(--poe-line);
}

.poe-product-detail .wp-block-table td:first-child {
    width: 34%;
    background: var(--poe-surface);
    color: var(--poe-ink);
    font-weight: 750;
}

.poe-product-commerce-detail > .poe-detail-slice,
.poe-product-commerce-detail > .poe-spec-table {
    width: 100%;
    max-width: 790px;
    margin-right: auto;
    margin-left: auto;
}

.poe-product-commerce-detail > .poe-detail-slice {
    margin-top: 0;
    margin-bottom: 0;
}

.poe-product-commerce-detail > .poe-detail-slice img {
    display: block;
    width: 100%;
    height: auto;
}

.poe-product-commerce-detail > .poe-detail-slice + .poe-detail-slice {
    margin-top: 0;
}

.poe-product-commerce-detail > .poe-spec-table {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.poe-product-detail__split {
    max-width: 1000px;
    margin-top: 64px;
    gap: 24px;
}

.poe-product-detail__split > .wp-block-column {
    padding: 28px;
    background: var(--poe-surface);
}

.poe-product-detail__split h2 {
    margin-top: 0;
}

.poe-product-inquiry {
    max-width: 100% !important;
    margin-top: 80px;
    padding: clamp(32px, 5vw, 64px);
    background: var(--poe-navy);
    color: var(--poe-white);
}

.poe-product-inquiry h2,
.poe-product-inquiry p {
    color: var(--poe-white);
}

@media (max-width: 1023px) {
    .poe-product-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .poe-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .poe-product-hero__grid {
        flex-wrap: wrap !important;
    }
    .poe-product-hero__grid > .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 640px) {
    .poe-product-filter {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .poe-product-filter__item {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 124px;
        padding: 10px 8px;
        gap: 8px;
        text-align: center;
    }
    .poe-product-filter__media {
        width: 64px;
        height: 64px;
    }
    .poe-product-filter__label {
        font-size: .76rem;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }
    .poe-product-panel__header {
        align-items: start;
        flex-direction: column;
    }
    .poe-product-grid {
        grid-template-columns: 1fr;
    }
    .poe-product-card__media {
        min-height: 220px;
    }
    .poe-product-hero,
    .poe-product-detail {
        padding-right: 20px;
        padding-left: 20px;
    }
    .poe-product-gallery__main {
        min-height: 320px;
    }
    .poe-product-gallery__main img {
        max-height: 320px;
    }
    .poe-product-gallery.is-enhanced {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .poe-product-detail .wp-block-table {
        overflow-x: auto;
    }
    .poe-product-detail .wp-block-table table {
        min-width: 560px;
    }
    .poe-product-commerce-detail > .poe-detail-slice {
        width: calc(100% + 40px);
        max-width: none;
        margin-right: -20px;
        margin-left: -20px;
    }
}

@media (hover: none) {
    .poe-product-filter__item:hover,
    .poe-product-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .poe-product-filter__item,
    .poe-product-card {
        transition: none;
    }
}
