/**
 * M5 Armas e Munições - Magento Integration CSS
 * Header, Footer, WhatsApp button, e ajustes para integrar
 * a Landing Page M5/GECO dentro do Magento 1.9
 */

/* ========================================
   GOOGLE FONTS (caso não carregado via CDN)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

/* ========================================
   BODY / GLOBAL OVERRIDES
   ======================================== */

/* Bootstrap 3 sets html { font-size: 10px }, but lp-m5.css uses rem
   based on 16px. Reset to browser default so rem values render correctly. */
html {
    font-size: 16px !important;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    color: #fff;
    margin: 0;
    font-size: 1rem;
}

a { color: #E31E24; }
a:hover { color: #fff; }

/* Remove Magento default wrapper constraints on home */
body.cms-index-index .main-container,
body.cms-index-index .col-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ========================================
   TOP BAR - Magento overrides only
   (base styles from lp-m5.css)
   ======================================== */
/* lp-m5.css handles all top-bar styling */

@media (max-width: 768px) {
    .top-bar-desktop { display: none; }
    .top-bar-mobile { display: block; }
}

/* ========================================
   NAVBAR - Magento overrides only
   (base styles from lp-m5.css)
   ======================================== */

/* BS3 compat: .fixed-top não existe no BS3, precisa emular */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Top-bar também precisa ficar fixed acima de tudo */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
}

/* Reset BS3 .navbar defaults that break our custom navbar */
.navbar.custom-navbar {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    min-height: auto;
}

/* Reset BS3 .navbar-collapse padding */
.navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

/* Reset BS3 .navbar-nav float (BS3 forces float:left on .navbar-nav) */
.navbar-nav.navbar-nav-menu {
    float: none !important;
    margin: 0;
}

/* Override BS3 float-based layout with flexbox from 768px+
   BS3 @media(min-width:768px) sets:
   - .navbar-collapse.collapse { display: block !important }
   - .navbar-nav { float: left }
   - .navbar-nav>li { float: left }
   We must override ALL of these at the same breakpoint and specificity */
@media (min-width: 768px) {
    .navbar.custom-navbar .navbar-collapse.collapse {
        display: flex !important;
        flex-grow: 1;
        justify-content: flex-end;
        float: none !important;
        overflow: visible !important;
    }
    .navbar.custom-navbar .navbar-nav.navbar-nav-menu {
        float: none !important;
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 0;
    }
    .navbar.custom-navbar .navbar-nav.navbar-nav-menu > li {
        float: none !important;
        display: inline-flex;
        align-items: center;
    }
}
.navbar-container-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px !important;
}

/* Dropdown dark for logged-in user menu */
.dropdown-menu-dark {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    min-width: 200px;
    padding: 5px 0;
}

.nav-item-user {
    position: relative !important;
}

.nav-item-user > .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    margin-top: 0;
    z-index: 10000;
}

.dropdown-menu-dark .dropdown-item {
    color: rgba(255,255,255,0.7);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    display: block;
    text-decoration: none;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(227, 30, 36, 0.15);
    color: #E31E24;
}

.dropdown-menu-dark .divider {
    background-color: rgba(255,255,255,0.1);
    height: 1px;
    margin: 5px 0;
    overflow: hidden;
}

/* Navbar toggler (BS3 compat, light theme) */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.2);
    padding: 8px 10px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Desktop: additional overrides for larger screens */
@media (min-width: 992px) {
    .navbar-toggler { display: none !important; }
}

/* ============================================
   FIX: LP section text colors 
   (ensure visibility on dark backgrounds)
   ============================================ */

/* Cap II - Historia: typewriter text must be light on dark bg */
.section-legend .typewriter-text p {
    color: #ccc;
}
.section-legend .typewriter-text .legend-year {
    color: #f9bf17;
}
.section-legend .typewriter-text .legend-intro {
    color: #ffffff;
}
.section-legend .legend-quote p {
    color: #ccc;
}
.section-legend .legend-tagline {
    color: #ccc;
}

/* Cap I - Hero: button text must be white */
.hero-cta-group .btn-cta-primary {
    color: #ffffff !important;
}

/* Cap III - Manifesto: button text must be white */
.btn-manifesto-cta {
    color: #ffffff !important;
}
.btn-manifesto-cta:hover {
    color: #E31E24 !important;
}

/* Custom collapse behavior (BS3) */
@media (max-width: 991px) {
    .navbar-toggler { display: block; }
    .navbar-collapse {
        display: none;
        width: 100%;
    }
    .navbar-collapse.in,
    .navbar-collapse.show {
        display: block;
    }
}

/* Cart item styling in navbar */
.nav-icon-link {
    display: flex;
    align-items: center;
    padding: 10px 12px !important;
    position: relative;
}

.nav-icon-link svg {
    stroke: #1a1a1a;
    transition: stroke 0.3s ease;
}

.nav-icon-link:hover svg {
    stroke: #E31E24;
}

/* Cart badge */
.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #E31E24;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-item-cart a {
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-item-cart:hover a { color: #E31E24 !important; }

/* ========================================
   SEARCH BAR - toggleable via icon click
   ======================================== */
.m5-search-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    animation: searchSlideDown 0.3s ease;
}

.m5-search-bar.active {
    display: block;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.m5-search-inner {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    gap: 10px;
}

.m5-search-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 12px 18px;
    outline: none;
    transition: border-color 0.3s;
}

.m5-search-input:focus {
    border-color: #E31E24;
}

.m5-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.m5-search-btn {
    background: #E31E24;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.m5-search-btn svg {
    stroke: #fff;
}

.m5-search-btn:hover {
    background: #c5171c;
}

.m5-search-close {
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.m5-search-close svg {
    stroke: rgba(255,255,255,0.6);
    transition: stroke 0.3s;
}

.m5-search-close:hover svg {
    stroke: #fff;
}

/* SearchAutocomplete dropdown inside M5 search bar */
.m5-search-bar .UI-SEARCHAUTOCOMPLETE {
    position: relative;
}

.m5-search-bar .searchautocomplete-placeholder {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    z-index: 1050;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 400px;
    overflow-y: auto;
}

.m5-search-bar .searchautocomplete-placeholder .item,
.m5-search-bar .searchautocomplete-placeholder li,
.m5-search-bar .searchautocomplete-placeholder a {
    color: #ccc !important;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    padding: 8px 15px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m5-search-bar .searchautocomplete-placeholder .item:hover,
.m5-search-bar .searchautocomplete-placeholder li:hover,
.m5-search-bar .searchautocomplete-placeholder a:hover {
    background: rgba(227,30,36,0.1);
    color: #fff !important;
}

.m5-search-bar .searchautocomplete-placeholder .title,
.m5-search-bar .searchautocomplete-placeholder .category-title {
    color: #f9bf17 !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 15px 5px;
}

.m5-search-bar .searchautocomplete-placeholder img {
    max-width: 40px;
    max-height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Search bar on homepage: show when active */
body.cms-index-index .m5-search-bar.active {
    display: block;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    background: transparent;
    padding: 10px 0;
    margin: 0 auto;
    max-width: 1400px;
}

.breadcrumbs li {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.breadcrumbs a:hover { color: #E31E24; }

/* ========================================
   FOOTER
   ======================================== */
.section-disclaimer {
    background: #0a0a0a;
    padding: 30px 0;
    border-top: 1px solid rgba(227, 30, 36, 0.2);
}

.section-disclaimer .disclaimer {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #E31E24;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.8;
    margin: 0;
}

.footer-pro {
    background: #0d0d0d;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.footer-main {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f9bf17;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-main { height: 55px; width: auto; opacity: 1; }
.footer-logo-geco { height: 64px; width: auto; opacity: 0.8; margin-top: 10px; }

.footer-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.footer-slogan {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-list a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover { color: #E31E24; }

.footer-warning {
    font-size: 0.72rem !important;
    color: #E31E24 !important;
    font-style: italic;
    margin-top: 8px !important;
}

.footer-links-list a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    padding: 3px 0;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: #E31E24;
    padding-left: 5px;
}

.footer-bottom {
    background: #080808;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.footer-legal {
    font-size: 0.65rem !important;
    color: rgba(255,255,255,0.2) !important;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-main { padding: 40px 0 30px; }
}

/* ========================================
   WHATSAPP FLUTUANTE
   ======================================== */
.m5-whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.m5-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.m5-whatsapp-button svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   MAGENTO GLOBAL OVERRIDES
   ======================================== */

/* Hide old Magento elements we don't need */
.top-menu, .contact.hidden-xs { display: none !important; }

/* Magento messages styling */
.messages li li {
    padding: 10px 15px;
    border-radius: 0;
    font-size: 0.85rem;
}

/* Inner pages that keep dark theme */
.catalogsearch-result-index,
.customer-account-login,
.customer-account-forgotpassword {
    background: #0a0a0a;
    color: #fff;
}

/* Main container adjustments */
.main-container {
    background: transparent;
}

.col-main {
    background: transparent;
    color: #fff;
}

/* Magento newsletter override */
.newsletter .input-text {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

/* ========================================
   NAVBAR SCROLL BEHAVIOR
   ======================================== */
@media (max-width: 991px) {
    .custom-navbar {
        padding: 8px 0 !important;
    }
    .navbar-container-new {
        padding: 0 15px;
    }
    .navbar-geco-slogan {
        display: none;
    }
    .navbar-geco-logo {
        height: 30px;
    }
    .m5-search-bar {
        margin-top: 82px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 15px;
        margin-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .navbar-nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .navbar-nav-menu .nav-link {
        padding: 10px 0;
        width: 100%;
    }
}

/* Offset content for fixed navbar */
body.cms-index-index .home_loja {
    padding-top: 0 !important;
    margin-top: -8px;
}

/* ============================
   M5 DARK THEME - INNER PAGES
   (cadastro, conta, etc.)
   ============================ */

/* Global dark background for all pages */
body {
    background: #0d0d0d;
    color: #ccc;
}

/* Main content area */
.main-container {
    background: transparent;
}

.main-container .main {
    background: transparent;
}

.col-main,
.col-left,
.col-right {
    background: transparent !important;
}

/* Content offset for fixed navbar (top-bar ~44px + navbar ~95px) */
.main-container {
    padding-top: 140px;
}

body.cms-index-index .main-container {
    padding-top: 0;
}

/* Page titles */
.page-title h1,
.page-title h2 {
    font-family: 'Lato', sans-serif;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
}

/* Form styling for dark theme */
.form-list label {
    color: rgba(255,255,255,0.6) !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-list input.input-text,
.form-list select,
.form-list textarea {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: border-color 0.3s ease;
}

.form-list input.input-text:focus,
.form-list select:focus,
.form-list textarea:focus {
    border-color: #E31E24 !important;
    outline: none;
    background: rgba(255,255,255,0.08) !important;
}

.form-list input.input-text::placeholder {
    color: rgba(255,255,255,0.3);
}

/* Select dropdown arrow for dark theme */
.form-list select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 35px;
}

/* Buttons */
.buttons-set button.button,
button.button,
.btn-cart {
    background: #E31E24 !important;
    color: #fff !important;
    border: 2px solid #E31E24 !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.buttons-set button.button:hover,
button.button:hover,
.btn-cart:hover {
    background: #fff !important;
    color: #E31E24 !important;
}

.buttons-set button.button span,
button.button span {
    background: transparent !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    padding: 0 !important;
    border: none !important;
}

.buttons-set button.button span span {
    background: transparent !important;
    padding: 0 !important;
}

/* Links */
.main-container a {
    color: #E31E24;
    transition: color 0.3s ease;
}

.main-container a:hover {
    color: #fff;
}

/* Required asterisks */
.required em,
.form-list .required em {
    color: #E31E24 !important;
}

/* Fieldset / legend */
fieldset {
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 20px !important;
    margin-bottom: 20px;
}

legend {
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 10px;
}

/* Breadcrumbs dark */
.breadcrumbs li,
.breadcrumbs a,
.breadcrumbs span {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.75rem;
}

.breadcrumbs a:hover {
    color: #E31E24 !important;
}

/* Account sidebar navigation */
.block-account .block-title {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.block-account .block-content li a {
    color: rgba(255,255,255,0.6) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 8px 12px;
}

.block-account .block-content li a:hover,
.block-account .block-content li.current a {
    color: #E31E24 !important;
}

/* Messages */
.messages .success-msg,
.messages .error-msg,
.messages .note-msg {
    font-size: 0.85rem;
}

.messages .error-msg {
    background: rgba(227,30,36,0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(227,30,36,0.3) !important;
}

.messages .success-msg {
    background: rgba(46,204,113,0.15) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(46,204,113,0.3) !important;
}

.messages .note-msg {
    background: rgba(241,196,15,0.15) !important;
    color: #f1c40f !important;
    border: 1px solid rgba(241,196,15,0.3) !important;
}

/* Validation advice */
.validation-advice {
    color: #ff6b6b !important;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Back link */
.buttons-set .back-link a,
.buttons-set a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.8rem;
}

.buttons-set .back-link a:hover,
.buttons-set a:hover {
    color: #E31E24 !important;
}

/* Checkbox / radio dark */
.form-list input[type="checkbox"],
.form-list input[type="radio"] {
    accent-color: #E31E24;
}

/* Tables on inner pages */
.data-table th {
    background: rgba(255,255,255,0.05) !important;
    color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.1) !important;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.data-table td {
    color: #ccc !important;
    border-color: rgba(255,255,255,0.06) !important;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.03) !important;
}

/* ============================
   CATALOG & REGISTER PAGES
   WHITE / LIGHT THEME OVERRIDE
   ============================ */
body.catalog-product-view,
body.catalog-category-view,
body.customer-account-create {
    background: #fff !important;
    color: #333 !important;
}

body.catalog-product-view .main-container,
body.catalog-product-view .main-container .main,
body.catalog-product-view .col-main,
body.catalog-product-view .col-left,
body.catalog-product-view .col-right,
body.catalog-category-view .main-container,
body.catalog-category-view .main-container .main,
body.catalog-category-view .col-main,
body.catalog-category-view .col-left,
body.catalog-category-view .col-right,
body.customer-account-create .main-container,
body.customer-account-create .main-container .main,
body.customer-account-create .col-main {
    color: #333 !important;
}

body.catalog-product-view .page-title h1,
body.catalog-product-view .page-title h2,
body.catalog-category-view .page-title h1,
body.catalog-category-view .page-title h2,
body.customer-account-create .page-title h1 {
    color: #333 !important;
    border-bottom-color: #ddd;
}

body.catalog-product-view .breadcrumbs li,
body.catalog-product-view .breadcrumbs a,
body.catalog-product-view .breadcrumbs span,
body.catalog-category-view .breadcrumbs li,
body.catalog-category-view .breadcrumbs a,
body.catalog-category-view .breadcrumbs span {
    color: #999 !important;
}

body.catalog-product-view .breadcrumbs a:hover,
body.catalog-category-view .breadcrumbs a:hover {
    color: #E31E24 !important;
}

/* Product page specific */
body.catalog-product-view .product-name h1 {
    color: #333 !important;
}

body.catalog-product-view .product-shop .short-description,
body.catalog-product-view .product-shop p,
body.catalog-product-view .box-description p,
body.catalog-product-view .product-collateral p {
    color: #555 !important;
}

body.catalog-product-view .product-shop .price-box .price {
    color: #E31E24 !important;
}

/* Form elements light theme */
body.catalog-product-view .form-list label,
body.customer-account-create .form-list label {
    color: #555 !important;
}

body.catalog-product-view .form-list input.input-text,
body.catalog-product-view .form-list select,
body.catalog-product-view .form-list textarea,
body.customer-account-create .form-list input.input-text,
body.customer-account-create .form-list select,
body.customer-account-create .form-list textarea {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

body.catalog-product-view .form-list input.input-text:focus,
body.catalog-product-view .form-list select:focus,
body.catalog-product-view .form-list textarea:focus,
body.customer-account-create .form-list input.input-text:focus,
body.customer-account-create .form-list select:focus,
body.customer-account-create .form-list textarea:focus {
    border-color: #E31E24 !important;
    background: #fff !important;
}

body.catalog-product-view .form-list select,
body.customer-account-create .form-list select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23555' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

body.catalog-product-view .form-list input.input-text::placeholder,
body.customer-account-create .form-list input.input-text::placeholder {
    color: #999;
}

/* Fieldset / legend light */
body.catalog-product-view fieldset,
body.customer-account-create fieldset {
    border-color: #ddd !important;
}

body.catalog-product-view legend,
body.customer-account-create legend {
    color: #333 !important;
}

/* Tables light */
body.catalog-product-view .data-table th,
body.catalog-category-view .data-table th {
    background: #f5f5f5 !important;
    color: #333 !important;
    border-color: #ddd !important;
}

body.catalog-product-view .data-table td,
body.catalog-category-view .data-table td {
    color: #555 !important;
    border-color: #eee !important;
}

body.catalog-product-view .data-table tr:hover td,
body.catalog-category-view .data-table tr:hover td {
    background: #f9f9f9 !important;
}

/* Sidebar blocks light */
body.catalog-product-view .block .block-title,
body.catalog-category-view .block .block-title {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    color: #333 !important;
}

body.catalog-product-view .block .block-content,
body.catalog-category-view .block .block-content {
    color: #555 !important;
}

body.catalog-product-view .block .block-content a,
body.catalog-category-view .block .block-content a {
    color: #555 !important;
}

body.catalog-product-view .block .block-content a:hover,
body.catalog-category-view .block .block-content a:hover {
    color: #E31E24 !important;
}

/* Links light theme */
body.catalog-product-view .main-container a,
body.catalog-category-view .main-container a,
body.customer-account-create .main-container a {
    color: #E31E24;
}

body.catalog-product-view .main-container a:hover,
body.catalog-category-view .main-container a:hover,
body.customer-account-create .main-container a:hover {
    color: #c5171c;
}

/* Category page product list */
body.catalog-category-view .category-products .product-name a {
    color: #333 !important;
}

body.catalog-category-view .category-products .product-name a:hover {
    color: #E31E24 !important;
}

body.catalog-category-view .category-products .price {
    color: #E31E24 !important;
}

/* Product collateral tabs */
body.catalog-product-view .product-collateral .box-collateral {
    color: #555 !important;
}

body.catalog-product-view .product-collateral h2 {
    color: #333 !important;
}

/* Validation / required */
body.catalog-product-view .validation-advice,
body.customer-account-create .validation-advice {
    color: #c0392b !important;
}

/* Messages light */
body.catalog-product-view .messages .error-msg,
body.customer-account-create .messages .error-msg {
    background: rgba(227,30,36,0.08) !important;
    color: #c0392b !important;
    border: 1px solid rgba(227,30,36,0.2) !important;
}

body.catalog-product-view .messages .success-msg,
body.customer-account-create .messages .success-msg {
    background: rgba(46,204,113,0.08) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(46,204,113,0.2) !important;
}

/* Buttons keep red style (works on both light/dark) */
body.catalog-product-view .buttons-set a,
body.customer-account-create .buttons-set a,
body.customer-account-create .buttons-set .back-link a {
    color: #666 !important;
}

body.catalog-product-view .buttons-set a:hover,
body.customer-account-create .buttons-set a:hover {
    color: #E31E24 !important;
}

/* ============================
   CART, CHECKOUT & CUSTOMER ACCOUNT
   WHITE / LIGHT THEME OVERRIDE
   ============================ */

/* Cart page */
body.checkout-cart-index {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.checkout-cart-index .main-container,
body.checkout-cart-index .main-container .main,
body.checkout-cart-index .col-main {
    color: #333 !important;
}

body.checkout-cart-index .page-title h1,
body.checkout-cart-index .page-title h2 {
    color: #333 !important;
    border-bottom-color: #ddd;
}

body.checkout-cart-index .data-table th {
    background: #eee !important;
    color: #555 !important;
    border-color: #ddd !important;
}

body.checkout-cart-index .data-table td {
    color: #333 !important;
    border-color: #eee !important;
}

body.checkout-cart-index .cart-totals-wrapper,
body.checkout-cart-index .totals {
    color: #333 !important;
}

body.checkout-cart-index a {
    color: #E31E24 !important;
}

/* Checkout page */
body.checkout-onepage-index {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.checkout-onepage-index .main-container,
body.checkout-onepage-index .main-container .main,
body.checkout-onepage-index .col-main {
    background: transparent !important;
    color: #333 !important;
}

body.checkout-onepage-index .osc-summary,
body.checkout-onepage-index .one-page-checkout,
body.checkout-onepage-index #checkoutSteps li {
    color: #333 !important;
}

/* Checkout: .endereco text visible on light bg */
body.checkout-onepage-index .endereco,
body.checkout-onepage-index .endereco p,
body.checkout-onepage-index .endereco span,
body.checkout-onepage-index .endereco address,
body.checkout-onepage-index div.endereco,
body.onestepcheckout-index-index .endereco,
body.onestepcheckout-index-index .endereco p,
body.onestepcheckout-index-index div.endereco {
    color: #333 !important;
}

/* Checkout: change blue #098dc7 titles to black */
body.checkout-onepage-index .step-title h2,
body.checkout-onepage-index .opc .section.active .step-title h2,
body.checkout-onepage-index .opc .section.allow .step-title:hover h2,
body.checkout-onepage-index .block-title h2,
body.checkout-onepage-index .block-title h3,
body.checkout-onepage-index .block-title strong,
body.onestepcheckout-index-index .step-title h2 {
    color: #333 !important;
}

/* Checkout: number badge to M5 gold */
body.checkout-onepage-index .opc .section .step-title .number,
body.checkout-onepage-index .opc .section.allow.active .step-title .number,
body.checkout-onepage-index .opc .section.allow .step-title .number,
body.onestepcheckout-index-index .opc .section .step-title .number {
    background-color: #D4A017 !important;
}

/* Checkout: active step border to M5 gold */
body.checkout-onepage-index .opc .section.active .step-title,
body.onestepcheckout-index-index .opc .section.active .step-title {
    border-color: #D4A017 !important;
}

/* Checkout: status bar to M5 gold */
body.checkout-onepage-index .ui-form__input+.ui-form__status-bar:after,
body.checkout-onepage-index .ui-form__input~.ui-form__status-bar:after,
body.onestepcheckout-index-index .ui-form__input+.ui-form__status-bar:after,
body.onestepcheckout-index-index .ui-form__input~.ui-form__status-bar:after {
    background-color: #D4A017 !important;
}

/* Checkout: button red → M5 gold/yellow */
body.checkout-onepage-index .botaoContinuar,
body.checkout-onepage-index .btn-checkout,
body.checkout-onepage-index button.button,
body.onestepcheckout-index-index .botaoContinuar,
body.onestepcheckout-index-index .btn-checkout,
body.onestepcheckout-index-index button.button {
    background: #D4A017 !important;
    border-color: #D4A017 !important;
    color: #fff !important;
}

body.checkout-onepage-index .botaoContinuar:hover,
body.checkout-onepage-index .btn-checkout:hover,
body.checkout-onepage-index button.button:hover,
body.onestepcheckout-index-index .botaoContinuar:hover,
body.onestepcheckout-index-index .btn-checkout:hover,
body.onestepcheckout-index-index button.button:hover {
    background: #b8880f !important;
    border-color: #b8880f !important;
}

/* Checkout: login link color */
body.checkout-onepage-index #checkout-step-login a,
body.onestepcheckout-index-index #checkout-step-login a {
    color: #D4A017 !important;
}

body.checkout-onepage-index .form-list label {
    color: #555 !important;
}

body.checkout-onepage-index .form-list input.input-text,
body.checkout-onepage-index .form-list select,
body.checkout-onepage-index .form-list textarea {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

body.checkout-onepage-index .sp-methods label,
body.checkout-onepage-index .sp-methods dt,
body.checkout-onepage-index .sp-methods dd {
    color: #333 !important;
}

body.checkout-onepage-index h2,
body.checkout-onepage-index h3,
body.checkout-onepage-index h4 {
    color: #333 !important;
}

body.checkout-onepage-index p,
body.checkout-onepage-index li,
body.checkout-onepage-index address {
    color: #333 !important;
}

body.checkout-onepage-index .page-title h1,
body.checkout-onepage-index .page-title h2 {
    color: #333 !important;
    border-bottom-color: #ddd;
}

/* OneStepCheckout */
body.onestepcheckout-index-index {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.onestepcheckout-index-index .main-container,
body.onestepcheckout-index-index .col-main {
    color: #333 !important;
}

body.onestepcheckout-index-index .form-list label {
    color: #555 !important;
}

body.onestepcheckout-index-index .form-list input.input-text,
body.onestepcheckout-index-index .form-list select,
body.onestepcheckout-index-index .form-list textarea {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

body.onestepcheckout-index-index p,
body.onestepcheckout-index-index li,
body.onestepcheckout-index-index address,
body.onestepcheckout-index-index h2,
body.onestepcheckout-index-index h3 {
    color: #333 !important;
}

/* Customer Account area - white theme
   Covers all customer account subpages (excluding login/forgotpassword) */
body.customer-account,
body.sales-order-history,
body.sales-order-view,
body.customer-address-index,
body.customer-address-form,
body.customer-account-edit,
body.wishlist-index-index,
body.newsletter-manage-index,
body.review-customer-index,
body.oauth-customer-token-index {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.customer-account .main-container,
body.sales-order-history .main-container,
body.sales-order-view .main-container,
body.customer-address-index .main-container,
body.customer-address-form .main-container,
body.customer-account-edit .main-container,
body.wishlist-index-index .main-container,
body.customer-account .main-container .main,
body.sales-order-history .main-container .main,
body.sales-order-view .main-container .main,
body.customer-address-index .main-container .main,
body.customer-address-form .main-container .main,
body.customer-account-edit .main-container .main,
body.wishlist-index-index .main-container .main,
body.customer-account .col-main,
body.sales-order-history .col-main,
body.sales-order-view .col-main,
body.customer-address-index .col-main,
body.customer-address-form .col-main,
body.customer-account-edit .col-main,
body.wishlist-index-index .col-main {
    background: transparent !important;
    color: #333 !important;
}

body.customer-account .page-title h1,
body.customer-account .page-title h2,
body.customer-account h1,
body.sales-order-history h1,
body.sales-order-view h1,
body.customer-address-index h1,
body.customer-address-form h1,
body.customer-account-edit h1,
body.wishlist-index-index h1 {
    color: #333 !important;
    border-bottom-color: #ddd;
}

.painel-menu .menu .item {
    color: #333 !important;
}

.painel-menu .menu .item h2 {
    color: #555 !important;
}

.painel-menu .menu .item.active h2,
.painel-menu .menu .item:hover h2 {
    color: #E31E24 !important;
}

.painel-menu .menu .item i {
    color: #555 !important;
}

.painel-menu .menu .item.active i,
.painel-menu .menu .item:hover i {
    color: #E31E24 !important;
}

body.customer-account .data-table th,
body.sales-order-history .data-table th,
body.sales-order-view .data-table th,
body.wishlist-index-index .data-table th {
    background: #eee !important;
    color: #555 !important;
    border-color: #ddd !important;
}

body.customer-account .data-table td,
body.sales-order-history .data-table td,
body.sales-order-view .data-table td,
body.wishlist-index-index .data-table td {
    color: #333 !important;
    border-color: #eee !important;
}

body.customer-account .form-list label,
body.customer-account-edit .form-list label,
body.customer-address-form .form-list label {
    color: #555 !important;
}

body.customer-account .form-list input.input-text,
body.customer-account .form-list select,
body.customer-account .form-list textarea,
body.customer-account-edit .form-list input.input-text,
body.customer-account-edit .form-list select,
body.customer-account-edit .form-list textarea,
body.customer-address-form .form-list input.input-text,
body.customer-address-form .form-list select,
body.customer-address-form .form-list textarea {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

body.customer-account .col-main a,
body.sales-order-history .col-main a,
body.sales-order-view .col-main a,
body.customer-address-index .col-main a,
body.customer-account-edit .col-main a,
body.wishlist-index-index .col-main a {
    color: #E31E24 !important;
}

body.customer-account .messages .success-msg,
body.sales-order-history .messages .success-msg,
body.customer-account-edit .messages .success-msg {
    background: rgba(46,204,113,0.08) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(46,204,113,0.2) !important;
}

body.customer-account .messages .error-msg,
body.sales-order-history .messages .error-msg,
body.customer-account-edit .messages .error-msg {
    background: rgba(227,30,36,0.08) !important;
    color: #c0392b !important;
    border: 1px solid rgba(227,30,36,0.2) !important;
}

/* Minha conta panels: light bg for order cards */
.minha-conta .painel .endereco-entrega,
.minha-conta .painel .pedido-item {
    background: #fff !important;
    color: #333 !important;
}

.minha-conta .painel .endereco-entrega h3,
.minha-conta .painel .endereco-entrega h4,
.minha-conta .painel .endereco-entrega p,
.minha-conta .painel p,
.minha-conta .painel span {
    color: #333 !important;
}

/* Fix painel-menu for 5 items (was 25% for 4 items in painel.css) */
.minha-conta .painel-menu .menu div {
    width: 20% !important;
}

/* Como Comprar CMS page - white theme + proper container */
body.cms-comprar-facil {
    background: #f5f5f5 !important;
    color: #333 !important;
}

body.cms-comprar-facil .col-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body.cms-comprar-facil .minha-conta h1 {
    color: #333 !important;
}

body.cms-comprar-facil .col-main a {
    color: #E31E24 !important;
}

body.cms-comprar-facil .painel-menu .menu .item h2 {
    color: #555 !important;
}

body.cms-comprar-facil .painel-menu .menu .item.active h2,
body.cms-comprar-facil .painel-menu .menu .item.active i {
    color: #E31E24 !important;
    border-bottom-color: #E31E24;
}
