.category-page {
    min-height: 64vh;
    padding: 28px 0 88px;
    background: #f8fafc;
    color: #171b23;
}

.category-wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 34px;
    color: #6b7280;
    font-size: 15px;
}

.category-breadcrumb a,
.detail-back {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 28px;
}

.category-heading-icon {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    place-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.category-heading-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

body[data-category="instagram"] .category-heading-icon,
body[data-category="instagram"] .product-image-fallback,
body[data-category="instagram"] .category-product-thumb--fallback {
    background: linear-gradient(135deg, #7b2fbc 0%, #c13584 42%, #e1306c 67%, #f77737 100%);
}

body[data-category="youtube"] .category-heading-icon,
body[data-category="youtube"] .product-image-fallback,
body[data-category="youtube"] .category-product-thumb--fallback {
    background: linear-gradient(145deg, #f29aa2 0%, #e66a76 48%, #bf3447 100%);
}

body[data-category="tiktok"] .category-heading-icon,
body[data-category="tiktok"] .product-image-fallback,
body[data-category="tiktok"] .category-product-thumb--fallback {
    background: linear-gradient(115deg, #25f4ee 0%, #13151a 34%, #13151a 66%, #fe2c55 100%);
}

body[data-category="twitter"] .category-heading-icon,
body[data-category="twitter"] .product-image-fallback,
body[data-category="twitter"] .category-product-thumb--fallback {
    background: linear-gradient(130deg, #101216 0%, #101216 58%, #70d8ff 100%);
}

body[data-category="video-editing"] .category-heading-icon,
body[data-category="video-editing"] .product-image-fallback,
body[data-category="video-editing"] .category-product-thumb--fallback {
    background: linear-gradient(145deg, #173725 0%, #355d28 54%, #70872b 100%);
}

body[data-category="game"] .category-heading-icon,
body[data-category="game"] .product-image-fallback,
body[data-category="game"] .category-product-thumb--fallback {
    background: linear-gradient(135deg, #45328f 0%, #6548b7 54%, #9875e5 100%);
}

.category-kicker {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.category-heading h1 {
    margin: 0;
    color: #151923;
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.category-heading p:last-child {
    margin: 9px 0 0;
    color: #667085;
    font-size: 16px;
}

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

.category-product-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e4e8ef;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .045);
}

.category-product-card:hover {
    border-color: #b8c8e6;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.category-product-card:focus-visible,
.detail-action:focus-visible,
.favorite-button:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

.category-product-thumb {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    overflow: hidden;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.sold-ribbon {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    display: block;
    width: 35%;
    aspect-ratio: 1;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    background: #f20c21;
    color: #fff;
    pointer-events: none;
}

.sold-ribbon > span {
    position: absolute;
    top: 22%;
    left: -27%;
    display: block;
    width: 145%;
    transform: rotate(-45deg);
    color: inherit;
    font-size: clamp(10px, 1.35vw, 18px);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.sold-ribbon--detail {
    width: 27%;
}

.sold-ribbon--detail > span {
    font-size: clamp(20px, 2.6vw, 40px);
}

.sold-ribbon[hidden] {
    display: none !important;
}

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

.category-product-thumb img.category-thumb-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.category-product-copy {
    min-width: 0;
}

.category-product-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #202633;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-product-price {
    display: block;
    margin-top: 9px;
    color: #242a34;
    font-size: 18px;
    font-weight: 800;
}

.category-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 30px 20px;
    border: 1px solid #e4e8ef;
    border-radius: 16px;
    background: #fff;
    color: #667085;
    text-align: center;
}

.category-state a {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
}

.product-detail[hidden],
#productImage[hidden],
#productImageFallback[hidden] {
    display: none !important;
}

.detail-back {
    display: inline-block;
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 700;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: start;
    gap: clamp(32px, 4.2vw, 62px);
}

.product-gallery {
    position: sticky;
    top: 26px;
}

.product-image-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.product-image-thumbs[hidden] {
    display: none !important;
}

.product-image-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.product-image-thumb.is-selected {
    border-color: #2563eb;
}

.product-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-price-note {
    margin: -13px 0 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.guest-order-status {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #bfd3fb;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}

.guest-order-status.is-success {
    border-color: #a7dfbd;
    background: #effaf3;
    color: #176238;
}

.guest-order-status.is-error {
    border-color: #f0b6b6;
    background: #fff3f3;
    color: #9b2525;
}

.checkout-paypay-fields {
    display: grid;
    gap: 9px;
    padding-top: 16px;
}

.checkout-paypay-fields[hidden] {
    display: none !important;
}

.product-image-stage {
    position: relative;
    display: grid;
    min-height: 480px;
    max-height: calc(100vh - 190px);
    overflow: hidden;
    place-items: center;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    background: #fff;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.product-image-fallback {
    display: flex;
    width: 100%;
    min-height: 480px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(145deg, #f8fafc, #eef2ff);
    color: #475569;
    font-size: 24px;
    font-weight: 800;
}

.product-image-fallback img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.product-detail-content {
    min-width: 0;
    padding: 0 0 40px;
}

.product-detail-content > h1 {
    margin: 0 0 14px;
    color: #242832;
    font-size: clamp(26px, 2.4vw, 35px);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #2474d2;
    font-size: 17px;
    font-weight: 650;
}

.product-brand-tag > span:first-child {
    font-size: 16px;
    transform: rotate(45deg);
}

.product-price {
    margin: 24px 0 20px;
    color: #292d34;
    font-size: clamp(30px, 3.1vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
}

.product-detail-actions {
    display: grid;
    grid-template-columns: 58px minmax(130px, 1fr) minmax(110px, .8fr);
    align-items: stretch;
    gap: 10px;
    margin: 0 0 34px;
}

.favorite-button,
.detail-action {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d8df;
    border-radius: 12px;
    background: #fff;
    color: #252b35;
    font: inherit;
    font-size: 17px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.favorite-button svg {
    width: 23px;
    height: 23px;
    fill: transparent;
    stroke: #313843;
    stroke-width: 1.8;
}

.favorite-button[aria-pressed="true"] svg {
    fill: #ff4055;
    stroke: #ff4055;
}

.favorite-button[aria-pressed="true"] {
    border-color: #ffc0c8;
    background: #fff5f6;
}

.detail-action--primary {
    border-color: #ff4055;
    background: #ff4055;
    color: #fff;
}

.detail-action--primary:hover {
    background: #e82f45;
    color: #fff;
}

.detail-action--secondary:hover,
.favorite-button:hover {
    background: #f8fafc;
}

.detail-description,
.product-information {
    margin-top: 32px;
}

.detail-description h2,
.product-information h2 {
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid #e1e4e9;
    color: #515966;
    font-size: 23px;
    font-weight: 800;
}

.detail-description p {
    margin: 20px 0 0;
    color: #3f4651;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.product-information dl {
    margin: 0;
}

.product-information dl > div {
    display: grid;
    grid-template-columns: minmax(130px, .78fr) minmax(0, 1.22fr);
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid #e8eaee;
}

.product-information dt {
    color: #242a33;
    font-size: 16px;
    font-weight: 750;
}

.product-information dd {
    margin: 0;
    color: #515966;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
        gap: 26px;
    }

    .product-image-stage,
    .product-image-fallback {
        min-height: 380px;
    }
}

@media (max-width: 700px) {
    .category-page {
        padding: 18px 0 78px;
    }

    .category-wrap {
        width: min(100% - 28px, 560px);
    }

    .category-breadcrumb {
        gap: 8px;
        margin: 2px 0 22px;
        font-size: 13px;
    }

    .category-heading {
        gap: 14px;
        margin-bottom: 20px;
    }

    .category-heading-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 16px;
    }

    .category-heading-icon img {
        width: 39px;
        height: 39px;
    }

    .category-kicker {
        font-size: 9px;
    }

    .category-heading h1 {
        font-size: 23px;
    }

    .category-heading p:last-child {
        margin-top: 6px;
        font-size: 14px;
    }

    .category-product-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .category-product-card {
        gap: 13px;
        padding: 12px;
        border-radius: 15px;
    }

    .category-product-thumb {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .category-product-copy h2 {
        font-size: 15px;
    }

    .category-product-price {
        margin-top: 6px;
        font-size: 16px;
    }

    .detail-back {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .product-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .product-gallery {
        position: static;
        width: 100%;
    }

    .product-image-stage {
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 1 / 1;
        border-radius: 15px;
    }

    .product-image {
        max-height: none;
    }

    .product-image-fallback {
        min-height: 0;
        height: 100%;
        gap: 14px;
        font-size: 20px;
    }

    .product-image-fallback img {
        width: 100px;
        height: 100px;
    }

    .product-detail-content {
        width: 100%;
        padding-top: 20px;
    }

    .product-detail-content > h1 {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .product-brand-tag {
        font-size: 16px;
    }

    .product-price {
        margin: 19px 0 16px;
        font-size: 34px;
    }

    .product-detail-actions {
        grid-template-columns: 50px minmax(0, 1fr) minmax(0, .88fr);
        gap: 7px;
        margin-bottom: 27px;
    }

    .favorite-button,
    .detail-action {
        min-height: 50px;
        border-radius: 10px;
        font-size: 15px;
    }

    .detail-description,
    .product-information {
        margin-top: 27px;
    }

    .detail-description h2,
    .product-information h2 {
        font-size: 21px;
    }

    .product-information dl > div {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 0;
    }

    .product-information dt,
    .product-information dd,
    .detail-description p {
        font-size: 15px;
    }
}

.purchase-confirmation[hidden] {
    display: none !important;
}

body.product-checkout-view .category-page {
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 36px;
    background: #f8fafc;
}

.checkout-back {
    font: inherit;
    cursor: pointer;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    align-items: start;
    gap: 28px;
}

.checkout-main,
.checkout-summary {
    min-width: 0;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid #e3e7ed;
    border-radius: 16px;
    background: #fff;
}

.checkout-main > h1 {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e4e9;
    color: #202633;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
}

.checkout-product-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e1e4e9;
}

.checkout-product-image {
    width: 98px;
    height: 98px;
    flex: 0 0 98px;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    background: #fff;
    object-fit: cover;
}

.checkout-product-copy {
    min-width: 0;
}

.checkout-product-copy h2 {
    margin: 0 0 9px;
    color: #252b35;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.checkout-product-copy p {
    margin: 0;
    color: #333a45;
    font-size: 16px;
    font-weight: 750;
}

.checkout-section {
    padding: 22px 0;
    border-bottom: 1px solid #e1e4e9;
}

.checkout-section[hidden],
.checkout-input[hidden],
.checkout-extension-option[hidden] {
    display: none !important;
}

.checkout-section h2,
.checkout-summary h2 {
    margin: 0 0 15px;
    color: #505866;
    font-size: 21px;
    font-weight: 800;
}

.checkout-field-label {
    display: block;
    margin: 0 0 8px;
    color: #3c4450;
    font-size: 14px;
    font-weight: 700;
}

.checkout-url-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.checkout-url-label-row .checkout-field-label {
    margin-bottom: 8px;
}

.checkout-extension-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: #3c4450;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.checkout-extension-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #3b82f6;
}

.checkout-extension-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.checkout-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cfd5df;
    border-radius: 9px;
    background: #fff;
    color: #202633;
    font: inherit;
    font-size: 16px;
}

#checkoutQuantity[hidden],
#checkoutQuantityInput[hidden] {
    display: none !important;
}

.checkout-input:disabled {
    background: #f3f5f8;
    color: #525b68;
    cursor: not-allowed;
}

.checkout-input:focus {
    border-color: #3b82f6;
    outline: 3px solid rgba(59, 130, 246, .15);
}

.checkout-help,
.checkout-warning {
    margin: 9px 0 0;
    color: #697386;
    font-size: 13px;
    line-height: 1.65;
}

.checkout-warning {
    color: #9c4b31;
}

.checkout-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.checkout-payment-option {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid #d9dee7;
    border-radius: 10px;
    background: #fff;
    color: #343b46;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-payment-option.is-selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.checkout-payment-option.is-disabled {
    opacity: .62;
    cursor: not-allowed;
}

.checkout-payment-option input {
    margin: 0;
    accent-color: #3b82f6;
    flex: 0 0 auto;
}

.checkout-payment-option img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.checkout-payment-balance-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f8cff, #1f55cf);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.checkout-payment-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.checkout-payment-title {
    line-height: 1.35;
}

.checkout-payment-detail {
    color: #697386;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.checkout-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    border: 0;
    border-radius: 9px;
    background: #ff4055;
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.checkout-submit:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.checkout-message {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.checkout-message:empty {
    display: none;
}

.checkout-message.is-error {
    color: #c52c3e;
}

.checkout-message.is-success {
    color: #147747;
    font-weight: 700;
}

.checkout-message a {
    color: #2563eb;
    font-weight: 700;
}

.checkout-result-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-result-modal[hidden] {
    display: none !important;
}

.checkout-result-modal.is-open {
    display: flex;
}

.checkout-result-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 28, 39, .62);
}

.checkout-result-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: min(84vh, 720px);
    overflow: auto;
    padding: 32px;
    border: 1px solid #e3e7ed;
    border-radius: 16px;
    background: #fff;
    color: #202633;
    box-shadow: 0 20px 70px rgba(12, 20, 35, .28);
    outline: none;
}

.checkout-result-x {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #647085;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.checkout-result-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #e9f8f0;
    color: #15945a;
    font-size: 30px;
    font-weight: 800;
}

.checkout-result-dialog > h2 {
    margin: 0 0 12px;
    color: #15945a;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
}

.checkout-result-message {
    margin: 0;
    color: #303847;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.checkout-result-order {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f6fa;
    color: #3f4959;
    text-align: center;
}

.checkout-result-order strong {
    color: #202633;
    font-size: 18px;
}

.checkout-result-items {
    margin-top: 20px;
}

.checkout-result-items h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.checkout-result-items pre {
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border: 1px solid #e3e7ed;
    border-radius: 10px;
    background: #f8fafc;
    color: #303847;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.checkout-result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.checkout-result-actions button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #d5dbe5;
    border-radius: 9px;
    background: #fff;
    color: #303847;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.checkout-result-actions .checkout-result-close {
    border-color: #ff4055;
    background: #ff4055;
    color: #fff;
}

@media (max-width: 600px) {
    .checkout-result-modal {
        padding: 12px;
    }

    .checkout-result-dialog {
        max-height: 90vh;
        padding: 28px 20px 20px;
    }

    .checkout-result-actions {
        flex-direction: column-reverse;
    }

    .checkout-result-actions button {
        width: 100%;
    }
}

.checkout-summary {
    position: sticky;
    top: 20px;
}

.checkout-summary h2 {
    padding-bottom: 14px;
    border-bottom: 1px solid #e1e4e9;
}

.checkout-summary dl {
    margin: 0;
}

.checkout-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #eceef2;
    color: #424a55;
    font-size: 15px;
}

.checkout-summary dt,
.checkout-summary dd {
    margin: 0;
}

.checkout-summary dd {
    font-weight: 700;
    text-align: right;
}

.checkout-summary .checkout-summary-total {
    color: #252b35;
    font-size: 20px;
    font-weight: 800;
}

.checkout-summary > p {
    margin: 14px 0 0;
    color: #697386;
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 800px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-summary {
        position: static;
        grid-row: 1;
    }

    .checkout-payment-methods {
        grid-template-columns: 1fr;
    }

    .checkout-payment-option {
        min-height: 58px;
    }
}

@media (max-width: 700px) {
    body.product-checkout-view .category-page {
        padding-top: 14px;
        padding-bottom: 84px;
    }

    .checkout-back {
        margin-bottom: 12px;
    }

    .checkout-layout {
        gap: 12px;
    }

    .checkout-main,
    .checkout-summary {
        padding: 18px 16px;
        border-radius: 13px;
    }

    .checkout-product-row {
        gap: 12px;
    }

    .checkout-product-image {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .checkout-product-copy h2 {
        font-size: 16px;
    }

    .checkout-product-copy p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-product-card {
        transition: none;
    }

    .category-product-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-product-card {
        transition: none;
    }
}

/* Marketplace-style product grid and compact category heading */
body[data-category] #header {
    position: static !important;
    top: auto !important;
    transition: none !important;
    backdrop-filter: none !important;
}

body[data-category] #header.scrolled {
    padding: 20px 0 !important;
    border-bottom: 0;
    background: rgba(255, 255, 255, .95);
}

body[data-category] *,
body[data-category] *::before,
body[data-category] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

.category-breadcrumb {
    position: static;
    gap: 9px;
    margin: 0 0 22px;
    color: #aeb5c0;
    font-size: 13px;
    font-weight: 500;
}

.category-breadcrumb a {
    color: #b6ccf5;
}

.category-breadcrumb h1 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
}

.category-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body.category-list-view .category-page {
    min-height: 72vh;
    padding-top: 24px;
    background: #202020;
    color: #f7f7f7;
}

body.category-list-view .category-wrap {
    width: min(1880px, calc(100% - 64px));
}

body.category-list-view .category-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px 24px;
}

body.category-list-view .category-product-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f7f7f7;
    box-shadow: none;
}

body.category-list-view .category-product-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.category-product-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.category-product-link:focus-visible,
.category-list-favorite:focus-visible {
    outline: 3px solid #83b3ff;
    outline-offset: 3px;
}

body.category-list-view .category-product-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 11px;
    background: #343434;
}

body.category-list-view .category-product-thumb--fallback {
    display: grid;
    place-items: center;
}

body.category-list-view .category-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.category-list-view .category-product-thumb img.category-thumb-icon {
    width: 72px;
    height: 72px;
    margin: auto;
    object-fit: contain;
}

body.category-list-view .category-product-price {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-block;
    margin: 0;
    padding: 5px 11px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: clamp(16px, 1.4vw, 22px);
    font-weight: 800;
    line-height: 1.25;
}

body.category-list-view .category-product-copy {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 4px 0;
    color: #f5f5f5;
    font-size: clamp(14px, 1.15vw, 19px);
    font-weight: 550;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-list-favorite {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 6px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 30, 30, .35);
    color: #ec3d57;
    cursor: pointer;
}

.category-list-favorite svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: #fff;
    stroke-width: 1.5;
}

.category-list-favorite[aria-pressed="false"] {
    color: rgba(50, 50, 50, .55);
}

body.category-list-view .category-state {
    border-color: #414141;
    background: #2a2a2a;
    color: #d0d0d0;
}

body.category-list-view .category-state a {
    color: #9ec5ff;
}

.product-gallery {
    position: sticky;
    top: 28px;
    align-self: start;
}

.product-detail-actions {
    margin-bottom: 14px;
}

.detail-description,
.product-information {
    margin-top: 19px;
}

.detail-description p {
    margin-top: 12px;
}

.product-information dl > div[hidden] {
    display: none !important;
}

@media (max-width: 1250px) {
    body.category-list-view .category-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 900px) {
    body.category-list-view .category-wrap {
        width: min(100% - 40px, 760px);
    }

    body.category-list-view .category-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    body.category-list-view .category-product-copy {
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    body.category-list-view .category-page {
        padding: 16px 0 80px;
    }

    body.category-list-view .category-wrap {
        width: calc(100% - 28px);
    }

    .category-breadcrumb {
        gap: 7px;
        margin-bottom: 16px;
        font-size: 12px;
    }

    body.category-list-view .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 11px;
    }

    body.category-list-view .category-product-thumb {
        border-radius: 8px;
    }

    body.category-list-view .category-product-thumb img.category-thumb-icon {
        width: 58px;
        height: 58px;
    }

    body.category-list-view .category-product-price {
        left: 6px;
        bottom: 6px;
        padding: 4px 8px 5px;
        font-size: 16px;
    }

    body.category-list-view .category-product-copy {
        margin: 7px 2px 0;
        font-size: 14px;
        line-height: 1.45;
    }

    .category-list-favorite {
        top: 6px;
        right: 6px;
        width: 35px;
        height: 35px;
        padding: 5px;
    }

    .product-detail-actions {
        margin-bottom: 10px;
    }

    .detail-description,
    .product-information {
        margin-top: 17px;
    }

    .detail-description p {
        margin-top: 10px;
    }
}

/* Keep the product list on the site's existing light surface. */
body.category-list-view .category-page {
    min-height: 0;
    padding-top: 8px;
    background: #f8fafc;
    color: #171b23;
}

body.category-list-view .category-product-card {
    color: #202633;
}

body.category-list-view .category-product-thumb {
    border: 1px solid #e4e8ef;
    background: #fff;
}

body.category-list-view[data-category="instagram"] .category-product-thumb--fallback {
    background: linear-gradient(135deg, #7b2fbc 0%, #c13584 42%, #e1306c 67%, #f77737 100%);
}

body.category-list-view[data-category="youtube"] .category-product-thumb--fallback {
    background: linear-gradient(145deg, #f29aa2 0%, #e66a76 48%, #bf3447 100%);
}

body.category-list-view[data-category="tiktok"] .category-product-thumb--fallback {
    background: linear-gradient(115deg, #25f4ee 0%, #13151a 34%, #13151a 66%, #fe2c55 100%);
}

body.category-list-view[data-category="twitter"] .category-product-thumb--fallback {
    background: linear-gradient(130deg, #101216 0%, #101216 58%, #70d8ff 100%);
}

body.category-list-view[data-category="video-editing"] .category-product-thumb--fallback {
    background: linear-gradient(145deg, #173725 0%, #355d28 54%, #70872b 100%);
}

body.category-list-view[data-category="game"] .category-product-thumb--fallback {
    background: linear-gradient(135deg, #45328f 0%, #6548b7 54%, #9875e5 100%);
}

body.category-list-view .category-product-copy {
    color: #202633;
}

body.category-list-view .category-state {
    border-color: #e4e8ef;
    background: #fff;
    color: #667085;
}

body.category-list-view .category-state a {
    color: #2563eb;
}

.category-hero {
    margin: 10px auto 26px;
    text-align: center;
}

.category-hero .category-kicker {
    margin: 0 0 7px;
    color: #697386;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
}

.category-hero h1 {
    margin: 0;
    color: #202633;
    font-size: clamp(25px, 2.8vw, 32px);
    font-weight: 800;
    line-height: 1.3;
}

.detail-back {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 5px;
    margin: 0 0 16px;
    padding: 7px 13px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    color: #303844;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.detail-back svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.product-detail-view .category-page {
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 18px;
}

body.product-detail-view .product-detail-content {
    padding-bottom: 8px;
}

@media (max-width: 700px) {
    body.category-list-view .category-page {
        padding-top: 5px;
    }

    .category-hero {
        margin: 6px auto 20px;
    }

    .category-hero .category-kicker {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .category-hero h1 {
        font-size: 23px;
    }

    body.product-detail-view .category-page {
        padding-bottom: 18px;
    }

    body.product-detail-view .product-gallery {
        position: static;
        top: auto;
    }
}

.category-hero,
.category-hero .category-kicker,
.category-hero h1 {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}

.category-list-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 14px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.category-selection-back {
    flex: 0 0 auto;
    margin: 0;
}

.category-search-field {
    display: flex;
    width: min(560px, 100%);
    min-height: 48px;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid #d7dce4;
    border-radius: 11px;
    background: #fff;
    color: #687385;
}

.category-search-field svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.category-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202633;
    font: inherit;
}

.category-filter-toolbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
    color: #394252;
}

.category-hide-sold,
.category-sort-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 650;
}

.category-hide-sold input {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
}

.category-sort-control select {
    min-height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid #d7dce4;
    border-radius: 9px;
    background: #fff;
    color: #202633;
    font: inherit;
}

.category-result-count {
    margin-left: auto;
    color: #758093;
    font-size: 13px;
}

@media (min-width: 701px) {
    body.product-detail-view .product-gallery {
        position: sticky;
        top: 28px;
        align-self: start;
    }
}

@media (max-width: 700px) {
    .category-list-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .category-search-field {
        width: 100%;
        margin-left: 0;
    }

    .category-filter-toolbar {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .category-result-count {
        width: 100%;
        margin-left: 0;
    }
}

/* Keep category-page controls in the otherwise empty header area. */
body.category-list-view #gz-header {
    min-height: 0;
}

body.category-list-view .category-page {
    padding-top: 4px;
}

.category-list-topbar {
    display: grid;
    grid-template-columns: max-content max-content minmax(240px, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.category-filter-toolbar {
    min-height: 42px;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
}

.category-search-field {
    width: min(100%, 560px);
    margin-left: 0;
}

.category-result-count {
    white-space: nowrap;
}

@media (min-width: 701px) and (max-width: 1000px) {
    .category-list-topbar {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .category-filter-toolbar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .category-search-field {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 700px) {
    body.category-list-view .category-page {
        padding-top: 2px;
    }

    body.category-list-view #gz-header {
        min-height: 0;
    }

    body.category-list-view .category-wrap {
        width: calc(100% - 24px);
    }

    .category-list-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        margin-bottom: 8px;
    }

    .category-selection-back {
        min-height: 40px;
        padding: 6px 9px;
        font-size: 13px;
        white-space: nowrap;
    }

    .category-search-field {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 0 9px;
        gap: 6px;
    }

    .category-search-field svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .category-filter-toolbar {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        min-width: 0;
        min-height: 38px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .category-hide-sold,
    .category-sort-control {
        gap: 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    .category-hide-sold input {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        margin: 0;
    }

    .category-sort-control select {
        min-width: 0;
        max-width: 142px;
        min-height: 36px;
        padding: 0 21px 0 7px;
        font-size: 12px;
    }

    .category-result-count {
        display: none;
    }

    .category-hero {
        margin: 4px auto 16px;
    }
}

/* Keep category filters grouped with search and aligned to the right. */
body.category-list-view .category-list-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

body.category-list-view .category-selection-back {
    flex: 0 0 auto;
}

body.category-list-view .category-tools-right {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

body.category-list-view .category-filter-toolbar {
    display: flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
}

body.category-list-view .category-search-field {
    width: auto;
    min-width: 180px;
    max-width: 560px;
    flex: 1 1 420px;
    margin: 0;
}

body.category-list-view .category-result-count {
    margin-left: 0;
    white-space: nowrap;
}

.purchase-action-wrap {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: stretch;
}

.purchase-action-wrap .detail-action--primary {
    width: 100%;
}

.member-price-note {
    position: absolute;
    z-index: 2;
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: min(260px, calc(100vw - 40px));
    margin: 0;
    padding: 7px 11px;
    transform: translateX(-50%);
    border-radius: 9px;
    background: #2563eb;
    box-shadow: 0 3px 9px rgba(15, 23, 42, .16);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.member-price-note::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2563eb;
    content: "";
}

.member-price-note[hidden] {
    display: none !important;
}

@media (min-width: 701px) and (max-width: 1000px) {
    body.category-list-view .category-list-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    body.category-list-view .category-selection-back {
        align-self: flex-start;
    }

    body.category-list-view .category-tools-right {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 700px) {
    body.category-list-view .category-list-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 8px;
    }

    body.category-list-view .category-tools-right {
        width: 100%;
        flex: 0 0 auto;
        gap: 5px;
    }

    body.category-list-view .category-filter-toolbar {
        min-height: 38px;
        gap: 5px;
    }

    body.category-list-view .category-hide-sold,
    body.category-list-view .category-sort-control {
        gap: 3px;
        font-size: 10px;
        white-space: nowrap;
    }

    body.category-list-view .category-hide-sold input {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
        margin: 0;
    }

    body.category-list-view .category-sort-control > label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    body.category-list-view .category-sort-control select {
        width: 102px;
        min-width: 0;
        max-width: 30vw;
        min-height: 36px;
        padding: 0 17px 0 6px;
        font-size: 10px;
    }

    body.category-list-view .category-search-field {
        width: auto;
        min-width: 70px;
        min-height: 38px;
        flex: 1 1 auto;
        gap: 4px;
        padding: 0 7px;
    }

    body.category-list-view .category-search-field svg {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    body.category-list-view .category-search-field input {
        font-size: 11px;
    }

    body.category-list-view .category-result-count {
        display: none;
    }

    .purchase-action-wrap {
        min-width: 0;
    }

    .member-price-note {
        bottom: calc(100% + 7px);
        padding: 6px 9px;
        font-size: 12px;
    }
}

/* Keep the product filters directly below the compact site header. */
body[data-category] #gz-header {
    min-height: 0 !important;
}

body[data-category] #gz-header .top-banner {
    display: none !important;
}

body[data-category] #gz-header #header,
body[data-category] #gz-header #header.scrolled {
    padding: 10px 0 !important;
}

body.category-list-view .category-page {
    min-height: 0 !important;
    padding-top: 0 !important;
}

body.category-list-view .category-list-topbar {
    gap: 8px !important;
    margin: 0 0 6px !important;
}

@media (max-width: 700px) {
    body[data-category] #gz-header #header,
    body[data-category] #gz-header #header.scrolled {
        padding: 7px 0 !important;
    }

    body.category-list-view .category-list-topbar {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    body.category-list-view .category-tools-right {
        gap: 4px !important;
    }
}
