/* =====================================================================
   EE Marketplace – Frontend stíluslap  |  v20.0
   ===================================================================== */

/* ── Alap konténer ───────────────────────────────────────────────────── */
.ee-modern-container {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}
.ee-modern-container * {
    box-sizing: border-box;
}

/* ── Auth kártya ─────────────────────────────────────────────────────── */
.ee-auth-wrapper {
    max-width: 480px;
    margin: 40px auto;
    padding: 10px;
    font-family: 'Inter', system-ui, sans-serif;
}
.ee-auth-title {
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
    font-size: 24px;
}
.ee-auth-footer-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #64748b;
}
.ee-auth-footer-link a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}
.ee-auth-footer-link a:hover { text-decoration: underline; }

/* ── WP login form felülbírálás ──────────────────────────────────────── */
.ee-auth-wrapper form.loginform,
.ee-auth-wrapper form {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,.03);
}
.ee-auth-wrapper p.login-username,
.ee-auth-wrapper p.login-password { margin-bottom: 18px; }
.ee-auth-wrapper p label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
}
.ee-auth-wrapper input[type="text"],
.ee-auth-wrapper input[type="password"],
.ee-auth-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}
.ee-auth-wrapper p.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #475569;
}
.ee-auth-wrapper p.login-remember input { width: 16px; height: 16px; margin: 0; }
.ee-auth-wrapper p.login-submit { margin: 0; }
.ee-auth-wrapper input[type="submit"] {
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.ee-auth-wrapper input[type="submit"]:hover { background: #1e293b; }

/* ── GDPR jelölőnégyzet ──────────────────────────────────────────────── */
.ee-gdpr-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
}
.ee-gdpr-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.ee-gdpr-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}
.ee-gdpr-text a { color: #0f172a; font-weight: 600; text-decoration: underline; }

/* ── Stat kártyák ────────────────────────────────────────────────────── */
.ee-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.ee-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,.02);
}
.ee-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ee-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 5px;
    display: block;
}
.ee-stat-value.earning { color: #10b981; }

/* ── Fülek ───────────────────────────────────────────────────────────── */
.ee-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
    align-items: center;
}
.ee-tab-link {
    padding: 12px 16px;
    text-decoration: none !important;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    transition: all .2s;
}
.ee-tab-link.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
    font-weight: 700;
}
.ee-tab-btn-accent {
    padding: 10px 18px;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 8px;
    background: #0f172a;
    color: #fff !important;
    font-size: 14px;
    text-align: center;
}

/* ── Űrlapok ─────────────────────────────────────────────────────────── */
.ee-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0,0,0,.03);
    margin-bottom: 30px;
}
.ee-form-group { margin-bottom: 20px; }
.ee-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
}
.ee-form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    -webkit-appearance: none;
}

/* ── Grid segédek ────────────────────────────────────────────────────── */
.ee-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.ee-grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }

/* ── Kategória lista ─────────────────────────────────────────────────── */
.ee-category-checklist-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    max-height: 180px;
    overflow-y: auto;
    background: #f8fafc;
}
.ee-category-checklist-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #334155;
}

/* ── Táblák ──────────────────────────────────────────────────────────── */
.ee-table-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px rgba(0,0,0,.02);
    margin-bottom: 30px;
}
.ee-modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.ee-modern-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    text-align: left;
}
.ee-modern-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

/* ── Badge-ek ────────────────────────────────────────────────────────── */
.ee-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}
.ee-badge-success { background: #dcfce7; color: #15803d; }
.ee-badge-warning { background: #fef9c3; color: #a16207; }
.ee-badge-neutral { background: #f1f5f9; color: #475569; }
.ee-badge-danger  { background: #fee2e2; color: #b91c1c; }

/* ── Gombok ──────────────────────────────────────────────────────────── */
.ee-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s;
    border: none;
    gap: 4px;
    min-height: 38px;
}
.ee-btn-primary   { background: #0f172a; color: #fff !important; }
.ee-btn-secondary { background: #f1f5f9; color: #334155 !important; border: 1px solid #e2e8f0; }
.ee-btn-success   { background: #10b981; color: #fff !important; }
.ee-btn-danger    { background: #ef4444; color: #fff !important; }
.ee-btn-warning   { background: #f59e0b; color: #fff !important; }

/* ── Galéria előnézet ────────────────────────────────────────────────── */
.ee-gallery-preview-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    min-height: 90px;
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.ee-gallery-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    cursor: grab;
    background: #fff;
}
.ee-gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ee-gallery-del-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239,68,68,.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.ee-current-main-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    object-fit: cover;
    display: block;
    margin-top: 10px;
}

/* ── Helyszín blokk ──────────────────────────────────────────────────── */
.ee-location-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ee-location-fullwidth { grid-column: span 2; }

/* ── Részletek panel ─────────────────────────────────────────────────── */
.ee-details-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,.02);
}

/* ── Reszponzív ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ee-tabs-nav { flex-direction: column; align-items: stretch; gap: 5px; }
    .ee-tab-link {
        text-align: center;
        border-bottom: 2px solid transparent;
        border-left: 3px solid transparent;
        padding: 10px;
    }
    .ee-tab-link.active { border-bottom-color: transparent; border-left-color: #0f172a; background: #f8fafc; }
    .ee-tab-btn-accent { margin-left: 0; width: 100%; margin-top: 10px; padding: 12px; }

    .ee-grid-2col,
    .ee-grid-3col,
    .ee-location-box { grid-template-columns: 1fr; }
    .ee-location-fullwidth { grid-column: span 1; }

    .ee-form-card { padding: 15px; }
    .ee-modern-table td,
    .ee-modern-table th { padding: 10px; font-size: 13px; }
    .ee-modern-table .ee-btn { width: 100%; text-align: center; }
}

/* ── v21.0 kiegészítések ─────────────────────────────────────────────── */

/* Akciós ár display */
.ee-sale-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    display: inline-block;
}
.ee-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
}

/* Pénzügyek tab */
.ee-finance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* Módosítás jóváhagyás sáv */
.ee-pending-banner {
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    color: #854d0e;
    font-size: 14px;
}

/* Kategória fa (szülő-gyerek) */
.ee-category-checklist-box .cat-parent-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}
.ee-category-checklist-box .cat-children {
    margin-left: 20px;
    margin-top: 4px;
}
.ee-category-checklist-box label {
    margin-bottom: 6px;
}

/* Részletes termék nézet: details/summary elem */
details {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #f8fafc;
}
details[open] summary {
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}
summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "▶ "; font-size: 10px; color: #64748b; }
details[open] summary::before { content: "▼ "; }

/* Kategória-fa szűrő a terméklistánál */
.ee-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .ee-grid-3col { grid-template-columns: 1fr; }
    .ee-finance-summary { grid-template-columns: 1fr 1fr; }
}

/* ── v21.2 kiegészítések ─────────────────────────────────────────────── */

/* Értesítő buborék (tab badge) */
.ee-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
}

/* Diff highlight - módosított mező */
.ee-diff-changed {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding-left: 8px !important;
    border-radius: 4px;
    margin: 2px 0;
}
.ee-diff-old {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: #ef4444;
    text-decoration: line-through;
    background: #fee2e2;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Új rendelés zöld sor */
tr.ee-new-order-row { background: #f0fdf4 !important; }

/* Termék lista: új zöld kiemelés */
tr.ee-product-new   { background: #f0fdf4; }
tr.ee-product-modified { background: #fffbeb; }


/* ══════════════════════════════════════════════════════════════════════
   v21.8 – Termékoldal: gyors-áttekintő & részletek tab
   ══════════════════════════════════════════════════════════════════════ */

/* ── Gyors-áttekintő doboz (summary area, ár alatt) ─────────────────── */
.ee-product-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.ee-product-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ee-pqi-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.ee-pqi-text {
    display: flex;
    flex-direction: column;
}

.ee-pqi-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.ee-pqi-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 2px;
}

/* ── Részletek tab tartalma ──────────────────────────────────────────── */
.ee-product-details-tab {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ee-pdt-section {
    margin-bottom: 20px;
}

.ee-pdt-includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ee-pdt-box {
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ee-pdt-box h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.ee-pdt-box ul {
    margin: 0;
    padding-left: 18px;
}

.ee-pdt-box ul li {
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.5;
}

.ee-pdt-includes  { background: #f0fdf4; border-color: #bbf7d0; }
.ee-pdt-includes h4 { color: #15803d; }
.ee-pdt-includes li::marker { color: #22c55e; }

.ee-pdt-excludes  { background: #fef2f2; border-color: #fecaca; }
.ee-pdt-excludes h4 { color: #b91c1c; }
.ee-pdt-excludes li::marker { color: #ef4444; }

.ee-pdt-requirements { background: #fffbeb; border-color: #fef08a; }
.ee-pdt-requirements h4 { color: #854d0e; }

.ee-pdt-cancellation { background: #f8fafc; border-color: #e2e8f0; }
.ee-pdt-cancellation p { font-size: 14px; color: #334155; line-height: 1.7; margin: 0; }

.ee-pdt-contact { background: #f8fafc; border-color: #e2e8f0; }
.ee-pdt-contact p { font-size: 14px; color: #334155; margin: 0 0 6px; }
.ee-pdt-contact a { color: #6366f1; font-weight: 600; text-decoration: none; }
.ee-pdt-contact a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .ee-product-quick-info {
        grid-template-columns: 1fr 1fr;
    }
    .ee-pdt-includes-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Vendor kártya (single product oldalon) ──────────────────────────── */
.ee-vendor-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ee-vendor-card-avatar {
    flex-shrink: 0;
}
.ee-vendor-card-info {
    flex: 1;
}
.ee-vendor-card-name {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}
.ee-vendor-card-bio {
    margin: 0 0 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.ee-vendor-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #334155;
}
.ee-vendor-card-meta a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}
.ee-vendor-card-meta a:hover { text-decoration: underline; }

/* ── Fordítási tab widget (EE_MP_Lang) ───────────────────────────────── */
.ee-lang-tabs { width: 100%; }

.ee-lang-tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
}

.ee-lang-tab-btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #64748b;
    transition: all .15s;
    border-radius: 6px 6px 0 0;
}
.ee-lang-tab-btn:hover { color: #0f172a; background: #f8fafc; }
.ee-lang-tab-btn.active {
    color: #0f172a;
    border-bottom-color: #6366f1;
    background: #fff;
}

.ee-lang-tab-pane { display: none; padding-top: 8px; }
.ee-lang-tab-pane.active { display: block; }

/* ── Helyszín linkek (termékoldalakon) ───────────────────────────────── */
.ee-location-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}
.ee-location-link:hover {
    text-decoration: underline;
    color: #4f46e5;
}
