.merchandise-page {
    flex: 1;
    padding-top: 56px;
    color: #fff;
    background: transparent;
}

.merchandise-page [v-cloak] {
    display: none;
}

.merchandise-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 24px 72px;
    box-sizing: border-box;
}

.merchandise-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #383838;
}

.merchandise-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.merchandise-page-header p {
    margin: 8px 0 0;
    color: #8f8f91;
    font-size: 13px;
}

.merchandise-panel {
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid #303034;
    border-radius: 8px;
    background: #1e1e20;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.merchandise-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -22px -22px 22px;
    padding: 17px 22px;
    border-radius: 8px 8px 0 0;
    background: #2c2e31;
}

.merchandise-panel-title h2,
.merchandise-panel-title h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.merchandise-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.merchandise-toolbar--between {
    justify-content: space-between;
}

.merchandise-search {
    display: flex;
    flex: 1 1 360px;
    gap: 10px;
}

.merchandise-search .merchandise-input {
    flex: 1 1 auto;
    min-width: 0;
}

.merchandise-input,
.merchandise-select,
.merchandise-textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 5px;
    outline: none;
    background: rgba(12, 12, 12, .7);
    color: #fff;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.merchandise-input:focus,
.merchandise-select:focus,
.merchandise-textarea:focus {
    border-color: #0077ff;
    box-shadow: 0 0 0 2px rgba(0, 119, 255, .14);
}

.merchandise-input::placeholder,
.merchandise-textarea::placeholder {
    color: #6f7072;
}

.merchandise-textarea {
    min-height: 96px;
    resize: vertical;
}

.merchandise-select option {
    background: #1e1e20;
    color: #fff;
}

.merchandise-field {
    margin-bottom: 16px;
}

.merchandise-field > label {
    display: block;
    margin-bottom: 7px;
    color: #d0d0d1;
    font-size: 13px;
    font-weight: 600;
}

.merchandise-btn,
.merchandise-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    box-sizing: border-box;
    border: 1px solid #4b4c4f;
    border-radius: 5px;
    background: #303134;
    color: #d5d5d6;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s, border-color .2s, background-color .2s, opacity .2s;
}

.merchandise-btn:hover,
.merchandise-chip:hover {
    color: #fff;
    border-color: #707174;
    background: #3a3b3f;
}

.merchandise-btn--primary,
.merchandise-chip.is-active {
    border-color: #0077ff;
    background: #0077ff;
    color: #fff;
}

.merchandise-btn--primary:hover,
.merchandise-chip.is-active:hover {
    border-color: #3093ff;
    background: #3093ff;
}

.merchandise-btn--danger {
    border-color: rgba(239, 68, 68, .55);
    background: rgba(127, 29, 29, .3);
    color: #fca5a5;
}

.merchandise-btn[disabled],
.merchandise-chip[disabled] {
    opacity: .42;
    cursor: not-allowed;
    pointer-events: none;
}

.merchandise-filter-label {
    color: #77787a;
    font-size: 12px;
}

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

.merchandise-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #303034;
    border-radius: 8px;
    background: #19191b;
    color: #fff;
    text-decoration: none;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.merchandise-product-card:hover {
    transform: translateY(-3px);
    border-color: #4a4b4f;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .34);
}

.merchandise-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #111113;
}

.merchandise-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.merchandise-product-card:hover .merchandise-product-image img {
    transform: scale(1.035);
}

.merchandise-product-body {
    padding: 15px;
}

.merchandise-product-title {
    margin: 0 0 6px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchandise-product-subtitle {
    min-height: 36px;
    margin: 0 0 13px;
    overflow: hidden;
    color: #858689;
    font-size: 12px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.merchandise-product-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.merchandise-price {
    color: #eda03b;
    font-size: 22px;
    font-weight: 700;
}

.merchandise-price small {
    margin-right: 2px;
    font-size: 13px;
}

.merchandise-muted {
    color: #858689;
    font-size: 12px;
}

.merchandise-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #343539;
    color: #b7b8ba;
    font-size: 11px;
}

.merchandise-badge--sold-out {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(20, 20, 20, .88);
    color: #bdbdbd;
}

.merchandise-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
    gap: 34px;
}

.merchandise-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #303034;
    border-radius: 8px;
    background: #141416;
}

.merchandise-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.merchandise-thumbnails {
    display: flex;
    gap: 9px;
    margin-top: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
}

.merchandise-thumbnail {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #38393c;
    border-radius: 5px;
    background: #141416;
    cursor: pointer;
}

.merchandise-thumbnail.is-active {
    border-color: #0077ff;
    box-shadow: 0 0 0 1px #0077ff;
}

.merchandise-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchandise-detail-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.35;
}

.merchandise-detail-subtitle {
    margin: 0 0 22px;
    color: #929397;
    font-size: 14px;
    line-height: 1.7;
}

.merchandise-skus {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 22px;
}

.merchandise-sku {
    position: relative;
    min-width: 112px;
    padding: 11px 13px;
    border: 1px solid #47484c;
    border-radius: 5px;
    background: #292a2d;
    color: #ddd;
    text-align: left;
    cursor: pointer;
}

.merchandise-sku.is-active {
    border-color: #0077ff;
    box-shadow: inset 0 0 0 1px #0077ff;
    color: #fff;
}

.merchandise-sku.is-sold-out {
    opacity: .42;
    text-decoration: line-through;
    cursor: not-allowed;
}

.merchandise-sku small {
    display: block;
    margin-top: 5px;
    color: #88898c;
    font-size: 10px;
    text-decoration: none;
}

.merchandise-quantity {
    width: 110px;
}

.merchandise-richtext {
    overflow-wrap: anywhere;
    color: #c8c8ca;
    font-size: 14px;
    line-height: 1.8;
}

.merchandise-richtext img,
.merchandise-richtext video,
.merchandise-richtext iframe {
    max-width: 100%;
}

.merchandise-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.merchandise-richtext td,
.merchandise-richtext th {
    padding: 9px;
    border: 1px solid #3a3b3e;
}

.merchandise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.merchandise-item img {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    border-radius: 6px;
    background: #141416;
    object-fit: cover;
}

.merchandise-item-body {
    flex: 1;
    min-width: 0;
}

.merchandise-item-body h3,
.merchandise-item-body p {
    margin: 0 0 6px;
}

.merchandise-address-list,
.merchandise-address-grid {
    display: grid;
    gap: 12px;
}

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

.merchandise-address {
    position: relative;
    display: block;
    padding: 15px;
    border: 1px solid #393a3d;
    border-radius: 6px;
    background: #19191b;
    color: #c9c9cb;
    cursor: pointer;
}

.merchandise-address.is-selected,
.merchandise-address.is-default {
    border-color: #0077ff;
    box-shadow: inset 0 0 0 1px rgba(0, 119, 255, .45);
}

.merchandise-address input[type="radio"] {
    margin-right: 8px;
    accent-color: #0077ff;
}

.merchandise-address-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.merchandise-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.merchandise-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.merchandise-form-grid .is-wide {
    grid-column: 1 / -1;
}

.merchandise-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4c4c6;
    font-size: 13px;
}

.merchandise-checkbox input {
    accent-color: #0077ff;
}

.merchandise-orders {
    display: grid;
    gap: 14px;
}

.merchandise-order-card {
    overflow: hidden;
    border: 1px solid #333438;
    border-radius: 7px;
    background: #19191b;
}

.merchandise-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #303034;
    background: #252629;
    color: #a9aaad;
    font-size: 12px;
}

.merchandise-order-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
}

.merchandise-order-content .merchandise-btn {
    margin-left: auto;
}

.merchandise-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #343539;
    color: #c8c8ca;
    font-size: 11px;
}

.merchandise-status--pending_payment,
.merchandise-status--payment_exception {
    background: rgba(180, 83, 9, .22);
    color: #fbbf24;
}

.merchandise-status--paid,
.merchandise-status--shipped {
    background: rgba(0, 119, 255, .18);
    color: #60a5fa;
}

.merchandise-status--completed {
    background: rgba(5, 150, 105, .18);
    color: #6ee7b7;
}

.merchandise-status--cancelled {
    background: rgba(107, 114, 128, .22);
    color: #b5b8be;
}

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

.merchandise-summary {
    padding: 14px;
    border: 1px solid #343539;
    border-radius: 6px;
    background: #19191b;
}

.merchandise-summary dt {
    margin-bottom: 6px;
    color: #77787b;
    font-size: 11px;
}

.merchandise-summary dd {
    margin: 0;
    color: #e7e7e8;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.merchandise-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.merchandise-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.merchandise-table th,
.merchandise-table td {
    padding: 12px;
    border-bottom: 1px solid #323337;
    color: #bbbcbf;
    font-size: 12px;
    text-align: left;
}

.merchandise-table th {
    background: #252629;
    color: #fff;
    font-weight: 500;
}

.merchandise-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 20px;
}

.merchandise-payment-result {
    min-height: 96px;
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed #3c3d41;
    border-radius: 6px;
    background: #171719;
    color: #bfc0c2;
    text-align: center;
}

.merchandise-payment-result img {
    display: block;
    max-width: 240px;
    max-height: 240px;
    margin: 12px auto 0;
    background: #fff;
}

.merchandise-error {
    margin: 12px 0;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 5px;
    background: rgba(127, 29, 29, .18);
    color: #fca5a5;
    font-size: 13px;
}

.merchandise-notice {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid rgba(0, 119, 255, .35);
    border-radius: 5px;
    background: rgba(0, 119, 255, .1);
    color: #93c5fd;
    font-size: 13px;
}

.merchandise-empty,
.merchandise-loading {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #77787b;
    text-align: center;
}

.merchandise-empty i,
.merchandise-loading i {
    color: #525356;
    font-size: 38px;
}

.merchandise-loading i {
    color: #0077ff;
}

.merchandise-pagination {
    margin-top: 24px;
    color: #bbb;
    text-align: center;
}

.merchandise-pagination a,
.merchandise-pagination strong,
.merchandise-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    margin: 3px;
    padding: 5px 9px;
    border: 1px solid #414247;
    border-radius: 4px;
    background: #252629;
    color: #c7c7c9;
}

.merchandise-pagination strong,
.merchandise-pagination .current {
    border-color: #0077ff;
    background: #0077ff;
    color: #fff;
}

.merchandise-dialog.el-message-box {
    border: 1px solid #3c3d41;
    background: #212224;
}

.merchandise-dialog .el-message-box__title,
.merchandise-dialog .el-message-box__content,
.merchandise-dialog .el-message-box__message {
    color: #e5e5e6;
}

.merchandise-dialog .el-input__inner {
    border-color: #4a4b4f;
    background: #151517;
    color: #fff;
}

@media (min-width: 1280px) {
    .merchandise-page--account-open .merchandise-page-header {
        padding-right: 272px;
    }
}

@media (max-width: 1023px) {
    .merchandise-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchandise-detail-grid,
    .merchandise-payment-grid {
        grid-template-columns: 1fr;
    }

    .merchandise-gallery {
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .merchandise-shell {
        padding: 26px 14px 54px;
    }

    .merchandise-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .merchandise-page-header h1,
    .merchandise-detail-title {
        font-size: 22px;
    }

    .merchandise-panel {
        padding: 16px;
    }

    .merchandise-panel-title {
        margin: -16px -16px 16px;
        padding: 14px 16px;
    }

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

    .merchandise-product-body {
        padding: 12px;
    }

    .merchandise-product-title {
        font-size: 13px;
    }

    .merchandise-price {
        font-size: 18px;
    }

    .merchandise-address-grid,
    .merchandise-form-grid,
    .merchandise-summary-grid {
        grid-template-columns: 1fr;
    }

    .merchandise-form-grid .is-wide {
        grid-column: auto;
    }

    .merchandise-summary[style*="grid-column"] {
        grid-column: auto !important;
    }

    .merchandise-order-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .merchandise-order-content {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .merchandise-order-content .merchandise-btn {
        width: 100%;
        margin-left: 0;
    }

    .merchandise-item img {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 420px) {
    .merchandise-search {
        flex-basis: 100%;
        flex-wrap: wrap;
    }

    .merchandise-search .merchandise-btn,
    .merchandise-toolbar--between > .merchandise-btn {
        width: 100%;
    }

    .merchandise-product-subtitle {
        display: none;
    }

    .merchandise-product-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
