/* Texon-themed inner pages: project detail, checkout, success */

.texon-page {
    padding-top: clamp(32px, 4vw, 56px);
    padding-bottom: var(--section-space);
    background: var(--nav);
}

.texon-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--muted);
}

.texon-breadcrumb a {
    color: var(--accent);
}

.texon-breadcrumb a:hover {
    color: var(--text);
}

.texon-page-head {
    margin-bottom: 32px;
}

.texon-page-head h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text);
    margin: 10px 0 8px;
}

.texon-page-head .eyebrow {
    display: inline-flex;
    background: #ffffff08;
    color: var(--accent);
    border: 1px solid #9bc4d842;
    border-radius: 30px;
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.95px;
}

.texon-checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.texon-checkout-bar .texon-back {
    margin-bottom: 0;
}

.texon-checkout-bar .eyebrow {
    margin: 0;
}

.texon-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 14px;
}

.texon-back:hover {
    color: var(--text);
}

.texon-back svg {
    width: 14px;
    height: 14px;
}

/* Project detail */
.texon-project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-bottom: 40px;
}

.texon-gallery {
    position: sticky;
    top: 96px;
}

.texon-gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #e7edf1;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.texon-gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.texon-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.texon-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: #e7edf1;
    padding: 0;
}

.texon-thumb.is-active,
.texon-thumb:hover {
    border-color: var(--accent);
}

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

.texon-project .featured-category {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.texon-project .featured-category > span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex: none;
}

.texon-project .textlink,
.texon-checkout .textlink,
.texon-success-wrap .textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    color: var(--accent);
}

.texon-project .textlink:hover,
.texon-checkout .textlink:hover,
.texon-success-wrap .textlink:hover {
    color: var(--text);
}

.texon-project .textlink svg,
.texon-checkout .textlink svg,
.texon-success-wrap .textlink svg {
    width: 14px;
    height: 14px;
}

.texon-back svg {
    transform: rotate(180deg);
}

.texon-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 16px;
    letter-spacing: -1px;
}

.texon-price--free {
    color: #8fd4a8;
}

.texon-lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.texon-callout {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: #d1dce6;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.texon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 20px;
}

.texon-tags {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.texon-tags strong {
    color: var(--text);
    font-weight: 500;
}

.texon-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 34px);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.texon-panel h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.texon-prose {
    color: #d2dfe9;
    font-size: 15px;
    line-height: 1.8;
}

.texon-prose p {
    margin: 0 0 1rem;
}

.texon-related-head {
    margin-bottom: 22px;
}

.texon-related-head h2 {
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.03em;
}

/* Checkout */
.texon-checkout-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(22px, 3vw, 36px);
    align-items: start;
}

.texon-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.texon-summary h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 18px;
}

.texon-order-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.texon-order-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.texon-order-item h3 {
    font-size: 16px;
    color: var(--text);
    margin: 0 0 4px;
}

.texon-order-item .project-cat {
    font-size: 10px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.texon-breakdown {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.texon-breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #d1dce6;
}

.texon-breakdown-row--total {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.texon-secure {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    font-size: 13px;
    color: var(--muted);
}

.texon-secure strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.texon-checkout-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: var(--shadow);
}

.texon-checkout-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 18px;
}

.texon-form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.texon-form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.texon-checkout-form .fields label {
    color: #e2ebf2;
}

.texon-checkout-form .fields input,
.texon-checkout-form .fields select,
.texon-checkout-form .fields textarea {
    background: #17293b;
    border: 1px solid #9bc4d83a;
    border-radius: 8px;
    color: var(--text);
    color-scheme: dark;
}

.texon-error {
    color: #f8a8a8;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.texon-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #f8717140;
    background: #3a2228;
    color: #fecaca;
}

.texon-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.texon-payment-option {
    cursor: pointer;
    display: block;
}

.texon-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.texon-payment-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #17293b;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    min-height: 92px;
    display: grid;
    place-items: center;
}

.texon-payment-card img {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
}

.texon-payment-option input:checked + .texon-payment-card {
    border-color: var(--accent);
    background: #1e3850;
    box-shadow: 0 0 0 1px #9bc4d855;
}

.texon-payment-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 6px;
}

.texon-manual-pay {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    color: #d1dce6;
    line-height: 1.6;
}

.texon-manual-pay h4 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 15px;
}

.texon-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #d1dce6;
    line-height: 1.5;
    cursor: pointer;
}

.texon-check input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.texon-check a {
    color: var(--accent);
}

.texon-checkout-form .texon-form-section:has(.texon-check) {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.texon-checkout-form button.pill,
.texon-checkout-form .pill[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 18px 13px 26px;
    min-height: 50px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.texon-checkout-form button.pill .arr,
.texon-checkout-form .pill[type='submit'] .arr {
    display: grid;
    place-items: center;
    margin-left: auto;
}

@media (min-width: 560px) {
    .texon-checkout-form button.pill,
    .texon-checkout-form .pill[type='submit'] {
        width: auto;
        min-width: 260px;
    }
}

/* Success */
.texon-success-wrap {
    min-height: 50vh;
    display: grid;
    place-items: center;
    padding: var(--section-space) var(--gutter);
}

.texon-success-card {
    width: min(560px, 100%);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 52px);
    box-shadow: var(--shadow);
}

.texon-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 700;
}

.texon-success-card h1 {
    font-size: clamp(26px, 3vw, 34px);
    color: var(--text);
    margin: 0 0 12px;
}

.texon-success-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.texon-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

@media (max-width: 950px) {
    .texon-project-grid,
    .texon-checkout-grid {
        grid-template-columns: 1fr;
    }

    .texon-gallery {
        position: static;
    }
}

@media (max-width: 760px) {
    .texon-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .texon-actions .pill {
        width: 100%;
        justify-content: center;
    }
}