:root {
    --egc-red: #d60000;
    --egc-red-dark: #a80000;
    --egc-gray: #d0d0d0;
    --egc-soft: #f4f4f4;
    --egc-text: #222222;
}

body {
    color: var(--egc-text);
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}

a {
    color: var(--egc-red-dark);
}

a:hover {
    color: var(--egc-red);
}

.egc-header {
    padding: 24px 0 18px;
    background: #ffffff;
}

.egc-logo {
    display: inline-block;
    color: var(--egc-red);
    font-size: 78px;
    line-height: .68;
    font-weight: 700;
    text-decoration: none;
}

.egc-logo:hover {
    color: var(--egc-red);
}

.egc-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 46px;
    position: relative;
    min-height: 42px;
}

.egc-action {
    position: relative;
    padding-bottom: 14px;
}

.egc-action-link {
    display: inline-block;
    color: var(--egc-red-dark);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.egc-action-link:hover {
    color: var(--egc-red);
}

.egc-location-card {
    position: absolute;
    right: 0;
    top: 28px;
    z-index: 30;
    display: none;
    width: 500px;
    padding: 12px 34px 18px;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
    text-align: left;
}

.egc-location:hover .egc-location-card,
.egc-location:focus-within .egc-location-card {
    display: block;
}

.egc-location-card iframe {
    width: 100%;
    height: 205px;
    border: 0;
    margin-bottom: 16px;
}

.egc-location-card p {
    margin: 0;
    color: #111111;
    font-size: 16px;
    line-height: 1.35;
}

.egc-menu {
    background: var(--egc-gray);
    margin-top: 16px;
}

.egc-menu .nav {
    min-height: 58px;
}

.egc-menu .nav-link {
    color: #111111;
    font-weight: 700;
    padding: 18px 36px;
    text-transform: none;
    font-size: 16px;
    border-left: 1px solid rgba(255, 255, 255, .45);
}

.egc-menu .nav-item:first-child .nav-link,
.egc-menu .nav-link:hover {
    background: var(--egc-red);
    color: #ffffff;
}

.web-content {
    width: 100%;
}

.egc-banner-shell {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.TextoIMGSlider1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
    background: transparent;
    pointer-events: none;
}

.TextoIMGSlider1 marquee {
    display: block;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .9);
}

.ImageArea,
.egc-hero-image {
    width: 100%;
    height: 288px;
    object-fit: cover;
    border-radius: 8px;
}

.TBTexto,
.form-select,
.form-control {
    border-radius: 0;
    min-height: 36px;
}

.btn-primary,
.egc-button {
    background: var(--egc-red);
    border-color: var(--egc-red);
    border-radius: 3px;
}

.btn-primary:hover,
.egc-button:hover {
    background: var(--egc-red-dark);
    border-color: var(--egc-red-dark);
}

.egc-search-combo {
    position: relative;
    z-index: 20;
    text-align: left;
}

.egc-search-input {
    background: #ffffff;
}

.egc-search-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.egc-search-results.is-open {
    display: block;
}

.egc-search-option {
    display: block;
    width: 100%;
    padding: 11px 16px 12px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #dddddd;
    color: #222222;
    text-align: left;
    cursor: pointer;
}

.egc-search-option:hover,
.egc-search-option.selected {
    background: #f5f5f5;
}

.egc-search-option.is-hidden {
    display: none;
}

.egc-search-option-title {
    display: block;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.egc-search-option-description {
    display: block;
    margin-top: 4px;
    color: #666666;
    font-size: 13px;
    line-height: 1.35;
}

.egc-search-highlight {
    padding: 0 2px;
    background: #fff2a8;
    color: inherit;
    box-shadow: 0 0 0 2px rgba(255, 226, 82, .45);
}

.ImagemBarra {
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 6px;
    background: #000000;
}

.ImagemBarra a {
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.ImagemBarra figure {
    margin: 0;
    overflow: hidden;
}

.ImagemBarra img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .28s ease, opacity .28s ease;
}

.ImagemBarra:hover img {
    transform: scale(1.07);
    opacity: .78;
}

.BarraSegmento {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -46px;
    min-height: 46px;
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(214, 0, 0, .9);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
    transition: bottom .25s ease;
}

.ImagemBarra:hover .BarraSegmento {
    bottom: 13px;
}

.transparentStyle {
    background: transparent;
}

.product-card {
    border-bottom: 1px solid #dddddd;
    padding: 24px 0;
}

.product-card.egc-no-divider {
    border-bottom: 0;
}

.egc-products-page .product-card:last-of-type {
    border-bottom: 0;
}

.product-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.egc-product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    align-items: stretch;
}

.egc-product-main {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #000000;
}

.egc-product-main img {
    display: block;
    width: 100%;
    height: 198px;
    max-height: none;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.egc-product-main:hover img {
    transform: scale(1.04);
    opacity: .9;
}

.egc-product-thumbs {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
}

.egc-product-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #000000;
    overflow: hidden;
    cursor: pointer;
}

.egc-product-thumb.active,
.egc-product-thumb:hover {
    outline: 3px solid var(--egc-red);
    outline-offset: -3px;
}

.egc-product-thumb img {
    display: block;
    width: 100%;
    height: 62px;
    max-height: none;
    object-fit: cover;
}

.egc-footer {
    padding: 24px 0 34px;
    background: #f2f2f2;
    margin-top: 0;
}

.egc-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 12px 0;
}

.egc-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.egc-social-icon:hover {
    color: #ffffff;
    opacity: .86;
}

.egc-social-linkedin {
    background: #0a77b7;
    border-radius: 6px;
    font-size: 24px;
}

.egc-social-facebook {
    background: #3b5998;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 36px;
}

.egc-social-instagram {
    color: #e14275;
    background: transparent;
    border: 4px solid #e14275;
    border-radius: 12px;
    font-size: 34px;
}

.egc-social-instagram:hover {
    color: #e14275;
}

.egc-footer address {
    margin-bottom: 0;
}

.egc-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
}

.egc-whatsapp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: #32c75a;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

@media (max-width: 767px) {
    .egc-header {
        padding-top: 16px;
    }

    .egc-header .row {
        position: relative;
    }

    .egc-logo {
        font-size: 56px;
    }

    .egc-language-flags {
        position: absolute;
        top: 4px;
        right: 12px;
        width: auto;
        text-align: right;
    }

    .egc-language-flags a {
        display: inline-block;
        margin-left: 5px;
    }

    .egc-top-actions {
        justify-content: center;
        gap: 24px;
        width: 100%;
        min-height: 34px;
        text-align: center;
    }

    .egc-action {
        padding-bottom: 10px;
    }

    .egc-popover-card,
    .egc-location-card {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .egc-contact-card {
        width: min(92vw, 300px);
    }

    .egc-location-card {
        position: fixed;
        top: 92px;
        left: 50%;
        right: auto;
        width: calc(100vw - 32px);
        max-width: 360px;
        box-sizing: border-box;
        max-height: 76vh;
        padding: 10px 14px 14px;
        overflow-y: auto;
    }

    .egc-location-card iframe {
        height: 150px;
        margin-bottom: 10px;
    }

    .egc-location-card p {
        font-size: 13px;
        line-height: 1.3;
    }

    .egc-home-search-button {
        margin-top: 12px;
    }

    .ImageArea,
    .egc-hero-image {
        height: 220px;
    }

    .ImagemBarra img,
    .ImagemBarra:hover img {
        transform: none;
        opacity: .88;
    }

    .BarraSegmento,
    .ImagemBarra:hover .BarraSegmento {
        bottom: 0;
        background: rgba(204, 4, 7, .94);
    }

    .TextoIMGSlider1 marquee {
        font-size: 24px;
    }

    .egc-menu .nav-link {
        padding: 12px 18px;
    }
}

/* Ajustes finais de fidelidade ao layout legado */
.egc-header {
    padding-bottom: 28px;
}

.egc-header + .web-content {
    margin-top: 8px;
}

.egc-banner-shell {
    margin-bottom: 28px;
}

.web-content[style*="background-color"] {
    padding: 16px 0;
    margin-bottom: 36px;
}

.egc-popover-card {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    display: none;
    background: #ffffff;
    border: 1px solid #d5d5d5;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
    text-align: left;
}

.egc-popover-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.egc-action:hover .egc-popover-card,
.egc-action:focus-within .egc-popover-card {
    display: block;
}

.egc-contact-card {
    width: 300px;
    padding: 18px 20px;
}

.egc-contact-card p {
    margin: 0 0 10px;
    color: #111111;
    font-size: 15px;
    white-space: nowrap;
}

.egc-contact-card p:last-child {
    margin-bottom: 0;
}

.egc-contact-card i {
    color: var(--egc-red);
    margin-right: 8px;
}

.egc-contact-card a,
.egc-contact-card a:hover {
    color: #111111;
    text-decoration: none;
}

.egc-location-card {
    width: 500px;
    padding: 12px 34px 18px;
}

.egc-menu .nav-item:first-child .nav-link {
    background: transparent;
    color: #111111;
}

.egc-menu .nav-link.active,
.egc-menu .nav-link:hover {
    background: var(--egc-red);
    color: #ffffff;
}

.egc-menu .nav-item {
    position: relative;
}

.egc-products-submenu {
    position: absolute;
    left: 0;
    bottom: 100%;
    z-index: 25;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
    border: 1px solid #e0e0e0;
}

.egc-menu .nav-item:hover .egc-products-submenu,
.egc-menu .nav-item:focus-within .egc-products-submenu {
    display: block;
}

.egc-products-submenu a {
    display: block;
    padding: 10px 20px;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}

.egc-products-submenu a:hover {
    color: #ffffff;
    background: var(--egc-red);
}

.egc-footer {
    background: #ffffff;
    padding: 22px 0 28px;
}

.egc-privacy-link,
.egc-privacy-link:hover {
    text-decoration: none;
}

.egc-social {
    gap: 18px;
    margin-top: 14px;
}

.egc-social-icon {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font-size: 42px;
    line-height: 1;
}

.egc-social-icon:hover {
    opacity: .85;
}

.egc-social-icon[aria-label="LinkedIn"] {
    color: #0a77b7;
}

.egc-social-icon[aria-label="Facebook"] {
    color: #3b5998;
}

.egc-social-icon[aria-label="Instagram"] {
    color: #e14275;
}

.egc-whatsapp a {
    width: 72px;
    height: 72px;
    font-size: 42px;
    background: #35c65a;
    transition: box-shadow .22s ease, filter .22s ease, background-color .22s ease;
}

.egc-whatsapp a:hover {
    background: #2ebf53;
    filter: brightness(1.03);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, .18),
        0 0 0 8px rgba(53, 198, 90, .18);
}
