:root {
    --seller-bg: #f2f2f7;
    --seller-card: #ffffff;
    --seller-text: #000000;
    --seller-muted: #8e8e93;
    --seller-border: rgba(60, 60, 67, 0.12);
    --seller-radius: 12px;
    --seller-radius-sm: 10px;
    --seller-radius-lg: 16px;
    --seller-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --seller-blue: #007aff;
    --seller-blue-hover: #0066d6;
    --seller-overlay: rgba(0, 0, 0, 0.4);
    --seller-fill: #e5e5ea;
    --seller-input-glass: rgba(255, 255, 255, 0.88);
    --seller-input-glass-border: rgba(255, 255, 255, 0.95);
    --seller-safe-bottom: env(safe-area-inset-bottom, 0px);
    --seller-safe-top: env(safe-area-inset-top, 0px);
}

.seller-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--seller-bg);
    color: var(--seller-text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.seller-page *,
.seller-page *::before,
.seller-page *::after,
.seller-modal,
.seller-modal *,
.seller-modal *::before,
.seller-modal *::after {
    box-sizing: border-box;
}

.seller-page.seller-with-dock:not(.seller-home-page) {
    background:
        radial-gradient(ellipse 100% 55% at 50% -8%, var(--home-accent-glow, rgba(0, 122, 255, 0.1)), transparent 48%),
        var(--seller-bg);
}

body.seller-modal-open {
    overflow: hidden;
}

.seller-container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--seller-safe-top) 1rem calc(6.25rem + var(--seller-safe-bottom));
}

@media (min-width: 768px) {
    .seller-container {
        max-width: 720px;
        padding: 0 1.5rem calc(3rem + var(--seller-safe-bottom));
    }
}

@media (min-width: 1024px) {
    .seller-container {
        max-width: 960px;
    }
}

.seller-banned-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: calc(0.7rem + var(--seller-safe-top)) 1rem 0.75rem;
    background: #7f1d1d;
    color: #fff7f7;
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.28);
}

.seller-banned-banner.hidden {
    display: none !important;
}

.seller-banned-banner-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    margin-top: 0.05rem;
}

.seller-banned-banner-icon i,
.seller-banned-banner-icon svg {
    width: 1rem;
    height: 1rem;
}

.seller-banned-banner-copy {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.seller-banned-banner-copy strong {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seller-banned-banner-copy span {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 247, 247, 0.86);
}

.seller-banned-banner-copy a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seller-unpublished-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 54;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: calc(0.65rem + var(--seller-safe-top)) 1rem 0.7rem;
    background: #9a3412;
    color: #fff7ed;
    box-shadow: 0 8px 24px rgba(154, 52, 18, 0.22);
}

.seller-unpublished-banner.hidden {
    display: none !important;
}

.seller-unpublished-banner-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
}

.seller-unpublished-banner-icon i,
.seller-unpublished-banner-icon svg {
    width: 1rem;
    height: 1rem;
}

.seller-unpublished-banner-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.1rem;
}

.seller-unpublished-banner-copy strong {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seller-unpublished-banner-copy span {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 247, 237, 0.88);
}

.seller-unpublished-banner-action {
    flex-shrink: 0;
    border-radius: 999px;
    background: #fff;
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
}

.seller-page.seller-has-unpublished-banner .seller-container {
    padding-top: var(--seller-unpublished-offset, 4.25rem);
}

.seller-page.seller-has-banned-banner .seller-container {
    padding-top: var(--seller-banned-offset, 4.75rem);
}

@media (min-width: 768px) {
    .seller-page.seller-has-banned-banner .seller-container {
        padding-top: var(--seller-banned-offset, 4.75rem);
    }
}

/* Header */
.seller-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 0 1.25rem;
}

.seller-back-btn {
    position: absolute;
    left: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--seller-blue);
    box-shadow: var(--seller-shadow);
    -webkit-tap-highlight-color: transparent;
}

.seller-header h1 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Cards */
.seller-card {
    background: var(--seller-card);
    border-radius: var(--seller-radius-lg);
    box-shadow: var(--seller-shadow);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* Store info */
.seller-store-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.seller-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
}

.seller-logo-wrap {
    flex-shrink: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: var(--seller-radius-lg);
    background: var(--seller-fill);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seller-logo-input {
    display: none;
}

@media (min-width: 381px) {
    .seller-logo-wrap {
        width: 6.5rem;
        height: 6.5rem;
    }
}

.seller-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
    box-sizing: border-box;
}

.seller-change-logo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    min-height: 2.25rem;
    background: var(--seller-fill);
    border: 1px solid var(--seller-border);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--seller-blue);
    cursor: pointer;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s;
}

.seller-change-logo-btn:active {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.35);
}

.seller-change-logo-btn i,
.seller-change-logo-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.seller-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.seller-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--seller-fill);
    border: none;
    border-radius: var(--seller-radius);
    padding: 0.6875rem 0.875rem;
    min-height: 2.75rem;
}

.seller-field i,
.seller-field svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--seller-muted);
}

.seller-field input,
.seller-field select,
.seller-field textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--seller-text);
    outline: none;
    min-width: 0;
    font-family: inherit;
}

.seller-field textarea {
    resize: vertical;
    min-height: 4.5rem;
    line-height: 1.45;
    padding: 0;
}

.seller-field-textarea {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.seller-field-textarea i,
.seller-field-textarea svg {
    margin-top: 0.125rem;
}

.seller-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.25rem;
}

.seller-field-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--seller-muted);
    margin-bottom: 0.25rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.seller-whatsapp-card {
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.1), var(--seller-card) 3.5rem);
}

.seller-visibility-options {
    display: grid;
    gap: 0.5rem;
}

.seller-visibility-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid var(--seller-border);
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    color: inherit;
}

.seller-visibility-option strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.seller-visibility-option small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--seller-muted);
}

.seller-visibility-option-mark {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    box-shadow: inset 0 0 0 3px #fff;
}

.seller-visibility-option.is-selected {
    border-color: #0f172a;
    background: #f8fafc;
}

.seller-visibility-option.is-selected .seller-visibility-option-mark {
    border-color: #0f172a;
    background: #0f172a;
}

.seller-visibility-option.is-locked {
    cursor: not-allowed;
    opacity: 0.55;
}

.seller-visibility-lock {
    margin-top: 0.65rem;
}

.seller-field-required {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #c2410c;
    background: rgba(234, 88, 12, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.seller-field-optional {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.seller-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.seller-field-readonly {
    padding: 0.6875rem 0.875rem;
    border-radius: var(--seller-radius);
    background: rgba(60, 60, 67, 0.06);
    color: var(--seller-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.seller-store-identity {
    margin-bottom: 0.25rem;
}

.seller-store-identity-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .seller-store-identity-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.seller-store-identity-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--seller-radius);
    background: rgba(0, 122, 255, 0.07);
    border: 1px solid rgba(0, 122, 255, 0.12);
}

.seller-store-identity-notice svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    color: var(--seller-blue);
}

.seller-store-identity-notice p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--seller-muted);
}

.seller-store-identity-notice a {
    color: var(--seller-blue);
    font-weight: 500;
    text-decoration: none;
}

.seller-store-identity-notice a:hover {
    text-decoration: underline;
}

.seller-field-hint {
    margin: 0.35rem 0 0;
    padding-left: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--seller-muted);
}

.seller-field-hint a {
    color: var(--seller-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seller-field-hint-block {
    margin-bottom: 0.5rem;
}

.seller-location-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-location-grid .seller-field select:disabled {
    opacity: 0.55;
}

.seller-store-info .seller-fields {
    gap: 0.625rem;
}

/* Social — vertical list */
.seller-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-social-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--seller-fill);
    border: none;
    border-radius: var(--seller-radius);
    padding: 0.75rem 0.875rem;
    min-height: 2.75rem;
}

.seller-social-field input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    outline: none;
    min-width: 0;
}

.seller-social-field .alert-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

/* Section titles (iOS header style) */
.seller-section-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--seller-text);
    letter-spacing: -0.02em;
}

/* Modal categorías */
.seller-categories-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.seller-categories-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--seller-muted);
    padding: 0 0.125rem 0.5rem;
}

.seller-categories-scroll {
    flex: 1;
    min-height: 0;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.75rem;
    padding-right: 0.125rem;
}

.seller-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-cat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0.75rem 0.875rem;
    background: var(--seller-input-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--home-accent-border, var(--seller-border));
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.seller-cat-card-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.seller-cat-order {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.12));
    color: var(--seller-blue);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-cat-info {
    flex: 1;
    min-width: 0;
}

.seller-cat-name {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-cat-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 0.625rem;
}

.seller-cat-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--seller-muted);
}

.seller-cat-meta-item i,
.seller-cat-meta-item svg {
    width: 0.75rem;
    height: 0.75rem;
}

.seller-cat-status {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(52, 199, 89, 0.14);
    color: #248a3d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seller-cat-status.is-hidden {
    background: rgba(142, 142, 147, 0.16);
    color: #636366;
}

.seller-cat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex-shrink: 0;
}

.seller-cat-action {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--seller-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
}

.seller-cat-action i,
.seller-cat-action svg {
    width: 1rem;
    height: 1rem;
}

.seller-cat-action:active {
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.1));
    color: var(--seller-blue);
}

.seller-cat-action-danger:active {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.seller-cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--seller-muted);
}

.seller-cat-empty i,
.seller-cat-empty svg {
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
}

.seller-cat-empty p {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--seller-text);
    margin-bottom: 0.25rem;
}

.seller-cat-empty span {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.seller-categories-add {
    flex-shrink: 0;
    margin-top: 0;
}

.seller-icon-btn {
    background: none;
    border: none;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    color: var(--seller-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
}

.seller-icon-btn:active {
    background: var(--seller-fill);
    color: var(--seller-blue);
}

.seller-icon-btn i,
.seller-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.seller-manage-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--seller-card);
    border: none;
    border-radius: var(--seller-radius-lg);
    box-shadow: var(--seller-shadow);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.seller-manage-btn:active {
    background: #f9f9fb;
}

.seller-manage-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.12));
    color: var(--seller-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-manage-btn-icon i,
.seller-manage-btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.seller-manage-btn-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.seller-manage-btn-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--seller-text);
}

.seller-manage-btn-sub {
    font-size: 0.8125rem;
    color: var(--seller-muted);
}

.seller-manage-btn-chevron {
    color: var(--seller-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.seller-manage-btn-chevron i,
.seller-manage-btn-chevron svg {
    width: 1.125rem;
    height: 1.125rem;
}

.seller-add-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    color: var(--seller-blue);
    cursor: pointer;
    border-radius: var(--seller-radius);
    min-height: 2.75rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.seller-add-btn:active {
    opacity: 0.6;
}

.seller-add-btn-filled {
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.1));
    border: 1.5px solid var(--seller-blue);
    color: var(--seller-blue);
    font-weight: 600;
}

.seller-add-btn-filled:active {
    background: rgba(0, 122, 255, 0.18);
    opacity: 1;
}

.seller-add-btn-filled i,
.seller-add-btn-filled svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Search */
.seller-search-row {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.seller-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--seller-fill);
    border: none;
    border-radius: var(--seller-radius);
    padding: 0.6875rem 0.875rem;
    min-width: 0;
}

.seller-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.search-clear {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(60, 60, 67, 0.1);
    color: var(--seller-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.search-clear i,
.search-clear svg {
    width: 0.875rem;
    height: 0.875rem;
}

.search-clear.hidden,
.pub-search-clear.hidden {
    display: none !important;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Inputs glass — tienda, redes, buscador categorías */
.seller-input-glass {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--seller-input-glass) !important;
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--home-accent-border, var(--seller-input-glass-border)) !important;
    border-radius: 14px !important;
    padding: 0.75rem 0.875rem !important;
    min-height: 3rem;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seller-input-glass:focus-within {
    border-color: var(--seller-blue) !important;
    box-shadow:
        0 0 0 3px var(--home-accent-soft, rgba(0, 122, 255, 0.14)),
        0 2px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.seller-input-glass > i,
.seller-input-glass > svg:first-child {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--seller-blue);
    opacity: 0.75;
    flex-shrink: 0;
}

.seller-input-glass:focus-within > i,
.seller-input-glass:focus-within > svg:first-child {
    opacity: 1;
}

.seller-input-glass input,
.seller-input-glass select {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    min-width: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--seller-text);
}

.seller-input-glass input::placeholder {
    color: var(--seller-muted);
    opacity: 0.8;
}

.seller-input-glass select {
    background-color: transparent;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.25rem;
}

.seller-input-glass-search {
    margin-bottom: 0.875rem;
}

.seller-social-list .seller-input-glass {
    gap: 0.625rem;
}

.seller-filter-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--seller-radius);
    background: var(--seller-fill);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--seller-muted);
    -webkit-tap-highlight-color: transparent;
}

.seller-filter-btn.has-filter {
    border-color: var(--seller-blue);
    color: var(--seller-blue);
}

/* Product cards */
.seller-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Espacio para scroll: el FAB no tapa acciones del último producto */
.seller-page:has(.seller-fab) .seller-products-list::after {
    content: '';
    display: block;
    height: 5.5rem;
    flex-shrink: 0;
    pointer-events: none;
}

.seller-page:has(.seller-fab) .seller-container {
    padding-bottom: calc(10.75rem + var(--seller-safe-bottom));
}

.seller-product-card {
    display: flex;
    align-items: stretch;
    background: var(--seller-card);
    border-radius: var(--seller-radius-lg);
    box-shadow: var(--seller-shadow);
    overflow: hidden;
    min-height: 6.75rem;
}

.seller-product-img {
    width: 5.75rem;
    height: 6.75rem;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--seller-fill);
    padding: 0.35rem;
    box-sizing: border-box;
}

@media (min-width: 381px) {
    .seller-product-img {
        width: 6.5rem;
    }
}

.seller-product-body {
    flex: 1;
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.seller-product-name {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-product-price {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.seller-product-ref {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--seller-blue);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.125rem;
}

.seller-product-meta {
    font-size: 0.75rem;
    color: var(--seller-muted);
    line-height: 1.35;
}

.seller-product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.375rem 0.5rem;
    border-left: 0.5px solid var(--seller-border);
}

.seller-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 0.75rem;
}

.seller-products-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seller-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--seller-muted);
    font-size: 0.875rem;
}

.seller-empty p {
    margin: 0;
}

.seller-create-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 9999px;
    background: var(--seller-blue);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--home-accent-glow, rgba(0, 122, 255, 0.35));
    -webkit-tap-highlight-color: transparent;
}

.seller-create-product i,
.seller-create-product svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2.25px;
}

.seller-create-product--header {
    display: none;
    box-shadow: none;
}

.seller-empty-cta {
    margin-top: 0.875rem;
}

@media (min-width: 768px) {
    .seller-create-product--header {
        display: inline-flex;
    }
}

.seller-fab {
    position: fixed;
    bottom: calc(1.25rem + var(--seller-safe-bottom));
    right: 1.25rem;
    width: auto;
    height: auto;
    min-height: 3.25rem;
    z-index: 40;
}

@media (min-width: 768px) {
    .seller-fab {
        right: calc(50% - 360px + 1.25rem);
    }
}

/* Floating tab bar dock */
.seller-tabbar-dock {
    position: fixed;
    bottom: calc(0.875rem + var(--seller-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    width: calc(100% - 1.5rem);
    max-width: 26rem;
    pointer-events: none;
}

.seller-tabbar {
    display: flex;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.3125rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    pointer-events: auto;
}

.seller-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem 0.25rem;
    min-height: 3.25rem;
    min-width: 0;
    border-radius: 9999px;
    text-decoration: none;
    color: #48484a;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.seller-tabbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.seller-tabbar-item i,
.seller-tabbar-item svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2px;
}

.seller-tabbar-label {
    line-height: 1.1;
}

.seller-tabbar-item.active {
    color: var(--seller-blue);
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.14));
    box-shadow: inset 0 0 0 0.5px var(--home-accent-border, rgba(0, 122, 255, 0.2));
}

.seller-tabbar-item:not(.active):active {
    background: rgba(60, 60, 67, 0.06);
}

.seller-tabbar-share .seller-tabbar-label {
    font-size: 0.625rem;
    white-space: nowrap;
}

.seller-tabbar-share-logo {
    width: 1.375rem;
    height: 1.375rem;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.seller-tabbar-share:not(.is-locked) .seller-tabbar-share-logo {
    animation: share-studio-pulse 2.8s ease-in-out infinite;
}

.seller-tabbar-share:not(.is-locked) {
    animation: share-studio-glow 2.8s ease-in-out infinite;
}

.seller-tabbar-share.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    color: #8e8e93;
    animation: none;
}

.seller-tabbar-share.is-locked .seller-tabbar-share-logo {
    filter: grayscale(1);
    animation: none;
}

@keyframes share-studio-pulse {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.12); }
}

@keyframes share-studio-glow {
    0%, 100% { background: transparent; }
    45% { background: rgba(0, 122, 255, 0.1); }
}

@media (prefers-reduced-motion: reduce) {
    .seller-tabbar-share:not(.is-locked),
    .seller-tabbar-share:not(.is-locked) .seller-tabbar-share-logo {
        animation: none;
    }
}

.seller-page:has(.seller-tabbar-dock) .seller-fab {
    bottom: calc(5.75rem + var(--seller-safe-bottom));
}

@media (min-width: 768px) {
    .seller-page:has(.seller-tabbar-dock) .seller-fab {
        right: calc(50% - 360px + 1.25rem);
    }
}

/* Modals */
.seller-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--seller-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.seller-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#categoriesModal { z-index: 50; }
#sectionModal { z-index: 55; }
#productModal { z-index: 50; }
#variantEditorModal { z-index: 56; }
#filterModal { z-index: 50; }
#confirmModal { z-index: 60; }
#sellerWelcomeModal { z-index: 80; }

.seller-modal-dialog {
    background: var(--seller-card);
    border-radius: var(--seller-radius-lg);
    width: 100%;
    max-width: 22rem;
    max-height: min(88vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(26, 26, 46, 0.2);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.22s ease;
}

.seller-modal-dialog-lg {
    max-width: 26rem;
    max-height: min(90vh, 720px);
}

.seller-modal.active .seller-modal-dialog {
    transform: scale(1) translateY(0);
}

.seller-modal-body {
    overflow-y: auto;
    padding: 0 1.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.seller-modal-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.125rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.seller-modal-header-icon {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--seller-text);
    flex-shrink: 0;
}

.seller-modal-header h3 {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.seller-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #fee2e2;
    border: none;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.seller-modal-back {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(60, 60, 67, 0.08);
    border: none;
    color: var(--seller-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.seller-modal-back i,
.seller-modal-back svg {
    width: 1.25rem;
    height: 1.25rem;
}

.seller-modal-stack .seller-modal-dialog {
    box-shadow: 0 24px 60px rgba(26, 26, 46, 0.28);
}

.seller-modal-header:has(.seller-modal-back) h3 {
    text-align: center;
}

.seller-modal-close i,
.seller-modal-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.seller-form-input {
    width: 100%;
    border: 1px solid var(--seller-border);
    border-radius: var(--seller-radius-sm);
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    margin-bottom: 0.875rem;
    outline: none;
    background: #fff;
    color: var(--seller-text);
}

.seller-form-input:focus {
    border-color: var(--seller-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.seller-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--seller-muted);
    margin-bottom: 0.375rem;
}

.seller-required {
    color: #ff3b30;
    font-weight: 700;
}

.seller-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.seller-form-row .seller-form-input {
    margin-bottom: 0.875rem;
}

.seller-form-row > div .seller-form-label {
    margin-bottom: 0.375rem;
}

.seller-btn-primary {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--seller-blue);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    min-height: 3rem;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.seller-btn-primary:active {
    background: var(--seller-blue-hover);
}

.seller-btn-primary:disabled {
    background: color-mix(in srgb, var(--seller-blue) 40%, transparent);
    cursor: not-allowed;
    opacity: 1;
}

.seller-welcome-dialog {
    max-width: 24rem;
}

.seller-welcome-dialog--hero {
    max-width: 22.5rem;
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(0, 122, 255, 0.22), transparent 58%),
        var(--seller-card);
}

.seller-welcome-hero {
    padding: 0.5rem 0 0.35rem;
    text-align: center;
}

.seller-welcome-knockout {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.seller-welcome-logo {
    filter: url(#sellerWelcomeLogoKnockout);
}

.seller-welcome-mark {
    width: 5.75rem;
    height: 5.75rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: visible;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 45%, rgba(0, 122, 255, 0.16), transparent 68%);
    animation: seller-welcome-glow 2.8s ease-in-out infinite;
}

.seller-welcome-mark img {
    display: block;
    width: 4.75rem;
    height: 4.75rem;
    object-fit: contain;
}

.seller-welcome-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--seller-blue);
}

.seller-welcome-hero #sellerWelcomeTitle {
    margin: 0 0 0.65rem;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.seller-welcome-lead,
.seller-welcome-hint {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--seller-muted, #64748b);
}

.seller-welcome-lead {
    max-width: 20rem;
    margin: 0 auto 1.15rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #3a3a40;
}

.seller-welcome-beats {
    list-style: none;
    margin: 0 auto 0.25rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.seller-welcome-beats li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--seller-text);
}

.seller-welcome-beat-icon {
    width: 1.875rem;
    height: 1.875rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #007aff, #0055cc);
    color: #fff;
}

.seller-welcome-beat-icon i,
.seller-welcome-beat-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.seller-welcome-dialog--hero .seller-modal-body {
    padding-top: 1.35rem;
}

.seller-welcome-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0 0.85rem;
}

.seller-welcome-compact-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.seller-welcome-compact h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seller-welcome-hint {
    font-size: 0.875rem;
}

@keyframes seller-welcome-glow {
    0%, 100% {
        filter: drop-shadow(0 8px 16px rgba(0, 122, 255, 0.22));
    }
    50% {
        filter: drop-shadow(0 12px 26px rgba(0, 122, 255, 0.42));
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-welcome-mark {
        animation: none;
    }
}

.seller-variant-editor-hint {
    margin: 0.75rem 0 0.625rem;
    text-align: center;
}

.seller-variant-editor-hint.hidden {
    display: none;
}

.seller-btn-primary.danger {
    background: #dc2626;
}

.seller-btn-primary.danger:active {
    background: #b91c1c;
}

.seller-btn-secondary {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f3f4f6;
    color: var(--seller-text);
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-top: 0.5rem;
    min-height: 3rem;
}

.seller-btn-ghost {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--seller-muted);
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

/* Product images in modal */
.seller-modal-dialog-product {
    max-width: 26rem;
}

.seller-product-form .seller-form-section {
    margin-bottom: 1.125rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.seller-product-form .seller-form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.seller-form-section-head {
    margin-bottom: 0.75rem;
}

.seller-form-section-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--seller-text);
    margin: 0;
}

.seller-form-section-desc {
    font-size: 0.75rem;
    color: var(--seller-muted);
    line-height: 1.45;
    margin: 0.25rem 0 0;
}

.seller-form-hint-inline {
    margin: -0.5rem 0 0.875rem;
}

.seller-images-section {
    margin-bottom: 0;
}

.seller-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.seller-gallery-empty-hint {
    flex: 1 1 100%;
    font-size: 0.75rem;
    color: var(--seller-muted);
    margin: 0;
    line-height: 1.4;
}

.seller-gallery-item {
    position: relative;
    flex-shrink: 0;
}

.seller-gallery-item img {
    width: 4.75rem;
    height: 4.75rem;
    object-fit: contain;
    background: #f3f4f6;
    padding: 0.2rem;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 1px solid var(--seller-border);
    display: block;
}

.seller-gallery-cover {
    position: absolute;
    left: 0.25rem;
    bottom: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    pointer-events: none;
}

.seller-gallery-add {
    flex-shrink: 0;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 0.75rem;
    border: 1.5px dashed rgba(0, 122, 255, 0.45);
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.08));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    cursor: pointer;
    color: var(--seller-blue);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.seller-gallery-add.is-solo {
    width: 100%;
    height: 5.5rem;
    flex-direction: row;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.seller-gallery-add i,
.seller-gallery-add svg {
    width: 1.25rem;
    height: 1.25rem;
}

.seller-gallery-add span {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.1;
}

.seller-gallery-add.is-solo span {
    font-size: 0.875rem;
}

.seller-gallery-remove {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: none;
    background: #ff3b30;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.seller-gallery-remove i,
.seller-gallery-remove svg {
    width: 0.75rem;
    height: 0.75rem;
}

.seller-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--seller-muted);
}

.seller-toggle-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--seller-blue);
}

.seller-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 0;
    margin-bottom: 0.5rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--seller-muted);
    cursor: pointer;
}

.seller-details-panel {
    display: none;
}

.seller-details-panel.open {
    display: block;
}

/* Filter modal list */
.seller-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.seller-filter-option {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1rem;
    border-radius: var(--seller-radius);
    border: none;
    background: var(--seller-fill);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: -0.01em;
}

.seller-filter-option.active,
.seller-filter-option:active {
    background: rgba(0, 122, 255, 0.12);
    color: var(--seller-blue);
    font-weight: 500;
}

/* Confirm modal */
.seller-visibility-confirm-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem auto 0.85rem;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.seller-visibility-confirm-icon i,
.seller-visibility-confirm-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.seller-visibility-confirm-icon.is-private {
    background: rgba(154, 52, 18, 0.12);
    color: #9a3412;
}

.seller-confirm-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: #ef4444;
}

.seller-confirm-text {
    text-align: center;
    margin-bottom: 1.25rem;
}

.seller-confirm-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.seller-confirm-text p {
    font-size: 0.8125rem;
    color: var(--seller-muted);
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

/* Toasts — top of screen, always visible on mobile */
.admin-toast-container {
    position: fixed;
    top: calc(0.625rem + var(--seller-safe-top));
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    pointer-events: none;
}

.admin-toast-container .admin-toast,
.admin-toast-container .seller-toast {
    pointer-events: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    animation: sellerToastIn 0.3s ease;
}

@keyframes sellerToastIn {
    from {
        opacity: 0;
        transform: translateY(-0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seller-toast {
    min-width: 0;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.seller-toast.success { background: #34c759; }
.seller-toast.error { background: #ff3b30; }
.seller-toast.info { background: var(--seller-blue); }
.seller-toast.warning { background: #ff9500; }

/* Galería e variantes de producto — estilos compartidos modal producto */
.seller-form-hint {
    font-size: 0.75rem;
    color: var(--seller-muted);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.seller-stock-toggle-wrap {
    margin: 0.75rem 0 0.5rem;
}

.seller-stock-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--seller-text);
    cursor: pointer;
}

.seller-stock-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--seller-blue);
}

.seller-stock-field {
    margin-top: 0.5rem;
}

.seller-variants-section {
    margin-bottom: 0;
}

.seller-variants-section .seller-details-toggle {
    font-weight: 700;
    color: var(--seller-text);
    letter-spacing: -0.01em;
    margin-bottom: 0;
    padding: 0.125rem 0 0.25rem;
}

.seller-variants-section .seller-details-panel.open {
    margin-top: 0.5rem;
}

.seller-variants-desc {
    margin: 0 0 0.75rem;
}

.seller-variants-add {
    margin-top: 0.625rem;
}

.seller-variants-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-variant-list-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--seller-border);
    border-radius: 0.875rem;
    background: #fff;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
    transition: background 0.15s ease;
}

.seller-variant-list-item:active {
    background: #f8f9fc;
}

.seller-variant-list-thumb {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    object-fit: contain;
    background: #f3f4f6;
    border: 1px solid var(--seller-border);
    flex-shrink: 0;
    padding: 0.15rem;
    box-sizing: border-box;
}

.seller-variant-list-thumb.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--seller-muted);
}

.seller-variant-list-thumb.is-empty i,
.seller-variant-list-thumb.is-empty svg {
    width: 1.125rem;
    height: 1.125rem;
}

.seller-variant-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.seller-variant-list-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--seller-text);
    line-height: 1.25;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.seller-variant-list-meta {
    font-size: 0.6875rem;
    color: var(--seller-muted);
    line-height: 1.35;
}

.seller-variant-list-chevron {
    width: 1rem;
    height: 1rem;
    color: var(--seller-muted);
    flex-shrink: 0;
}

.seller-variant-editor-media {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(60, 60, 67, 0.08);
}

.seller-variant-editor-media .seller-gallery {
    margin-top: 0.5rem;
}

.seller-variant-editor-media .seller-gallery-item img {
    width: 5.25rem;
    height: 5.25rem;
}

.seller-variant-editor-media .seller-gallery-add {
    width: 5.25rem;
    height: 5.25rem;
}

.seller-variants-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    border-radius: 0.875rem;
    background: #f8f9fc;
    border: 1px dashed rgba(60, 60, 67, 0.14);
}

.seller-variants-empty i,
.seller-variants-empty svg {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--seller-muted);
    margin-bottom: 0.25rem;
}

.seller-variants-empty p {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--seller-text);
}

.seller-variants-empty span {
    font-size: 0.75rem;
    color: var(--seller-muted);
    line-height: 1.35;
}

.seller-variant-card {
    border: 1px solid var(--seller-border);
    border-radius: 0.875rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
}

.seller-variant-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    background: #f8f9fc;
    border-bottom: 1px solid rgba(60, 60, 67, 0.08);
}

.seller-variant-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    min-width: 0;
}

.seller-variant-card-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--seller-text);
    letter-spacing: -0.01em;
}

.seller-variant-card-summary {
    font-size: 0.6875rem;
    color: var(--seller-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 8rem;
}

.seller-variant-delete {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.seller-variant-delete i,
.seller-variant-delete svg {
    width: 0.875rem;
    height: 0.875rem;
}

.seller-variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.625rem;
    padding: 0.625rem;
}

.seller-variant-field label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--seller-muted);
    margin-bottom: 0.25rem;
}

.seller-variant-input {
    margin-bottom: 0 !important;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
}

.seller-variant-media {
    padding: 0 0.625rem 0.625rem;
}

.seller-variant-media-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--seller-muted);
    margin-bottom: 0.375rem;
}

.seller-variant-media-label em {
    font-style: normal;
    opacity: 0.85;
}

.seller-variant-images {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

.seller-variant-no-img {
    font-size: 0.6875rem;
    color: var(--seller-muted);
    flex-shrink: 0;
}

.seller-variant-thumb {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    background: #f3f4f6;
    padding: 0.15rem;
    box-sizing: border-box;
    border-radius: 0.375rem;
    border: 1px solid var(--seller-border);
    flex-shrink: 0;
}

.seller-variant-thumb.is-pending {
    opacity: 0.85;
    border-style: dashed;
}

.seller-variant-add-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    border: 1px dashed rgba(0, 122, 255, 0.4);
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.08));
    color: var(--seller-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.seller-variant-add-img i,
.seller-variant-add-img svg {
    width: 0.875rem;
    height: 0.875rem;
}

.seller-variant-badge {
    font-size: 0.5625rem;
    color: var(--seller-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    background: var(--home-accent-soft, rgba(0, 122, 255, 0.12));
}

.seller-color-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-color-swatch-preview {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: var(--seller-fill, #f2f2f7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.seller-color-swatch-preview.is-empty {
    background: repeating-linear-gradient(
        45deg,
        #f2f2f7,
        #f2f2f7 4px,
        #e5e5ea 4px,
        #e5e5ea 8px
    );
}

.seller-color-select {
    flex: 1;
    min-width: 0;
}

.seller-variant-color-field .seller-color-field {
    margin-top: 0;
}

.seller-variant-color-field .seller-color-swatch-preview {
    width: 1.75rem;
    height: 1.75rem;
}

/* Plan summary y downgrade */
.seller-plan-banner {
    background: rgba(255, 149, 0, 0.12);
    border: 1px solid rgba(255, 149, 0, 0.25);
    color: #9a3412;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.875rem;
}

.seller-plan-summary {
    margin-bottom: 0.875rem;
}

.seller-plan-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.seller-plan-summary-name {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seller-plan-summary-price {
    font-size: 0.8125rem;
    color: var(--seller-muted);
    font-weight: 600;
    white-space: nowrap;
}

.seller-hidden-plan-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 149, 0, 0.15);
    color: #c2410c;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.seller-blocked-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.seller-product-card.is-hidden-by-plan,
.seller-cat-card.is-hidden-by-plan {
    opacity: 0.72;
    border: 1px dashed rgba(255, 149, 0, 0.35);
}

.seller-product-card.is-moderation-blocked {
    border: 1px dashed rgba(185, 28, 28, 0.4);
    background: rgba(254, 226, 226, 0.45);
}

.seller-product-card.is-moderation-blocked .seller-product-img {
    filter: grayscale(0.55);
    opacity: 0.82;
}

.seller-product-card.is-moderation-blocked .seller-product-name {
    white-space: normal;
}

.seller-product-blocked-msg {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    font-weight: 600;
    color: #b91c1c;
}

.seller-product-actions.is-locked {
    color: #b91c1c;
}

.seller-blocked-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.seller-blocked-lock i,
.seller-blocked-lock svg {
    width: 1.125rem;
    height: 1.125rem;
}

.seller-page.is-hydrating [data-save="store"] {
    pointer-events: none;
}

.seller-create-product[disabled],
.seller-create-product[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.seller-refresh-hint {
    position: fixed;
    top: calc(0.4rem + var(--seller-safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    background: rgba(28, 28, 30, 0.78);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
}

.seller-page.seller-has-banned-banner .seller-refresh-hint {
    top: calc(var(--seller-banned-offset, 4.75rem) + 0.4rem);
}

.seller-skel {
    background: var(--seller-fill);
    border-radius: 8px;
    animation: sellerSkelPulse 1.2s ease-in-out infinite;
}

.seller-skel-card {
    pointer-events: none;
}

.seller-skel-img {
    width: 5.75rem;
    height: 6.75rem;
    flex-shrink: 0;
    border-radius: 0;
}

@media (min-width: 381px) {
    .seller-skel-img {
        width: 6.5rem;
    }
}

.seller-skel-line {
    height: 0.7rem;
    margin-bottom: 0.4rem;
}

.seller-skel-line:last-child {
    margin-bottom: 0;
}

.seller-skel-w-40 { width: 40%; }
.seller-skel-w-55 { width: 55%; }
.seller-skel-w-70 { width: 70%; }
.seller-skel-w-80 { width: 80%; }

.seller-skel-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.seller-skel-panel {
    background: var(--seller-card);
    border-radius: var(--seller-radius-lg);
    box-shadow: var(--seller-shadow);
    padding: 1rem;
}

@keyframes sellerSkelPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .seller-skel,
    .seller-home-loading .seller-home-stat .value {
        animation: none;
    }
}
