/* seller-module/assets/css/seller-style.css */

/* --- Modal Overlay & Container --- */
.seller-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    /* Darker backdrop for better contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.seller-modal-overlay.show {
    opacity: 1;
}

.seller-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: translateY(30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    font-family: inherit;
    /* Soft top gradient glow */
    background-image: linear-gradient(180deg, rgba(42, 166, 246, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Desktop / small viewport: keep modal inside viewport, form body scrolls */
@media (min-width: 601px) {
    .seller-modal-container {
        max-height: calc(100vh - 32px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .seller-multi-step-modal form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .seller-multi-step-modal .seller-wizard-actions,
    .seller-multi-step-modal #sellerRegistrationMessage {
        flex-shrink: 0;
    }

    .seller-multi-step-modal .seller-scrollable-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
}

.seller-modal-overlay.show .seller-modal-container {
    transform: translateY(0) scale(1);
}

/* --- Header & Form Layout --- */
.seller-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.seller-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.seller-modal-close {
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.seller-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Scrollable Form Content */
.seller-scrollable-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    margin-right: -12px;
}

.seller-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.seller-scrollable-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.seller-scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.seller-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form Sections */
.seller-form-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.seller-form-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

/* --- Form Elements --- */
.seller-form-group {
    margin-bottom: 24px;
}

.seller-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Consent checkbox alignment */
.seller-consent-label {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.seller-consent-text {
    display: inline;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.seller-consent-text a {
    white-space: nowrap;
}

.seller-consent-required {
    margin-left: 4px;
    color: #ef4444;
    font-weight: 700;
}

/* Inline Seller Spotlight toggle under description */
.seller-spotlight-inline {
    margin-top: 10px;
}

.seller-spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.seller-spotlight-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f52a77;
    margin: 0;
}

.seller-spotlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fdf2ff;
    color: #9d174d;
    font-weight: 600;
}

.seller-spotlight-pill i {
    font-size: 14px;
}

.seller-spotlight-note {
    font-weight: 500;
    color: #ec4899;
}

.seller-spotlight-charge-note {
    margin-top: 6px;
    font-size: 12px;
    color: #b45309;
    line-height: 1.5;
}

.seller-form-group input,
.seller-form-group select,
.seller-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
}

.seller-form-group textarea {
    resize: vertical;
}

.seller-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.seller-form-group input::placeholder,
.seller-form-group textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.seller-form-group input:hover,
.seller-form-group select:hover,
.seller-form-group textarea:hover {
    border-color: #94a3b8;
}

.seller-form-group input:focus,
.seller-form-group select:focus,
.seller-form-group textarea:focus {
    border-color: #2aa6f6;
    box-shadow: 0 0 0 4px rgba(42, 166, 246, 0.1);
    outline: none;
}

.seller-form-group .help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

/* Radio Buttons */
.seller-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

.seller-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2aa6f6;
    margin: 0;
    cursor: pointer;
}

/* Checkbox */
.seller-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    line-height: 1.5;
}

.seller-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2aa6f6;
    margin-top: 2px;
    cursor: pointer;
}

.seller-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.seller-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    background: #fff;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seller-gallery-item:active {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.seller-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.seller-gallery-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: #fff !important;
    color: #ef4444 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: all 0.2s ease;
    z-index: 5;
    border: 2px solid #fecaca !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.seller-gallery-item:hover .seller-gallery-item-remove {
    opacity: 1;
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

.seller-gallery-item-remove:hover {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
    transform: scale(1.15);
}

/* jQuery UI Sortable Placeholder */
.gallery-sortable-placeholder {
    border: 2px dashed #2aa6f6;
    border-radius: 8px;
    background: rgba(42, 166, 246, 0.08);
    visibility: visible !important;
}

/* --- OTP Specific --- */
.otp-group input {
    letter-spacing: 16px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid #e2e8f0;
}

.otp-group input:focus {
    letter-spacing: 16px;
    /* maintain spacing */
    border-color: #2aa6f6;
    box-shadow: 0 8px 20px rgba(42, 166, 246, 0.1);
}

.seller-instruction {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #2aa6f6;
}

/* --- Buttons --- */
.seller-form-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.seller-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 14px;
    /* More modern than full pill */
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.seller-btn.primary-btn {
    background: linear-gradient(135deg, rgb(245, 42, 119), rgb(125, 44, 183));
    color: #fff;
    box-shadow: 0 4px 15px rgba(42, 166, 246, 0.25);
    z-index: 1;
}

.seller-btn.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(255, 60, 137), rgb(148, 59, 212));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.seller-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(42, 166, 246, 0.35);
}

.seller-btn.primary-btn:hover::before {
    opacity: 1;
}

.seller-btn.secondary-btn {
    background: #f1f5f9;
    color: #475569;
    width: auto;
    min-width: 120px;
    padding: 16px 32px;
}

.seller-btn.secondary-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

.seller-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Loading Spinner --- */
.seller-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: absolute;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* --- Message Alerts --- */
.seller-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    animation: kcfFadeUp 0.4s ease;
}

.seller-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.seller-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 600px) {
    .seller-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        /* Full screen on mobile */
        max-width: none;
        padding: 40px 24px;
        border-radius: 0;
        transform: translateY(100%);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .seller-multi-step-modal form {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .seller-multi-step-modal .seller-wizard-actions,
    .seller-multi-step-modal #sellerRegistrationMessage {
        flex-shrink: 0;
    }

    .seller-multi-step-modal .seller-scrollable-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .seller-modal-overlay {
        align-items: flex-end;
        /* Spring up from bottom */
    }
}

/* --- Seller Dashboard Main Layout --- */
.kcf-seller-dashboard-wrap {
    display: flex;
    min-height: 80vh;
    background: #f8f9fa;
    max-width: 1400px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.seller-dashboard-locked {
    position: relative;
}

.seller-dashboard-locked > *:not(.seller-dashboard-lock-overlay) {
    filter: blur(3px);
    pointer-events: none;
}

.seller-dashboard-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.seller-dashboard-lock-card {
    max-width: 520px;
    width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 26px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.seller-dashboard-lock-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #fee2e2, transparent 60%), #f97316;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(248, 113, 113, 0.45);
}

.seller-dashboard-lock-icon i {
    font-size: 24px;
}

.seller-dashboard-lock-card h3 {
    margin: 6px 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.seller-dashboard-lock-card p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

.kcf-seller-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 30px 20px;
}

.seller-profile {
    text-align: center;
    margin-bottom: 40px;
}

.seller-avatar img {
    border-radius: 50%;
    border: 3px solid #2aa6f6;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 10px;
}

.seller-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.seller-company {
    font-size: 13px;
    color: #666;
}

.seller-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seller-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.seller-nav-link svg {
    opacity: 0.6;
}

.seller-nav-link:hover,
.seller-nav-link.active {
    background: rgba(42, 166, 246, 0.06);
    color: #2aa6f6;
}

.seller-nav-link:hover svg,
.seller-nav-link.active svg {
    opacity: 1;
}

.seller-nav-link.text-danger {
    color: #dc3545;
}

.seller-nav-link.text-danger:hover {
    background: #fff5f5;
}

.kcf-seller-main {
    flex: 1;
    padding: 40px;
    background: #fff;
}

.seller-tab-content {
    display: none;
}

.seller-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.seller-page-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

/* --- Dashboard Overview Statistics --- */
.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.stat-card.disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    color: #2aa6f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

/* --- Products Table --- */
.seller-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.seller-header-action .seller-page-title {
    margin: 0;
}

.seller-table-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.seller-table {
    width: 100%;
    border-collapse: collapse;
}

.seller-table th {
    background: #fafafa;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.seller-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.seller-table tr:last-child td {
    border-bottom: none;
}

.product-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.product-thumb .no-img {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-live {
    background: #dcfce3;
    color: #15803d;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #b45309;
}

/* --- Custom Form Adjustments --- */
.seller-form-row {
    display: flex;
    gap: 20px;
}

.seller-form-row .half {
    flex: 1;
}

.seller-form-group select,
.seller-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafafa;
    font-family: inherit;
}

.seller-form-group select:focus,
.seller-form-group textarea:focus {
    border-color: #2aa6f6;
    outline: none;
    background: #fff;
}

/* Image Upload UI */
.seller-image-upload-wrap {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    transition: all 0.2s;
    overflow: hidden;
}

.seller-image-upload-wrap input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.seller-image-upload-wrap .upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    cursor: pointer;
}

.seller-image-upload-wrap .upload-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.image-preview-box {
    position: relative;
    padding: 20px;
}

.image-preview-box img {
    max-width: 100%;
    border-radius: 8px;
}

.image-preview-box .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media Queries for Dashboard */
@media (max-width: 991px) {
    .kcf-seller-dashboard-wrap {
        flex-direction: column;
    }

    .kcf-seller-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .seller-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- KYC Verification Layout --- */
.seller-kyc-banner {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid transparent;
}

.seller-kyc-banner strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.seller-kyc-banner p {
    margin: 0;
    font-size: 14px;
}

.notice-warning {
    background: #fff8e6;
    border-color: #f59e0b;
    color: #92400e;
}

.notice-info {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #075985;
}

.notice-success {
    background: #dcfce3;
    border-color: #22c55e;
    color: #14532d;
}

.notice-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.seller-kyc-upload-wrap {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.seller-kyc-upload-wrap input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.seller-kyc-upload-wrap .kyc-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.seller-kyc-upload-wrap .kyc-trigger:hover {
    background: #f9f9f9;
}

.seller-kyc-upload-wrap .kyc-trigger svg {
    flex-shrink: 0;
}

.file-chosen-name {
    padding: 10px 15px;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Featured Product Toggle Button --- */
.seller-feature-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.seller-feature-btn:hover {
    color: #2aa6f6;
    background: rgba(42, 166, 246, 0.06);
}

.seller-feature-btn.active {
    color: #2aa6f6;
}

/* --- Edit Product Button --- */
.seller-action-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-left: 5px;
}

.seller-action-btn:hover {
    color: #fff;
    background: #2aa6f6;
}

/* --- Phase 12: Frontend Single Product Seller Info Box --- */
.seller-product-info-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.seller-info-header h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.seller-info-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seller-info-identity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seller-avatar-wrapper .seller-info-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seller-details-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seller-display-name {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

/* Force links inside the display name to match the text color, overriding theme default pink links */
.seller-display-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.seller-display-name a:hover {
    color: #2aa6f6;
    /* Subtle brand pink ONLY on hover */
}

.seller-uid-badge {
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 500;
}

.seller-info-action {
    margin-top: 5px;
}

.seller-info-social {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-info-social-label {
    font-size: 13px;
    color: #64748b;
}

.seller-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: #25D366;
    /* WhatsApp Green */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
}

.seller-whatsapp-btn i {
    font-size: 1.2rem;
}

.seller-whatsapp-btn:hover {
    background-color: #128C7E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.seller-whatsapp-btn:active {
    transform: translateY(0);
}

.seller-view-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.seller-view-profile-link:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.seller-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.seller-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    font-size: 16px;
}

.seller-social-link--instagram {
    color: #e1306c;
}

.seller-social-link--facebook {
    color: #1877f2;
}

.seller-social-link--twitter {
    color: #111827;
}

.seller-social-link--linkedin {
    color: #0a66c2;
}

.seller-social-link:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.seller-category-filter-dropdown {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
    background-color: white;
}

.seller-storefront-filter-btn:hover {
    background-color: #2aa6f6 !important;
    /* Brand hover */
}

/* Attributes and Variations Enhancements */
.seller-attribute-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.seller-attribute-row:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.remove-attribute {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.remove-attribute:hover {
    transform: scale(1.1);
}

.seller-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.seller-table {
    width: 100%;
    border-collapse: collapse;
}

.seller-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.seller-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.seller-table tr:last-child td {
    border-bottom: none;
}

.seller-input-small {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.seller-input-small:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================= */
/* Enhanced Add Product Tab – Premium UI/UX   */
/* ========================================= */

/* Page Header */
.seller-add-product-header {
    margin-bottom: 28px;
}

.seller-add-product-header .seller-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-add-product-header .seller-page-title svg {
    color: #2aa6f6;
    flex-shrink: 0;
}

.seller-page-subtitle {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 620px;
}

/* Step Progress Indicator */
.seller-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #2aa6f6, #0284c7);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 42, 119, 0.3);
    border-color: rgba(245, 42, 119, 0.2);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: #334155;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 12px;
    margin-bottom: 22px;
    transition: background 0.4s ease;
}

.step-connector.active {
    background: linear-gradient(90deg, #2aa6f6, #0284c7);
}

/* Elevated Section Card */
.seller-section-elevated {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease;
}

.seller-section-elevated:hover {
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Section header with icon */
.seller-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.seller-section-header h4 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.seller-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3b82f6;
}

.seller-section-icon--green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.seller-section-icon--purple {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.seller-section-icon--amber {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
}

/* Field Hints */
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Required star */
.required-star {
    color: #ef4444;
    font-weight: 700;
}

/* Optional badge */
.field-optional {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Info Banner (for variation instructions) */
.seller-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #0c4a6e;
}

.seller-info-banner svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #0284c7;
}

.seller-info-banner code {
    background: rgba(14, 165, 233, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #0369a1;
    font-weight: 600;
}

/* Attribute Action Buttons */
.seller-attr-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.seller-btn--compact {
    padding: 10px 20px !important;
    font-size: 14px !important;
    width: auto !important;
    min-width: auto !important;
    gap: 8px;
    border-radius: 10px !important;
}

/* Upload hint text */
.upload-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Submit Area */
.seller-submit-area {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.seller-submit-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}

.seller-submit-info svg {
    flex-shrink: 0;
}

.seller-btn--submit {
    max-width: 320px;
    gap: 10px;
}

.seller-btn--submit .btn-icon {
    flex-shrink: 0;
}

/* Responsive fixes for mobile */
@media (max-width: 600px) {
    .seller-step-indicator {
        padding: 15px 10px;
    }

    .step-connector {
        width: 30px;
        margin: 0 6px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .seller-section-elevated {
        padding: 18px;
        border-radius: 12px;
    }

    .seller-section-header h4 {
        font-size: 15px;
    }

    .seller-section-icon {
        width: 34px;
        height: 34px;
    }

    .seller-submit-area {
        padding: 18px;
    }

    .seller-attr-actions {
        flex-direction: column;
    }

    .seller-btn--compact {
        width: 100% !important;
    }
}

/* ========================================= */
/* Multi-Step Wizard                         */
/* ========================================= */

/* Wizard Step Containers */
.wizard-step {
    animation: wizardFadeIn 0.3s ease-out;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 8px;
    gap: 16px;
}

.seller-btn--nav {
    width: auto !important;
    min-width: auto !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    gap: 8px;
    border-radius: 12px !important;
    white-space: nowrap;
}

.seller-btn--nav svg {
    flex-shrink: 0;
}

/* Section Description */
.seller-section-desc {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.4;
}

/* Emerald icon variant */
.seller-section-icon--emerald {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

/* Field Validation Error State */
.field-error input,
.field-error select,
.field-error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-error label {
    color: #ef4444 !important;
}

/* Shake Animation */
@keyframes shakeField {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shakeField 0.5s ease;
}

/* Step Indicator – icon inside circles */
.step-circle svg {
    width: 16px;
    height: 16px;
}

/* Review Grid */
.wizard-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.review-card-title {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    gap: 8px;
}

.review-item+.review-item {
    border-top: 1px solid #f1f5f9;
}

.review-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}

.review-value {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* Review section styling */
.seller-review-section {
    border-left: 4px solid #059669;
}

/* Mobile responsiveness for wizard */
@media (max-width: 600px) {
    .wizard-nav {
        flex-direction: column;
        gap: 12px;
    }

    .seller-btn--nav {
        width: 100% !important;
        justify-content: center;
    }

    .wizard-review-grid {
        grid-template-columns: 1fr;
    }

    .review-item {
        flex-direction: column;
        gap: 2px;
    }

    .review-value {
        text-align: left;
    }
}

/* ========================================= */
/* Hierarchical Category Tree Selector       */
/* ========================================= */

.cat-tree-wrapper {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cat-tree-wrapper:focus-within {
    border-color: #2aa6f6;
    box-shadow: 0 0 0 4px rgba(42, 166, 246, 0.1);
}

/* Search bar */
.cat-tree-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.cat-tree-search svg {
    flex-shrink: 0;
}

.cat-tree-search-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px !important;
    padding: 4px 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    color: #334155;
}

.cat-tree-search-input::placeholder {
    color: #94a3b8;
}

/* Scrollable tree area */
.cat-tree-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px 4px;
}

.cat-tree-scroll::-webkit-scrollbar {
    width: 6px;
}

.cat-tree-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cat-tree-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Tree list */
.cat-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-tree-list .cat-tree-list {
    padding-left: 22px;
    display: none;
    border-left: 2px solid #e2e8f0;
    margin-left: 8px;
    margin-top: 2px;
}

.cat-tree-item.expanded>.cat-tree-list {
    display: block;
}

/* Individual item — flex so toggle + label are inline */
.cat-tree-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* The child tree list must take full row width */
.cat-tree-item>.cat-tree-list {
    flex-basis: 100%;
}

/* Toggle arrow button — aggressive reset to override form styles */
.cat-tree-toggle {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 2px !important;
    margin: 0 !important;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.15s ease;
    flex-shrink: 0;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    appearance: none;
    -webkit-appearance: none;
}

.cat-tree-toggle:hover {
    background: #f1f5f9 !important;
    color: #475569;
}

.cat-tree-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

.cat-tree-toggle svg {
    transition: transform 0.25s ease;
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.cat-tree-item.expanded>.cat-tree-toggle svg {
    transform: rotate(90deg);
}

/* Checkbox label row */
.cat-tree-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin: 0 !important;
    font-weight: 400 !important;
    flex: 1;
    min-width: 0;
}

.cat-tree-label:hover {
    background: #f1f5f9;
}

/* Checkbox — reset form level styles */
.cat-tree-checkbox {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    accent-color: #2aa6f6;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
}

/* Category name */
.cat-tree-name {
    font-size: 13px;
    color: #334155;
    flex: 1;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product count badge */
.cat-tree-count {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Selected items bar */
.cat-tree-selected-bar {
    padding: 8px 14px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-tree-selected-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Checked row highlight */
.cat-tree-label:has(.cat-tree-checkbox:checked) {
    background: rgba(245, 42, 119, 0.04);
}

.cat-tree-label:has(.cat-tree-checkbox:checked) .cat-tree-name {
    color: #1e293b;
    font-weight: 600;
}

/* Search highlight - hide non-matching items */
.cat-tree-item.cat-hidden {
    display: none;
}

/* ========================================= */
/* Premium Gallery Dropzone                  */
/* ========================================= */

/* Hide the raw file input */
.gallery-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
}

/* Dropzone container */
.seller-gallery-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(135deg, #fafbff 0%, #f8f9fd 100%);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.seller-gallery-dropzone:hover {
    border-color: #2aa6f6;
    background: linear-gradient(135deg, #fff5f8 0%, #fef1f6 100%);
}

.seller-gallery-dropzone.dropzone-active {
    border-color: #2aa6f6;
    background: linear-gradient(135deg, #fff0f5 0%, #fce7ef 100%);
    border-style: solid;
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(245, 42, 119, 0.1);
}

/* Dropzone icon */
.dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.seller-gallery-dropzone:hover .dropzone-icon {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #fce7ef, #fdd5e4);
    color: #2aa6f6;
}

.seller-gallery-dropzone.dropzone-active .dropzone-icon {
    transform: translateY(-6px) scale(1.05);
    background: linear-gradient(135deg, #fdd5e4, #fbc5d4);
    color: #2aa6f6;
}

/* Text */
.dropzone-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.dropzone-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px;
}

.dropzone-browse-link {
    color: #2aa6f6;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dropzone-formats {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Preview Header Bar */
.gallery-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 10px;
    padding: 0 4px;
}

.gallery-count-badge {
    font-size: 13px;
    font-weight: 700;
    color: #2aa6f6;
    background: rgba(245, 42, 119, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.gallery-sort-hint {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Enhanced gallery grid */
.seller-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    min-height: 0;
}

/* Enhanced gallery item */
.seller-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f1f5f9;
    border: 2px solid transparent;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.seller-gallery-item:hover {
    border-color: #2aa6f6;
    box-shadow: 0 4px 12px rgba(245, 42, 119, 0.15);
    transform: translateY(-2px);
}

.seller-gallery-item:active {
    cursor: grabbing;
    transform: scale(0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

/* Remove button — overrides consolidated above */
.seller-gallery-item-remove svg {
    pointer-events: none;
    flex-shrink: 0;
}

.seller-gallery-item:hover .seller-gallery-item-remove {
    opacity: 1;
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

.seller-gallery-item-remove:hover {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
    transform: scale(1.15);
}

/* Sort placeholder */
.gallery-sortable-placeholder {
    background: rgba(245, 42, 119, 0.06);
    border: 2px dashed #2aa6f6;
    border-radius: 12px;
    aspect-ratio: 1;
}

/* Item index badge */
.gallery-item-index {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Mobile */
@media (max-width: 600px) {
    .seller-gallery-dropzone {
        padding: 24px 16px;
    }

    .seller-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .gallery-preview-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}
/* ========================================= */
/* Pricing Tab Enhancements                  */
/* ========================================= */

.seller-form-group.third {
    width: 100%;
}

@media (min-width: 768px) {
    .seller-form-group.third {
        width: calc(33.33% - 10px);
    }
}

.discount-pills {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.discount-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discount-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.discount-pill.active {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* Featured product banner in pricing step */
.seller-featured-banner {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e0e7ff;
    background: radial-gradient(circle at top left, rgba(245, 42, 119, 0.06), transparent 55%), #f9fafb;
}

.seller-featured-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.seller-featured-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.seller-featured-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f52a77;
    margin: 0;
}

.seller-featured-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(248, 113, 113, 0.25);
}

.seller-featured-chip i {
    font-size: 14px;
}

.seller-featured-subtext {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.seller-featured-note {
    margin: 2px 0 0;
    font-size: 12px;
    color: #b45309;
}

.seller-featured-dates .seller-form-group.third {
    width: 100%;
}

@media (min-width: 768px) {
    .seller-featured-dates .seller-form-group.third {
        width: calc(33.33% - 10px);
    }
}

/* --- Terms & Privacy Modal Styles --- */
.terms-privacy-modal {
    z-index: 100000; /* Above the registration modal */
    background: rgba(15, 23, 42, 0.7);
}

.seller-terms-container {
    max-width: 600px;
    padding: 40px;
}

.terms-scrollable-content {
    max-height: 50vh;
    padding-right: 16px;
    margin-bottom: 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 24px;
}

.terms-section h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.terms-modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 0;
}
