﻿/*
Theme Name: 51EA SoftSale
Theme URI: https://51ea.local/
Author: 51EA
Description: WordPress theme shell for the 51EA software resource and service site.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: softsale
*/

.wp-main {
    min-height: 56vh;
}

.wp-content {
    max-width: 1180px;
}

.wp-content .panel {
    margin-bottom: 22px;
}

.entry-content > * + * {
    margin-top: 16px;
}

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    padding: 0;
}

.woocommerce .products li.product {
    list-style: none;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    padding: 18px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
    background: #f97316;
    color: #fff;
    border-radius: 999px;
    border: 0;
    padding: 12px 18px;
    font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover {
    background: #ea580c;
    color: #fff;
}

.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce .woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    padding: 18px;
}

.woocommerce .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
}

.woocommerce .woocommerce-MyAccount-navigation li {
    list-style: none;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.woocommerce .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: 0;
}

.woocommerce .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 4px;
    color: #0f172a;
    font-weight: 700;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 10px;
    padding: 10px 12px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 14px;
}

.woocommerce .related.products,
.woocommerce .woocommerce-additional-fields {
    display: none !important;
}

.woocommerce div.product .product_meta {
    display: none !important;
}

.toolbar,
.product-card .specs,
.product-card .card-body > p.muted {
    display: none !important;
}

.woocommerce-checkout form.checkout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #172033;
}

.woocommerce-checkout #payment {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(11, 31, 58, .06);
    overflow: hidden;
    color: #172033;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
    padding: 18px !important;
}

.woocommerce-checkout #payment ul.payment_methods > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods > li > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b1f3a;
    font-size: 16px;
    font-weight: 900;
}

.woocommerce-checkout #payment div.payment_box {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #172033 !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.ea51-payment-intro,
.ea51-manual-payment-flow,
.ea51-payment-reference,
.ea51-qr-card {
    font-family: inherit;
}

.ea51-payment-intro {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #ffe0bd;
    border-radius: 14px;
    background: #fff8ef;
    color: #4f5b70;
}

.ea51-payment-intro p {
    margin: 0;
}

.ea51-manual-payment-flow {
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #e5e9f2;
    border-radius: 16px;
    background: #fff;
    color: #172033;
}

.ea51-manual-payment-flow h3,
.ea51-qr-card h3 {
    margin: 0 0 14px;
    color: #0b1f3a;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.ea51-payment-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.ea51-payment-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #f6f8fc;
}

.ea51-payment-step span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0b1f3a;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ea51-payment-step strong {
    color: #0b1f3a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
}

.ea51-manual-payment-flow p,
.ea51-qr-card p {
    margin: 0;
    color: #5d687a;
}

.ea51-payment-reference {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    background: #eef4ff;
    color: #0b1f3a;
}

.ea51-reference-label {
    margin-bottom: 6px;
    color: #31415a;
    font-size: 14px;
    font-weight: 800;
}

.ea51-reference-code {
    display: block;
    color: #07162b;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .18em;
}

.ea51-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0;
    align-items: stretch;
}

.ea51-qr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 22px 22px 20px;
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ea51-qr-card--support {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ea51-qr-card h3 {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5e9f2;
    color: #0b1f3a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    text-align: left;
}

.ea51-qr-media {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 20px 0 16px;
}

.ea51-qr-card img {
    width: auto;
    max-width: min(100%, 300px);
    max-height: 340px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
}

.ea51-qr-card--support img {
    max-width: min(100%, 300px);
    max-height: 320px;
    padding: 8px;
    border: 1px solid #e5e9f2;
    box-shadow: 0 12px 28px rgba(11, 31, 58, .08);
}

.ea51-qr-card p {
    min-height: 58px;
    margin: auto 0 0;
    color: #5d687a;
    text-align: center;
}

.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order {
    min-width: 118px;
    background: linear-gradient(135deg, #ff8a1f, #ff6b00) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 13px 22px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 24px rgba(255, 107, 0, .2);
}

.woocommerce div.product .softsale-product-cover {
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: #07162b;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.woocommerce div.product .softsale-product-cover__image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    margin: 0 auto;
    background: #07162b;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 34px;
    padding-top: 18px;
    color: #8ea3be;
    font-size: 13px;
}

.footer-legal nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal a {
    display: inline-block;
    margin: 0;
    color: #9fb4d2;
    font-weight: 700;
}

.footer-risk {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #0b1d35;
    border: 1px solid rgba(126,165,216,.12);
    color: #7f92ad;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 760px) {
    .woocommerce table.shop_table {
        display: block;
        overflow-x: auto;
    }

    .ea51-payment-steps {
        grid-template-columns: 1fr;
    }

    .ea51-qr-card {
        min-height: auto;
    }

    .ea51-qr-media {
        min-height: 260px;
    }

    .footer-legal {
        display: block;
    }

    .footer-legal nav {
        margin-top: 12px;
        gap: 16px;
    }

    .footer-risk {
        text-align: left;
    }
}

/* 51EA fintech dark surfaces for WordPress and WooCommerce */
body {
    color: #f4f7fb;
    background:
        radial-gradient(circle at 10% 8%, rgba(59, 130, 246, .26), transparent 30%),
        radial-gradient(circle at 82% 2%, rgba(34, 197, 94, .12), transparent 34%),
        radial-gradient(circle at 76% 48%, rgba(6, 182, 212, .12), transparent 31%),
        linear-gradient(180deg, #07111f 0%, #08101d 42%, #050913 100%);
}

.wp-main,
.wp-content {
    background: transparent;
}

.wp-content .panel,
.woocommerce .products li.product,
.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce div.product,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.ea51-reference-panel,
.ea51-payment-steps,
.ea51-qr-card {
    color: #f4f7fb;
    background: linear-gradient(180deg, rgba(17, 31, 53, .84), rgba(9, 20, 36, .78));
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .26);
    backdrop-filter: blur(18px);
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce label,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce .woocommerce-MyAccount-navigation a,
.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.ea51-payment-step strong,
.ea51-qr-card h3 {
    color: #f8fbff;
}

.woocommerce p,
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce table.shop_table td,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-product-details__short-description,
.ea51-payment-step span,
.ea51-qr-card p {
    color: #a7b4c8;
}

.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce .woocommerce-MyAccount-navigation li,
.woocommerce .woocommerce-tabs ul.tabs li,
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.payment_box,
.ea51-reference-panel,
.ea51-qr-card,
.ea51-qr-card h3 {
    border-color: rgba(255, 255, 255, .12) !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #f4f7fb;
}

.woocommerce input.input-text::placeholder,
.woocommerce textarea::placeholder {
    color: #7f8fa5;
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box {
    background: linear-gradient(180deg, rgba(17, 31, 53, .84), rgba(9, 20, 36, .78)) !important;
    color: #f4f7fb !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(17, 31, 53, .84) !important;
}

.ea51-payment-notice,
.ea51-risk-check {
    background: rgba(255, 138, 31, .1);
    border-color: rgba(255, 138, 31, .28);
    color: #f4d1ad;
}

.ea51-payment-step,
.ea51-reference-panel {
    background: rgba(147, 197, 253, .08);
}

.ea51-reference-code {
    color: #fff;
}

.ea51-qr-card {
    background: linear-gradient(180deg, rgba(17, 31, 53, .84), rgba(9, 20, 36, .78));
}

.ea51-qr-card img {
    background: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    color: #f4f7fb;
    background: rgba(17, 31, 53, .88);
    border-color: rgba(147, 197, 253, .24);
}

.woocommerce a,
.woocommerce .woocommerce-MyAccount-navigation a:hover,
.woocommerce .woocommerce-MyAccount-navigation .is-active a {
    color: #bfdbfe;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order {
    background: linear-gradient(135deg, #ff8a1f, #ff6b00) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(255, 107, 0, .26);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover {
    background: linear-gradient(135deg, #ff9b3d, #ff6b00) !important;
}

.woocommerce div.product {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 40px 42px;
}

.woocommerce div.product div.images,
.woocommerce div.product .softsale-product-cover,
.woocommerce div.product .woocommerce-tabs {
    display: none !important;
}

.woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.woocommerce div.product .product_title {
    max-width: 940px;
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: 0;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    margin: 0 0 16px;
    color: #f8fbff;
    font-size: 22px;
    font-weight: 900;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    max-width: 880px;
    margin: 0;
    color: #a7b4c8;
    font-size: 16px;
    line-height: 1.8;
}

.softsale-resource-description,
.ea51-direct-download-box,
.ea51-member-upgrade-box {
    margin: 26px 0 0;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 31, 53, .84), rgba(9, 20, 36, .78));
    box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
}

.softsale-resource-description h2,
.ea51-member-upgrade-box h3 {
    margin: 0 0 18px;
    color: #f8fbff;
    font-size: 24px;
    line-height: 1.25;
}

.softsale-resource-description__body {
    color: #a7b4c8;
    font-size: 16px;
    line-height: 1.9;
}

.softsale-resource-description__body h2,
.softsale-resource-description__body h3 {
    color: #f8fbff;
    letter-spacing: 0;
}

.softsale-resource-description__body h2:first-child {
    margin-top: 0;
}

.softsale-resource-description__body .woocommerce-info {
    margin: 0 0 24px;
    color: #dbeafe;
    background: rgba(147, 197, 253, .08);
    border-color: rgba(147, 197, 253, .24);
}

/* Product listing polish */
.product-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card .card-body {
    gap: 0;
}

.product-card .tag.orange {
    width: max-content;
    min-height: 34px;
    align-items: center;
}

.product-card h3 {
    min-height: 86px;
    align-items: flex-start;
}

.product-card .meta {
    min-height: 38px;
    margin-top: 0 !important;
    align-items: center;
}

.product-card .price {
    min-height: 50px;
}

.product-card .card-body > .btn {
    display: flex !important;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 13px 18px;
    font-size: 15px;
}

.product-card .card-body > .btn + .btn {
    margin-top: 12px !important;
    margin-left: 0 !important;
}

/* Single product hero with optional right-side artwork */
.woocommerce div.product div.summary {
    position: relative;
}

.woocommerce div.product div.summary::after {
    content: "";
    display: block;
    clear: both;
}

.woocommerce div.product div.summary .softsale-product-cover {
    display: flex !important;
    float: right;
    align-items: center;
    justify-content: center;
    width: min(36%, 420px);
    min-width: 320px;
    aspect-ratio: 4 / 3;
    margin: 0 0 28px 42px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 72% 18%, rgba(59, 130, 246, .18), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 53, .94), rgba(7, 17, 31, .9));
}

.woocommerce div.product div.summary .softsale-product-cover__image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.woocommerce div.product div.summary .softsale-product-cover__empty {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce div.product .product_title,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .woocommerce-product-details__short-description {
    overflow-wrap: anywhere;
}

.page-title .breadcrumb {
    font-size: 15px;
    line-height: 1.7;
}

.page-title p {
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 860px) {
    .woocommerce div.product div.summary .softsale-product-cover {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 24px;
    }

    .product-card h3 {
        min-height: 0;
    }
}

.ea51-direct-download-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ea51-direct-download-box p {
    margin: 0;
}

.ea51-direct-download-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px !important;
    padding: 13px 22px !important;
    font-weight: 900 !important;
}

.ea51-member-free-price {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff4e8;
    color: #ff7a00;
    font-weight: 900;
    padding: 6px 12px;
    font-size: 18px;
}

/* 51EA checkout dark-surface refinements */
.woocommerce-checkout .ea51-payment-intro,
.woocommerce-checkout .ea51-manual-payment-flow,
.woocommerce-checkout .ea51-payment-reference,
.woocommerce-checkout .ea51-risk-confirmation,
.woocommerce-checkout #payment div.payment_box .ea51-payment-intro,
.woocommerce-checkout #payment div.payment_box .ea51-manual-payment-flow,
.woocommerce-checkout #payment div.payment_box .ea51-payment-reference {
    color: #dbeafe !important;
    background: linear-gradient(180deg, rgba(17, 31, 53, .90), rgba(9, 20, 36, .84)) !important;
    border: 1px solid rgba(147, 197, 253, .22) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .20) !important;
}

.woocommerce-checkout .ea51-payment-intro,
.woocommerce-checkout #payment div.payment_box .ea51-payment-intro {
    border-color: rgba(255, 138, 31, .30) !important;
    background: rgba(255, 138, 31, .08) !important;
}

.woocommerce-checkout .ea51-payment-intro p,
.woocommerce-checkout .ea51-manual-payment-flow p,
.woocommerce-checkout .ea51-payment-reference,
.woocommerce-checkout .ea51-reference-label,
.woocommerce-checkout .ea51-risk-confirmation label,
.woocommerce-checkout .ea51-risk-confirmation span,
.woocommerce-checkout .ea51-risk-confirmation .woocommerce-form__label,
.woocommerce-checkout #payment div.payment_box .ea51-payment-intro p,
.woocommerce-checkout #payment div.payment_box .ea51-manual-payment-flow p {
    color: #dbeafe !important;
}

.woocommerce-checkout .ea51-manual-payment-flow h3,
.woocommerce-checkout .ea51-payment-step strong,
.woocommerce-checkout .ea51-reference-label {
    color: #f8fbff !important;
}

.woocommerce-checkout .ea51-payment-step {
    background: rgba(147, 197, 253, .10) !important;
    border-color: rgba(147, 197, 253, .28) !important;
    color: #f8fbff !important;
}

.woocommerce-checkout .ea51-payment-step span {
    color: #ffffff !important;
    background: #0b1f3a !important;
    border: 1px solid rgba(147, 197, 253, .20);
}

.woocommerce-checkout .ea51-reference-code {
    color: #ffffff !important;
    text-shadow: none;
}

.woocommerce-checkout .ea51-risk-confirmation {
    border-color: rgba(255, 138, 31, .34) !important;
    background: rgba(255, 138, 31, .08) !important;
}

.woocommerce-checkout .ea51-risk-confirmation input[type="checkbox"] {
    accent-color: #ff8a1f;
}

/* Final copy and artwork polish */
.hero-51ea .hero-position {
    margin-top: 18px !important;
    font-size: clamp(22px, 2.2vw, 32px) !important;
    font-weight: 850 !important;
    color: #d7e7fa !important;
}

.hero-51ea .hero-slogan {
    margin-top: 20px !important;
    font-size: clamp(42px, 4.5vw, 68px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}

.product-card .cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 244px !important;
    background:
        radial-gradient(circle at 22% 18%, rgba(59, 130, 246, .18), transparent 34%),
        radial-gradient(circle at 86% 92%, rgba(255, 138, 31, .18), transparent 34%),
        linear-gradient(180deg, #0d223a, #07111f) !important;
}

.product-card .cover img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

body .product-card .card-body {
    display: flex !important;
    flex-direction: column !important;
}

body .product-card .card-body > .btn {
    display: flex !important;
    width: 100% !important;
    min-height: 58px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 15px 20px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

body .product-card .card-body > .btn.orange {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

body .product-card .card-body > .btn.ghost,
body .product-card .card-body > .btn.soft,
body .product-card .card-body > .btn.dark {
    margin-top: 0 !important;
}

body .product-card .card-body > .btn + .btn {
    margin-top: 0 !important;
}

/* Account entry: use the 51EA registration form, not WooCommerce's duplicate one. */
.woocommerce-account:not(.logged-in) .entry-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
    order: 1;
    margin: 0 !important;
    min-width: 0;
}

.woocommerce-account:not(.logged-in) .entry-content > .ea51-register-panel {
    order: 2;
    margin: 0 !important;
    min-width: 0;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .u-columns,
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .col2-set {
    display: block !important;
    margin: 0 !important;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .u-column2,
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .col-2 {
    display: none !important;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .u-column1,
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce .col-1 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce h2,
.woocommerce-account:not(.logged-in) .ea51-register-panel h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: clamp(26px, 2.2vw, 34px);
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce form.login,
.woocommerce-account:not(.logged-in) .ea51-register-panel,
.woocommerce-account:not(.logged-in) .ea51-register-panel .card-body {
    height: 100%;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce form.login {
    margin: 0 !important;
    padding: 30px !important;
    border-radius: 18px !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: linear-gradient(180deg, rgba(17, 31, 53, .84), rgba(9, 20, 36, .78)) !important;
}

.woocommerce-account:not(.logged-in) .ea51-register-form input {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: #f4f7fb;
    padding: 11px 12px;
}

.woocommerce-account:not(.logged-in) .ea51-register-form p {
    margin: 0 0 18px;
}

.woocommerce-account:not(.logged-in) .ea51-register-form .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .woocommerce-account:not(.logged-in) .entry-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Account page final layout: login on the left, 51EA registration on the right. */
.entry-content:has(.ea51-account-entry-grid),
.woocommerce-account:not(.logged-in) .entry-content {
    display: block !important;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
    display: none !important;
}

.woocommerce-account:not(.logged-in) .wp-content > .panel > .card-body > h1 {
    display: none;
}

.ea51-account-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
    width: 100%;
}

.ea51-account-entry-grid > .panel {
    margin: 0 !important;
    min-width: 0;
    height: 100%;
}

.ea51-account-entry-grid .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(28px, 3vw, 38px) !important;
}

.ea51-account-entry-grid h2 {
    margin: 14px 0 24px;
    color: #f8fbff;
    font-size: clamp(30px, 2.5vw, 40px);
    line-height: 1.15;
}

.ea51-account-entry-grid .muted {
    color: #b7c4d8;
}

.ea51-login-panel form.login,
.ea51-login-panel form.woocommerce-form-login {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    flex: 1;
}

.ea51-account-entry-grid input.input-text,
.ea51-account-entry-grid input[type="text"],
.ea51-account-entry-grid input[type="email"],
.ea51-account-entry-grid input[type="password"] {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
    margin-top: 8px;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 10px !important;
    color: #f4f7fb !important;
    padding: 11px 13px !important;
}

.ea51-account-entry-grid .form-row,
.ea51-account-entry-grid .ea51-register-form p {
    margin: 0 0 18px !important;
}

.ea51-account-entry-grid label {
    color: #f8fbff !important;
    font-weight: 800;
}

.ea51-account-entry-grid .button,
.ea51-account-entry-grid .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.ea51-account-entry-grid .woocommerce-form-login__submit,
.ea51-account-entry-grid .ea51-register-form .btn {
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 8px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
}

.ea51-account-entry-grid .woocommerce-LostPassword,
.ea51-account-entry-grid .lost_password {
    margin-top: auto !important;
}

.ea51-account-entry-grid .ea51-register-panel .card-body > p.muted:last-child {
    display: none;
}

@media (max-width: 900px) {
    .ea51-account-entry-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

.woocommerce div.product div.summary .softsale-product-cover {
    overflow: hidden !important;
    background:
        radial-gradient(circle at 18% 22%, rgba(59, 130, 246, .18), transparent 35%),
        radial-gradient(circle at 82% 86%, rgba(255, 138, 31, .12), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 53, .96), rgba(7, 17, 31, .94)) !important;
}

.woocommerce div.product div.summary .softsale-product-cover__image {
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 680px) {
    .hero-51ea .hero-position {
        font-size: 18px !important;
    }

    .hero-51ea .hero-slogan {
        font-size: 34px !important;
    }
}

.brand-story.about-positioning {
    display: block !important;
}

.about-positioning-card {
    max-width: none !important;
}

.about-positioning-card h2 {
    max-width: 980px;
}

.about-positioning-card .card-body {
    padding: clamp(28px, 4vw, 48px) !important;
}

.about-positioning-card p {
    max-width: 1040px;
}

