/* Theme category composition, adapted from code.html. */
body.tax-product_cat.term-themes {
    background: #fdfcfb;
}

body.tax-product_cat.term-themes .site-footer {
    margin-top: 0;
}

.km-theme-archive {
    color: #182130;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    padding: 50px 0 74px;
}

.km-theme-archive__inner {
    width: min(calc(100% - 40px), 1136px);
    margin-inline: auto;
}

.km-theme-archive__breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.km-theme-archive__breadcrumb a:hover {
    color: #0b76b8;
}

.km-theme-archive__breadcrumb [aria-current] {
    color: #182130;
    font-weight: 600;
}

.km-theme-archive__intro {
    max-width: 840px;
    margin-bottom: 42px;
}

.km-theme-archive__intro h1 {
    margin: 0;
    color: #182130;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(38px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.km-theme-archive__intro > p {
    max-width: 820px;
    margin: 15px 0 0;
    color: #64748b;
    font-size: 20px;
    line-height: 1.6;
}

.km-theme-archive__compatibility {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.km-theme-archive__compatibility svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 2px;
    color: #16a34a;
}

.km-theme-archive__list {
    display: grid;
    gap: 40px;
}

.km-theme-card {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
    padding: 36px;
    border: 1px solid #dde5ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 12px -4px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.km-theme-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px -20px rgba(15, 23, 42, .18);
}

.km-theme-card__preview,
.km-theme-card__content {
    min-width: 0;
}

.km-theme-card__browser {
    overflow: hidden;
    border: 1px solid #e6e2da;
    border-radius: 12px;
    background: #f7f5f2;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, .08);
}

.km-theme-card__browser-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-bottom: 1px solid #e6e2da;
    background: #f7f5f2;
}

.km-theme-card__browser-dots {
    display: flex;
    gap: 6px;
}

.km-theme-card__browser-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.km-theme-card__browser-address {
    position: absolute;
    left: 50%;
    width: min(42%, 240px);
    padding: 2px 8px;
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid #e6e2da;
    border-radius: 4px;
    background: #fff;
    color: #94a3b8;
    font: 500 10px/1.5 "JetBrains Mono", monospace;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.km-theme-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efece6;
}

.km-theme-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease;
}

.km-theme-card__image:hover img {
    transform: scale(1.01);
}

.km-theme-card__content h2 {
    margin: 0;
    color: #182130;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.km-theme-card__content h2 a:hover {
    color: #0b76b8;
}

.km-theme-card__description {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.65;
}

.km-theme-card__form {
    margin-top: 24px;
}

.km-theme-card__licenses {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.km-theme-card__licenses legend {
    margin-bottom: 12px;
    padding: 0;
    color: #182130;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.km-theme-card__license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.km-theme-card__license {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid #dde5ee;
    border-radius: 8px;
    color: #182130;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease;
}

.km-theme-card__license:hover {
    border-color: #0b76b8;
    background: #f7fbfe;
}

.km-theme-card__license.is-selected {
    border-color: #0b76b8;
    background: #eff7fd;
    font-weight: 600;
}

.km-theme-card__license:has(input:disabled) {
    cursor: not-allowed;
    opacity: .55;
}

.km-theme-card__license input {
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    accent-color: #0b76b8;
}

.km-theme-card__license span {
    white-space: nowrap;
}

.km-theme-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e6e2da;
}

.km-theme-card__price strong {
    color: #182130;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.km-theme-card__price > span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.km-theme-card__actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 25px;
}

.km-theme-card__purchase,
.km-theme-card__demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.km-theme-card__purchase {
    flex: 1;
    border: 1px solid #0b76b8;
    background: #0b76b8;
    box-shadow: 0 3px 8px rgba(11, 118, 184, .13);
    color: #fff;
    cursor: pointer;
}

.km-theme-card__purchase:hover:not(:disabled) {
    border-color: #085f96;
    background: #085f96;
    color: #fff;
    transform: translateY(-1px);
}

.km-theme-card__purchase:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.km-theme-card__demo {
    border: 1px solid #dde5ee;
    background: #fff;
    color: #182130;
}

.km-theme-card__demo:hover:not(.is-disabled) {
    border-color: #cbd5e1;
    background: #f7f5f2;
    color: #182130;
}

.km-theme-card__demo svg {
    width: 16px;
    height: 16px;
    color: #64748b;
}

.km-theme-card__demo.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.km-theme-archive__empty {
    padding: 44px;
    border: 1px solid #dde5ee;
    border-radius: 16px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.km-theme-archive .navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.km-theme-archive .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 12px;
    border: 1px solid #dde5ee;
    border-radius: 8px;
    background: #fff;
}

.km-theme-archive .page-numbers.current {
    border-color: #0b76b8;
    background: #eff7fd;
}

@media (max-width: 1050px) {
    .km-theme-card {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 760px;
        margin-inline: auto;
    }

    .km-theme-card__image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .km-theme-archive {
        padding: 38px 0 56px;
    }

    .km-theme-archive__inner {
        width: min(calc(100% - 32px), 440px);
    }

    .km-theme-archive__intro {
        margin-bottom: 30px;
    }

    .km-theme-archive__intro h1 {
        font-size: 38px;
    }

    .km-theme-archive__intro > p {
        font-size: 16px;
        line-height: 1.6;
    }

    .km-theme-archive__list {
        gap: 24px;
    }

    .km-theme-card {
        gap: 24px;
        padding: 20px;
        border-radius: 16px;
    }

    .km-theme-card__content h2,
    .km-theme-card__price strong {
        font-size: 28px;
    }

    .km-theme-card__license-grid {
        gap: 7px;
    }

    .km-theme-card__license {
        flex-direction: column;
        gap: 4px;
        min-height: 70px;
        padding: 7px 3px;
        font-size: 12px;
    }

    .km-theme-card__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .km-theme-card,
    .km-theme-card__image img,
    .km-theme-card__license,
    .km-theme-card__purchase,
    .km-theme-card__demo {
        transition: none;
    }
}
