/* Product catalog */
.products-hero {
    padding: 118px 0 110px;
    background: var(--sndas-bg);
}

.products-hero__inner {
    height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.products-hero__content {
    min-width: 0;
}

@media (min-width: 981px) {
    .products-hero__content {
        align-self: start;
        padding-top: 40px;
    }
}

.products-hero .sndas-eyebrow {
    margin: 0;
}
.products-hero .sndas-title {
    max-width: 820px;
    font-size: clamp(50px, 5vw, 72px);
    text-wrap: balance;
}
.products-hero .sndas-copy {
    max-width: 620px;
    margin: 30px 0 0;
    color: var(--sndas-muted);
    font-size: 18px;
    line-height: 1.7;
}

.products-hero__visual {
    position: relative;
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--sndas-border);
    border-radius: var(--sndas-radius);
    background:
        linear-gradient(rgba(23, 104, 63, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 104, 63, .08) 1px, transparent 1px),
        radial-gradient(circle at 52% 46%, rgba(44, 154, 95, .16), transparent 52%),
        var(--sndas-bg-soft);
    background-size: 46px 46px, 46px 46px, auto, auto;
    place-items: center;
}

.products-hero__visual--image {
    display: block;
    background: var(--sndas-bg-soft);
}

.products-hero__visual--image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.products-hero__shape {
    position: absolute;
    display: block;
}

.products-hero__shape--frame {
    width: 56%;
    aspect-ratio: 1;
    border: 1px solid rgba(23, 104, 63, .48);
    border-radius: 18px;
    transform: rotate(12deg);
}

.products-hero__shape--line {
    width: 78%;
    height: 2px;
    background: var(--sndas-green);
    transform: rotate(-28deg);
    box-shadow: 0 0 22px rgba(44, 154, 95, .38);
}

.products-hero__shape--node {
    width: 30px;
    aspect-ratio: 1;
    border: 7px solid var(--sndas-bg-soft);
    border-radius: 50%;
    background: var(--sndas-green);
    box-shadow: 0 0 0 1px var(--sndas-green-dark);
    transform: translate(108px, -92px);
}

.products-catalog {
    padding: 32px 0 96px;
    background: var(--sndas-paper);
}
.catalog-breadcrumb {
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.catalog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 16px 0 36px;
}
.catalog-heading .sndas-section-title {
    margin: 0;
}
.catalog-category-card {
    color: var(--sndas-dark);
    text-decoration: none;
}
.catalog-category-card:focus-visible {
    outline: 2px solid var(--sndas-green);
    outline-offset: 4px;
}
.catalog-category-card .product-card__image {
    aspect-ratio: 4 / 3;
}
.catalog-category-card .product-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    padding: 4px 0 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-nav a {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--sndas-border);
    border-radius: 4px;
    align-items: center;
    color: var(--sndas-muted);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--sndas-transition), border-color var(--sndas-transition), color var(--sndas-transition);
}

.category-nav a:hover {
    border-color: var(--sndas-green);
    color: var(--sndas-green-dark);
}
.category-nav a.is-active {
    border-color: var(--sndas-dark);
    background: var(--sndas-dark);
    color: #fff;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.product-card {
    display: flex;
    min-width: 0;
    height: 100%;
    border: 1px solid var(--sndas-border);
    border-radius: 8px;
    background: var(--sndas-paper);
    flex-direction: column;
    transition: border-color var(--sndas-transition);
}

.product-card:hover,
.product-card:focus-within {
    border-color: var(--sndas-green);
}
.product-card__image img {
    mix-blend-mode: multiply;
}
.product-gallery__status {
    margin: 12px 0 0;
    color: #7c2e22;
    font-size: 14px;
}
.product-card__image {
    position: relative;
    display: flex;
    aspect-ratio: 1.12 / 1;
    padding: 24px;
    overflow: hidden;
    border-bottom: 1px solid var(--sndas-border);
    border-radius: 7px 7px 0 0;
    background: var(--sndas-bg);
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 280ms ease;
}
.product-card:hover .product-card__image img {
    transform: scale(1.035);
}
.product-card__content {
    display: flex;
    min-width: 0;
    padding: 24px;
    flex: 1;
    flex-direction: column;
}
.product-card__category {
    margin: 0 0 10px;
    color: var(--sndas-green-dark);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.product-card__title {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.3;
}
.product-card__summary {
    margin-top: 10px;
    color: var(--sndas-muted);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.product-card__link {
    display: flex;
    min-height: 44px;
    margin-top: auto;
    padding-top: 26px;
    color: var(--sndas-green-dark);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    font-weight: 650;
}

.product-card__link span {
    font-size: 22px;
    transition: transform var(--sndas-transition);
}
.product-card:hover .product-card__link span {
    transform: translateX(3px);
}
.sndas-product-placeholder {
    position: relative;
    display: block;
    width: 42%;
    aspect-ratio: 1;
    border: 1px solid var(--sndas-border);
    border-radius: 50%;
}
.sndas-product-placeholder::before,
.sndas-product-placeholder::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 125%;
    height: 1px;
    background: var(--sndas-border);
    content: "";
    transform: translate(-50%, -50%);
}

.sndas-product-placeholder::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.sndas-product-placeholder span:first-child {
    position: absolute;
    inset: 30%;
    border: 1px solid var(--sndas-green);
    border-radius: 50%;
}
.products-empty {
    padding: 72px 24px;
    border: 1px solid var(--sndas-border);
    border-radius: 8px;
    background: var(--sndas-bg);
    text-align: center;
}
.products-empty p {
    margin: 0 0 24px;
    color: var(--sndas-muted);
}
/* Product detail */
.product-detail {
    padding-top: 28px;
    background: var(--sndas-paper);
}
.product-detail > .container {
    padding-bottom: 80px;
}
.product-breadcrumb {
    display: flex;
    margin-bottom: 32px;
    color: var(--sndas-muted);
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.product-breadcrumb a:hover {
    color: var(--sndas-green-dark);
}
.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.product-gallery,
.product-summary {
    min-width: 0;
}
.product-gallery__main {
    display: flex;
    aspect-ratio: 1.1 / 1;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--sndas-border);
    border-radius: 8px;
    background: var(--sndas-bg);
    align-items: center;
    justify-content: center;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery__thumbs {
    display: flex;
    margin-top: 12px;
    padding: 3px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.product-gallery__thumb {
    display: flex;
    width: 76px;
    height: 76px;
    padding: 8px;
    border: 1px solid var(--sndas-border);
    border-radius: 4px;
    background: var(--sndas-bg);
    cursor: pointer;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    transition: border-color var(--sndas-transition);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    border-color: var(--sndas-green);
}
.product-gallery__thumb.is-active {
    box-shadow: inset 0 -3px 0 var(--sndas-green);
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-summary {
    padding-top: 32px;
}
.product-title {
    margin: 0;
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.product-intro {
    max-width: 530px;
    margin-top: 24px;
    color: var(--sndas-muted);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.product-intro p {
    margin: 0 0 1em;
}
.product-summary__actions {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--sndas-border);
}
/* Product content */
.product-section {
    padding: 80px 0;
    border-top: 1px solid var(--sndas-border);
    background: var(--sndas-paper);
}
.product-section--soft {
    background: var(--sndas-bg);
}
.product-section__content {
    max-width: 1080px;
}
.product-section h2 {
    margin: 0;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.2;
}
.product-rich-text {
    color: var(--sndas-text);
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.product-rich-text p {
    margin: 0 0 1.25em;
}
.product-rich-text h2 {
    margin: 2em 0 .65em;
    font-size: 28px;
    line-height: 1.3;
}
.product-rich-text h3 {
    margin: 1.7em 0 .6em;
    font-size: 22px;
    line-height: 1.35;
}
.product-rich-text h4 {
    margin: 1.5em 0 .55em;
    font-size: 18px;
    line-height: 1.4;
}
.product-rich-text ul,
.product-rich-text ol {
    margin: 0 0 1.35em;
    padding-left: 1.4em;
}
.product-rich-text li + li {
    margin-top: .4em;
}
.product-rich-text a {
    color: var(--sndas-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.product-rich-text blockquote {
    margin: 1.8em 0;
    padding-left: 1.25em;
    border-left: 3px solid var(--sndas-green);
    color: var(--sndas-muted);
}
.product-rich-text table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.8em 0;
    overflow-x: auto;
    border-collapse: collapse;
}
.product-rich-text th,
.product-rich-text td {
    padding: 12px 16px;
    border: 1px solid var(--sndas-border);
    text-align: left;
}
.product-rich-text th {
    background: var(--sndas-bg);
    font-weight: 650;
}
.product-rich-text img {
    max-width: 100%;
    height: auto;
}
.product-rich-text figure {
    margin: 1.8em 0;
}
.product-rich-text figcaption {
    margin-top: .65em;
    color: var(--sndas-muted);
    font-size: 13px;
}
.product-rich-text > :first-child {
    margin-top: 0;
}
.product-rich-text > :last-child {
    margin-bottom: 0;
}
.product-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
    counter-reset: product-feature;
}
.product-feature-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--sndas-border);
    border-radius: 4px;
    background: var(--sndas-paper);
    counter-increment: product-feature;
    overflow-wrap: anywhere;
}
.product-feature-card::before {
    display: block;
    margin-bottom: 32px;
    color: var(--sndas-green-dark);
    content: counter(product-feature, decimal-leading-zero);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.product-feature-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.4;
}
.product-feature-card p {
    margin: 12px 0 0;
    color: var(--sndas-muted);
    font-size: 14px;
    line-height: 1.7;
}
.specification-list {
    margin: 28px 0 0;
    border-top: 1px solid var(--sndas-border);
}
.specification-row {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 28px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--sndas-border);
    overflow-wrap: anywhere;
}
.specification-row:nth-child(odd) {
    background: var(--sndas-bg);
}
.specification-row dt {
    color: var(--sndas-muted);
    font-size: 14px;
}
.specification-row dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.download-list {
    margin-top: 32px;
    border-top: 1px solid var(--sndas-border);
}
.download-item {
    display: flex;
    min-height: 88px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--sndas-border);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: background var(--sndas-transition);
}
.download-item:hover {
    background: var(--sndas-paper);
}
.download-item > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}
.download-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}
.download-item small {
    display: block;
    margin-top: 3px;
    color: var(--sndas-muted);
    font-size: 12px;
}
.download-item__icon {
    display: grid;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sndas-border);
    border-radius: 4px;
    color: var(--sndas-green-dark);
    flex-shrink: 0;
    place-items: center;
    font-size: 22px;
}
.product-section--media {
    background: var(--sndas-bg);
    color: var(--sndas-text);
}
.product-section--media .sndas-eyebrow {
    color: var(--sndas-green);
}
.product-section .product-video-title {
    max-width: 760px;
    font-size: clamp(38px, 5.5vw, 68px);
}
.product-video-button {
    margin-top: 36px;
    border-color: var(--sndas-green);
    background: var(--sndas-green);
    color: #fff;
}
.product-video-button:hover {
    border-color: var(--sndas-green-dark);
    background: var(--sndas-green-dark);
    color: #fff;
}
/* Pagination and responsive layout */
.woocommerce-pagination {
    margin-top: 48px;
}
.woocommerce-pagination ul {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
    display: grid;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--sndas-border);
    border-radius: 4px;
    place-items: center;
    font-size: 13px;
}
.woocommerce-pagination .current {
    border-color: var(--sndas-dark);
    background: var(--sndas-dark);
    color: #fff;
}
.woocommerce-pagination a:hover {
    border-color: var(--sndas-green);
    color: var(--sndas-green-dark);
}
@media (max-width: 1100px) {
    .product-grid {
        gap: 20px;
    }
    .product-summary {
        padding-top: 16px;
    }
}

@media (max-width: 980px) {
    .products-hero__content {
        padding-top: 0;
    }

    .products-hero__inner {
        height: auto;
        grid-template-columns: 1fr;
    }

    .products-hero__visual {
        height: 330px;
        min-height: 0;
    }

    .products-hero__visual--image img {
        height: 100%;
        min-height: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 78px 0 70px;
    }
    .products-hero .sndas-title {
        font-size: clamp(45px, 13vw, 68px);
    }
    .products-hero .sndas-copy {
        font-size: 16px;
    }

    .products-hero__visual {
        height: 250px;
        min-height: 0;
    }

    .products-hero__visual--image img {
        height: 100%;
        min-height: 0;
    }

    .products-hero__shape--node {
        width: 22px;
        border-width: 5px;
        transform: translate(72px, -58px);
    }
}

@media (max-width: 760px) {
    .products-catalog {
        padding: 24px 0 64px;
    }
    .category-nav {
        margin-bottom: 20px;
    }
    .product-detail {
        padding-top: 22px;
    }
    .product-detail > .container {
        padding-bottom: 56px;
    }
    .product-breadcrumb {
        margin-bottom: 24px;
    }
    .product-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery__main {
        aspect-ratio: 4 / 3;
        padding: 20px;
    }
    .product-summary {
        padding-top: 0;
    }
    .product-section {
        padding: 56px 0;
    }
    .product-rich-text {
        font-size: 16px;
        line-height: 1.75;
    }
    .product-rich-text h2 {
        font-size: 24px;
    }
    .product-rich-text h3 {
        font-size: 20px;
    }
}

@media (max-width: 560px) {
    .product-grid,
    .product-feature-grid {
        grid-template-columns: 1fr;
    }
    .product-card__content {
        padding: 22px;
    }
    .product-title {
        font-size: clamp(34px, 9vw, 44px);
    }
    .product-gallery__thumb {
        width: 64px;
        height: 64px;
    }
    .specification-row {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 5px;
    }
}
