/* ═══════════════════════════════════════════════════════
   Edumall Workshops — single.css
   Usa classes nativas do tema onde possível.
   Só define o que o tema não cobre.
   ═══════════════════════════════════════════════════════ */

/* ── Suprimir title-bar do tema ───────────────────────── */
.single-workshop .page-title-bar,
.single-workshop-page .page-title-bar { display: none !important; }

/* ── Zerando margem do page-content ──────────────────── */
.single-workshop-page { margin-top: 0 !important; }

/* ══════════════════════════════════════════
   HEADER DO WORKSHOP (replica tutor-course-top-info)
   ══════════════════════════════════════════ */
.ew-top-info {
    background: #f5f7fd;
    padding: 36px 0 40px;
}
.ew-ti-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Breadcrumb */
.ew-bc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--edumall-color-text-bit-lighten, #888);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ew-bc a { color: inherit; text-decoration: none; transition: color .2s; }
.ew-bc a:hover { color: var(--edumall-color-primary, #e8500a); }
.ew-bc svg { opacity: .4; flex-shrink: 0; }
.ew-bc > span:last-child { color: var(--edumall-color-heading, #111); }

.ew-ti-content { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.ew-ti-left { flex: 1; min-width: 0; max-width: 680px; }

/* Badge de status */
.ew-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.ew-badge-green  { background: #dcfce7; color: #166534; }
.ew-badge-yellow { background: #fef9c3; color: #854d0e; }
.ew-badge-gray   { background: #f3f4f6; color: #6b7280; }

/* Título */
.ew-page-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: var(--edumall-color-heading, #111);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -.015em;
}
.ew-page-excerpt {
    font-size: 15px;
    color: var(--edumall-color-text, #555);
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Meta bar (instrutor, data, inscritos) */
.ew-page-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 14px;
    color: var(--edumall-color-text-bit-lighten, #777);
}
.ew-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.ew-meta-divider { padding-left: 14px; margin-left: 14px; border-left: 1px solid var(--edumall-color-box-border, #ddd); }
.ew-meta-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ew-meta-avatar-letter {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--edumall-color-heading, #111);
    color: var(--edumall-color-secondary, #f5a623);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.ew-meta-instructor { font-weight: 600; color: var(--edumall-color-primary, #e8500a); }

/* ══════════════════════════════════════════
   LAYOUT 2 COLUNAS
   ══════════════════════════════════════════ */
.ew-course-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
    padding: 40px 0 80px;
}

/* Coluna principal */
.ew-course-main { min-width: 0; }

/* Thumbnail mobile — oculto no desktop */
.ew-mobile-thumb { display: none; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.ew-mobile-thumb img { width: 100%; display: block; }

/* Segmentos de conteúdo */
.ew-segment {
    border: 1px solid var(--edumall-color-box-border, #ebebeb);
    border-radius: 5px;
    background: var(--edumall-color-box-white-background, #fff);
    padding: 26px 30px;
    margin-bottom: 20px;
}
.ew-segment:last-child { margin-bottom: 0; }

.ew-segment-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--edumall-color-heading, #111);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--edumall-color-box-border, #ebebeb);
}
.ew-segment-body {
    font-size: 15px;
    color: var(--edumall-color-text, #555);
    line-height: 1.8;
}
.ew-segment-body p { margin-bottom: 14px; }
.ew-segment-body p:last-child { margin-bottom: 0; }

/* Instrutor — reusa classes do tema */
.single-instructor-wrap { border: 0 !important; margin-bottom: 0 !important; }
.single-instructor-wrap .instructor-avatar {
    width: 100px !important;
    height: 100px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}
.single-instructor-wrap .instructor-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px !important;
}
.ew-avatar-fallback {
    width: 100px; height: 100px;
    border-radius: 8px;
    background: var(--edumall-color-heading, #111);
    color: var(--edumall-color-secondary, #f5a623);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700;
}
.single-instructor-wrap .instructor-name { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 5px !important; }
.single-instructor-wrap .instructor-job { color: var(--edumall-color-primary, #e8500a) !important; font-weight: 600 !important; margin-bottom: 10px !important; }
.single-instructor-wrap .instructor-bio { -webkit-line-clamp: unset !important; }

/* Agenda */
.ew-agenda { display: flex; flex-direction: column; }
.ew-ag-row { display: flex; }
.ew-ag-track {
    display: flex; flex-direction: column; align-items: center;
    width: 26px; flex-shrink: 0; padding-top: 3px;
}
.ew-ag-dot {
    width: 11px; height: 11px;
    border-radius: 50%; background: #fff;
    border: 2.5px solid var(--edumall-color-primary, #e8500a);
    flex-shrink: 0; transition: background .2s; z-index: 1;
}
.ew-ag-row:hover .ew-ag-dot { background: var(--edumall-color-primary, #e8500a); }
.ew-ag-line {
    width: 2px; flex: 1;
    background: var(--edumall-color-box-border, #e5e5e5);
    margin-top: 4px;
}
.ew-ag-content { padding: 0 0 24px 14px; flex: 1; }
.ew-ag-last { padding-bottom: 0; }
.ew-ag-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 2px 8px; border-radius: 99px; margin-bottom: 5px;
    background: rgba(232,80,10,.1); color: var(--edumall-color-primary, #e8500a);
}
.ew-ag-date {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--edumall-color-text-lighten, #999);
    margin-bottom: 4px;
}
.ew-ag-title { font-size: 15px; font-weight: 600; color: var(--edumall-color-heading, #111); margin-bottom: 4px; }
.ew-ag-desc  { font-size: 14px; color: var(--edumall-color-text-bit-lighten, #777); line-height: 1.6; }

/* Mapa */
.ew-map {
    border-radius: 5px; overflow: hidden;
    border: 1px solid var(--edumall-color-box-border, #eee);
    height: 240px; margin-bottom: 12px;
}
.ew-map iframe { width: 100%; height: 100%; border: none; display: block; }
.ew-map-addr {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; color: var(--edumall-color-text-bit-lighten, #777); margin: 0;
}
.ew-map-addr svg { color: var(--edumall-color-primary, #e8500a); flex-shrink: 0; }

/* ══════════════════════════════════════════
   CARD LATERAL — estende .tutor-price-preview-box
   ══════════════════════════════════════════ */
.ew-course-sidebar {
    position: sticky;
    top: 20px;
    align-items: stretch !important;
}
.ew-course-sidebar .tutor-price-preview-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Thumbnail no card */
.tutor-price-box-thumbnail {
    position: relative;
    margin: 0 !important;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}
.tutor-price-box-thumbnail img {
    width: 100%;
    display: block;
    max-height: 200px;
    object-fit: cover;
}
.ew-thumb-label {
    position: absolute;
    bottom: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--edumall-color-primary, #e8500a);
    color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
}

/* Preço */
.tutor-price-preview-box .tutor-price { padding: 20px 24px 10px !important; margin: 0 !important; }
.tutor-price-preview-box .price { font-size: 34px !important; line-height: 1 !important; }
.tutor-price-preview-box .price .amount { font-size: 34px !important; font-weight: 700 !important; color: var(--edumall-color-heading, #111) !important; }

/* Barra de vagas */
.ew-vagas-wrap { padding: 0 24px 14px; }
.ew-vagas-bar-wrap {
    height: 5px; background: #eee; border-radius: 99px;
    overflow: hidden; margin-bottom: 7px;
}
.ew-vagas-bar {
    height: 100%; background: var(--edumall-color-primary, #e8500a);
    border-radius: 99px; transition: width 1s ease;
}
.ew-vagas-txt { font-size: 12px; color: var(--edumall-color-text-lighten, #999); margin: 0; }

/* Turmas */
.ew-turmas-box { padding: 0 24px 16px; border-top: 1px solid var(--edumall-color-box-fill-separator, #f0f0f0); }
.ew-turma-lbl {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--edumall-color-text-lighten, #999);
    margin: 14px 0 10px;
}
.ew-turma {
    display: flex; align-items: center; gap: 9px;
    border: 1.5px solid var(--edumall-color-box-border, #e5e5e5);
    border-radius: 5px; padding: 10px 12px; margin-bottom: 7px;
    cursor: pointer; transition: border-color .2s, background .2s;
    user-select: none; position: relative;
}
.ew-turma:not(.ew-turma-off):hover { border-color: var(--edumall-color-primary, #e8500a); }
.ew-turma-sel { border-color: var(--edumall-color-primary, #e8500a) !important; background: rgba(232,80,10,.04); }
.ew-turma-off { opacity: .5; cursor: not-allowed; }
.ew-turma input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.ew-turma-radio-btn {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--edumall-color-box-border, #ccc);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s;
}
.ew-turma-sel .ew-turma-radio-btn { border-color: var(--edumall-color-primary, #e8500a); }
.ew-turma-sel .ew-turma-radio-btn::after {
    content: ''; width: 7px; height: 7px;
    border-radius: 50%; background: var(--edumall-color-primary, #e8500a);
}
.ew-turma-info { flex: 1; min-width: 0; }
.ew-turma-nome { display: block; font-size: 13px; font-weight: 600; color: var(--edumall-color-heading, #111); }
.ew-turma-sub  { display: block; font-size: 11px; color: var(--edumall-color-text-lighten, #999); margin-top: 2px; }
.ew-turma-tag  { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; flex-shrink: 0; white-space: nowrap; }
.ew-tag-on  { background: #dcfce7; color: #166534; }
.ew-tag-off { background: #f3f4f6; color: #9ca3af; }

/* Quantidade */
.ew-qty-box {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px 16px;
}
.ew-qty-lbl { font-size: 14px; font-weight: 600; color: var(--edumall-color-heading, #111); }
.ew-qty-ctrl {
    display: flex; align-items: center;
    border: 1.5px solid var(--edumall-color-box-border, #e0e0e0);
    border-radius: 5px; overflow: hidden;
}
.ew-qty-btn {
    width: 34px; height: 34px;
    background: var(--edumall-color-box-light-grey-background, #f8f8f8);
    border: none; font-size: 18px; line-height: 1;
    color: var(--edumall-color-heading, #111);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ew-qty-btn:hover { background: var(--edumall-color-box-border, #e5e5e5); }
.ew-qty-num {
    width: 44px; text-align: center; font-size: 15px; font-weight: 700;
    color: var(--edumall-color-heading, #111);
    border-left: 1.5px solid var(--edumall-color-box-border, #e0e0e0);
    border-right: 1.5px solid var(--edumall-color-box-border, #e0e0e0);
    line-height: 34px; background: #fff; user-select: none;
}

/* Botão CTA — usa .tm-button + cor personalizada */
.tutor-price-preview-box .tutor-lead-info-btn-group { padding: 0 24px 16px; }
.ew-cta-btn {
    display: flex !important;
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    background: var(--edumall-color-secondary, #f5a623) !important;
    color: var(--edumall-color-third, #fff) !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: background .2s, transform .1s !important;
}
.ew-cta-btn:hover { background: #e09518 !important; color: #fff !important; transform: translateY(-1px); }
.ew-cta-btn:active { transform: translateY(0); }

.ew-btn-off {
    display: block;
    padding: 14px;
    text-align: center;
    background: var(--edumall-color-box-light-grey-background, #f5f5f5);
    color: var(--edumall-color-text-lighten, #aaa);
    border: 1px solid var(--edumall-color-box-border, #e5e5e5);
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
}

/* Meta list — reusa .tutor-meta-top do tema */
.tutor-price-preview-box .tutor-meta-top {
    padding: 0 24px !important;
    margin-bottom: 0 !important;
}
.tutor-price-preview-box .tutor-meta-top > div {
    display: flex !important;
    align-items: flex-start !important;
}
.tutor-price-preview-box .tutor-meta-top .meta-icon {
    min-width: 22px;
    color: var(--edumall-color-text, #555);
}
.tutor-price-preview-box .tutor-meta-top .meta-icon svg { vertical-align: middle; }
.tutor-price-preview-box .tutor-meta-top .meta-label {
    min-width: 70px;
    font-weight: 600 !important;
    color: var(--edumall-color-heading, #111) !important;
}
.tutor-price-preview-box .tutor-meta-top .meta-value {
    text-align: right !important;
    color: var(--edumall-color-text-bit-lighten, #777) !important;
    font-weight: 400 !important;
    font-size: 13px;
}

/* Compartilhar */
.ew-share {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 14px 24px !important;
    border-top: 1px solid var(--edumall-color-box-fill-separator, #f0f0f0) !important;
    margin: 0 !important;
    text-align: left !important;
}
.ew-share-lbl { font-size: 13px; color: var(--edumall-color-text-lighten, #999); margin-right: 2px; }
.ew-shr {
    width: 32px; height: 32px;
    border-radius: 5px;
    background: var(--edumall-color-box-light-grey-background, #f5f5f5);
    border: 1px solid var(--edumall-color-box-border, #e5e5e5);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--edumall-color-text-bit-lighten, #777);
    text-decoration: none; font-size: 0;
    padding: 0;
    transition: all .15s;
}
.ew-shr:hover {
    background: var(--edumall-color-primary, #e8500a);
    border-color: var(--edumall-color-primary, #e8500a);
    color: #fff;
}

/* ── Toast ─────────────────────────────────── */
.ew-toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--edumall-color-heading, #111);
    color: #fff; padding: 12px 22px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    z-index: 9999; white-space: nowrap;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.ew-toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════ */
@media (max-width: 992px) {
    .ew-course-wrap { grid-template-columns: 1fr; padding: 28px 0 60px; }
    .ew-course-sidebar { position: static; order: -1; }
    .ew-mobile-thumb { display: block; }
    .tutor-price-box-thumbnail { display: none; }
    .ew-top-info { padding: 24px 0 28px; }
}
@media (max-width: 600px) {
    .ew-ti-inner { padding: 0 16px; }
    .ew-segment { padding: 20px 16px; }
    .ew-page-title { font-size: 22px; }
    .ew-turmas-box,
    .ew-qty-box,
    .tutor-price-preview-box .tutor-meta-top,
    .tutor-price-preview-box .tutor-price,
    .ew-vagas-wrap,
    .tutor-price-preview-box .tutor-lead-info-btn-group,
    .ew-share { padding-left: 16px !important; padding-right: 16px !important; }
}
