/* ========================================================================
   Shopeasy Receitas - estilos do componente com_shopeasyreceitas
   ======================================================================== */

.sm-receitas-page,
.sm-receita-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 60px;
}

.sm-breadcrumb {
    font-size: 12px;
    color: #888;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.sm-breadcrumb a:hover {
    color: #c01823;
}

/* ---------- LISTAGEM ---------- */

.sm-receitas-hero {
    padding: 10px 0 25px;
}

.sm-receitas-hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px;
    position: relative;
    padding-bottom: 14px;
}

.sm-receitas-hero h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background-color: #c01823;
}

.sm-receitas-hero p {
    color: #666;
    font-size: 14px;
    max-width: 560px;
    margin: 10px 0 0;
}

.sm-receitas-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.sm-receitas-tabs .sm-tab {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 30px;
    background-color: #f5f5f5;
    color: #444;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.sm-receitas-tabs .sm-tab:hover {
    background-color: #eee;
}

.sm-receitas-tabs .sm-tab.active {
    background-color: #c01823;
    color: #fff;
}

.sm-receitas-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #fafafa;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 18px;
}

.sm-filtro-pesquisa {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 30px;
    padding: 8px 16px;
    flex: 1 1 220px;
}

.sm-filtro-pesquisa svg {
    width: 16px;
    height: 16px;
    color: #999;
    flex: 0 0 auto;
}

.sm-filtro-pesquisa input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.sm-receitas-filtros select {
    border: 1px solid #e2e2e2;
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 13px;
    background-color: #fff;
    color: #444;
}

.sm-limpar-filtros {
    font-size: 12px;
    color: #c01823;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.sm-limpar-filtros:hover {
    text-decoration: underline;
}

.sm-receitas-ordenar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sm-receitas-ordenar label {
    font-size: 13px;
    color: #555;
}

.sm-receitas-ordenar select {
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    margin-left: 6px;
}

.sm-total-receitas {
    font-size: 12px;
    color: #888;
}

.sm-sem-resultados {
    text-align: center;
    color: #888;
    padding: 60px 0;
}

.sm-receitas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .sm-receitas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sm-receitas-grid {
        grid-template-columns: 1fr;
    }
}

.sm-receita-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sm-receita-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sm-receita-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #f2f2f2;
}

.sm-receita-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-receita-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 10px;
    border-radius: 20px;
}

.sm-receita-card-body {
    padding: 14px 16px 16px;
}

.sm-receita-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.sm-receita-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11.5px;
    color: #777;
}

.sm-receita-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sm-receita-meta svg {
    width: 14px;
    height: 14px;
    color: #c01823;
}

/* ---------- DETALHE ---------- */

.sm-receita-hero {
    margin: 20px -15px 0;
    padding: 60px 15px 40px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 28px 28px;
    position: relative;
}

.sm-receita-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 0 0 28px 28px;
}

.sm-receita-hero-overlay {
    position: relative;
    max-width: 1170px;
    margin: 0 auto;
    color: #fff;
}

.sm-breadcrumb-light,
.sm-breadcrumb-light a {
    color: rgba(255, 255, 255, 0.75);
}

.sm-breadcrumb-light a:hover {
    color: #fff;
}

.sm-receita-badge-hero {
    display: inline-block;
    background-color: #c01823;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.sm-receita-hero-overlay h1 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 12px;
    max-width: 600px;
    line-height: 1.15;
}

.sm-receita-subtitulo {
    max-width: 560px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 22px;
}

.sm-receita-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 22px;
}

.sm-receita-stats span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.7);
}

.sm-receita-stats svg {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
    color: #fff;
}

.sm-guardar-receita {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.9;
}

.sm-guardar-receita svg {
    width: 16px;
    height: 16px;
}

.sm-receita-tabsbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 18px 20px;
    margin: -30px auto 40px;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.sm-receita-tabsbar a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.sm-receita-tabsbar svg {
    width: 18px;
    height: 18px;
    color: #c01823;
}

.sm-receita-tabsbar a:hover {
    color: #c01823;
}

.sm-receita-corpo {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 860px) {
    .sm-receita-corpo {
        grid-template-columns: 1fr;
    }
}

.sm-receita-ingredientes h2,
.sm-receita-preparacao h2,
.sm-receita-secao h2 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
}

.sm-nutricao-nota {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    color: #888;
    letter-spacing: 0;
}

.sm-doses-stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: #f5f5f5;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
}

.sm-doses-stepper button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #c01823;
}

.sm-doses-stepper button:hover {
    background-color: #c01823;
    color: #fff;
    border-color: #c01823;
}

.sm-grupo-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #c01823;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 22px 0 10px;
}

.sm-ingredientes-lista {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.sm-ingredientes-lista li {
    font-size: 14px;
    color: #333;
    padding: 7px 0;
    border-bottom: 1px dashed #eee;
}

.sm-ingredientes-lista li:last-child {
    border-bottom: none;
}

.sm-ingrediente-produto {
    color: #c01823;
    text-decoration: none;
    font-weight: 600;
}

.sm-ingrediente-produto:hover {
    text-decoration: underline;
}

.sm-imprimir-receita {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fbebec;
    color: #c01823;
    border: none;
    border-radius: 30px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
}

.sm-imprimir-receita svg {
    width: 16px;
    height: 16px;
}

.sm-imprimir-receita:hover {
    background-color: #f6d9db;
}

.sm-passos-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.sm-passos-lista::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #f0d3d5;
}

.sm-passos-lista li {
    display: flex;
    gap: 18px;
    padding-bottom: 26px;
    position: relative;
}

.sm-passo-numero {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #c01823;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.sm-passo-texto h4 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 3px 0 6px;
    color: #222;
}

.sm-passo-texto p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.55;
    margin: 3px 0 0;
}

.sm-receita-secao {
    margin-bottom: 50px;
}

.sm-produtos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 860px) {
    .sm-produtos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-produto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background-color: #f7f7f8;
    border-radius: 16px;
    padding: 18px 14px;
    gap: 8px;
    transition: box-shadow .2s ease;
}

.sm-produto-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.sm-produto-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.sm-produto-nome {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.sm-produto-preco {
    font-size: 13px;
    font-weight: 700;
    color: #c01823;
}

.sm-nutricao-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 860px) {
    .sm-nutricao-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sm-nutricao-item {
    background-color: #f7f7f8;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.sm-nutricao-valor {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.sm-nutricao-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.sm-relacionadas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sm-relacionadas-nav {
    display: flex;
    gap: 8px;
}

.sm-relacionadas-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    font-size: 16px;
}

.sm-relacionadas-nav button:hover {
    background-color: #c01823;
    border-color: #c01823;
    color: #fff;
}

.sm-relacionadas-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}

.sm-relacionadas-track .sm-receita-card {
    flex: 0 0 260px;
}

@media print {
    header, footer, .sm-receita-hero, .sm-receita-tabsbar, .sm-guardar-receita, .sm-imprimir-receita, .sm-relacionadas, #produtos, .mod-breadcrumbs {
        display: none !important;
    }
}
