/* Dokan-style vendor dashboard theme */
.vendor-panel {
    --admin-primary: #1e4620;
    --admin-accent: #25a244;
    min-height: 100vh;
    background: #f4f6f9;
    font-family: 'Inter', sans-serif;
}

.vendor-panel .vendor-sidebar {
    background: linear-gradient(180deg, #1e4620 0%, #163318 100%);
}

.vendor-panel .admin-store-btn {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
    color: #fff;
}

.vendor-panel .admin-store-btn:hover {
    background: #1f8a38;
    border-color: #1f8a38;
    color: #fff;
}

.vendor-panel .sidebar-nav a.active {
    border-left-color: var(--admin-accent);
}

.vendor-panel .vendor-save-btn {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
}

.vendor-panel .vendor-save-btn:hover {
    background: #1f8a38;
    border-color: #1f8a38;
}

/* Hero banner */
.vendor-hero {
    background: linear-gradient(135deg, #1e4620 0%, #25a244 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.vendor-hero h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
}

.vendor-hero p {
    opacity: 0.92;
    font-size: 0.95rem;
}

/* Storefront public pages */
.vendor-store-header {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.vendor-store-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg-light);
}

.vendor-store-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #888;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.seller-badge a {
    font-weight: 600;
}

.seller-badge-official {
    color: var(--success);
}

.vendor-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vendor-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.vendor-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Settings page */
.vendor-settings-page {
    max-width: 960px;
}

.vendor-profile-banner {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.vendor-profile-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(30, 70, 32, 0.06) 0%, rgba(37, 162, 68, 0.08) 100%);
}

.vendor-profile-logo-wrap {
    flex-shrink: 0;
}

.vendor-profile-logo {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.vendor-profile-logo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    color: #25a244;
    font-size: 2rem;
}

.vendor-profile-meta {
    flex: 1;
    min-width: 200px;
}

.vendor-profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.vendor-profile-slug {
    font-size: 0.88rem;
    color: #666;
}

.vendor-profile-actions {
    margin-left: auto;
}

.vendor-settings-form {
    padding: 0;
    overflow: hidden;
}

.vendor-form-section {
    padding: 24px;
    border-bottom: 1px solid #eee;
}

.vendor-form-section:last-of-type {
    border-bottom: none;
}

.vendor-form-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.vendor-form-section-head > i {
    font-size: 1.5rem;
    color: #25a244;
    margin-top: 2px;
}

.vendor-form-section-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #232f3e;
}

.vendor-form-section-head p {
    font-size: 0.88rem;
}

.vendor-logo-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.vendor-logo-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px dashed #cde8d4;
    background: #f8fdf9;
    flex-shrink: 0;
}

.vendor-logo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-logo-upload-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #25a244;
    opacity: 0.5;
}

.vendor-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: #f8faf9;
    border-top: 1px solid #eee;
}

@media (max-width: 991.98px) {
    .vendor-profile-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-profile-actions {
        margin-left: 0;
        width: 100%;
    }

    .vendor-logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sellers hub (/sellers) */
.sellers-hub-header {
    background: linear-gradient(135deg, #1e4620 0%, #25a244 100%);
    color: #fff;
    padding: 14px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sellers-hub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sellers-hub-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.sellers-hub-brand a i {
    font-size: 1.3rem;
}

.sellers-hub-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sellers-login-btn,
.sellers-panel-btn {
    background: #fff;
    color: #1e4620;
    border: none;
    font-weight: 600;
}

.sellers-login-btn:hover,
.sellers-panel-btn:hover {
    background: #f0fdf4;
    color: #163318;
}

.sellers-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sellers-logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sellers-pending-badge {
    font-size: 0.85rem;
    opacity: 0.95;
}

.sellers-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #1e4620 0%, #25a244 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
}

.sellers-cta-banner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.sellers-login-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #25a244;
}

.sellers-login-logo {
    height: 64px;
    width: auto;
    margin-bottom: 12px;
}

.sellers-login-badge {
    display: inline-block;
    background: rgba(37, 162, 68, 0.12);
    color: #25a244;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.sellers-login-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sellers-login-submit {
    background: #25a244;
    border-color: #25a244;
    font-weight: 600;
}

.sellers-login-submit:hover {
    background: #1f8a38;
    border-color: #1f8a38;
}

.sellers-login-footer {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.sellers-login-footer a {
    color: #007185;
    text-decoration: none;
}

.sellers-login-footer a:hover {
    text-decoration: underline;
}

/* Public seller storefront (/store/:slug) */
.vendor-store-page {
    background: #f4f6f9;
    min-height: 60vh;
}

.vendor-store-owner-bar {
    background: #163318;
    color: #fff;
    border-bottom: 3px solid #25a244;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.vendor-store-owner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.vendor-store-owner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.vendor-store-owner-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vendor-store-owner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, border-color 0.2s;
}

.vendor-store-owner-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.vendor-store-hero {
    background: linear-gradient(135deg, #1e4620 0%, #25a244 100%);
    color: #fff;
    padding: 24px 0 32px;
}

.vendor-store-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0.92;
}

.vendor-store-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.vendor-store-breadcrumb a:hover {
    text-decoration: underline;
}

.vendor-store-breadcrumb span[aria-current="page"] {
    font-weight: 600;
}

.vendor-store-hero-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.vendor-store-hero-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}

.vendor-store-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    background: #fff;
}

.vendor-store-hero-logo.vendor-store-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #25a244;
}

.vendor-store-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.vendor-store-hero-info h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
}

.vendor-store-location {
    margin: 0 0 10px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.vendor-store-description {
    margin: 0 0 12px;
    max-width: 640px;
    line-height: 1.55;
    opacity: 0.95;
}

.vendor-store-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.vendor-store-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.95;
}

.vendor-store-contact-item:hover {
    opacity: 1;
    text-decoration: underline;
    color: #fff;
}

.vendor-store-hero-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.vendor-store-stat {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    min-width: 100px;
}

.vendor-store-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.vendor-store-stat-label {
    display: block;
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 2px;
}

.vendor-store-manage-btn {
    font-weight: 600;
    white-space: nowrap;
}

.vendor-store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vendor-store-search {
    flex: 1;
    min-width: 260px;
    max-width: 560px;
}

.vendor-store-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vendor-store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vendor-store-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d5d9d9;
    background: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vendor-store-category-pill:hover {
    border-color: #25a244;
    color: #1e4620;
}

.vendor-store-category-pill.active {
    background: #25a244;
    border-color: #25a244;
    color: #fff;
}

.vendor-store-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vendor-store-empty i {
    font-size: 2.5rem;
    color: #25a244;
    opacity: 0.6;
    margin-bottom: 12px;
}

.vendor-store-empty h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vendor-store-empty p {
    color: #666;
    margin-bottom: 16px;
}

@media (max-width: 767.98px) {
    .vendor-store-hero-stats {
        flex-direction: row;
        align-items: stretch;
        width: 100%;
    }

    .vendor-store-stat {
        flex: 1;
    }

    .vendor-store-manage-btn {
        width: 100%;
    }

    .vendor-store-owner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-store-owner-nav {
        width: 100%;
    }

    .vendor-store-owner-link {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}
