/* ============================================================
   IVALENE EXPRESS — Homepage CSS
   Responsive: 1200px / 992px / 768px / 576px
   ============================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
    --navy:   #0d1b3e;
    --navy2:  #0a1630;
    --red:    #e53935;
    --gold:   #f5a623;
    --purple: #6c3dca;
    --bg:     #ffffff;
    --white:  #ffffff;
    --border: #e4e9f2;
    --text:   #1a2035;
    --muted:  #7a8499;
    --shadow: none;
    --shadow-hover: none;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ── BASE ─────────────────────────────────────────────────── */
body.layout-1 { background: var(--bg) !important; }

.main-container.container {
    background: transparent !important;
    padding-top: 16px !important;
    padding-bottom: 28px !important;
}
.main-right.col-lg-12 { padding-left: 0 !important; padding-right: 0 !important; }

/* ── HEADER ───────────────────────────────────────────────── */
#header { border-bottom: 3px solid var(--red); }

#header .header-middle {
    background: var(--navy) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.3) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
#header .header-middle .megamenu > li > a,
#header .header-middle .megamenu > li > a strong {
    color: #c2cff0 !important; background: transparent !important;
    font-size: 13px !important; font-weight: 600 !important;
    transition: color .2s, background .2s !important;
}
#header .header-middle .megamenu > li:hover > a,
#header .header-middle .megamenu > li.active > a,
#header .header-middle .megamenu > li:hover > a strong,
#header .header-middle .megamenu > li.active > a strong {
    color: #fff !important; background: rgba(255,255,255,.1) !important; border-radius: 4px;
}
#header .header-middle .megamenu > li > a .caret { border-top-color: #c2cff0 !important; }
#header .header-middle .signin-link,
#header .header-middle .signin-link a { color: #c2cff0 !important; font-size: 12px !important; }
#header .header-middle .signin-link a:hover { color: #fff !important; }
#header .header-middle .telephone a { color: #c2cff0 !important; font-size: 12px !important; }
#header .header-middle .telephone a i { color: var(--gold) !important; }

#header .header-bottom {
    background: var(--navy2) !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.3) !important;
}
#header .header-bottom input[type="text"] {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important; border-radius: 6px 0 0 6px !important;
}
#header .header-bottom input[type="text"]::placeholder { color: rgba(255,255,255,.45) !important; }
#header .header-bottom .btn-search,
#header .header-bottom button[type="submit"] {
    background: var(--red) !important; border-color: var(--red) !important;
    border-radius: 0 6px 6px 0 !important; transition: background .2s !important;
}
#header .header-bottom .btn-search:hover,
#header .header-bottom button[type="submit"]:hover { background: #c62828 !important; }
#header .header-bottom .cart-info a,
#header .header-bottom .cart-info { color: #c2cff0 !important; }
#header .header-bottom .so-vertical-menu .navbar-default { background: transparent !important; border: none !important; }

/* Megamenu dropdown */
#header .header-middle .megamenu .sub-menu,
#header .header-middle .megamenu .content {
    background: var(--navy) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
    border-radius: 0 0 8px 8px !important;
}
#header .header-middle .megamenu .sub-menu a { color: #c2cff0 !important; font-size: 13px !important; }
#header .header-middle .megamenu .sub-menu a:hover { color: #fff !important; background: rgba(255,255,255,.08) !important; }

/* ── HERO SECTION — 3-column layout ───────────────────────── */
.hero-3col-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    height: 430px;
    margin: 0 0 16px 0;
}

/* LEFT: Produtos Recentes sidebar */
.col-recentes {
    flex: 0 0 19%;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.rc-header span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text);
}
.rc-ver-todos {
    font-size: 10px;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.rc-ver-todos:hover { text-decoration: underline; }
.rc-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.rc-list::-webkit-scrollbar { width: 4px; }
.rc-list::-webkit-scrollbar-track { background: transparent; }
.rc-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.rc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid rgba(228,233,242,.5);
    transition: background .15s;
}
.rc-item:last-child { border-bottom: none; }
.rc-item:hover { background: #f5f7ff; text-decoration: none; color: var(--text); }
.rc-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.rc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rc-nome {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-preco {
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
}

/* CENTER: Banner carousel */
.col-banner {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.col-banner .module.sohomepage-slider {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.col-banner .yt-content-slider.owl2-carousel { flex: 1; height: 100% !important; overflow: hidden; }
.col-banner .owl2-stage-outer, .col-banner .owl2-stage { height: 100% !important; }
.col-banner .owl2-item { height: 100% !important; }
.col-banner .banners, .col-banner .banners .b-img { height: 100% !important; }
.col-banner .banners .b-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; }

/* OWL arrows */
.col-banner .owl2-prev, .col-banner .owl2-next {
    background: rgba(0,0,0,.35) !important; border-radius: 50% !important;
    width: 36px !important; height: 36px !important; line-height: 36px !important;
    color: #fff !important; transition: background .2s !important;
}
.col-banner .owl2-prev:hover, .col-banner .owl2-next:hover { background: var(--red) !important; }
.col-banner .owl2-dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; }
.col-banner .owl2-dot span { background: rgba(255,255,255,.4) !important; width: 8px; height: 8px; border-radius: 50%; transition: all .3s !important; }
.col-banner .owl2-dot.active span { background: #fff !important; width: 24px; border-radius: 4px; }

/* RIGHT: Sidebar campaign cards */
.col-sidebar {
    flex: 0 0 22%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}
.col-sidebar .card-incentivo {
    flex: 1;
    min-height: 0;
    margin: 0;
    border-radius: var(--radius);
    padding: 14px 12px;
    transition: filter .2s, transform .15s;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.col-sidebar .card-incentivo:hover { filter: brightness(1.07); transform: translateY(-1px); }
.col-sidebar .card-incentivo[style*="background:#eee"] {
    padding: 0;
}
.col-sidebar .card-incentivo img.ci-banner-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; border-radius: var(--radius);
}
.col-sidebar .ci-titulo { font-size: 13px !important; font-weight: 800; margin: 0 0 4px; text-transform: uppercase; }
.col-sidebar .ci-descricao { font-size: 11px !important; opacity: .88; margin: 0 0 10px; line-height: 1.4; }
.col-sidebar .ci-botao { font-size: 10px !important; padding: 5px 12px !important; border-radius: 20px; font-weight: 700; }

/* ── HERO FALLBACK ────────────────────────────────────────── */
.hero-fallback {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3570 60%, #0d2a5e 100%);
    min-height: 420px; display: flex; align-items: center;
    justify-content: space-between; padding: 40px 50px; overflow: hidden; position: relative;
}
.hero-fallback::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-fallback .hf-texto { flex: 1; color: #fff; max-width: 65%; position: relative; }
.hero-fallback .hf-texto h2 { font-size: 30px; font-weight: 900; text-transform: uppercase; margin: 0 0 10px; line-height: 1.2; }
.hero-fallback .hf-texto h2 span { color: var(--gold); }
.hero-fallback .hf-texto p { font-size: 14px; opacity: .85; margin: 0 0 18px; line-height: 1.5; }
.hero-fallback .hf-botao {
    display: inline-block; background: var(--red); color: #fff;
    font-weight: 800; font-size: 13px; padding: 11px 26px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; transition: background .2s;
}
.hero-fallback .hf-botao:hover { background: var(--gold); color: #fff; text-decoration: none; }

/* ── CARD INCENTIVO (cores tema) ──────────────────────────── */
.card-incentivo {
    display: block; position: relative; padding: 20px 16px;
    border-radius: 4px; color: #fff; margin-bottom: 14px; overflow: hidden; min-height: 160px;
}
.card-incentivo:hover, .card-incentivo:focus { color: #fff; text-decoration: none; }
.card-incentivo .ci-icone { font-size: 26px; margin-bottom: 7px; }
.card-incentivo .ci-titulo { font-size: 14px; font-weight: 700; margin: 0 0 5px; text-transform: uppercase; }
.card-incentivo .ci-descricao { font-size: 12px; opacity: .9; margin: 0 0 12px; line-height: 1.4; }
.card-incentivo .ci-botao {
    display: inline-block; background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.45); color: #fff;
    padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.card-incentivo img.ci-banner-img { width: 100%; border-radius: 4px; display: block; }
.tema-roxo   { background: linear-gradient(135deg, #8a3ddb, #5b2a86); }
.tema-azul   { background: linear-gradient(135deg, #2f8fe0, #1565c0); }
.tema-verde  { background: linear-gradient(135deg, #3fb868, #2e7d32); }
.tema-laranja{ background: linear-gradient(135deg, #f7b733, #e8920a); }

/* ── HOME_MIDDLE — FAIXA DESTAQUE ─────────────────────────── */
.faixa-destaque {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, #f5a623 0%, #e8920a 60%, #d4820a 100%);
    color: #fff; border-radius: var(--radius); padding: 18px 24px;
    margin-bottom: 16px; box-shadow: 0 4px 18px rgba(245,166,35,.4);
    border: 1px solid rgba(255,255,255,.25);
}
.faixa-destaque .fd-icone { font-size: 36px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.faixa-destaque .fd-info { flex: 1; min-width: 200px; }
.faixa-destaque .fd-titulo { font-size: 15px; font-weight: 900; margin: 0 0 2px; text-transform: uppercase; letter-spacing: .3px; }
.faixa-destaque .fd-texto { font-size: 12px; margin: 0; opacity: .9; }
.faixa-destaque .fd-botao {
    flex-shrink: 0; background: #fff; color: #b56a00;
    padding: 9px 20px; border-radius: 6px; font-weight: 800;
    font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: all .2s; white-space: nowrap;
}
.faixa-destaque .fd-botao:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ── FEATURES BAR ─────────────────────────────────────────── */
.features-bar {
    display: flex; flex-wrap: wrap; align-items: stretch;
    background: var(--white); border-radius: var(--radius);
    padding: 0; margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.features-bar .feature-item {
    flex: 1 1 0%; min-width: 140px; text-align: center;
    padding: 18px 12px; display: flex; flex-direction: column; align-items: center;
    border-right: 1px solid var(--border); transition: background .2s;
}
.features-bar .feature-item:last-child { border-right: none; }
.features-bar .feature-item:hover { background: #f8f9ff; }

/* Cores individuais para cada feature */
.features-bar .feature-item:nth-child(1) i { background: #e8f4fd; color: #1565c0; box-shadow: 0 3px 10px rgba(21,101,192,.15); }
.features-bar .feature-item:nth-child(2) i { background: #e8f8ef; color: #2e7d32; box-shadow: 0 3px 10px rgba(46,125,50,.15); }
.features-bar .feature-item:nth-child(3) i { background: #fff3e0; color: #e65100; box-shadow: 0 3px 10px rgba(230,81,0,.15); }
.features-bar .feature-item:nth-child(4) i { background: #f3e5ff; color: #6c3dca; box-shadow: 0 3px 10px rgba(108,61,202,.15); }
.features-bar .feature-item:nth-child(5) i { background: #fde8e8; color: var(--red); box-shadow: 0 3px 10px rgba(229,57,53,.15); }

.features-bar .feature-item i {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-size: 19px;
    transition: transform .2s;
}
.features-bar .feature-item:hover i { transform: translateY(-2px); }
.features-bar .feature-item h5 { font-size: 12px; font-weight: 800; margin: 0 0 3px; color: var(--text); }
.features-bar .feature-item p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.4; }

/* ── SECTION HEADERS ──────────────────────────────────────── */
.module .modtitle,
.module > .modtitle[style*="inline-block"] {
    display: flex !important; align-items: center;
    border-left: 4px solid var(--red) !important;
    padding: 6px 0 6px 12px !important;
    margin: 0 0 14px !important;
    font-size: 14px !important; font-weight: 900 !important;
    text-transform: uppercase; color: var(--text) !important;
    background: none; min-height: 0 !important; line-height: 1.3 !important;
}
.module .modtitle span,
.module > .modtitle[style*="inline-block"] span { margin-left: 0 !important; }
.module .modtitle .ver-todos {
    margin-left: auto; font-size: 11px; font-weight: 700; color: var(--red);
    text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
    background: rgba(229,57,53,.08); transition: background .2s;
}
.module .modtitle .ver-todos:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── WHITE SECTION CARDS ──────────────────────────────────── */
#produtos_recentes,
.module:has(#listar_produtos) {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px 12px !important;
    margin-bottom: 16px !important;
    overflow: hidden;
}

/* Banner zone quando há campanha */
.banner-zona-img { margin-bottom: 16px; }
.banner-zona-img img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

/* ── LISTING MODULE ───────────────────────────────────────── */
#content.col-md-9 { width: 100% !important; padding: 0 !important; float: none !important; }
.module:has(#listar_produtos) #content { padding: 0 !important; margin: 0 !important; }
.module:has(#listar_produtos) .products-category { padding: 0 !important; margin: 0 !important; }
.module:has(#listar_produtos) { padding: 14px 18px 10px !important; }

#busca_input {
    border: 1px solid var(--border) !important; border-radius: 6px !important;
    padding: 6px 12px !important; font-size: 12px !important;
    color: var(--text) !important; outline: none !important; transition: border-color .2s !important;
}
#busca_input:focus { border-color: var(--navy) !important; }

.list-view .btn { border-radius: 6px !important; border-color: var(--border) !important; color: var(--muted) !important; transition: all .2s !important; }
.list-view .btn.active,
.list-view .btn:hover { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }

.product-filter.filters-panel { margin-bottom: 12px !important; padding-bottom: 12px !important; border-bottom: 1px solid var(--border) !important; }

/* Listagem — sem espaço extra */
.products-list.row,
.products-list.so-filter-gird { min-height: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
#listar_produtos { min-height: 0 !important; }
#listar_produtos hr { display: none !important; }
#listar_produtos > div[style*="text-align"],
#listar_produtos > div[align="center"] { padding: 8px 0 2px !important; margin: 0 !important; }
#listar_produtos .product-layout { margin-bottom: 12px !important; }
.product-layout .right-block .description,
.product-layout .right-block .item-desc,
.product-layout .right-block .list-block { display: none !important; }

/* ── PRODUCT CARDS ────────────────────────────────────────── */
.product-layout .product-item-container {
    background: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    overflow: hidden; transition: transform .22s !important;
    margin-bottom: 0;
}
.product-layout .product-item-container:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover) !important;
}
.product-layout .product-image-container {
    background: linear-gradient(135deg, #eef2fb 0%, #f5f7ff 100%) !important;
    overflow: hidden; position: relative; height: 155px;
}
.product-layout .product-image-container img {
    width: 100% !important; height: 155px !important; object-fit: contain !important;
    padding: 10px !important; display: block; transition: transform .35s !important;
}
.product-layout .product-item-container:hover .product-image-container img { transform: scale(1.07) !important; }
.product-layout .product-image-container img.img-2 { display: none !important; position: absolute; top: 0; left: 0; }
.product-layout .product-image-container:hover img.img-1 { display: none !important; }
.product-layout .product-image-container:hover img.img-2 { display: block !important; }

/* Botão hover overlay */
.product-layout .button-group.cartinfo--left,
.product-layout .button-group.so-quickview {
    display: none !important; background: rgba(13,27,62,.85) !important;
    backdrop-filter: blur(3px);
}
.product-layout .product-item-container:hover .button-group.cartinfo--left,
.product-layout .product-item-container:hover .button-group.so-quickview { display: flex !important; }
.product-layout .btn-button { color: #fff !important; font-size: 11px !important; }

/* Info area */
.product-layout .right-block { padding: 10px 12px 12px !important; }
.product-layout .right-block .caption h4 { margin: 2px 0 4px !important; }
.product-layout .right-block .caption h4 a {
    font-size: 12px !important; font-weight: 700 !important;
    color: var(--text) !important; line-height: 1.3; display: block;
}
.product-layout .right-block .caption h4 a:hover { color: var(--red) !important; text-decoration: none !important; }
.product-layout .price-new { color: var(--red) !important; font-size: 14px !important; font-weight: 800 !important; }
.product-layout .price-old { color: #b0b8cc !important; font-size: 11px !important; text-decoration: line-through !important; }
.product-layout .label-sale { background: var(--red) !important; color: #fff !important; border-radius: 20px !important; font-size: 10px !important; font-weight: 700 !important; padding: 2px 8px !important; }
.product-layout .fa-star { color: var(--gold) !important; font-size: 11px !important; }
.product-layout .fa-star-o { color: #dce2ee !important; font-size: 11px !important; }
.product-layout .fa-stack { width: 15px !important; height: 15px !important; line-height: 15px !important; }

/* ── EXTRASLIDER (Produtos Recentes) ──────────────────────── */
.extraslider .item {
    display: flex !important; flex-wrap: wrap !important;
    gap: 12px !important; padding: 2px !important; margin: 0 !important;
    width: 100% !important; box-sizing: border-box !important; align-items: flex-start;
}
.extraslider .item > .product-layout.item-inner,
.extraslider .item > .item-inner {
    flex: 0 0 calc(16.66% - 10px) !important;
    width: calc(16.66% - 10px) !important;
    max-width: calc(16.66% - 10px) !important;
    min-width: 130px; box-sizing: border-box !important;
}
.extraslider .item-inner,
.extraslider .product-layout.item-inner {
    display: flex !important; flex-direction: column !important;
    background: var(--white) !important; border: none !important;
    border-radius: var(--radius-sm) !important; box-shadow: none !important;
    overflow: hidden; transition: transform .22s !important; height: 100%;
}
.extraslider .item-inner:hover,
.extraslider .product-layout.item-inner:hover {
    transform: translateY(-4px) !important; box-shadow: var(--shadow-hover) !important;
}
.extraslider .item-image,
.extraslider .item-img-info { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.extraslider .item-image {
    background: linear-gradient(135deg, #eef2fb 0%, #f5f7ff 100%);
    height: 140px; overflow: hidden; display: block !important;
}
.extraslider .item-image img {
    width: 100% !important; height: 140px !important; object-fit: contain !important;
    padding: 8px !important; float: none !important; display: block !important;
    transition: transform .35s !important;
}
.extraslider .item-inner:hover .item-image img { transform: scale(1.06) !important; }
.extraslider .item-info {
    width: 100% !important; float: none !important;
    padding: 8px 10px 10px !important; margin: 0 !important; flex: 1; display: block !important;
}
.extraslider .item-title { margin-bottom: 4px; }
.extraslider .item-title a { font-size: 12px !important; font-weight: 700 !important; color: var(--text) !important; }
.extraslider .item-title a:hover { color: var(--red) !important; text-decoration: none !important; }
.extraslider .price-new.product-price { color: var(--red) !important; font-size: 13px !important; font-weight: 800 !important; }
.extraslider .rating .fa-star { color: var(--gold) !important; font-size: 10px !important; }
.extraslider .rating .fa-star-o { color: #dce2ee !important; font-size: 10px !important; }
.extraslider .rating .fa-stack { width: 12px !important; height: 12px !important; line-height: 12px !important; }
.extraslider .owl2-prev, .extraslider .owl2-next { background: var(--red) !important; border-radius: 50% !important; color: #fff !important; }

/* ── SPONSORED PRODUCTS ───────────────────────────────────── */
.sponsored-row { background: var(--white); border-radius: var(--radius); padding: 16px 18px 12px; margin-bottom: 16px; box-shadow: var(--shadow); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination > li > a, .pagination > li > span {
    border-radius: 6px !important; margin: 0 2px !important;
    color: var(--navy) !important; border-color: var(--border) !important; font-weight: 600; font-size: 13px !important;
}
.pagination > .active > a, .pagination > .active > span {
    background: var(--red) !important; border-color: var(--red) !important; color: #fff !important;
}
/* Paginação do listar_produtos (botões btn.grid) */
#listar_produtos .btn.grid {
    border-radius: 6px !important; margin: 0 2px !important;
    color: var(--navy) !important; border-color: var(--border) !important;
    font-weight: 600; font-size: 13px !important; padding: 5px 10px !important;
    transition: all .2s !important; background: var(--white) !important;
}
#listar_produtos .btn.grid.active { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
#listar_produtos .btn.grid:hover { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }

/* ── FOOTER CTA BAR ───────────────────────────────────────── */
.footer-cta-bar {
    background: linear-gradient(135deg, #4a2580 0%, #7b35c9 50%, #4a2580 100%);
    color: #fff; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px; padding: 20px 28px;
    margin-bottom: 0; box-shadow: 0 6px 24px rgba(74,37,128,.4);
    border: 1px solid rgba(255,255,255,.15);
}
.footer-cta-bar .fc-titulo {
    font-size: 15px; font-weight: 800; margin: 0; flex: 1;
    text-transform: uppercase; letter-spacing: .3px;
}
.footer-cta-bar .fc-botao {
    flex-shrink: 0; background: #fff; color: #4a2580;
    padding: 10px 22px; border-radius: 6px; font-weight: 800; font-size: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.2); transition: all .2s; white-space: nowrap;
}
.footer-cta-bar .fc-botao:hover { background: var(--gold); color: #fff; text-decoration: none; transform: translateY(-1px); }
.footer-cta-bar .fc-botao i { margin-right: 5px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer-container { background: var(--navy) !important; color: #b0bbda !important; margin-top: 14px; }
.footer-container .modtitle {
    color: #fff !important; border-left: 3px solid var(--red) !important;
    padding-left: 10px !important; font-size: 13px !important; font-weight: 800 !important;
}
.footer-container a, .footer-container .menu li a { color: #b0bbda !important; font-size: 13px; transition: color .2s !important; }
.footer-container a:hover { color: #fff !important; text-decoration: none !important; }
.footer-container .menu li { margin-bottom: 5px; }
.footer-container .menu li::before { color: var(--red) !important; }

/* Ícones de redes sociais */
.footer-container .fa-instagram { color: #e1306c !important; }
.footer-container .fa-whatsapp { color: #25d366 !important; }
.footer-container .fa-facebook { color: #1877f2 !important; }
.footer-container .fa-youtube { color: #ff0000 !important; }

.footer-top { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── TABLET LANDSCAPE (992px – 1199px) ────────────────────── */
@media (max-width: 1199px) {
    .hero-3col-wrapper { height: 370px; }
    .col-recentes { flex: 0 0 18%; }
    .col-sidebar { flex: 0 0 21%; }
}

/* ── TABLET PORTRAIT (768px – 991px) ─────────────────────── */
@media (max-width: 991px) {
    /* Hero: stack vertically — banner first, then recentes + sidebar row below */
    .hero-3col-wrapper {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }
    .col-recentes {
        flex: 0 0 auto;
        display: none; /* hide on tablet — limited space */
    }
    .col-banner {
        flex: 0 0 auto;
        height: 280px;
    }
    .col-sidebar {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 8px;
    }
    .col-sidebar .card-incentivo {
        flex: 1;
    }
    .col-sidebar .ci-descricao { display: none; }

    /* Features: 3 por linha */
    .features-bar .feature-item { flex: 1 1 30%; min-width: 120px; padding: 14px 10px; }
    .features-bar .feature-item:nth-child(3) { border-right: none; }
    .features-bar .feature-item:nth-child(4),
    .features-bar .feature-item:nth-child(5) { border-top: 1px solid var(--border); }

    /* Faixa destaque: compactar */
    .faixa-destaque { padding: 14px 18px; }
    .faixa-destaque .fd-icone { font-size: 28px; }
    .faixa-destaque .fd-titulo { font-size: 13px; }
}

/* ── MOBILE LARGE (576px – 767px) ────────────────────────── */
@media (max-width: 767px) {
    /* Hero desktop: OCULTAR — o box-top mobile trata do carousel */
    .hero-3col-wrapper { display: none !important; }

    /* Estilizar o carousel mobile (box-top) */
    .box-top {
        border-radius: var(--radius) !important; overflow: hidden !important;
        margin-bottom: 12px !important; box-shadow: var(--shadow) !important;
        border: 1px solid var(--border) !important;
    }
    .box-top .yt-content-slide img { width: 100% !important; object-fit: cover !important; max-height: 220px !important; }
    /* Barra de pesquisa mobile — compactar */
    .bottom2.ocultar_web { margin-bottom: 12px !important; }
    .bottom2.ocultar_web .search { border-radius: var(--radius-sm) !important; overflow: hidden; box-shadow: var(--shadow); }
    .bottom2.ocultar_web input[type="text"] { background: var(--white) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
    .bottom2.ocultar_web .btn-search { background: var(--red) !important; border-color: var(--red) !important; border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

    /* Features: 5 itens em scroll horizontal */
    .features-bar {
        overflow-x: auto !important; flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 !important;
        position: relative;
    }
    .features-bar::-webkit-scrollbar { display: none; }
    /* Gradiente hint de scroll à direita */
    .features-bar::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0;
        width: 40px; pointer-events: none;
        background: linear-gradient(to left, rgba(255,255,255,.95) 0%, transparent 100%);
    }
    .features-bar .feature-item {
        flex: 0 0 110px !important; min-width: 110px !important;
        border-right: 1px solid var(--border) !important; border-top: none !important;
        padding: 14px 8px !important;
    }
    .features-bar .feature-item:last-child { border-right: none !important; padding-right: 28px !important; }

    /* Produto cards: 2 por linha em mobile — forçar grid mesmo que JS ative list view */
    .product-layout.col-xs-12 { width: 50% !important; float: left !important; }
    #listar_produtos .product-item-container { display: flex !important; flex-direction: column !important; }
    #listar_produtos .left-block { float: none !important; width: 100% !important; }
    #listar_produtos .right-block { float: none !important; width: 100% !important; margin-left: 0 !important; }
    #listar_produtos .product-image-container { height: 110px !important; }
    #listar_produtos .product-image-container img { height: 110px !important; }

    /* Extraslider: 2 por linha */
    .extraslider .item > .product-layout.item-inner,
    .extraslider .item > .item-inner {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }
    .extraslider .item { gap: 8px !important; }

    /* Faixa destaque */
    .faixa-destaque { flex-direction: column; text-align: center; padding: 16px; gap: 10px; }
    .faixa-destaque .fd-botao { align-self: center; }

    /* Footer CTA */
    .footer-cta-bar { flex-direction: column; text-align: center; padding: 18px 16px; }
    .footer-cta-bar .fc-titulo { font-size: 13px; }
}

/* ── MOBILE SMALL (< 575px) ───────────────────────────────── */
@media (max-width: 575px) {
    .main-container.container { padding-top: 10px !important; padding-bottom: 20px !important; }

    /* Features scroll mais compacto */
    .features-bar .feature-item { flex: 0 0 90px !important; min-width: 90px !important; padding: 12px 6px !important; }
    .features-bar .feature-item i { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; margin-bottom: 8px; }
    .features-bar .feature-item h5 { font-size: 11px; }
    .features-bar .feature-item p { display: none; }

    /* Section cards: padding menor */
    #produtos_recentes,
    .module:has(#listar_produtos) { padding: 12px 12px 10px !important; border-radius: var(--radius-sm); }

    /* Product cards mais compactos */
    .product-layout .product-image-container,
    .product-layout .product-image-container img { height: 120px !important; }
    .product-layout .right-block { padding: 7px 9px 9px !important; }
    .product-layout .right-block .caption h4 a { font-size: 11px !important; }
    .product-layout .price-new {
        font-size: 12px !important; white-space: nowrap;
        overflow: hidden; text-overflow: ellipsis; display: block;
    }
    /* Evitar overflow no preço em qualquer tamanho */
    .product-layout .caption .price { overflow: hidden; }
    .extraslider .price-new.product-price { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

    /* Faixa: ainda mais compacta */
    .faixa-destaque .fd-icone { font-size: 22px; }
    .faixa-destaque .fd-titulo { font-size: 12px; }
    .faixa-destaque .fd-texto { display: none; }
    .faixa-destaque { padding: 12px 14px; }

    /* Footer CTA */
    .footer-cta-bar { padding: 14px; }
    .footer-cta-bar .fc-titulo { font-size: 12px; }

    /* Paginação */
    #listar_produtos .btn.grid { padding: 4px 8px !important; font-size: 12px !important; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer-cta-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--purple) 0%, #5b2a86 100%);
    color: #fff; border-radius: var(--radius);
    padding: 18px 28px; margin-bottom: 0;
    box-shadow: 0 4px 18px rgba(108,61,202,.35);
}
.footer-cta-bar .fc-titulo {
    font-size: 15px; font-weight: 800; margin: 0;
    text-transform: uppercase; letter-spacing: .3px; flex: 1;
}
.footer-cta-bar .fc-botao {
    background: #fff; color: var(--purple);
    padding: 10px 22px; border-radius: 6px;
    font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: .3px;
    white-space: nowrap; transition: all .2s; text-decoration: none;
}
.footer-cta-bar .fc-botao:hover { background: var(--gold); color: #fff; text-decoration: none; }

/* Footer main area — white, naturally full width (footer is outside .container) */
.footer-container.typefooter-1 { background: transparent !important; }
.footer-middle {
    background: #ffffff !important;
    padding: 40px 0 28px !important;
    border-top: 3px solid var(--border) !important;
    margin-top: 0 !important;
}

/* Logo area */
.footer-middle .infos-footer { padding-top: 4px; }
.footer-middle .infos-footer .menu { list-style: none; padding: 0; margin: 16px 0 0; }
.footer-middle .infos-footer .menu li {
    font-size: 13px; color: #4a5568; margin-bottom: 10px;
    display: flex; align-items: flex-start; gap: 10px;
    background: none !important; padding: 0 !important; line-height: 1.5;
}
.footer-middle .infos-footer .menu li::before { display: none !important; }
.footer-middle .infos-footer .menu li::after {
    display: none !important;
}
/* FA icon injected via separate span — use the theme's li classes to inject via CSS */
.footer-middle .infos-footer .menu li.adres::before,
.footer-middle .infos-footer .menu li.phone::before,
.footer-middle .infos-footer .menu li.mail::before,
.footer-middle .infos-footer .menu li.time::before {
    display: inline-block !important; font-family: 'FontAwesome' !important;
    font-size: 15px !important; color: var(--red) !important;
    flex-shrink: 0; width: 18px; text-align: center; margin-top: 1px;
}
.footer-middle .infos-footer .menu li.adres::before { content: '\f041' !important; }
.footer-middle .infos-footer .menu li.phone::before { content: '\f095' !important; }
.footer-middle .infos-footer .menu li.mail::before  { content: '\f003' !important; }
.footer-middle .infos-footer .menu li.time::before  { content: '\f017' !important; }
.footer-middle .infos-footer .menu li.mail a { color: var(--red) !important; font-size: 13px; }

/* Section headings */
.footer-middle .box-footer .modtitle {
    font-size: 13px !important; font-weight: 900 !important;
    text-transform: uppercase !important; letter-spacing: .6px !important;
    color: var(--text) !important; background: transparent !important;
    border: none !important; padding: 0 0 10px !important;
    margin: 0 0 14px !important; display: block !important;
    border-bottom: 2px solid var(--red) !important;
}
.footer-middle .box-footer .modtitle span { color: var(--text) !important; }

/* Footer links */
.footer-middle .box-footer .menu { list-style: none; padding: 0; margin: 0; }
.footer-middle .box-footer .menu li { margin-bottom: 7px; }
.footer-middle .box-footer .menu li a {
    font-size: 13px !important; color: #4a5568 !important;
    text-decoration: none !important; transition: color .15s;
    display: flex; align-items: center; gap: 6px;
}
.footer-middle .box-footer .menu li a::before {
    content: '◦'; color: var(--red); font-size: 14px; flex-shrink: 0;
}
.footer-middle .box-footer .menu li a:hover { color: var(--red) !important; }
.footer-middle .box-footer .menu li a .fa { color: var(--red); font-size: 14px; }

/* Store links row — centered */
.footer-middle .footer-links {
    list-style: none; padding: 0; margin: 10px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center;
    border-top: 1px solid var(--border); padding-top: 16px;
}
.footer-middle .footer-links li a {
    font-size: 12px; color: #4a5568; text-decoration: none;
    background: #f0f3f8; border-radius: 4px; padding: 3px 10px;
    border: 1px solid var(--border); transition: all .15s;
}
.footer-middle .footer-links li a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Payment icons */
.footer-middle .col-lg-12.text-center { padding-top: 12px; border-top: 1px solid var(--border); margin-top: 16px; }

/* Footer bottom bar — dark, naturally full width */
.footer-bottom {
    background: var(--navy) !important;
    padding: 14px 0 !important;
    border-top: none !important;
    margin-top: 0 !important;
}
.footer-bottom .copyright {
    color: rgba(255,255,255,.65) !important;
    font-size: 12px !important;
    text-align: center !important;
}
.footer-bottom .copyright a { color: var(--red) !important; }

/* Back to top button */
.back-to-top {
    background: var(--red) !important;
    border-radius: 6px !important;
}
.back-to-top i { color: #fff !important; }

/* Footer top section (empty bar) */
.footer-top { display: none !important; }
