/*
Theme Name: REVO Atacado WordPress
Theme URI: https://example.com/revo-atacado-wordpress
Author: Codex
Description: Tema WordPress reprogramado a partir do layout REVO Atacado, com estrutura classica, suporte a menus, widgets, personalizacao e WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revo-atacado-wordpress
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto;
	color: #000;
	background: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
}

body {
	background: var(--bg_body);
	color: var(--color_text);
}

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

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: .875rem;
	color: #666;
}

.bypostauthor {
	display: block;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100000;
	padding: 12px 16px;
	background: #fff;
	color: #000;
}

.skip-link:focus {
	left: 8px;
}

.application {
	min-height: 100vh;
	background: var(--bg_body);
}

.header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.header .custom-logo-link img,
.header .logo img {
	width: auto;
	max-height: 72px;
	object-fit: contain;
}

.header .line {
	gap: 20px;
}

.header .menu {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.search-header {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100%, 520px);
}

.search-header .input-search {
	width: 100%;
}

.search-header .button-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.nav {
	background: var(--nav_bg);
	border-top: 1px solid rgba(0, 0, 0, .06);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav .list-nav,
.nav-mobile .list-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav .list-nav > li {
	position: relative;
}

.nav .list-nav a {
	display: block;
	padding: 16px 18px;
	color: var(--nav_color);
	font-weight: 700;
	text-decoration: none;
}

.nav .list-nav a:hover,
.nav .list-nav .current-menu-item > a,
.nav .list-nav .current_page_item > a {
	background: var(--nav_bg_hover);
	color: var(--nav_color_sub);
}

.nav .sub-menu,
.nav .children {
	position: absolute;
	left: 0;
	z-index: 50;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--bg_sub);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.nav li:hover > .sub-menu,
.nav li:hover > .children {
	display: block;
}

.nav .sub-menu a,
.nav .children a {
	padding: 10px 16px;
	font-weight: 500;
}

.nav-mobile {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 9999;
	width: min(88vw, 360px);
	padding: 28px;
	background: #fff;
	transform: translateX(-105%);
	transition: transform .2s ease;
	box-shadow: 16px 0 40px rgba(0, 0, 0, .18);
}

.nav-mobile.active {
	transform: translateX(0);
}

.nav-mobile .close-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border: 0;
	background: #f4f4f4;
	cursor: pointer;
}

.nav-mobile .list-nav {
	display: block;
	margin-top: 24px;
}

.nav-mobile a {
	display: block;
	padding: 12px 0;
	color: #111;
	font-weight: 700;
	text-decoration: none;
}

.page-content {
	padding: 34px 0;
}

.page-content.not-padding {
	padding-top: 0;
}

.revo-hero {
	background: #0d0d0d;
	color: #fff;
}

.revo-hero .container {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
	gap: 34px;
	align-items: center;
	padding-top: 46px;
	padding-bottom: 46px;
}

.revo-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1;
}

.revo-hero p {
	max-width: 640px;
	margin: 0;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, .82);
}

.revo-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.revo-button,
.botao-commerce,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 4px;
	background: var(--button_buy);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.revo-button:hover,
.botao-commerce:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--button_buy_hover);
	color: #fff;
}

.revo-button.secondary {
	background: #fff;
	color: #000;
}

.revo-hero-card {
	display: grid;
	gap: 12px;
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
}

.revo-hero-card strong {
	display: block;
	font-size: 2rem;
	color: var(--bar_top);
}

.banner-info {
	margin-top: 24px;
	margin-bottom: 24px;
}

.banner-info .open_desk {
	gap: 14px;
}

.banner-info .item {
	flex: 1;
	min-width: 180px;
}

.banner-info .line {
	min-height: 76px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--color_border);
}

.banner-info .icon {
	width: 34px;
	height: 34px;
	object-fit: contain;
	margin-right: 10px;
}

.section-showcase,
.section-brands,
.revo-page-block {
	margin-top: 34px;
	margin-bottom: 34px;
}

.revo-products-grid,
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.showcase.grid-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.product {
	height: 100%;
}

.product .image img,
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1;
	width: 100%;
	object-fit: contain;
	background: #fff;
}

.product .variants,
.product .add_to_cart_button {
	margin-top: 12px;
}

.product .variants a,
.product a.button {
	width: 100%;
}

.entry-card {
	height: 100%;
	padding: 20px;
	border: 1px solid var(--color_border);
	background: #fff;
}

.entry-card .entry-title {
	margin-top: 0;
	font-size: 1.25rem;
}

.entry-card .entry-title a {
	color: var(--color_text);
	text-decoration: none;
}

.entry-meta,
.entry-summary {
	color: #666;
}

.site-main .entry-content {
	line-height: 1.7;
}

.woocommerce-wrapper {
	padding: 18px 0 44px;
}

.woocommerce div.product .product_title {
	color: var(--color_name_product);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--preco_color_product);
	font-weight: 800;
}

.footer .widget {
	color: var(--color_text_footer);
}

.footer .widget a {
	color: var(--color_text_footer_link);
}

.revo-whatsapp {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.revo-whatsapp svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

@media (max-width: 980px) {
	.header .line {
		flex-wrap: wrap;
	}

	.search-header {
		order: 10;
		width: 100%;
	}

	.nav {
		display: none;
	}

	.revo-hero .container {
		grid-template-columns: 1fr;
	}

	.showcase.grid-products,
	.revo-products-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bar-top .container {
		gap: 8px;
		justify-content: center;
		text-align: center;
	}

	.account span {
		display: none;
	}

	.showcase.grid-products,
	.revo-products-grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.revo-hero .container {
		padding-top: 32px;
		padding-bottom: 32px;
	}
}
