.chuan-my-page .my-panel .chuan-merchant-panel {
    display: block !important;
}

.chuan-merchant-panel .merchant-status {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: #fafafa;
    box-shadow: 0 14px 34px rgba(17,24,39,.04);
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-inline-price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #f9fafb !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    color: #111827 !important;
    white-space: nowrap !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-inline-price b {
    font-size: 14px !important;
    font-weight: 900 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-inline-price span {
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-section {
    padding: 20px !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    border-radius: 20px !important;
    background: #fbfbfc !important;
    margin-bottom: 18px !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-section-title,
.chuan-my-page .my-panel .chuan-merchant-panel .merchant-products-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-section-title strong {
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-section-title span {
    color: #9ca3af !important;
    font-size: 11px !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid label {
    display: block !important;
    margin: 0 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid label.full {
    grid-column: 1 / -1 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid label > span {
    display: block !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid input,
.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid textarea {
    width: 100% !important;
    border: 1px solid rgba(0,0,0,.07) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 13px !important;
    outline: none !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid input {
    height: 44px !important;
    padding: 0 14px !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid textarea {
    min-height: 118px !important;
    padding: 13px 14px !important;
}

.chuan-merchant-panel .merchant-status strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.chuan-merchant-panel .merchant-status span {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.chuan-merchant-panel .merchant-status.pending {
    background: #eff6ff;
    border-color: #dbeafe;
}

.chuan-merchant-panel .merchant-status.success {
    background: #ecfdf5;
    border-color: #d1fae5;
}

.chuan-merchant-panel .chuan-merchant-form {
    margin-top: 18px;
}

.chuan-merchant-panel .merchant-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.chuan-merchant-panel .merchant-intro > div,
.chuan-merchant-panel .merchant-products {
    padding: 18px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17,24,39,.035);
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-submit {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 18px !important;
}

.chuan-my-page .my-panel .chuan-merchant-panel .merchant-submit button {
    min-width: 180px !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.chuan-merchant-panel .merchant-intro > div:first-child {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.chuan-merchant-panel .merchant-intro > div:last-child {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.chuan-merchant-panel .merchant-intro strong,
.chuan-merchant-panel .merchant-products-head strong {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.chuan-merchant-panel .merchant-intro p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.7;
}

.chuan-merchant-panel .merchant-cover-field em {
    display: block;
    margin: 8px 0 12px;
    color: #8b95a1;
    font-size: 11px;
    font-style: normal;
}

.chuan-merchant-panel .merchant-cover-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chuan-merchant-panel .merchant-cover-preview {
    width: min(260px, 100%);
    height: 132px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.chuan-merchant-panel .merchant-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chuan-merchant-panel .merchant-upload {
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.chuan-merchant-panel .merchant-upload input {
    display: none;
}

.chuan-merchant-panel .merchant-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.chuan-merchant-panel .merchant-products-head span {
    color: #9ca3af;
    font-size: 11px;
}

.chuan-merchant-panel .merchant-product-list {
    display: grid;
    gap: 10px;
}

.chuan-merchant-panel .merchant-product-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr .8fr .9fr 30px 30px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(0,0,0,.045);
    border-radius: 14px;
    background: #fbfbfc;
}

.chuan-merchant-panel .merchant-product-row input,
.chuan-merchant-panel .merchant-product-row textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    background: #f9fafb;
    padding: 8px 10px;
    color: #111827;
    font-size: 12px;
    outline: none;
}

.chuan-merchant-panel .merchant-product-row input:focus,
.chuan-merchant-panel .merchant-product-row textarea:focus,
.chuan-merchant-panel .chuan-merchant-form input:focus,
.chuan-merchant-panel .chuan-merchant-form textarea:focus {
    background: #fff;
    border-color: rgba(17,24,39,.22);
    box-shadow: 0 0 0 3px rgba(17,24,39,.04);
}

.chuan-merchant-panel .merchant-product-row button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.chuan-merchant-panel .merchant-add-row {
    background: #ecfdf5;
    color: #047857;
}

.chuan-merchant-panel .merchant-remove-row {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .chuan-merchant-panel .merchant-intro {
        grid-template-columns: 1fr;
    }

    .chuan-merchant-panel .merchant-product-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .chuan-merchant-panel .merchant-product-row input,
    .chuan-merchant-panel .merchant-product-row textarea,
    .chuan-merchant-panel .merchant-product-row input:nth-of-type(3),
    .chuan-merchant-panel .merchant-product-row input:nth-of-type(4) {
        grid-column: 1 / -1;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-product-row button {
        width: 100% !important;
        height: 34px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .chuan-plugin-panel-head {
        display: block !important;
        margin-bottom: 16px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-inline-price {
        margin-top: 12px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-field-grid {
        grid-template-columns: 1fr !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-section,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-products,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-intro > div,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-status {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-section-title,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-products-head {
        display: block !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-section-title span,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-products-head span {
        display: block !important;
        margin-top: 6px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-cover-preview {
        width: 100% !important;
        height: 150px !important;
    }

    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-upload,
    .chuan-my-page .my-panel .chuan-merchant-panel .merchant-submit button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Premium Modal Styles */
.chuan-merchant-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}
.chuan-merchant-modal.show {
    display: flex;
}
.chuan-merchant-modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 16px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.chuan-merchant-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chuan-merchant-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}
.chuan-merchant-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s;
}
.chuan-merchant-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.chuan-merchant-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chuan-merchant-modal-body label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0 !important;
}
.chuan-merchant-modal-body label span {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}
.chuan-merchant-modal-body label span .text-danger {
    color: #ef4444;
    margin-left: 2px;
}
.chuan-merchant-modal-body input,
.chuan-merchant-modal-body textarea {
    width: 100% !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    background: #f9fafb !important;
    outline: none !important;
    transition: background-color 0.2s, border-color 0.2s !important;
    box-sizing: border-box !important;
}
.chuan-merchant-modal-body input {
    height: 40px !important;
}
.chuan-merchant-modal-body input:focus,
.chuan-merchant-modal-body textarea:focus {
    background: #fff !important;
    border-color: #111827 !important;
    box-shadow: none !important;
}
.chuan-merchant-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.chuan-merchant-modal-footer button {
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s !important;
}
.chuan-merchant-btn-cancel {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}
.chuan-merchant-btn-cancel:hover {
    background: #e5e7eb !important;
}
.chuan-merchant-btn-confirm {
    background: #111827 !important;
    color: #fff !important;
}
.chuan-merchant-btn-confirm:hover {
    background: #1f2937 !important;
}

/* Product list container and card styling */
.merchant-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 16px !important;
}
.merchant-product-card {
    background: #fbfbfc !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.merchant-product-card:hover {
    border-color: rgba(0,0,0,0.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.merchant-product-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.merchant-product-card-title {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #111827 !important;
}
.merchant-product-card-price {
    background: #ecfdf5 !important;
    color: #047857 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
}
.merchant-product-card-desc {
    font-size: 11px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    word-break: break-all !important;
}
.merchant-product-card-url {
    font-size: 11px !important;
    color: #2563eb !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
}
.merchant-product-card-url:hover {
    text-decoration: underline !important;
}
.merchant-product-card-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px dashed rgba(0,0,0,0.04) !important;
}
.merchant-product-card-btn {
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}
.merchant-product-card-btn-edit {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}
.merchant-product-card-btn-edit:hover {
    background: #e5e7eb !important;
}
.merchant-product-card-btn-del {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.merchant-product-card-btn-del:hover {
    background: #fee2e2 !important;
}

/* Empty state styling */
.merchant-products-empty {
    text-align: center !important;
    padding: 32px 16px !important;
    color: #9ca3af !important;
    font-size: 12px !important;
    background: #fbfbfc !important;
    border: 1px dashed rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
}

/* Styled Add product button */
.merchant-products-add-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}
.merchant-products-add-btn:hover {
    background: #1f2937 !important;
}

.merchant-cover-edit-wrap {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.merchant-cover-edit-wrap:hover {
    transform: scale(1.005);
}
.merchant-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
}
.merchant-cover-placeholder span {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}
.merchant-cover-edit-wrap .chuan-cover-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.merchant-cover-edit-wrap:hover .chuan-cover-edit-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .merchant-products-grid {
        grid-template-columns: 1fr !important;
    }
}
}
