/**
 * HowCampers Comparison Table
 * --------------------------------------------------------------------------
 * Custom properties (variáveis CSS) permitem personalização rápida.
 * Para personalizar mais profundamente, todas as células e linhas têm
 * classes específicas — ex.: .hcc-cell-battery-explorer,
 * .hcc-row-park-heating, .hcc-cell-model-navigator, etc.
 */

.hcc-wrapper {
    --hcc-feature-col-width: 220px;
    --hcc-feature-col-width-mobile: 150px;
    --hcc-min-col-width: 180px;
    --hcc-row-height: 56px;
    --hcc-border-color: #e5e7eb;
    --hcc-row-bg-odd: #f4f5f7;
    --hcc-row-bg-even: #ffffff;
    --hcc-row-bg-feature: #f4f5f7;
    --hcc-row-bg-hover: #dfe3e8;
    --hcc-text-color: #2b2b2b;
    --hcc-feature-color: #2b2b2b;
    --hcc-icon-yes-color: #4caf50;
    --hcc-icon-no-color: #e91e63;
    --hcc-badge-bg: #ffb800;
    --hcc-badge-color: #ffffff;
    --hcc-btn-bg: #f9d343;
    --hcc-btn-bg-hover: #ffd200;
    --hcc-btn-color: #2b2b2b;
    --hcc-font-family: inherit;

    font-family: var(--hcc-font-family);
    color: var(--hcc-text-color);
    width: 100%;
    margin: 0 0 2em;
    box-sizing: border-box;
}

.hcc-wrapper *,
.hcc-wrapper *::before,
.hcc-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Scroll horizontal ---------- */
.hcc-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

/* ---------- Tabela ---------- */
.hcc-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: auto;
}

/* ---------- Linhas ---------- */
.hcc-row {
    /* hook genérico para todas as linhas */
}

.hcc-row-header th {
    height: 50px;
    vertical-align: middle;
}

.hcc-row-image td,
.hcc-row-image th {
    background: #ffffff;
}

.hcc-row-odd .hcc-cell-value,
.hcc-row-odd .hcc-cell-feature {
    background-color: var(--hcc-row-bg-odd);
}

.hcc-row-even .hcc-cell-value,
.hcc-row-even .hcc-cell-feature {
    background-color: var(--hcc-row-bg-even);
}

/* ---------- Células base ---------- */
.hcc-cell {
    padding: 14px 18px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 0px solid var(--hcc-border-color);
    font-size: 15px;
    line-height: 1.35;
    width: auto;
    min-width: var(--hcc-min-col-width);
    transition: background-color 0.15s ease;
}

/* ---------- Hover nas linhas de conteúdo ---------- */
.hcc-row-feature:hover .hcc-cell-value,
.hcc-row-feature:hover .hcc-cell-feature {
    background-color: var(--hcc-row-bg-hover);
}

/* ---------- Primeira coluna (fixa) ---------- */
.hcc-cell-feature {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    font-weight: 500;
    color: var(--hcc-feature-color);
    width: var(--hcc-feature-col-width);
    min-width: var(--hcc-feature-col-width);
    max-width: var(--hcc-feature-col-width);
    background-color: var(--hcc-row-bg-feature);
    /* Sombra subtil à direita para indicar que está fixa quando scroll horizontal */
    box-shadow: 7px 0 6px -2px rgba(0, 0, 0, 0.14);
}

.hcc-cell-feature-header,
.hcc-cell-feature-image,
.hcc-cell-feature-footer {
    background-color: #ffffff;
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.08);
}

/* ---------- Cabeçalho dos modelos ---------- */
.hcc-cell-model {
    color: #ffffff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 9px 9px;
    border-bottom: 0;
}

.hcc-model-name {
    display: inline-block;
    font-family: "Winky Rough" !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    line-height: 1.1 !important;
    min-height: 38px !important;
    vertical-align: middle !important;
    padding-top: 8px;
    color: #fff;
}

/* ---------- Linha de imagem ---------- */
.hcc-cell-image {
    padding: 0px;
    border-bottom: 1px solid var(--hcc-border-color);
}

.hcc-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hcc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hcc-badge {
    position: absolute;
    top: 14px;
    left: -34px;
    transform: rotate(-35deg);
    background: var(--hcc-badge-bg);
    color: var(--hcc-badge-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 40px;
    text-transform: uppercase;
    z-index: 1;
}

/* ---------- Ícones / valores ---------- */
.hcc-icon {
    display: inline-block;
    font-size: 0; /* esconde o caractere unicode que vem do HTML */
    line-height: 1;
}

.hcc-icon::before {
    font-family: "fontawesome";
    font-size: 22px;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hcc-icon-yes::before {
    content: "\f00c"; /* fa-check */
    color: var(--hcc-icon-yes-color);
}

.hcc-icon-no::before {
    content: "\f00d"; /* fa-times */
    color: var(--hcc-icon-no-color);
}

/* ---------- Rodapé / botões ---------- */
.hcc-row-footer .hcc-cell {
    background: #ffffff;
    padding: 18px 12px;
    border-bottom: 0;
}

.hcc-btn {
    display: inline-block;
    background: #edda56;
    color: #000;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 0.7em;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.hcc-btn:hover,
.hcc-btn:focus {
    background: #0089bf;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ---------- Screen reader only ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
    .hcc-table {
        /* feature col mobile (150px) + 4 colunas de produto (130px cada) */
        min-width: 670px;
    }

    .hcc-cell {
        padding: 12px 10px;
        font-size: 13px;
        min-width: 130px;
        width: 130px;
    }

    .hcc-cell-feature {
        width: var(--hcc-feature-col-width-mobile);
        min-width: var(--hcc-feature-col-width-mobile);
        max-width: var(--hcc-feature-col-width-mobile);
        font-size: 13px;
        padding: 12px 10px;
    }

    .hcc-cell-model {
        font-size: 16px;
        padding: 12px 8px;
    }

.hcc-icon::before {
        font-size: 18px;
    }

    .hcc-badge {
        font-size: 9px;
        padding: 3px 32px;
        top: 10px;
        left: -32px;
    }

    .hcc-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hcc-wrapper {
        --hcc-feature-col-width-mobile: 120px;
    }

    .hcc-table {
        /* feature col mobile (120px) + 4 colunas de produto (130px cada) */
        min-width: 640px;
    }
}
