.products-page {
    --products-bg: #f7f7f5;
    --products-panel: #fbfaf6;
    --products-card: #ffffff;
    --products-line: #e6e2d9;
    --products-line-soft: rgba(17, 17, 17, .08);
    --products-text: #111111;
    --products-muted: #686868;
    --products-yellow: #f5ba29;
    background: var(--products-bg);
    color: var(--products-text);
}

.products-page .site-header,
.products-page .site-footer {
    font-family: var(--font-sans);
}

.products-main {
    width: 100%;
    padding: clamp(18px, 2.6vw, 34px) 0 clamp(54px, 5vw, 90px);
    overflow: hidden;
}

.products-hero,
.products-browser,
.products-catalog,
.products-custom-cta {
    width: 84%;
    max-width: 84%;
    margin-inline: auto;
}

.products-hero {
    position: relative;
    padding: clamp(34px, 4vw, 48px);
    border: 1px solid var(--products-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 66% 18%, rgba(245, 186, 41, .18), transparent 16%),
        radial-gradient(circle at 72% 26%, rgba(245, 186, 41, .10), transparent 32%),
        linear-gradient(180deg, #fbfaf6 0%, #f7f5ef 100%);
    box-shadow: 0 24px 70px rgba(18, 18, 18, .04);
}

.products-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 760px);
    align-items: center;
    gap: clamp(34px, 4vw, 72px);
}

.products-hero-copy {
    max-width: 680px;
}

.products-eyebrow,
.products-custom-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #7b7b76;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.products-eyebrow > span,
.products-custom-label > span {
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: var(--products-yellow);
}

.products-hero h1 {
    margin: 22px 0 22px;
    color: #090909;
    font-family: var(--font-display);
    font-size: clamp(54px, 5.2vw, 82px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.07em;
}

.products-hero-copy > p {
    margin: 0;
    max-width: 620px;
    color: #6f6f6a;
    font-size: 18px;
    line-height: 1.6;
}

.products-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.products-primary-button,
.products-secondary-button,
.products-hire-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.products-primary-button {
    background: #090909;
    color: #fff;
    box-shadow: 0 18px 36px rgba(12, 12, 12, .12);
}

.products-primary-button:hover,
.products-hire-button:hover,
.products-secondary-button:hover {
    transform: translateY(-2px);
}

.products-secondary-button {
    border: 1px solid var(--products-line);
    background: rgba(255, 255, 255, .92);
    color: #161616;
    box-shadow: 0 12px 28px rgba(17, 17, 17, .05);
}

.products-secondary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid rgba(17, 17, 17, .06);
    padding-top: 22px;
}

.product-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 16px;
}

.product-trust-item + .product-trust-item {
    padding-left: 20px;
    border-left: 1px solid rgba(17, 17, 17, .07);
}

.trust-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--products-yellow);
}

.trust-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-lightning svg {
    fill: currentColor;
    stroke: none;
}

.product-trust-item > span:last-child {
    display: grid;
    gap: 4px;
}

.product-trust-item strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #141414;
}

.product-trust-item small {
    font-size: 14px;
    line-height: 1.35;
    color: #8a8a84;
}

.products-hero-art {
    position: relative;
    min-width: 0;
}

.products-hero-visual-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.products-hero-visual-frame::before {
    content: "";
    position: absolute;
    inset: 7% 4% 11%;
    border-radius: 32px;
    background: radial-gradient(circle at 50% 50%, rgba(245, 186, 41, .26) 0%, rgba(245, 186, 41, .08) 30%, transparent 68%);
    filter: blur(12px);
}

.product-hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 760px);
    height: auto;
    filter: drop-shadow(0 36px 46px rgba(23, 20, 12, .18));
}

.products-browser {
    position: relative;
    margin-top: 18px;
    scroll-margin-top: 100px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid var(--products-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 28px rgba(17, 17, 17, .04);
}

.product-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
}

.product-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--products-line);
    border-radius: 999px;
    background: #fff;
    color: #2f2f2f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .18s ease;
}

.product-filter svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.product-filter.is-active,
.product-filter:hover {
    border-color: #090909;
    background: #090909;
    color: #fff;
    box-shadow: 0 16px 34px rgba(10, 10, 10, .14);
}

.product-search {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 1 360px;
    min-height: 52px;
    min-width: min(100%, 340px);
    padding: 0 10px 0 16px;
    border: 1px solid var(--products-line);
    border-radius: 22px;
    background: #fff;
}

.product-search-label {
    min-width: 88px;
    color: #242424;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.product-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.product-search-field svg,
.product-search-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #606060;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.product-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #161616;
    font: 500 14px/1.4 var(--font-sans);
}

.product-search input::placeholder {
    color: #9a9a94;
}

.product-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 186, 41, .55);
}

.products-catalog {
    margin-top: 36px;
}

.products-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.products-catalog-head h2 {
    margin: 0;
    color: #090909;
    font-family: var(--font-display);
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.06em;
}

.products-catalog-head p {
    margin: 10px 0 0;
    color: #757575;
    font-size: 18px;
    line-height: 1.5;
}

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

.store-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--products-line);
    border-radius: 24px;
    background: var(--products-card);
    box-shadow: 0 18px 36px rgba(17, 17, 17, .04);
}

.store-product-card[hidden] {
    display: none !important;
}

.store-product-visual {
    position: relative;
    display: block;
    min-height: 248px;
    padding: 28px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background:
        radial-gradient(circle at 82% 16%, rgba(245, 186, 41, .24), transparent 16%),
        radial-gradient(circle at 22% 78%, rgba(12, 15, 21, .38), transparent 36%),
        linear-gradient(145deg, #0f1118 0%, #060708 100%);
}

.store-product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.10) .8px, transparent .8px);
    background-size: 14px 14px;
    mask-image: linear-gradient(140deg, rgba(0,0,0,.45), transparent 72%);
}

.store-product-visual::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -8%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 208, 102, .24) 0%, transparent 70%);
    filter: blur(18px);
}

.product-preview-label {
    position: absolute;
    left: 26px;
    bottom: 22px;
    z-index: 2;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.ratio-card-scene {
    position: absolute;
    right: 24px;
    top: 28px;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 36px rgba(0,0,0,.18);
}

.ratio-demo {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 76px;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 248, 236, .96);
    color: #6e5c37;
}

.ratio-demo span {
    width: 38px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(180deg, #d5b27a 0%, #c59e64 100%);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}

.ratio-demo b,
.ratio-scene-arrow {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ratio-scene-arrow {
    color: var(--products-yellow);
}

.product-preview-window {
    position: absolute;
    left: 30px;
    top: 34px;
    z-index: 2;
    width: 56%;
    min-height: 132px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(16, 20, 29, .92);
    box-shadow: 0 22px 34px rgba(0,0,0,.24);
}

.preview-window-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.preview-window-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.34);
}

.preview-invoice-layout {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    min-height: 92px;
}

.preview-invoice-nav {
    display: grid;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
}

.preview-invoice-nav span,
.preview-line,
.preview-total,
.product-preview-document span {
    display: block;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.preview-invoice-nav span {
    height: 8px;
}

.preview-invoice-content {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
}

.preview-invoice-content b {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.preview-line.line-wide { width: 88%; height: 8px; }
.preview-line.line-medium { width: 70%; height: 8px; }
.preview-line.line-short { width: 52%; height: 8px; }
.preview-total { width: 42%; height: 22px; background: rgba(245,186,41,.35); }

.product-preview-document {
    position: absolute;
    right: 28px;
    top: 26px;
    z-index: 2;
    width: 34%;
    min-height: 160px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 22px 36px rgba(0,0,0,.18);
}

.product-preview-document b {
    display: block;
    margin-bottom: 14px;
    color: #232323;
    font-size: 16px;
    font-weight: 800;
}

.product-preview-document span {
    height: 10px;
    margin-top: 10px;
    background: rgba(17,17,17,.12);
}

.generic-plugin-visual {
    position: absolute;
    right: 28px;
    top: 30px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 100%);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 18px 30px rgba(0,0,0,.18);
}

.generic-plugin-visual span {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.store-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.store-product-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8a8a84;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.store-product-category span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--products-yellow);
}

.store-product-body h3 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.store-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.store-product-body p {
    margin: 0;
    color: #737373;
    font-size: 16px;
    line-height: 1.6;
}

.store-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
}

.store-product-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-version-pill,
.product-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.product-version-pill {
    background: #f2f2ef;
    color: #626262;
}

.product-status-pill {
    background: #dff3e7;
    color: #397756;
}

.product-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.products-empty[hidden] {
    display: none !important;
}

.products-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 28px 24px;
    border: 1px dashed var(--products-line);
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.products-empty strong {
    font-size: 18px;
    font-weight: 700;
}

.products-empty span {
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
}

.products-custom-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 26px;
    margin-top: 40px;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 74% 50%, rgba(245,186,41,.18), transparent 24%),
        linear-gradient(90deg, #07090d 0%, #101316 54%, #18120a 100%);
    box-shadow: 0 24px 48px rgba(12, 12, 12, .12);
}

.products-custom-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .24;
    pointer-events: none;
}

.products-custom-copy,
.products-hire-button,
.products-custom-art {
    position: relative;
    z-index: 1;
}

.products-custom-copy h2 {
    margin: 12px 0 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(34px, 3vw, 52px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
}

.products-custom-copy p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 18px;
    line-height: 1.6;
}

.products-custom-art {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 210px;
}

.custom-art-card {
    display: grid;
    place-items: center;
    border-radius: 22px;
    box-shadow: 0 22px 36px rgba(0,0,0,.25);
}

.code-card {
    width: 92px;
    height: 92px;
    background: #fff;
    color: #151515;
    font-size: 38px;
    font-weight: 800;
    transform: rotate(-10deg);
}

.gear-card {
    width: 86px;
    height: 86px;
    background: linear-gradient(160deg, #202328, #0d0f13 78%);
    color: #fff;
    transform: translateY(16px);
}

.gear-card svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-custom-art i {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--products-yellow);
    box-shadow: 0 0 28px rgba(245,186,41,.52);
    transform: translateY(-22px);
}

.products-hire-button {
    color: #171717;
    background: var(--products-yellow);
    box-shadow: 0 18px 32px rgba(245, 186, 41, .22);
}

@media (max-width: 1360px) {
    .products-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 650px);
    }

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

    .products-custom-cta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .products-custom-art {
        order: 3;
    }
}

@media (max-width: 1120px) {
    .products-hero {
        padding: 30px;
    }

    .products-hero-inner {
        grid-template-columns: 1fr;
    }

    .products-hero-copy {
        max-width: none;
    }

    .products-trust-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-trust-item + .product-trust-item {
        padding-left: 0;
        border-left: 0;
        padding-top: 18px;
        border-top: 1px solid rgba(17,17,17,.07);
    }

    .products-hero-visual-frame {
        min-height: 380px;
    }

    .product-search {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .products-custom-cta {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 860px) {
    .products-main {
        padding-top: 12px;
    }

    .products-hero,
    .products-browser,
    .products-catalog,
    .products-custom-cta {
        width: 92%;
        max-width: none;
    }

    .products-hero {
        padding: 24px;
        border-radius: 26px;
    }

    .products-hero h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .products-hero-copy > p,
    .products-catalog-head p,
    .products-custom-copy p {
        font-size: 16px;
    }

    .products-toolbar {
        padding: 12px;
        border-radius: 22px;
    }

    .product-filters {
        gap: 10px;
    }

    .product-filter {
        min-height: 44px;
        padding-inline: 16px;
    }

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

    .store-product-visual {
        min-height: 220px;
        padding: 22px;
    }

    .product-preview-window {
        width: 58%;
        left: 22px;
        top: 24px;
    }

    .product-preview-document {
        right: 20px;
        top: 20px;
        width: 36%;
    }

    .ratio-card-scene {
        right: 20px;
        top: 22px;
        gap: 10px;
        padding: 14px;
    }

    .ratio-demo {
        width: 68px;
    }

    .generic-plugin-visual {
        right: 20px;
        top: 22px;
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 640px) {
    .products-hero,
    .products-browser,
    .products-catalog,
    .products-custom-cta {
        width: calc(100% - (var(--page-gutter) * 2));
        max-width: none;
    }

    .products-eyebrow,
    .products-custom-label,
    .store-product-category {
        letter-spacing: .12em;
    }

    .products-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .products-primary-button,
    .products-secondary-button,
    .products-hire-button {
        width: 100%;
    }

    .products-hero-visual-frame {
        min-height: 250px;
    }

    .product-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .product-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .product-search {
        gap: 10px;
        min-height: 58px;
        padding-inline: 14px 8px;
    }

    .product-search-label {
        min-width: 72px;
    }

    .products-catalog-head h2,
    .products-custom-copy h2 {
        font-size: clamp(32px, 11vw, 44px);
    }

    .store-product-body {
        padding: 22px 20px;
    }

    .store-product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-custom-cta {
        padding: 24px;
    }

    .products-custom-art {
        min-width: 0;
    }

    .code-card {
        width: 78px;
        height: 78px;
        font-size: 32px;
    }

    .gear-card {
        width: 74px;
        height: 74px;
    }
}

/* Product thumbnail uploaded from the product detail SEO editor. */
.store-product-visual.has-product-thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    background: #0b0d12;
}

.store-product-visual.has-product-thumbnail::before,
.store-product-visual.has-product-thumbnail::after {
    display: none;
}

.store-product-uploaded-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
