/* Huuguu Match Products - Frontend Styles */

.hmp-single-model {
    margin: 0 auto;
}

.hmp-single-model img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hmp-header-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.hmp-header-image {
    flex: 0 0 auto;
    max-width: 40%;
}

.hmp-header-content {
    flex: 0 0 55%;
    max-width: 55%;
}

@media (max-width: 768px) {
    .hmp-header-image,
    .hmp-header-content {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
}

.model-description {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.hmp-variation-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.hmp-variation-filter label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
}

.hmp-variation-filter select {
    width: 100%;
    padding: 0.5rem;
    min-width: 220px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.hmp-variation-filter > div {
    flex: 1 1 220px;
}

.hmp-variation-filter button {
    padding: 0.8rem 1.5rem;
    background-color: #0064d2;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
}

.hmp-variation-filter button:hover {
    background-color: #004ea3;
}

@media (max-width: 600px) {
    .hmp-variation-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .hmp-variation-filter button {
        width: 100%;
    }
    .hmp-variation-filter > div {
        flex: 1 1 20px;
    }
}


.hmp-comparison-box {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    text-align:center;
}

.hmp-offer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.hmp-offer-logo img {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.hmp-offer-stock,
.hmp-offer-price {
    text-align: center;
    font-weight: 500;
}

.hmp-offer-label {
    display: block;
    font-size: 0.8rem;
    color: #777;
}

.hmp-offer-button {
    text-align: right;
}

.hmp-buy-now {
    display: inline-block;
    background: #0053a0;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease;
}
.hmp-buy-now:hover {
    background: #003d7a;
}

.hmp-product-type-archive {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.hmp-model-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}



.hmp-tabs {
    margin-top: 20px;
}

.hmp-tab-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    border-bottom: 2px solid #ddd;
    margin: 20px 0px;
}

.hmp-tab-nav li {
    margin-right: 15px;
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px 5px 0 0;
    background: #f2f2f2;
}

.hmp-tab-nav li:hover {
    background: #e9e9e9;
    border-color: #ccc #ccc white;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hmp-tab-nav li.active {
    border-color: #ddd #ddd white;
    background: white;
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}



/* Wrapper principal */
#hmp-rating-box, .hmp-rating-wrap {
    text-align: center;
    margin-top: 3rem;
    background-color: #f9f9f9;
    padding: 50px 15px 15px 15px;
    border-radius: 12px;
}

/* Estilo da mensagem de confirmação */
.rating-msg {
    margin-top: 1rem;
    font-weight: 500;
    color: #007bff;
}

/* Contêiner das estrelas */
.hmp-stars {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 2rem;
    user-select: none;
}

/* Estilo base das estrelas */
.hmp-stars .star {
    display: inline-block;
    padding: 0.3rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Estrelas quando ativas ou em hover */
.hmp-stars .star:hover,
.hmp-stars .star.hovered,
.hmp-stars .star.selected,
.hmp-stars .star.active {
    color: #f5c518; /* Amarelo ouro */
}


.hmp-model-meta {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hmp-model-meta li {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.hmp-model-meta li strong {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
}

.hmp-model-meta li a {
    color: #0073aa;
    text-decoration: none!important;
    margin-right: 0.4rem;
    border: 1px solid #f2f1f1;
    padding: 2px 5px;
}

.hmp-model-meta li a:hover {
    text-decoration: underline;
    border: 1px solid #ccc;
}

.hmp-model-meta li span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.hmp-model-meta .sep {
    margin-right: 0.3rem;
}


.hmp-model-meta svg {
    transition: transform 0.2s ease, opacity 0.2s ease;
    vertical-align: middle;
}

.hmp-model-meta a svg {
  vertical-align: middle;
  margin: 0.25rem;
}

.hmp-model-meta a:hover svg {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .hmp-offer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hmp-offer-button {
        text-align: center;
        margin-top: 0.5rem;
    }
    .hmp-model-meta li span,.hmp-model-meta li strong {
    text-align:left;
    }
    .hmp-tab-nav{
    justify-content:center;
    }
    .hmp-model-meta li a {
    display: inline-block;
    margin-bottom: 0.4rem;
    }
}


@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    body {
        margin: 0 !important;
        padding: 11px !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.3;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hmp-single-model {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block;
        page-break-inside: avoid !important;
        height:95%;

        /* Reduz escala geral para caber */
        transform: scale(0.95);
        transform-origin: center center;
    }

    .hmp-header-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.5rem;
        page-break-inside: avoid !important;
    }


    .hmp-header-image {
        flex: 1 1 auto;
        max-width: 40%;
    }
    .hmp-header-content {
        flex: 1 1 60%;
        max-width: 60%;
    }

    .hmp-header-content h1 {
        font-size: 14pt !important;
        margin-bottom: 0.5rem;
    }

    .hmp-model-meta {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hmp-model-meta li {
        margin-bottom: 0.2rem;
    }

    .model-description {
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
        margin-top: 1rem !important;
        color: #000 !important;
        display: block !important;
        page-break-inside: avoid !important;
    }

#description,
.model-description {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    color: #000 !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

/* Oculta elementos não necessários */
.site-header,
.site-footer,
nav,
.breadcrumbs,
.hmp-tab-nav,
.tab-pane:not(#description),
.model-rating,
.hmp-rating-wrap,
.print-button,
.hmp-model-meta li:has(svg),
.hmp-model-meta li:has([onclick*="print"]) {
    display: none !important;
}

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

