/*
Theme Name:   MONTAJÁ Loja
Theme URI:    https://loja.montaja.com.br
Description:  Tema da marca MONTAJÁ para a loja WooCommerce. Child theme de Storefront. Layout clean. "Chamou, montou."
Author:       MONTAJÁ
Template:     storefront
Version:      1.2.0
Text Domain:  montaja-loja
*/

/* ============================================================ PALETA */
:root {
	--mj-navy:        #1B3A5E;
	--mj-navy-hover:  #2d5a8e;
	--mj-navy-active: #162f4d;
	--mj-navy-soft:   #eaf0f7;
	--mj-orange:      #F07D00;
	--mj-orange-hover:#d97000;
	--mj-orange-soft: #fff4e6;
	--mj-page:        #f4f6f9;
	--mj-line:        #e6e9ee;
	--mj-text:        #2a3340;
	--mj-muted:       #6b7785;
}

body, button, input, select, textarea, .site-header {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body { background: var(--mj-page); color: var(--mj-text); }
html, body { overflow-x: hidden; max-width: 100%; }
a { color: var(--mj-orange); }
a:hover { color: var(--mj-orange-hover); }

/* esconde elementos mobile padrão do Storefront (temos header + dept bar próprios) */
.storefront-handheld-footer-bar,
.handheld-navigation { display: none !important; }

/* HOME: seções ocupam a largura toda; cada uma centraliza pelo .col-full interno */
.home #content.site-content { padding: 0; }
.home #content.site-content > .col-full { max-width: 100%; width: 100%; margin: 0; padding: 0; }
.home #content.site-content > .col-full > .woocommerce { margin: 0; width: 100%; }
.mj-bleed { width: 100%; margin: 0; }

/* FIX: o clearfix do .col-full (::before/::after) vira "item" em grid/flex e
   desalinha tudo. Neutraliza nos contêineres que são grid/flex. */
.mj-topbar__inner::before, .mj-topbar__inner::after,
.mj-dept__inner::before, .mj-dept__inner::after,
.mj-trust__inner::before, .mj-trust__inner::after,
.mj-hero__inner::before, .mj-hero__inner::after,
.mj-why__inner::before, .mj-why__inner::after,
.mj-footer__cols::before, .mj-footer__cols::after {
	content: none !important;
	display: none !important;
}

/* ============================================================ TOPBAR */
.mj-topbar { background: var(--mj-navy-active); color: #fff; font-size: 12.5px; }
.mj-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.mj-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mj-topbar a:hover { color: var(--mj-orange-soft); }
.mj-topbar svg { width: 15px; height: 15px; }
.mj-topbar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.mj-topbar__right { display: flex; align-items: center; gap: 14px; }
.mj-topbar__slogan { color: var(--mj-orange); font-weight: 700; font-style: italic; }
.mj-topbar__social { display: inline-flex; gap: 9px; }
.mj-topbar__social svg { width: 17px; height: 17px; }

/* ============================================================ HEADER */
.site-header {
	background: #fff !important;
	box-shadow: 0 1px 0 var(--mj-line);
	padding: 16px 0 !important;
	border: 0 !important;
}
.mj-head { display: flex; align-items: center; gap: 26px; }
.mj-head__logo { flex: 0 0 auto; }
.mj-head__logo img.custom-logo { max-height: 60px; width: auto; display: block; }
.mj-head__sitename { font-weight: 800; font-size: 1.5em; color: var(--mj-navy); text-decoration: none; }

.mj-head__search { flex: 1 1 auto; max-width: 660px; display: flex; align-items: stretch; background: #fff; border: 2px solid var(--mj-navy); border-radius: 9px; overflow: hidden; }
.mj-head__search input[type="search"] { flex: 1; border: 0; outline: 0; height: 46px; padding: 0 16px; font-size: 15px; color: var(--mj-text); background: transparent; }
.mj-head__search button { background: var(--mj-orange); border: 0; color: #fff; width: 56px; display: grid; place-items: center; cursor: pointer; }
.mj-head__search button:hover { background: var(--mj-orange-hover); }
.mj-head__search svg { width: 22px; height: 22px; }

.mj-head__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mj-head__btn { display: flex; align-items: center; gap: 9px; color: var(--mj-navy); text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.1; padding: 8px 10px; border-radius: 9px; }
.mj-head__btn:hover { background: var(--mj-navy-soft); color: var(--mj-navy); }
.mj-head__btn svg { width: 26px; height: 26px; }
.mj-head__cart-ic { position: relative; display: inline-flex; }
.mj-head__cart-count { position: absolute; top: -7px; right: -9px; background: var(--mj-orange); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.mj-head__cart-info { display: flex; flex-direction: column; }
.mj-head__cart-info small { color: var(--mj-muted); font-size: 11px; font-weight: 500; }
.mj-head__cart-info strong { color: var(--mj-navy); font-size: 13px; }

/* ============================================================ DEPARTAMENTOS */
.mj-dept { background: var(--mj-navy); }
.mj-dept__inner { display: flex; align-items: stretch; min-height: 46px; }
.mj-dept__btn { display: flex; align-items: center; gap: 10px; background: var(--mj-orange); color: #fff; font-weight: 700; font-size: 13.5px; padding: 0 20px; text-decoration: none; white-space: nowrap; }
.mj-dept__btn:hover { background: var(--mj-orange-hover); color: #fff; }
.mj-dept__btn svg { width: 20px; height: 20px; }
.mj-dept__menu { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.mj-dept__menu li { display: flex; }
.mj-dept__menu li a { display: flex; align-items: center; padding: 0 16px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .2px; white-space: nowrap; }
.mj-dept__menu li a:hover, .mj-dept__menu li.current-menu-item > a { background: var(--mj-navy-hover); color: #fff; }

/* ============================================================ BOTÕES */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
button.button, a.button, input.button {
	background: var(--mj-navy); border-color: var(--mj-navy); color: #fff; border-radius: 8px; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, button.button:hover, a.button:hover { background: var(--mj-navy-hover); border-color: var(--mj-navy-hover); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
button.button.alt, a.button.alt, .single_add_to_cart_button, .added_to_cart {
	background: var(--mj-orange) !important; border-color: var(--mj-orange) !important; color: #fff !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover { background: var(--mj-orange-hover) !important; border-color: var(--mj-orange-hover) !important; }
.mj-btn-ghost { background: #fff !important; border: 2px solid var(--mj-navy) !important; color: var(--mj-navy) !important; }
.mj-btn-ghost:hover { background: var(--mj-navy-soft) !important; }

/* ============================================================ SELOS */
.mj-trust { background: #fff; border-top: 1px solid var(--mj-line); border-bottom: 1px solid var(--mj-line); }
.mj-trust__inner { display: grid; grid-template-columns: repeat(4,1fr); align-items: center; gap: 16px; padding: 18px 0; }
.mj-trust__item { display: flex; align-items: center; gap: 12px; }
.mj-trust__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--mj-navy-soft); color: var(--mj-orange); display: grid; place-items: center; }
.mj-trust__txt { display: flex; flex-direction: column; line-height: 1.2; }
.mj-trust__txt strong { color: var(--mj-navy); font-size: .95em; }
.mj-trust__txt small { color: var(--mj-muted); font-size: .78em; }

/* ============================================================ SEÇÕES */
.mj-section { padding: 48px 0; }
.mj-section--alt { background: #fff; border-top: 1px solid var(--mj-line); border-bottom: 1px solid var(--mj-line); }
.mj-h2 { text-align: center; color: var(--mj-navy); font-size: 1.6em; font-weight: 800; margin: 0 0 1.3em; }
.mj-h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--mj-orange); border-radius: 2px; margin: .55em auto 0; }
.mj-h2--left { text-align: left; }
.mj-h2--left::after { margin-left: 0; }
.mj-section__more { text-align: center; margin-top: 1.6em; }

/* ============================================================ CARROSSEL DE BANNERS */
.mj-banners { padding: 22px 0 0; }
.mj-banners__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mj-carousel { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 10px 30px rgba(27,58,94,.10); background: #fff; }
.mj-carousel__track { display: flex; transition: transform .5s ease; will-change: transform; }
.mj-carousel__slide { flex: 0 0 100%; display: block; }
.mj-carousel__slide img { width: 100%; aspect-ratio: 1800 / 290; object-fit: cover; display: block; }
.mj-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(27,58,94,.55); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: background .15s; z-index: 2; }
.mj-carousel__arrow:hover { background: var(--mj-orange); }
.mj-carousel__arrow--prev { left: 14px; }
.mj-carousel__arrow--next { right: 14px; }
.mj-carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.mj-carousel__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); cursor: pointer; transition: background .15s, transform .15s; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.mj-carousel__dots button.is-active { background: var(--mj-orange); transform: scale(1.25); }
@media (max-width: 600px) {
	.mj-banners { padding: 14px 0 0; }
	.mj-banners__wrap { padding: 0 12px; }
	.mj-carousel { border-radius: 10px; }
	.mj-carousel__arrow { display: none; } /* mobile usa swipe + bolinhas */
	.mj-carousel__dots { bottom: 6px; }
	.mj-carousel__dots button { width: 8px; height: 8px; }
}

/* ============================================================ HERO (claro) */
.mj-hero { background: #fff; border-bottom: 1px solid var(--mj-line); }
.mj-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 50px 0; }
.mj-hero__eyebrow { display: inline-block; background: var(--mj-orange-soft); color: var(--mj-orange-hover); padding: 5px 12px; border-radius: 999px; font-size: .76em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.mj-hero__text h1 { color: var(--mj-navy); font-size: 2.5em; line-height: 1.1; font-weight: 800; margin: .35em 0 .35em; }
.mj-hero__text p { color: var(--mj-muted); font-size: 1.06em; margin-bottom: 1.5em; max-width: 30em; }
.mj-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.mj-hero__media img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 18px 44px rgba(27,58,94,.16); display: block; }

/* ============================================================ CATEGORIAS */
.mj-cats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.mj-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 14px; background: #fff; border: 1px solid var(--mj-line); border-radius: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mj-cat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,58,94,.12); border-color: var(--mj-orange); }
.mj-cat__media { width: 66px; height: 66px; border-radius: 50%; background: var(--mj-navy-soft); color: var(--mj-navy); display: grid; place-items: center; overflow: hidden; }
.mj-cat__media svg { width: 32px; height: 32px; }
.mj-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.mj-cat__name { color: var(--mj-navy); font-weight: 700; }
.mj-cat__count { color: var(--mj-orange); font-size: .82em; font-weight: 600; }

/* ============================================================ PRODUTOS */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(4,1fr); gap: 22px; margin: 0 0 1.5em; padding: 0;
}
.woocommerce ul.products.columns-1 { grid-template-columns: 1fr; }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2,1fr); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3,1fr); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	background: #fff; border: 1px solid var(--mj-line); border-radius: 14px; padding: 14px;
	display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,58,94,.12); border-color: var(--mj-orange); }
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce ul.products li.product::before, .woocommerce ul.products li.product::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product img { margin: 0 0 12px; border-radius: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--mj-navy); font-weight: 600; font-size: 1em; }
.woocommerce ul.products li.product .price { color: var(--mj-navy); font-weight: 800; }
.woocommerce ul.products li.product .button { margin-top: auto; }
.woocommerce span.onsale { background: var(--mj-orange); color: #fff; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mj-orange); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mj-orange); }

/* ============================================================ POR QUE MONTAJÁ */
.mj-why { background: var(--mj-navy); color: #fff; }
.mj-why__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; padding: 54px 0; }
.mj-why__media img { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.3); display: block; }
.mj-why__text .mj-h2 { color: #fff; }
.mj-why__list { list-style: none; margin: 0 0 1.6em; padding: 0; }
.mj-why__list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: #d7e0ec; }
.mj-why__list li strong { color: #fff; }
.mj-why__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mj-orange); box-shadow: 0 0 0 4px rgba(240,125,0,.2); }

/* ============================================================ RODAPÉ */
.site-footer { background: var(--mj-navy-active); padding-top: 0; }
.mj-footer { color: #ffffff; }
.mj-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 46px 0 30px; }
.mj-footer__col h4 { color: #ffffff; font-size: 1.02em; font-weight: 700; margin: 0 0 1.1em; padding-bottom: 9px; border-bottom: 2px solid rgba(255,255,255,.14); }
.mj-footer__col ul { list-style: none; margin: 0; padding: 0; }
.mj-footer__col ul li { margin-bottom: 9px; }
.mj-footer a,
.mj-footer__col a,
.mj-footer__col ul li a,
.mj-footer__contact a { color: #ffffff !important; text-decoration: none; transition: color .15s; }
.mj-footer a:hover,
.mj-footer__col a:hover,
.mj-footer__contact a:hover { color: #ffb066 !important; }
.mj-footer__brand img.custom-logo { max-height: 58px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; }
.mj-footer__brand p { margin: 14px 0; font-size: .92em; color: #ffffff; }
.mj-footer__brand em { color: var(--mj-orange); font-style: italic; font-weight: 600; }
.mj-footer__contact a { color: #ffffff; font-weight: 600; }
.mj-footer__social { display: inline-flex; gap: 10px; margin-top: 6px; }
.mj-footer__social a { color: #fff; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .15s, transform .15s, color .15s; }
.mj-footer__social a:hover { background: var(--mj-orange); color: #fff; transform: translateY(-2px); }
.mj-footer__social svg { width: 19px; height: 19px; }
.mj-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.mj-footer__pay-title { margin-top: 1.4em !important; }
.mj-footer__pay { display: flex; gap: 6px; flex-wrap: wrap; }
.mj-footer__pay span { background: #fff; color: var(--mj-navy); font-size: .72em; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.mj-footer__bar { border-top: 1px solid rgba(255,255,255,.18); font-size: .82em; color: #ffffff; padding: 14px 0; text-align: center; }

/* ============================================================ RESPONSIVO */
@media (max-width: 1024px) {
	.mj-hero__inner, .mj-why__inner { grid-template-columns: 1fr; }
	.mj-hero__media { order: -1; }
	.mj-why__media { order: 2; }
}
@media (max-width: 860px) {
	/* header em 2 linhas: logo + ações em cima, busca embaixo */
	.mj-head { flex-wrap: wrap; gap: 12px 16px; }
	.mj-head__logo { order: 1; }
	.mj-head__actions { order: 2; }
	.mj-head__search { order: 3; flex: 1 1 100%; max-width: none; }
	.mj-head__acc span, .mj-head__cart-info { display: none; }
	.mj-head__btn { padding: 6px; }
	/* departamentos: rola horizontalmente */
	.mj-dept__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.mj-dept__inner::-webkit-scrollbar { height: 0; }
	/* topbar enxuta */
	.mj-topbar__inner { justify-content: center; gap: 8px 14px; font-size: 12px; }
	.mj-topbar__slogan, .mj-topbar__right > a { display: none; }
	/* grids */
	.mj-trust__inner { grid-template-columns: repeat(2,1fr); gap: 12px; }
	.mj-cats { grid-template-columns: repeat(2,1fr); }
	.woocommerce ul.products, .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2,1fr); }
	.mj-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.mj-section { padding: 32px 0; }
	.mj-hero__inner { padding: 30px 0; gap: 20px; text-align: center; }
	.mj-hero__text h1 { font-size: 1.7em; }
	.mj-hero__text p { margin-left: auto; margin-right: auto; }
	.mj-hero__cta { justify-content: center; }
	.mj-hero__cta .button { flex: 1 1 42%; text-align: center; }
	.mj-h2 { font-size: 1.35em; }
	.mj-why__inner { padding: 32px 0; }
	.mj-why__text .mj-h2, .mj-why__text .mj-h2--left { text-align: center; }
	.mj-why__text .mj-h2--left::after { margin-left: auto; }
	.mj-why__list { display: inline-block; text-align: left; }
	.mj-footer__cols { grid-template-columns: 1fr; text-align: center; padding: 32px 0 22px; }
	.mj-footer__social, .mj-footer__pay, .mj-footer__contact a { justify-content: center; }
	.mj-footer__brand p { max-width: 28em; margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) {
	.woocommerce ul.products, .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.mj-head__logo img.custom-logo { max-height: 48px; }
	.mj-topbar__contact { font-size: 11px; gap: 10px; }
	.mj-hero__text h1 { font-size: 1.5em; }
}
